Package com.google.cloud.compute.v1
Class ResourcePolicyWorkloadPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ResourcePolicyWorkloadPolicy.Builder>
com.google.cloud.compute.v1.ResourcePolicyWorkloadPolicy.Builder
- All Implemented Interfaces:
ResourcePolicyWorkloadPolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ResourcePolicyWorkloadPolicy
public static final class ResourcePolicyWorkloadPolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ResourcePolicyWorkloadPolicy.Builder>
implements ResourcePolicyWorkloadPolicyOrBuilder
Represents the workload policy.Protobuf type
google.cloud.compute.v1.ResourcePolicyWorkloadPolicy-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Specifies the topology required to create a partition for VMs that have interconnected GPUs.Specifies the connection mode for the accelerator topology.Specifies the maximum distance between instances.Specifies the intent of the instance placement in the MIG.Specifies the topology required to create a partition for VMs that have interconnected GPUs.com.google.protobuf.ByteStringSpecifies the topology required to create a partition for VMs that have interconnected GPUs.Specifies the connection mode for the accelerator topology.com.google.protobuf.ByteStringSpecifies the connection mode for the accelerator topology.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSpecifies the maximum distance between instances.com.google.protobuf.ByteStringSpecifies the maximum distance between instances.getType()Specifies the intent of the instance placement in the MIG.com.google.protobuf.ByteStringSpecifies the intent of the instance placement in the MIG.booleanSpecifies the topology required to create a partition for VMs that have interconnected GPUs.booleanSpecifies the connection mode for the accelerator topology.booleanSpecifies the maximum distance between instances.booleanhasType()Specifies the intent of the instance placement in the MIG.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAcceleratorTopology(String value) Specifies the topology required to create a partition for VMs that have interconnected GPUs.setAcceleratorTopologyBytes(com.google.protobuf.ByteString value) Specifies the topology required to create a partition for VMs that have interconnected GPUs.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.setMaxTopologyDistance(String value) Specifies the maximum distance between instances.setMaxTopologyDistanceBytes(com.google.protobuf.ByteString value) Specifies the maximum distance between instances.Specifies the intent of the instance placement in the MIG.setTypeBytes(com.google.protobuf.ByteString value) Specifies the intent of the instance placement in the MIG.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<ResourcePolicyWorkloadPolicy.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<ResourcePolicyWorkloadPolicy.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<ResourcePolicyWorkloadPolicy.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<ResourcePolicyWorkloadPolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ResourcePolicyWorkloadPolicy.Builder>
-
mergeFrom
public ResourcePolicyWorkloadPolicy.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<ResourcePolicyWorkloadPolicy.Builder>- Throws:
IOException
-
hasAcceleratorTopology
public boolean hasAcceleratorTopology()Specifies the topology required to create a partition for VMs that have interconnected GPUs.
optional string accelerator_topology = 389323203;- Specified by:
hasAcceleratorTopologyin interfaceResourcePolicyWorkloadPolicyOrBuilder- Returns:
- Whether the acceleratorTopology field is set.
-
getAcceleratorTopology
Specifies the topology required to create a partition for VMs that have interconnected GPUs.
optional string accelerator_topology = 389323203;- Specified by:
getAcceleratorTopologyin interfaceResourcePolicyWorkloadPolicyOrBuilder- Returns:
- The acceleratorTopology.
-
getAcceleratorTopologyBytes
public com.google.protobuf.ByteString getAcceleratorTopologyBytes()Specifies the topology required to create a partition for VMs that have interconnected GPUs.
optional string accelerator_topology = 389323203;- Specified by:
getAcceleratorTopologyBytesin interfaceResourcePolicyWorkloadPolicyOrBuilder- Returns:
- The bytes for acceleratorTopology.
-
setAcceleratorTopology
Specifies the topology required to create a partition for VMs that have interconnected GPUs.
optional string accelerator_topology = 389323203;- Parameters:
value- The acceleratorTopology to set.- Returns:
- This builder for chaining.
-
clearAcceleratorTopology
Specifies the topology required to create a partition for VMs that have interconnected GPUs.
optional string accelerator_topology = 389323203;- Returns:
- This builder for chaining.
-
setAcceleratorTopologyBytes
public ResourcePolicyWorkloadPolicy.Builder setAcceleratorTopologyBytes(com.google.protobuf.ByteString value) Specifies the topology required to create a partition for VMs that have interconnected GPUs.
optional string accelerator_topology = 389323203;- Parameters:
value- The bytes for acceleratorTopology to set.- Returns:
- This builder for chaining.
-
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 interfaceResourcePolicyWorkloadPolicyOrBuilder- 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 interfaceResourcePolicyWorkloadPolicyOrBuilder- 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 interfaceResourcePolicyWorkloadPolicyOrBuilder- 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 ResourcePolicyWorkloadPolicy.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.
-
hasMaxTopologyDistance
public boolean hasMaxTopologyDistance()Specifies the maximum distance between instances. Check the MaxTopologyDistance enum for the list of possible values.
optional string max_topology_distance = 7521706;- Specified by:
hasMaxTopologyDistancein interfaceResourcePolicyWorkloadPolicyOrBuilder- Returns:
- Whether the maxTopologyDistance field is set.
-
getMaxTopologyDistance
Specifies the maximum distance between instances. Check the MaxTopologyDistance enum for the list of possible values.
optional string max_topology_distance = 7521706;- Specified by:
getMaxTopologyDistancein interfaceResourcePolicyWorkloadPolicyOrBuilder- Returns:
- The maxTopologyDistance.
-
getMaxTopologyDistanceBytes
public com.google.protobuf.ByteString getMaxTopologyDistanceBytes()Specifies the maximum distance between instances. Check the MaxTopologyDistance enum for the list of possible values.
optional string max_topology_distance = 7521706;- Specified by:
getMaxTopologyDistanceBytesin interfaceResourcePolicyWorkloadPolicyOrBuilder- Returns:
- The bytes for maxTopologyDistance.
-
setMaxTopologyDistance
Specifies the maximum distance between instances. Check the MaxTopologyDistance enum for the list of possible values.
optional string max_topology_distance = 7521706;- Parameters:
value- The maxTopologyDistance to set.- Returns:
- This builder for chaining.
-
clearMaxTopologyDistance
Specifies the maximum distance between instances. Check the MaxTopologyDistance enum for the list of possible values.
optional string max_topology_distance = 7521706;- Returns:
- This builder for chaining.
-
setMaxTopologyDistanceBytes
public ResourcePolicyWorkloadPolicy.Builder setMaxTopologyDistanceBytes(com.google.protobuf.ByteString value) Specifies the maximum distance between instances. Check the MaxTopologyDistance enum for the list of possible values.
optional string max_topology_distance = 7521706;- Parameters:
value- The bytes for maxTopologyDistance to set.- Returns:
- This builder for chaining.
-
hasType
public boolean hasType()Specifies the intent of the instance placement in the MIG. Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
hasTypein interfaceResourcePolicyWorkloadPolicyOrBuilder- Returns:
- Whether the type field is set.
-
getType
Specifies the intent of the instance placement in the MIG. Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
getTypein interfaceResourcePolicyWorkloadPolicyOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()Specifies the intent of the instance placement in the MIG. Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
getTypeBytesin interfaceResourcePolicyWorkloadPolicyOrBuilder- Returns:
- The bytes for type.
-
setType
Specifies the intent of the instance placement in the MIG. Check the Type enum for the list of possible values.
optional string type = 3575610;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Specifies the intent of the instance placement in the MIG. Check the Type enum for the list of possible values.
optional string type = 3575610;- Returns:
- This builder for chaining.
-
setTypeBytes
Specifies the intent of the instance placement in the MIG. Check the Type enum for the list of possible values.
optional string type = 3575610;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-