Package com.google.type
Class TimeZone.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<TimeZone,TimeZone.Builder>
com.google.type.TimeZone.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,TimeZoneOrBuilder
,Cloneable
- Enclosing class:
- TimeZone
public static final class TimeZone.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<TimeZone,TimeZone.Builder>
implements TimeZoneOrBuilder
Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones).Protobuf type
google.type.TimeZone
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionclearId()
IANA Time Zone Database time zone, e.g.Optional.getId()
IANA Time Zone Database time zone, e.g.com.google.protobuf.ByteString
IANA Time Zone Database time zone, e.g.Optional.com.google.protobuf.ByteString
Optional.IANA Time Zone Database time zone, e.g.setIdBytes
(com.google.protobuf.ByteString value) IANA Time Zone Database time zone, e.g.setVersion
(String value) Optional.setVersionBytes
(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getId
IANA Time Zone Database time zone, e.g. "America/New_York".
string id = 1 [json_name = "id"];
- Specified by:
getId
in interfaceTimeZoneOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()IANA Time Zone Database time zone, e.g. "America/New_York".
string id = 1 [json_name = "id"];
- Specified by:
getIdBytes
in interfaceTimeZoneOrBuilder
- Returns:
- The bytes for id.
-
setId
IANA Time Zone Database time zone, e.g. "America/New_York".
string id = 1 [json_name = "id"];
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
IANA Time Zone Database time zone, e.g. "America/New_York".
string id = 1 [json_name = "id"];
- Returns:
- This builder for chaining.
-
setIdBytes
IANA Time Zone Database time zone, e.g. "America/New_York".
string id = 1 [json_name = "id"];
- Parameters:
value
- The bytes for id to set.- Returns:
- This builder for chaining.
-
getVersion
Optional. IANA Time Zone Database version number, e.g. "2019a".
string version = 2 [json_name = "version"];
- Specified by:
getVersion
in interfaceTimeZoneOrBuilder
- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()Optional. IANA Time Zone Database version number, e.g. "2019a".
string version = 2 [json_name = "version"];
- Specified by:
getVersionBytes
in interfaceTimeZoneOrBuilder
- Returns:
- The bytes for version.
-
setVersion
Optional. IANA Time Zone Database version number, e.g. "2019a".
string version = 2 [json_name = "version"];
- Parameters:
value
- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
Optional. IANA Time Zone Database version number, e.g. "2019a".
string version = 2 [json_name = "version"];
- Returns:
- This builder for chaining.
-
setVersionBytes
Optional. IANA Time Zone Database version number, e.g. "2019a".
string version = 2 [json_name = "version"];
- Parameters:
value
- The bytes for version to set.- Returns:
- This builder for chaining.
-