Class DistributionPolicy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DistributionPolicy.Builder>
com.google.cloud.compute.v1.DistributionPolicy.Builder
All Implemented Interfaces:
DistributionPolicyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DistributionPolicy

public static final class DistributionPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<DistributionPolicy.Builder> implements DistributionPolicyOrBuilder
 
Protobuf type google.cloud.compute.v1.DistributionPolicy
  • 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<DistributionPolicy.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<DistributionPolicy.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<DistributionPolicy.Builder>
    • getDefaultInstanceForType

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

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

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

      public DistributionPolicy.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<DistributionPolicy.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<DistributionPolicy.Builder>
    • mergeFrom

      public DistributionPolicy.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<DistributionPolicy.Builder>
      Throws:
      IOException
    • hasTargetShape

      public boolean hasTargetShape()
       The distribution shape to which the group converges either proactively or
       on resize events (depending on the value set inupdatePolicy.instanceRedistributionType).
       Check the TargetShape enum for the list of possible values.
       
      optional string target_shape = 338621299;
      Specified by:
      hasTargetShape in interface DistributionPolicyOrBuilder
      Returns:
      Whether the targetShape field is set.
    • getTargetShape

      public String getTargetShape()
       The distribution shape to which the group converges either proactively or
       on resize events (depending on the value set inupdatePolicy.instanceRedistributionType).
       Check the TargetShape enum for the list of possible values.
       
      optional string target_shape = 338621299;
      Specified by:
      getTargetShape in interface DistributionPolicyOrBuilder
      Returns:
      The targetShape.
    • getTargetShapeBytes

      public com.google.protobuf.ByteString getTargetShapeBytes()
       The distribution shape to which the group converges either proactively or
       on resize events (depending on the value set inupdatePolicy.instanceRedistributionType).
       Check the TargetShape enum for the list of possible values.
       
      optional string target_shape = 338621299;
      Specified by:
      getTargetShapeBytes in interface DistributionPolicyOrBuilder
      Returns:
      The bytes for targetShape.
    • setTargetShape

      public DistributionPolicy.Builder setTargetShape(String value)
       The distribution shape to which the group converges either proactively or
       on resize events (depending on the value set inupdatePolicy.instanceRedistributionType).
       Check the TargetShape enum for the list of possible values.
       
      optional string target_shape = 338621299;
      Parameters:
      value - The targetShape to set.
      Returns:
      This builder for chaining.
    • clearTargetShape

      public DistributionPolicy.Builder clearTargetShape()
       The distribution shape to which the group converges either proactively or
       on resize events (depending on the value set inupdatePolicy.instanceRedistributionType).
       Check the TargetShape enum for the list of possible values.
       
      optional string target_shape = 338621299;
      Returns:
      This builder for chaining.
    • setTargetShapeBytes

      public DistributionPolicy.Builder setTargetShapeBytes(com.google.protobuf.ByteString value)
       The distribution shape to which the group converges either proactively or
       on resize events (depending on the value set inupdatePolicy.instanceRedistributionType).
       Check the TargetShape enum for the list of possible values.
       
      optional string target_shape = 338621299;
      Parameters:
      value - The bytes for targetShape to set.
      Returns:
      This builder for chaining.
    • getZonesList

      public List<DistributionPolicyZoneConfiguration> getZonesList()
       Zones where the regional managed instance group will create and manage
       its instances.
       By default, a regional MIG doesn't automatically select an AI zone to create
       instances, even if an AI zone is available in the specified region. To
       create instances in an AI zone in the selected region, you must explicitly
       specify it in the distribution policy together with the other preferred
       zones.
       
      repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
      Specified by:
      getZonesList in interface DistributionPolicyOrBuilder
    • getZonesCount

      public int getZonesCount()
       Zones where the regional managed instance group will create and manage
       its instances.
       By default, a regional MIG doesn't automatically select an AI zone to create
       instances, even if an AI zone is available in the specified region. To
       create instances in an AI zone in the selected region, you must explicitly
       specify it in the distribution policy together with the other preferred
       zones.
       
      repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
      Specified by:
      getZonesCount in interface DistributionPolicyOrBuilder
    • getZones

      public DistributionPolicyZoneConfiguration getZones(int index)
       Zones where the regional managed instance group will create and manage
       its instances.
       By default, a regional MIG doesn't automatically select an AI zone to create
       instances, even if an AI zone is available in the specified region. To
       create instances in an AI zone in the selected region, you must explicitly
       specify it in the distribution policy together with the other preferred
       zones.
       
      repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
      Specified by:
      getZones in interface DistributionPolicyOrBuilder
    • setZones

       Zones where the regional managed instance group will create and manage
       its instances.
       By default, a regional MIG doesn't automatically select an AI zone to create
       instances, even if an AI zone is available in the specified region. To
       create instances in an AI zone in the selected region, you must explicitly
       specify it in the distribution policy together with the other preferred
       zones.
       
      repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
    • setZones

      public DistributionPolicy.Builder setZones(int index, DistributionPolicyZoneConfiguration.Builder builderForValue)
       Zones where the regional managed instance group will create and manage
       its instances.
       By default, a regional MIG doesn't automatically select an AI zone to create
       instances, even if an AI zone is available in the specified region. To
       create instances in an AI zone in the selected region, you must explicitly
       specify it in the distribution policy together with the other preferred
       zones.
       
      repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
    • addZones

       Zones where the regional managed instance group will create and manage
       its instances.
       By default, a regional MIG doesn't automatically select an AI zone to create
       instances, even if an AI zone is available in the specified region. To
       create instances in an AI zone in the selected region, you must explicitly
       specify it in the distribution policy together with the other preferred
       zones.
       
      repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
    • addZones

       Zones where the regional managed instance group will create and manage
       its instances.
       By default, a regional MIG doesn't automatically select an AI zone to create
       instances, even if an AI zone is available in the specified region. To
       create instances in an AI zone in the selected region, you must explicitly
       specify it in the distribution policy together with the other preferred
       zones.
       
      repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
    • addZones

       Zones where the regional managed instance group will create and manage
       its instances.
       By default, a regional MIG doesn't automatically select an AI zone to create
       instances, even if an AI zone is available in the specified region. To
       create instances in an AI zone in the selected region, you must explicitly
       specify it in the distribution policy together with the other preferred
       zones.
       
      repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
    • addZones

      public DistributionPolicy.Builder addZones(int index, DistributionPolicyZoneConfiguration.Builder builderForValue)
       Zones where the regional managed instance group will create and manage
       its instances.
       By default, a regional MIG doesn't automatically select an AI zone to create
       instances, even if an AI zone is available in the specified region. To
       create instances in an AI zone in the selected region, you must explicitly
       specify it in the distribution policy together with the other preferred
       zones.
       
      repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
    • addAllZones

       Zones where the regional managed instance group will create and manage
       its instances.
       By default, a regional MIG doesn't automatically select an AI zone to create
       instances, even if an AI zone is available in the specified region. To
       create instances in an AI zone in the selected region, you must explicitly
       specify it in the distribution policy together with the other preferred
       zones.
       
      repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
    • clearZones

      public DistributionPolicy.Builder clearZones()
       Zones where the regional managed instance group will create and manage
       its instances.
       By default, a regional MIG doesn't automatically select an AI zone to create
       instances, even if an AI zone is available in the specified region. To
       create instances in an AI zone in the selected region, you must explicitly
       specify it in the distribution policy together with the other preferred
       zones.
       
      repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
    • removeZones

      public DistributionPolicy.Builder removeZones(int index)
       Zones where the regional managed instance group will create and manage
       its instances.
       By default, a regional MIG doesn't automatically select an AI zone to create
       instances, even if an AI zone is available in the specified region. To
       create instances in an AI zone in the selected region, you must explicitly
       specify it in the distribution policy together with the other preferred
       zones.
       
      repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
    • getZonesBuilder

      public DistributionPolicyZoneConfiguration.Builder getZonesBuilder(int index)
       Zones where the regional managed instance group will create and manage
       its instances.
       By default, a regional MIG doesn't automatically select an AI zone to create
       instances, even if an AI zone is available in the specified region. To
       create instances in an AI zone in the selected region, you must explicitly
       specify it in the distribution policy together with the other preferred
       zones.
       
      repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
    • getZonesOrBuilder

      public DistributionPolicyZoneConfigurationOrBuilder getZonesOrBuilder(int index)
       Zones where the regional managed instance group will create and manage
       its instances.
       By default, a regional MIG doesn't automatically select an AI zone to create
       instances, even if an AI zone is available in the specified region. To
       create instances in an AI zone in the selected region, you must explicitly
       specify it in the distribution policy together with the other preferred
       zones.
       
      repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
      Specified by:
      getZonesOrBuilder in interface DistributionPolicyOrBuilder
    • getZonesOrBuilderList

      public List<? extends DistributionPolicyZoneConfigurationOrBuilder> getZonesOrBuilderList()
       Zones where the regional managed instance group will create and manage
       its instances.
       By default, a regional MIG doesn't automatically select an AI zone to create
       instances, even if an AI zone is available in the specified region. To
       create instances in an AI zone in the selected region, you must explicitly
       specify it in the distribution policy together with the other preferred
       zones.
       
      repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
      Specified by:
      getZonesOrBuilderList in interface DistributionPolicyOrBuilder
    • addZonesBuilder

       Zones where the regional managed instance group will create and manage
       its instances.
       By default, a regional MIG doesn't automatically select an AI zone to create
       instances, even if an AI zone is available in the specified region. To
       create instances in an AI zone in the selected region, you must explicitly
       specify it in the distribution policy together with the other preferred
       zones.
       
      repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
    • addZonesBuilder

      public DistributionPolicyZoneConfiguration.Builder addZonesBuilder(int index)
       Zones where the regional managed instance group will create and manage
       its instances.
       By default, a regional MIG doesn't automatically select an AI zone to create
       instances, even if an AI zone is available in the specified region. To
       create instances in an AI zone in the selected region, you must explicitly
       specify it in the distribution policy together with the other preferred
       zones.
       
      repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
    • getZonesBuilderList

      public List<DistributionPolicyZoneConfiguration.Builder> getZonesBuilderList()
       Zones where the regional managed instance group will create and manage
       its instances.
       By default, a regional MIG doesn't automatically select an AI zone to create
       instances, even if an AI zone is available in the specified region. To
       create instances in an AI zone in the selected region, you must explicitly
       specify it in the distribution policy together with the other preferred
       zones.
       
      repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;