Interface DateOrBuilder (2.42.0)

public interface DateOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDay()

public abstract int getDay()

Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.

int32 day = 3;

Returns
Type Description
int

The day.

getMonth()

public abstract int getMonth()

Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.

int32 month = 2;

Returns
Type Description
int

The month.

getYear()

public abstract int getYear()

Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.

int32 year = 1;

Returns
Type Description
int

The year.