Class DistributionPolicy (1.51.0)

public final class DistributionPolicy extends GeneratedMessageV3 implements DistributionPolicyOrBuilder

Protobuf type google.cloud.compute.v1.DistributionPolicy

Static Fields

TARGET_SHAPE_FIELD_NUMBER

public static final int TARGET_SHAPE_FIELD_NUMBER
Field Value
TypeDescription
int

ZONES_FIELD_NUMBER

public static final int ZONES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DistributionPolicy getDefaultInstance()
Returns
TypeDescription
DistributionPolicy

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static DistributionPolicy.Builder newBuilder()
Returns
TypeDescription
DistributionPolicy.Builder

newBuilder(DistributionPolicy prototype)

public static DistributionPolicy.Builder newBuilder(DistributionPolicy prototype)
Parameter
NameDescription
prototypeDistributionPolicy
Returns
TypeDescription
DistributionPolicy.Builder

parseDelimitedFrom(InputStream input)

public static DistributionPolicy parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DistributionPolicy
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DistributionPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DistributionPolicy
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static DistributionPolicy parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DistributionPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DistributionPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DistributionPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DistributionPolicy parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DistributionPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DistributionPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DistributionPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DistributionPolicy parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DistributionPolicy
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DistributionPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DistributionPolicy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static DistributionPolicy parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DistributionPolicy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DistributionPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DistributionPolicy
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static DistributionPolicy parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DistributionPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DistributionPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DistributionPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<DistributionPolicy> parser()
Returns
TypeDescription
Parser<DistributionPolicy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public DistributionPolicy getDefaultInstanceForType()
Returns
TypeDescription
DistributionPolicy

getParserForType()

public Parser<DistributionPolicy> getParserForType()
Returns
TypeDescription
Parser<DistributionPolicy>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public DistributionPolicy.Builder newBuilderForType()
Returns
TypeDescription
DistributionPolicy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DistributionPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DistributionPolicy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public DistributionPolicy.Builder toBuilder()
Returns
TypeDescription
DistributionPolicy.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException