Class TimeZone.Builder (2.34.0)

public static final class TimeZone.Builder extends GeneratedMessageV3.Builder<TimeZone.Builder> implements TimeZoneOrBuilder

Represents a time zone from the IANA Time Zone Database.

Protobuf type google.type.TimeZone

Implements

TimeZoneOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TimeZone.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TimeZone.Builder
Overrides

build()

public TimeZone build()
Returns
TypeDescription
TimeZone

buildPartial()

public TimeZone buildPartial()
Returns
TypeDescription
TimeZone

clear()

public TimeZone.Builder clear()
Returns
TypeDescription
TimeZone.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TimeZone.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TimeZone.Builder
Overrides

clearId()

public TimeZone.Builder clearId()

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

string id = 1;

Returns
TypeDescription
TimeZone.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TimeZone.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TimeZone.Builder
Overrides

clearVersion()

public TimeZone.Builder clearVersion()

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

string version = 2;

Returns
TypeDescription
TimeZone.Builder

This builder for chaining.

clone()

public TimeZone.Builder clone()
Returns
TypeDescription
TimeZone.Builder
Overrides

getDefaultInstanceForType()

public TimeZone getDefaultInstanceForType()
Returns
TypeDescription
TimeZone

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TimeZone.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimeZone.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TimeZone.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TimeZone.Builder
Overrides

mergeFrom(TimeZone other)

public TimeZone.Builder mergeFrom(TimeZone other)
Parameter
NameDescription
otherTimeZone
Returns
TypeDescription
TimeZone.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TimeZone.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TimeZone.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TimeZone.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TimeZone.Builder
Overrides

setId(String value)

public TimeZone.Builder setId(String value)

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

string id = 1;

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
TimeZone.Builder

This builder for chaining.

setIdBytes(ByteString value)

public TimeZone.Builder setIdBytes(ByteString value)

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

string id = 1;

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
TimeZone.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TimeZone.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TimeZone.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TimeZone.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TimeZone.Builder
Overrides

setVersion(String value)

public TimeZone.Builder setVersion(String value)

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

string version = 2;

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
TimeZone.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public TimeZone.Builder setVersionBytes(ByteString value)

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

string version = 2;

Parameter
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
TimeZone.Builder

This builder for chaining.