Class DistributionPolicy.Builder (1.54.0)

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
Type Description
Descriptor

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
Type Description
DistributionPolicy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DistributionPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DistributionPolicy.Builder
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
Name Description
value DistributionPolicyZoneConfiguration
Returns
Type Description
DistributionPolicy.Builder

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
Name Description
builderForValue DistributionPolicyZoneConfiguration.Builder
Returns
Type Description
DistributionPolicy.Builder

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
Name Description
index int
value DistributionPolicyZoneConfiguration
Returns
Type Description
DistributionPolicy.Builder

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
Name Description
index int
builderForValue DistributionPolicyZoneConfiguration.Builder
Returns
Type Description
DistributionPolicy.Builder

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
Type Description
DistributionPolicyZoneConfiguration.Builder

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
Returns
Type Description
DistributionPolicyZoneConfiguration.Builder

build()

public DistributionPolicy build()
Returns
Type Description
DistributionPolicy

buildPartial()

public DistributionPolicy buildPartial()
Returns
Type Description
DistributionPolicy

clear()

public DistributionPolicy.Builder clear()
Returns
Type Description
DistributionPolicy.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DistributionPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DistributionPolicy.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DistributionPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DistributionPolicy.Builder
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
Type Description
DistributionPolicy.Builder

This builder for chaining.

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
Type Description
DistributionPolicy.Builder

clone()

public DistributionPolicy.Builder clone()
Returns
Type Description
DistributionPolicy.Builder
Overrides

getDefaultInstanceForType()

public DistributionPolicy getDefaultInstanceForType()
Returns
Type Description
DistributionPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Returns
Type Description
DistributionPolicyZoneConfiguration

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
Returns
Type Description
DistributionPolicyZoneConfiguration.Builder

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
Type Description
List<Builder>

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;

Returns
Type Description
List<DistributionPolicyZoneConfiguration>

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
Returns
Type Description
DistributionPolicyZoneConfigurationOrBuilder

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DistributionPolicy other)

public DistributionPolicy.Builder mergeFrom(DistributionPolicy other)
Parameter
Name Description
other DistributionPolicy
Returns
Type Description
DistributionPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DistributionPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DistributionPolicy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DistributionPolicy.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DistributionPolicy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DistributionPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DistributionPolicy.Builder
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
Returns
Type Description
DistributionPolicy.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DistributionPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DistributionPolicy.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DistributionPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DistributionPolicy.Builder
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
Type Description
DistributionPolicy.Builder

This builder for chaining.

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
Type Description
DistributionPolicy.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DistributionPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DistributionPolicy.Builder
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
Name Description
index int
value DistributionPolicyZoneConfiguration
Returns
Type Description
DistributionPolicy.Builder

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
Name Description
index int
builderForValue DistributionPolicyZoneConfiguration.Builder
Returns
Type Description
DistributionPolicy.Builder