Send feedback
Class TimeZone.Builder (2.14.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.14.1 keyboard_arrow_down
public static final class TimeZone . Builder extends GeneratedMessageV3 . Builder<TimeZone . Builder > implements TimeZoneOrBuilder
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TimeZone . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public TimeZone buildPartial ()
Returns
clear()
public TimeZone . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public TimeZone . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearId()
public TimeZone . Builder clearId ()
IANA Time Zone Database time zone, e.g. "America/New_York".
string id = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public TimeZone . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearVersion()
public TimeZone . Builder clearVersion ()
Optional. IANA Time Zone Database version number, e.g. "2019a".
string version = 2;
Returns
clone()
public TimeZone . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public TimeZone getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getId()
IANA Time Zone Database time zone, e.g. "America/New_York".
string id = 1;
Returns
getIdBytes()
public ByteString getIdBytes ()
IANA Time Zone Database time zone, e.g. "America/New_York".
string id = 1;
Returns
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
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
public TimeZone . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TimeZone . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeFrom(TimeZone other)
public TimeZone . Builder mergeFrom ( TimeZone other )
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TimeZone . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public TimeZone . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TimeZone . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TimeZone . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]