Interface ResourcePolicyGroupPlacementPolicyOrBuilder (1.56.0)

public interface ResourcePolicyGroupPlacementPolicyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAvailabilityDomainCount()

public abstract int getAvailabilityDomainCount()

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

optional int32 availability_domain_count = 12453432;

Returns
Type Description
int

The availabilityDomainCount.

getCollocation()

public abstract String getCollocation()

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

optional string collocation = 511156533;

Returns
Type Description
String

The collocation.

getCollocationBytes()

public abstract ByteString getCollocationBytes()

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

optional string collocation = 511156533;

Returns
Type Description
ByteString

The bytes for collocation.

getVmCount()

public abstract int getVmCount()

Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.

optional int32 vm_count = 261463431;

Returns
Type Description
int

The vmCount.

hasAvailabilityDomainCount()

public abstract boolean hasAvailabilityDomainCount()

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

optional int32 availability_domain_count = 12453432;

Returns
Type Description
boolean

Whether the availabilityDomainCount field is set.

hasCollocation()

public abstract boolean hasCollocation()

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

optional string collocation = 511156533;

Returns
Type Description
boolean

Whether the collocation field is set.

hasVmCount()

public abstract boolean hasVmCount()

Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.

optional int32 vm_count = 261463431;

Returns
Type Description
boolean

Whether the vmCount field is set.