Class TimeZone.Builder (2.39.1)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TimeZone.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TimeZone.Builder
Overrides

build()

public TimeZone build()
Returns
Type Description
TimeZone

buildPartial()

public TimeZone buildPartial()
Returns
Type Description
TimeZone

clear()

public TimeZone.Builder clear()
Returns
Type Description
TimeZone.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TimeZone.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TimeZone.Builder
Overrides

clearId()

public TimeZone.Builder clearId()

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

string id = 1;

Returns
Type Description
TimeZone.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TimeZone.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TimeZone.Builder
Overrides

clearVersion()

public TimeZone.Builder clearVersion()

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

string version = 2;

Returns
Type Description
TimeZone.Builder

This builder for chaining.

clone()

public TimeZone.Builder clone()
Returns
Type Description
TimeZone.Builder
Overrides

getDefaultInstanceForType()

public TimeZone getDefaultInstanceForType()
Returns
Type Description
TimeZone

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getId()

public String getId()

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

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

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

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

getVersion()

public String getVersion()

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

string version = 2;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

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

string version = 2;

Returns
Type Description
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TimeZone.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeZone.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TimeZone.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TimeZone.Builder
Overrides

mergeFrom(TimeZone other)

public TimeZone.Builder mergeFrom(TimeZone other)
Parameter
Name Description
other TimeZone
Returns
Type Description
TimeZone.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TimeZone.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TimeZone.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TimeZone.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The id to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TimeZone.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TimeZone.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value String

The version to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
TimeZone.Builder

This builder for chaining.