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 Type
    Method
    Description
    IANA Time Zone Database time zone, e.g.
    Optional.
    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.
    setId(String value)
    IANA Time Zone Database time zone, e.g.
    setIdBytes(com.google.protobuf.ByteString value)
    IANA Time Zone Database time zone, e.g.
    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

      public String getId()
       IANA Time Zone Database time zone, e.g. "America/New_York".
       
      string id = 1 [json_name = "id"];
      Specified by:
      getId in interface TimeZoneOrBuilder
      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 interface TimeZoneOrBuilder
      Returns:
      The bytes for id.
    • setId

      public TimeZone.Builder setId(String value)
       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

      public TimeZone.Builder clearId()
       IANA Time Zone Database time zone, e.g. "America/New_York".
       
      string id = 1 [json_name = "id"];
      Returns:
      This builder for chaining.
    • setIdBytes

      public TimeZone.Builder setIdBytes(com.google.protobuf.ByteString value)
       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

      public String getVersion()
       Optional. IANA Time Zone Database version number, e.g. "2019a".
       
      string version = 2 [json_name = "version"];
      Specified by:
      getVersion in interface TimeZoneOrBuilder
      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 interface TimeZoneOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public TimeZone.Builder setVersion(String value)
       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

      public TimeZone.Builder clearVersion()
       Optional. IANA Time Zone Database version number, e.g. "2019a".
       
      string version = 2 [json_name = "version"];
      Returns:
      This builder for chaining.
    • setVersionBytes

      public TimeZone.Builder setVersionBytes(com.google.protobuf.ByteString value)
       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.