Class ZoneDistributionConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ZoneDistributionConfig.Builder>
com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.Builder
All Implemented Interfaces:
ZoneDistributionConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ZoneDistributionConfig

public static final class ZoneDistributionConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<ZoneDistributionConfig.Builder> implements ZoneDistributionConfigOrBuilder
 Zone distribution config for allocation of cluster resources.
 
Protobuf type google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ZoneDistributionConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ZoneDistributionConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ZoneDistributionConfig.Builder>
    • getDefaultInstanceForType

      public ZoneDistributionConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ZoneDistributionConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ZoneDistributionConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ZoneDistributionConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ZoneDistributionConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ZoneDistributionConfig.Builder>
    • mergeFrom

      public ZoneDistributionConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ZoneDistributionConfig.Builder>
      Throws:
      IOException
    • getModeValue

      public int getModeValue()
       Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
       specified.
       
      .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getModeValue in interface ZoneDistributionConfigOrBuilder
      Returns:
      The enum numeric value on the wire for mode.
    • setModeValue

      public ZoneDistributionConfig.Builder setModeValue(int value)
       Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
       specified.
       
      .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for mode to set.
      Returns:
      This builder for chaining.
    • getMode

       Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
       specified.
       
      .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMode in interface ZoneDistributionConfigOrBuilder
      Returns:
      The mode.
    • setMode

       Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
       specified.
       
      .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The mode to set.
      Returns:
      This builder for chaining.
    • clearMode

      public ZoneDistributionConfig.Builder clearMode()
       Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
       specified.
       
      .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getZone

      public String getZone()
       Optional. When SINGLE ZONE distribution is selected, zone field would be
       used to allocate all resources in that zone. This is not applicable to
       MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
       
      string zone = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getZone in interface ZoneDistributionConfigOrBuilder
      Returns:
      The zone.
    • getZoneBytes

      public com.google.protobuf.ByteString getZoneBytes()
       Optional. When SINGLE ZONE distribution is selected, zone field would be
       used to allocate all resources in that zone. This is not applicable to
       MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
       
      string zone = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getZoneBytes in interface ZoneDistributionConfigOrBuilder
      Returns:
      The bytes for zone.
    • setZone

      public ZoneDistributionConfig.Builder setZone(String value)
       Optional. When SINGLE ZONE distribution is selected, zone field would be
       used to allocate all resources in that zone. This is not applicable to
       MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
       
      string zone = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The zone to set.
      Returns:
      This builder for chaining.
    • clearZone

      public ZoneDistributionConfig.Builder clearZone()
       Optional. When SINGLE ZONE distribution is selected, zone field would be
       used to allocate all resources in that zone. This is not applicable to
       MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
       
      string zone = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setZoneBytes

      public ZoneDistributionConfig.Builder setZoneBytes(com.google.protobuf.ByteString value)
       Optional. When SINGLE ZONE distribution is selected, zone field would be
       used to allocate all resources in that zone. This is not applicable to
       MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
       
      string zone = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for zone to set.
      Returns:
      This builder for chaining.