Interface DateOrBuilder (1.88.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.

optional int32 day = 99228;

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.

optional int32 month = 104080000;

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.

optional int32 year = 3704893;

Returns
Type Description
int

The year.

hasDay()

public abstract boolean hasDay()

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.

optional int32 day = 99228;

Returns
Type Description
boolean

Whether the day field is set.

hasMonth()

public abstract boolean hasMonth()

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

optional int32 month = 104080000;

Returns
Type Description
boolean

Whether the month field is set.

hasYear()

public abstract boolean hasYear()

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

optional int32 year = 3704893;

Returns
Type Description
boolean

Whether the year field is set.