Class ResourcePolicyGroupPlacementPolicy (1.6.0-beta)

public final class ResourcePolicyGroupPlacementPolicy extends GeneratedMessageV3 implements ResourcePolicyGroupPlacementPolicyOrBuilder

A GroupPlacementPolicy specifies resource placement configuration. It specifies the failure bucket separation as well as network locality

Protobuf type google.cloud.compute.v1.ResourcePolicyGroupPlacementPolicy

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ResourcePolicyGroupPlacementPolicy

Fields

AVAILABILITY_DOMAIN_COUNT_FIELD_NUMBER

public static final int AVAILABILITY_DOMAIN_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

COLLOCATION_FIELD_NUMBER

public static final int COLLOCATION_FIELD_NUMBER
Field Value
TypeDescription
int

VM_COUNT_FIELD_NUMBER

public static final int VM_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

equals(Object obj)

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

getAvailabilityDomainCount()

public int getAvailabilityDomainCount()

The number of availability domains instances will be spread across. If two instances are in different availability domain, they will not be put in the same low latency network

optional int32 availability_domain_count = 12453432;

Returns
TypeDescription
int

The availabilityDomainCount.

getCollocation()

public String getCollocation()

Specifies network collocation Check the Collocation enum for the list of possible values.

optional string collocation = 511156533;

Returns
TypeDescription
String

The collocation.

getCollocationBytes()

public ByteString getCollocationBytes()

Specifies network collocation Check the Collocation enum for the list of possible values.

optional string collocation = 511156533;

Returns
TypeDescription
ByteString

The bytes for collocation.

getDefaultInstance()

public static ResourcePolicyGroupPlacementPolicy getDefaultInstance()
Returns
TypeDescription
ResourcePolicyGroupPlacementPolicy

getDefaultInstanceForType()

public ResourcePolicyGroupPlacementPolicy getDefaultInstanceForType()
Returns
TypeDescription
ResourcePolicyGroupPlacementPolicy

getDescriptor()

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getVmCount()

public int getVmCount()

Number of vms in this placement group

optional int32 vm_count = 261463431;

Returns
TypeDescription
int

The vmCount.

hasAvailabilityDomainCount()

public boolean hasAvailabilityDomainCount()

The number of availability domains instances will be spread across. If two instances are in different availability domain, they will not be put in the same low latency network

optional int32 availability_domain_count = 12453432;

Returns
TypeDescription
boolean

Whether the availabilityDomainCount field is set.

hasCollocation()

public boolean hasCollocation()

Specifies network collocation Check the Collocation enum for the list of possible values.

optional string collocation = 511156533;

Returns
TypeDescription
boolean

Whether the collocation field is set.

hasVmCount()

public boolean hasVmCount()

Number of vms in this placement group

optional int32 vm_count = 261463431;

Returns
TypeDescription
boolean

Whether the vmCount 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

newBuilder()

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

newBuilder(ResourcePolicyGroupPlacementPolicy prototype)

public static ResourcePolicyGroupPlacementPolicy.Builder newBuilder(ResourcePolicyGroupPlacementPolicy prototype)
Parameter
NameDescription
prototypeResourcePolicyGroupPlacementPolicy
Returns
TypeDescription
ResourcePolicyGroupPlacementPolicy.Builder

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

toBuilder()

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

writeTo(CodedOutputStream output)

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