public static final class DistributionPolicy.Builder extends GeneratedMessageV3.Builder<DistributionPolicy.Builder> implements DistributionPolicyOrBuilder
Protobuf type google.cloud.compute.v1.DistributionPolicy
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllZones(Iterable<? extends DistributionPolicyZoneConfiguration> values)
public DistributionPolicy.Builder addAllZones(Iterable<? extends DistributionPolicyZoneConfiguration> values)
Zones where the regional managed instance group will create and manage its instances.
repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.compute.v1.DistributionPolicyZoneConfiguration>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DistributionPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addZones(DistributionPolicyZoneConfiguration value)
public DistributionPolicy.Builder addZones(DistributionPolicyZoneConfiguration value)
Zones where the regional managed instance group will create and manage its instances.
repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
Parameter
Returns
addZones(DistributionPolicyZoneConfiguration.Builder builderForValue)
public DistributionPolicy.Builder addZones(DistributionPolicyZoneConfiguration.Builder builderForValue)
Zones where the regional managed instance group will create and manage its instances.
repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
Parameter
Returns
addZones(int index, DistributionPolicyZoneConfiguration value)
public DistributionPolicy.Builder addZones(int index, DistributionPolicyZoneConfiguration value)
Zones where the regional managed instance group will create and manage its instances.
repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
Parameters
Returns
addZones(int index, DistributionPolicyZoneConfiguration.Builder builderForValue)
public DistributionPolicy.Builder addZones(int index, DistributionPolicyZoneConfiguration.Builder builderForValue)
Zones where the regional managed instance group will create and manage its instances.
repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
Parameters
Returns
addZonesBuilder()
public DistributionPolicyZoneConfiguration.Builder addZonesBuilder()
Zones where the regional managed instance group will create and manage its instances.
repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
Returns
addZonesBuilder(int index)
public DistributionPolicyZoneConfiguration.Builder addZonesBuilder(int index)
Zones where the regional managed instance group will create and manage its instances.
repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
Parameter
Returns
build()
public DistributionPolicy build()
Returns
buildPartial()
public DistributionPolicy buildPartial()
Returns
clear()
public DistributionPolicy.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public DistributionPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public DistributionPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearTargetShape()
public DistributionPolicy.Builder clearTargetShape()
The distribution shape to which the group converges either proactively or on resize events (depending on the value set in updatePolicy.instanceRedistributionType).
Check the TargetShape enum for the list of possible values.
optional string target_shape = 338621299;
Returns
clearZones()
public DistributionPolicy.Builder clearZones()
Zones where the regional managed instance group will create and manage its instances.
repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
Returns
clone()
public DistributionPolicy.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public DistributionPolicy getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getTargetShape()
public String getTargetShape()
The distribution shape to which the group converges either proactively or on resize events (depending on the value set in updatePolicy.instanceRedistributionType).
Check the TargetShape enum for the list of possible values.
optional string target_shape = 338621299;
Returns
Type | Description |
String | The targetShape.
|
getTargetShapeBytes()
public ByteString getTargetShapeBytes()
The distribution shape to which the group converges either proactively or on resize events (depending on the value set in updatePolicy.instanceRedistributionType).
Check the TargetShape enum for the list of possible values.
optional string target_shape = 338621299;
Returns
Type | Description |
ByteString | The bytes for targetShape.
|
getZones(int index)
public DistributionPolicyZoneConfiguration getZones(int index)
Zones where the regional managed instance group will create and manage its instances.
repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
Parameter
Returns
getZonesBuilder(int index)
public DistributionPolicyZoneConfiguration.Builder getZonesBuilder(int index)
Zones where the regional managed instance group will create and manage its instances.
repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
Parameter
Returns
getZonesBuilderList()
public List<DistributionPolicyZoneConfiguration.Builder> getZonesBuilderList()
Zones where the regional managed instance group will create and manage its instances.
repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
Returns
getZonesCount()
public int getZonesCount()
Zones where the regional managed instance group will create and manage its instances.
repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
Returns
getZonesList()
public List<DistributionPolicyZoneConfiguration> getZonesList()
Zones where the regional managed instance group will create and manage its instances.
repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
Returns
getZonesOrBuilder(int index)
public DistributionPolicyZoneConfigurationOrBuilder getZonesOrBuilder(int index)
Zones where the regional managed instance group will create and manage its instances.
repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
Parameter
Returns
getZonesOrBuilderList()
public List<? extends DistributionPolicyZoneConfigurationOrBuilder> getZonesOrBuilderList()
Zones where the regional managed instance group will create and manage its instances.
repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
Returns
Type | Description |
List<? extends com.google.cloud.compute.v1.DistributionPolicyZoneConfigurationOrBuilder> | |
hasTargetShape()
public boolean hasTargetShape()
The distribution shape to which the group converges either proactively or on resize events (depending on the value set in updatePolicy.instanceRedistributionType).
Check the TargetShape enum for the list of possible values.
optional string target_shape = 338621299;
Returns
Type | Description |
boolean | Whether the targetShape field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(DistributionPolicy other)
public DistributionPolicy.Builder mergeFrom(DistributionPolicy other)
Parameter
Returns
public DistributionPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public DistributionPolicy.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DistributionPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeZones(int index)
public DistributionPolicy.Builder removeZones(int index)
Zones where the regional managed instance group will create and manage its instances.
repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public DistributionPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DistributionPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setTargetShape(String value)
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 in updatePolicy.instanceRedistributionType).
Check the TargetShape enum for the list of possible values.
optional string target_shape = 338621299;
Parameter
Name | Description |
value | String
The targetShape to set.
|
Returns
setTargetShapeBytes(ByteString value)
public DistributionPolicy.Builder setTargetShapeBytes(ByteString value)
The distribution shape to which the group converges either proactively or on resize events (depending on the value set in updatePolicy.instanceRedistributionType).
Check the TargetShape enum for the list of possible values.
optional string target_shape = 338621299;
Parameter
Name | Description |
value | ByteString
The bytes for targetShape to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final DistributionPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setZones(int index, DistributionPolicyZoneConfiguration value)
public DistributionPolicy.Builder setZones(int index, DistributionPolicyZoneConfiguration value)
Zones where the regional managed instance group will create and manage its instances.
repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
Parameters
Returns
setZones(int index, DistributionPolicyZoneConfiguration.Builder builderForValue)
public DistributionPolicy.Builder setZones(int index, DistributionPolicyZoneConfiguration.Builder builderForValue)
Zones where the regional managed instance group will create and manage its instances.
repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319;
Parameters
Returns