public static final class DistributionPolicy.Builder extends GeneratedMessageV3.Builder<DistributionPolicy.Builder> implements DistributionPolicyOrBuilder
Protobuf type google.cloud.compute.v1.DistributionPolicy
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DistributionPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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;
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;
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;
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;
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;
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 |
---|
Name | Description |
index | int
|
build()
public DistributionPolicy build()
buildPartial()
public DistributionPolicy buildPartial()
clear()
public DistributionPolicy.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public DistributionPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public DistributionPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
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;
clone()
public DistributionPolicy.Builder clone()
Overrides
getDefaultInstanceForType()
public DistributionPolicy getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Name | Description |
index | int
|
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 |
---|
Name | Description |
index | int
|
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;
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 |
---|
Type | Description |
int | |
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;
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 |
---|
Name | Description |
index | int
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(DistributionPolicy other)
public DistributionPolicy.Builder mergeFrom(DistributionPolicy other)
public DistributionPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public DistributionPolicy.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DistributionPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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 |
---|
Name | Description |
index | int
|
setField(Descriptors.FieldDescriptor field, Object value)
public DistributionPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DistributionPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final DistributionPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
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;
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;