Interface TimeOfDayOrBuilder (2.72.0)

public interface TimeOfDayOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getHours()

public abstract int getHours()

Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.

int32 hours = 1;

Returns
Type Description
int

The hours.

getMinutes()

public abstract int getMinutes()

Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.

int32 minutes = 2;

Returns
Type Description
int

The minutes.

getNanos()

public abstract int getNanos()

Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.

int32 nanos = 4;

Returns
Type Description
int

The nanos.

getSeconds()

public abstract int getSeconds()

Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.

int32 seconds = 3;

Returns
Type Description
int

The seconds.