Package com.google.cloud.compute.v1
Class ResourcePolicyGroupPlacementPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ResourcePolicyGroupPlacementPolicy.Builder>
com.google.cloud.compute.v1.ResourcePolicyGroupPlacementPolicy.Builder
- All Implemented Interfaces:
ResourcePolicyGroupPlacementPolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ResourcePolicyGroupPlacementPolicy
public static final class ResourcePolicyGroupPlacementPolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ResourcePolicyGroupPlacementPolicy.Builder>
implements ResourcePolicyGroupPlacementPolicyOrBuilder
A GroupPlacementPolicy specifies resource placement configuration. It specifies the failure bucket separationProtobuf type
google.cloud.compute.v1.ResourcePolicyGroupPlacementPolicy-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Specifies the connection mode for the accelerator topology.The number of availability domains to spread instances across.Specifies network collocation Check the Collocation enum for the list of possible values.Specifies the shape of the GPU slice, in slice based GPU families eg.Number of VMs in this placement group.Specifies the connection mode for the accelerator topology.com.google.protobuf.ByteStringSpecifies the connection mode for the accelerator topology.intThe number of availability domains to spread instances across.Specifies network collocation Check the Collocation enum for the list of possible values.com.google.protobuf.ByteStringSpecifies network collocation Check the Collocation enum for the list of possible values.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSpecifies the shape of the GPU slice, in slice based GPU families eg.com.google.protobuf.ByteStringSpecifies the shape of the GPU slice, in slice based GPU families eg.intNumber of VMs in this placement group.booleanSpecifies the connection mode for the accelerator topology.booleanThe number of availability domains to spread instances across.booleanSpecifies network collocation Check the Collocation enum for the list of possible values.booleanSpecifies the shape of the GPU slice, in slice based GPU families eg.booleanNumber of VMs in this placement group.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAcceleratorTopologyMode(String value) Specifies the connection mode for the accelerator topology.setAcceleratorTopologyModeBytes(com.google.protobuf.ByteString value) Specifies the connection mode for the accelerator topology.setAvailabilityDomainCount(int value) The number of availability domains to spread instances across.setCollocation(String value) Specifies network collocation Check the Collocation enum for the list of possible values.setCollocationBytes(com.google.protobuf.ByteString value) Specifies network collocation Check the Collocation enum for the list of possible values.setGpuTopology(String value) Specifies the shape of the GPU slice, in slice based GPU families eg.setGpuTopologyBytes(com.google.protobuf.ByteString value) Specifies the shape of the GPU slice, in slice based GPU families eg.setVmCount(int value) Number of VMs in this placement group.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ResourcePolicyGroupPlacementPolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ResourcePolicyGroupPlacementPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ResourcePolicyGroupPlacementPolicy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResourcePolicyGroupPlacementPolicy.Builder>
-
mergeFrom
public ResourcePolicyGroupPlacementPolicy.Builder mergeFrom(ResourcePolicyGroupPlacementPolicy other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ResourcePolicyGroupPlacementPolicy.Builder>
-
mergeFrom
public ResourcePolicyGroupPlacementPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResourcePolicyGroupPlacementPolicy.Builder>- Throws:
IOException
-
hasAcceleratorTopologyMode
public boolean hasAcceleratorTopologyMode()Specifies the connection mode for the accelerator topology. If not specified, the default is AUTO_CONNECT. Check the AcceleratorTopologyMode enum for the list of possible values.
optional string accelerator_topology_mode = 284293791;- Specified by:
hasAcceleratorTopologyModein interfaceResourcePolicyGroupPlacementPolicyOrBuilder- Returns:
- Whether the acceleratorTopologyMode field is set.
-
getAcceleratorTopologyMode
Specifies the connection mode for the accelerator topology. If not specified, the default is AUTO_CONNECT. Check the AcceleratorTopologyMode enum for the list of possible values.
optional string accelerator_topology_mode = 284293791;- Specified by:
getAcceleratorTopologyModein interfaceResourcePolicyGroupPlacementPolicyOrBuilder- Returns:
- The acceleratorTopologyMode.
-
getAcceleratorTopologyModeBytes
public com.google.protobuf.ByteString getAcceleratorTopologyModeBytes()Specifies the connection mode for the accelerator topology. If not specified, the default is AUTO_CONNECT. Check the AcceleratorTopologyMode enum for the list of possible values.
optional string accelerator_topology_mode = 284293791;- Specified by:
getAcceleratorTopologyModeBytesin interfaceResourcePolicyGroupPlacementPolicyOrBuilder- Returns:
- The bytes for acceleratorTopologyMode.
-
setAcceleratorTopologyMode
Specifies the connection mode for the accelerator topology. If not specified, the default is AUTO_CONNECT. Check the AcceleratorTopologyMode enum for the list of possible values.
optional string accelerator_topology_mode = 284293791;- Parameters:
value- The acceleratorTopologyMode to set.- Returns:
- This builder for chaining.
-
clearAcceleratorTopologyMode
Specifies the connection mode for the accelerator topology. If not specified, the default is AUTO_CONNECT. Check the AcceleratorTopologyMode enum for the list of possible values.
optional string accelerator_topology_mode = 284293791;- Returns:
- This builder for chaining.
-
setAcceleratorTopologyModeBytes
public ResourcePolicyGroupPlacementPolicy.Builder setAcceleratorTopologyModeBytes(com.google.protobuf.ByteString value) Specifies the connection mode for the accelerator topology. If not specified, the default is AUTO_CONNECT. Check the AcceleratorTopologyMode enum for the list of possible values.
optional string accelerator_topology_mode = 284293791;- Parameters:
value- The bytes for acceleratorTopologyMode to set.- Returns:
- This builder for chaining.
-
hasAvailabilityDomainCount
public 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;- Specified by:
hasAvailabilityDomainCountin interfaceResourcePolicyGroupPlacementPolicyOrBuilder- Returns:
- Whether the availabilityDomainCount field is set.
-
getAvailabilityDomainCount
public 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;- Specified by:
getAvailabilityDomainCountin interfaceResourcePolicyGroupPlacementPolicyOrBuilder- Returns:
- The availabilityDomainCount.
-
setAvailabilityDomainCount
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;- Parameters:
value- The availabilityDomainCount to set.- Returns:
- This builder for chaining.
-
clearAvailabilityDomainCount
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:
- This builder for chaining.
-
hasCollocation
public boolean hasCollocation()Specifies network collocation Check the Collocation enum for the list of possible values.
optional string collocation = 511156533;- Specified by:
hasCollocationin interfaceResourcePolicyGroupPlacementPolicyOrBuilder- Returns:
- Whether the collocation field is set.
-
getCollocation
Specifies network collocation Check the Collocation enum for the list of possible values.
optional string collocation = 511156533;- Specified by:
getCollocationin interfaceResourcePolicyGroupPlacementPolicyOrBuilder- Returns:
- The collocation.
-
getCollocationBytes
public com.google.protobuf.ByteString getCollocationBytes()Specifies network collocation Check the Collocation enum for the list of possible values.
optional string collocation = 511156533;- Specified by:
getCollocationBytesin interfaceResourcePolicyGroupPlacementPolicyOrBuilder- Returns:
- The bytes for collocation.
-
setCollocation
Specifies network collocation Check the Collocation enum for the list of possible values.
optional string collocation = 511156533;- Parameters:
value- The collocation to set.- Returns:
- This builder for chaining.
-
clearCollocation
Specifies network collocation Check the Collocation enum for the list of possible values.
optional string collocation = 511156533;- Returns:
- This builder for chaining.
-
setCollocationBytes
public ResourcePolicyGroupPlacementPolicy.Builder setCollocationBytes(com.google.protobuf.ByteString value) Specifies network collocation Check the Collocation enum for the list of possible values.
optional string collocation = 511156533;- Parameters:
value- The bytes for collocation to set.- Returns:
- This builder for chaining.
-
hasGpuTopology
public boolean hasGpuTopology()Specifies the shape of the GPU slice, in slice based GPU families eg. A4X.
optional string gpu_topology = 247948450;- Specified by:
hasGpuTopologyin interfaceResourcePolicyGroupPlacementPolicyOrBuilder- Returns:
- Whether the gpuTopology field is set.
-
getGpuTopology
Specifies the shape of the GPU slice, in slice based GPU families eg. A4X.
optional string gpu_topology = 247948450;- Specified by:
getGpuTopologyin interfaceResourcePolicyGroupPlacementPolicyOrBuilder- Returns:
- The gpuTopology.
-
getGpuTopologyBytes
public com.google.protobuf.ByteString getGpuTopologyBytes()Specifies the shape of the GPU slice, in slice based GPU families eg. A4X.
optional string gpu_topology = 247948450;- Specified by:
getGpuTopologyBytesin interfaceResourcePolicyGroupPlacementPolicyOrBuilder- Returns:
- The bytes for gpuTopology.
-
setGpuTopology
Specifies the shape of the GPU slice, in slice based GPU families eg. A4X.
optional string gpu_topology = 247948450;- Parameters:
value- The gpuTopology to set.- Returns:
- This builder for chaining.
-
clearGpuTopology
Specifies the shape of the GPU slice, in slice based GPU families eg. A4X.
optional string gpu_topology = 247948450;- Returns:
- This builder for chaining.
-
setGpuTopologyBytes
public ResourcePolicyGroupPlacementPolicy.Builder setGpuTopologyBytes(com.google.protobuf.ByteString value) Specifies the shape of the GPU slice, in slice based GPU families eg. A4X.
optional string gpu_topology = 247948450;- Parameters:
value- The bytes for gpuTopology to set.- Returns:
- This builder for chaining.
-
hasVmCount
public 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;- Specified by:
hasVmCountin interfaceResourcePolicyGroupPlacementPolicyOrBuilder- Returns:
- Whether the vmCount field is set.
-
getVmCount
public 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;- Specified by:
getVmCountin interfaceResourcePolicyGroupPlacementPolicyOrBuilder- Returns:
- The vmCount.
-
setVmCount
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;- Parameters:
value- The vmCount to set.- Returns:
- This builder for chaining.
-
clearVmCount
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:
- This builder for chaining.
-