Package com.google.cloud.compute.v1
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 Summary
Modifier and TypeMethodDescriptionaddAllZones(Iterable<? extends DistributionPolicyZoneConfiguration> values) Zones where the regional managed instance group will create and manage its instances.addZones(int index, DistributionPolicyZoneConfiguration value) Zones where the regional managed instance group will create and manage its instances.addZones(int index, DistributionPolicyZoneConfiguration.Builder builderForValue) Zones where the regional managed instance group will create and manage its instances.Zones where the regional managed instance group will create and manage its instances.addZones(DistributionPolicyZoneConfiguration.Builder builderForValue) Zones where the regional managed instance group will create and manage its instances.Zones where the regional managed instance group will create and manage its instances.addZonesBuilder(int index) Zones where the regional managed instance group will create and manage its instances.build()clear()The distribution shape to which the group converges either proactively or on resize events (depending on the value set inupdatePolicy.instanceRedistributionType).Zones where the regional managed instance group will create and manage its instances.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe distribution shape to which the group converges either proactively or on resize events (depending on the value set inupdatePolicy.instanceRedistributionType).com.google.protobuf.ByteStringThe distribution shape to which the group converges either proactively or on resize events (depending on the value set inupdatePolicy.instanceRedistributionType).getZones(int index) Zones where the regional managed instance group will create and manage its instances.getZonesBuilder(int index) Zones where the regional managed instance group will create and manage its instances.Zones where the regional managed instance group will create and manage its instances.intZones where the regional managed instance group will create and manage its instances.Zones where the regional managed instance group will create and manage its instances.getZonesOrBuilder(int index) Zones where the regional managed instance group will create and manage its instances.List<? extends DistributionPolicyZoneConfigurationOrBuilder>Zones where the regional managed instance group will create and manage its instances.booleanThe distribution shape to which the group converges either proactively or on resize events (depending on the value set inupdatePolicy.instanceRedistributionType).protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DistributionPolicy other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeZones(int index) Zones where the regional managed instance group will create and manage its instances.setTargetShape(String value) The distribution shape to which the group converges either proactively or on resize events (depending on the value set inupdatePolicy.instanceRedistributionType).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).setZones(int index, DistributionPolicyZoneConfiguration value) Zones where the regional managed instance group will create and manage its instances.setZones(int index, DistributionPolicyZoneConfiguration.Builder builderForValue) Zones where the regional managed instance group will create and manage its instances.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DistributionPolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DistributionPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DistributionPolicy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DistributionPolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasTargetShapein interfaceDistributionPolicyOrBuilder- Returns:
- Whether the targetShape field is set.
-
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:
getTargetShapein interfaceDistributionPolicyOrBuilder- 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:
getTargetShapeBytesin interfaceDistributionPolicyOrBuilder- Returns:
- The bytes for targetShape.
-
setTargetShape
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
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
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
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:
getZonesListin interfaceDistributionPolicyOrBuilder
-
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:
getZonesCountin interfaceDistributionPolicyOrBuilder
-
getZones
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:
getZonesin interfaceDistributionPolicyOrBuilder
-
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
public DistributionPolicy.Builder addZones(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
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
public DistributionPolicy.Builder addAllZones(Iterable<? extends DistributionPolicyZoneConfiguration> values) 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
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
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
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
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:
getZonesOrBuilderin interfaceDistributionPolicyOrBuilder
-
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:
getZonesOrBuilderListin interfaceDistributionPolicyOrBuilder
-
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
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
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;
-