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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TimeZone.BuilderImplements
TimeZoneOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TimeZone.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TimeZone.Builder |
build()
public TimeZone build()
Type | Description |
TimeZone |
buildPartial()
public TimeZone buildPartial()
Type | Description |
TimeZone |
clear()
public TimeZone.Builder clear()
Type | Description |
TimeZone.Builder |
clearField(Descriptors.FieldDescriptor field)
public TimeZone.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
TimeZone.Builder |
clearId()
public TimeZone.Builder clearId()
IANA Time Zone Database time zone, e.g. "America/New_York".
string id = 1;
Type | Description |
TimeZone.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public TimeZone.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
TimeZone.Builder |
clearVersion()
public TimeZone.Builder clearVersion()
Optional. IANA Time Zone Database version number, e.g. "2019a".
string version = 2;
Type | Description |
TimeZone.Builder | This builder for chaining. |
clone()
public TimeZone.Builder clone()
Type | Description |
TimeZone.Builder |
getDefaultInstanceForType()
public TimeZone getDefaultInstanceForType()
Type | Description |
TimeZone |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getId()
public String getId()
IANA Time Zone Database time zone, e.g. "America/New_York".
string id = 1;
Type | Description |
String | The id. |
getIdBytes()
public ByteString getIdBytes()
IANA Time Zone Database time zone, e.g. "America/New_York".
string id = 1;
Type | Description |
ByteString | The bytes for id. |
getVersion()
public String getVersion()
Optional. IANA Time Zone Database version number, e.g. "2019a".
string version = 2;
Type | Description |
String | The version. |
getVersionBytes()
public ByteString getVersionBytes()
Optional. IANA Time Zone Database version number, e.g. "2019a".
string version = 2;
Type | Description |
ByteString | The bytes for version. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TimeZone.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TimeZone.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public TimeZone.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
TimeZone.Builder |
mergeFrom(TimeZone other)
public TimeZone.Builder mergeFrom(TimeZone other)
Name | Description |
other | TimeZone |
Type | Description |
TimeZone.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TimeZone.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TimeZone.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public TimeZone.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TimeZone.Builder |
setId(String value)
public TimeZone.Builder setId(String value)
IANA Time Zone Database time zone, e.g. "America/New_York".
string id = 1;
Name | Description |
value | String The id to set. |
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;
Name | Description |
value | ByteString The bytes for id to set. |
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)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
TimeZone.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final TimeZone.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TimeZone.Builder |
setVersion(String value)
public TimeZone.Builder setVersion(String value)
Optional. IANA Time Zone Database version number, e.g. "2019a".
string version = 2;
Name | Description |
value | String The version to set. |
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;
Name | Description |
value | ByteString The bytes for version to set. |
Type | Description |
TimeZone.Builder | This builder for chaining. |