Class TimeZone (2.10.0)

Stay organized with collections Save and categorize content based on your preferences.
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