public final class TimeOfDay extends GeneratedMessageV3 implements TimeOfDayOrBuilder
Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may choose to allow leap seconds. Related
types are google.type.Date and
google.protobuf.Timestamp
.
Protobuf type google.type.TimeOfDay
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > TimeOfDayImplements
TimeOfDayOrBuilderStatic Fields
HOURS_FIELD_NUMBER
public static final int HOURS_FIELD_NUMBER
Type | Description |
int |
MINUTES_FIELD_NUMBER
public static final int MINUTES_FIELD_NUMBER
Type | Description |
int |
NANOS_FIELD_NUMBER
public static final int NANOS_FIELD_NUMBER
Type | Description |
int |
SECONDS_FIELD_NUMBER
public static final int SECONDS_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static TimeOfDay getDefaultInstance()
Type | Description |
TimeOfDay |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static TimeOfDay.Builder newBuilder()
Type | Description |
TimeOfDay.Builder |
newBuilder(TimeOfDay prototype)
public static TimeOfDay.Builder newBuilder(TimeOfDay prototype)
Name | Description |
prototype | TimeOfDay |
Type | Description |
TimeOfDay.Builder |
parseDelimitedFrom(InputStream input)
public static TimeOfDay parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
TimeOfDay |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TimeOfDay parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TimeOfDay |
Type | Description |
IOException |
parseFrom(byte[] data)
public static TimeOfDay parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
TimeOfDay |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TimeOfDay parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TimeOfDay |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static TimeOfDay parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
TimeOfDay |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TimeOfDay parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TimeOfDay |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static TimeOfDay parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
TimeOfDay |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static TimeOfDay parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TimeOfDay |
Type | Description |
IOException |
parseFrom(InputStream input)
public static TimeOfDay parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
TimeOfDay |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TimeOfDay parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TimeOfDay |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static TimeOfDay parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
TimeOfDay |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TimeOfDay parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TimeOfDay |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<TimeOfDay> parser()
Type | Description |
Parser<TimeOfDay> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public TimeOfDay getDefaultInstanceForType()
Type | Description |
TimeOfDay |
getHours()
public int getHours()
Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
int32 hours = 1;
Type | Description |
int | The hours. |
getMinutes()
public int getMinutes()
Minutes of hour of day. Must be from 0 to 59.
int32 minutes = 2;
Type | Description |
int | The minutes. |
getNanos()
public int getNanos()
Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
int32 nanos = 4;
Type | Description |
int | The nanos. |
getParserForType()
public Parser<TimeOfDay> getParserForType()
Type | Description |
Parser<TimeOfDay> |
getSeconds()
public int getSeconds()
Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
int32 seconds = 3;
Type | Description |
int | The seconds. |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public TimeOfDay.Builder newBuilderForType()
Type | Description |
TimeOfDay.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TimeOfDay.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
TimeOfDay.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public TimeOfDay.Builder toBuilder()
Type | Description |
TimeOfDay.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |