Class DistributionPolicy.Builder (1.44.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.DistributionPolicyZoneConfiguration>
Returns
TypeDescription
DistributionPolicy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DistributionPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueDistributionPolicyZoneConfiguration
Returns
TypeDescription
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
NameDescription
builderForValueDistributionPolicyZoneConfiguration.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueDistributionPolicyZoneConfiguration
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDistributionPolicyZoneConfiguration.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
DistributionPolicyZoneConfiguration.Builder

build()

public DistributionPolicy build()
Returns
TypeDescription
DistributionPolicy

buildPartial()

public DistributionPolicy buildPartial()
Returns
TypeDescription
DistributionPolicy

clear()

public DistributionPolicy.Builder clear()
Returns
TypeDescription
DistributionPolicy.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DistributionPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DistributionPolicy.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DistributionPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DistributionPolicy.Builder

clone()

public DistributionPolicy.Builder clone()
Returns
TypeDescription
DistributionPolicy.Builder
Overrides

getDefaultInstanceForType()

public DistributionPolicy getDefaultInstanceForType()
Returns
TypeDescription
DistributionPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the targetShape field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DistributionPolicy other)

public DistributionPolicy.Builder mergeFrom(DistributionPolicy other)
Parameter
NameDescription
otherDistributionPolicy
Returns
TypeDescription
DistributionPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DistributionPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DistributionPolicy.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DistributionPolicy.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DistributionPolicy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DistributionPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
DistributionPolicy.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DistributionPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DistributionPolicy.Builder
Overrides

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

public DistributionPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The targetShape to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for targetShape to set.

Returns
TypeDescription
DistributionPolicy.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DistributionPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
valueDistributionPolicyZoneConfiguration
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDistributionPolicyZoneConfiguration.Builder
Returns
TypeDescription
DistributionPolicy.Builder