Class TimeZone (2.33.0)

public final class TimeZone extends GeneratedMessageV3 implements TimeZoneOrBuilder

Represents a time zone from the IANA Time Zone Database.

Protobuf type google.type.TimeZone

Implements

TimeZoneOrBuilder

Static Fields

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TimeZone getDefaultInstance()
Returns
TypeDescription
TimeZone

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static TimeZone.Builder newBuilder()
Returns
TypeDescription
TimeZone.Builder

newBuilder(TimeZone prototype)

public static TimeZone.Builder newBuilder(TimeZone prototype)
Parameter
NameDescription
prototypeTimeZone
Returns
TypeDescription
TimeZone.Builder

parseDelimitedFrom(InputStream input)

public static TimeZone parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TimeZone
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TimeZone parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimeZone
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TimeZone parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TimeZone
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TimeZone parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimeZone
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TimeZone parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TimeZone
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TimeZone parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimeZone
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TimeZone parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TimeZone
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TimeZone parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimeZone
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TimeZone parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TimeZone
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TimeZone parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimeZone
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TimeZone parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TimeZone
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TimeZone parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimeZone
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TimeZone> parser()
Returns
TypeDescription
Parser<TimeZone>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public TimeZone getDefaultInstanceForType()
Returns
TypeDescription
TimeZone

getId()

public String getId()

IANA Time Zone Database time zone, e.g. "America/New_York".

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

IANA Time Zone Database time zone, e.g. "America/New_York".

string id = 1;

Returns
TypeDescription
ByteString

The bytes for id.

getParserForType()

public Parser<TimeZone> getParserForType()
Returns
TypeDescription
Parser<TimeZone>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getVersion()

public String getVersion()

Optional. IANA Time Zone Database version number, e.g. "2019a".

string version = 2;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Optional. IANA Time Zone Database version number, e.g. "2019a".

string version = 2;

Returns
TypeDescription
ByteString

The bytes for version.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TimeZone.Builder newBuilderForType()
Returns
TypeDescription
TimeZone.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TimeZone.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TimeZone.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TimeZone.Builder toBuilder()
Returns
TypeDescription
TimeZone.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException