public static final class ResourcePolicyWorkloadPolicy.Builder extends GeneratedMessageV3.Builder<ResourcePolicyWorkloadPolicy.Builder> implements ResourcePolicyWorkloadPolicyOrBuilder
Represents the workload policy.
Protobuf type google.cloud.compute.v1.ResourcePolicyWorkloadPolicy
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ResourcePolicyWorkloadPolicy.BuilderImplements
ResourcePolicyWorkloadPolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ResourcePolicyWorkloadPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
build()
public ResourcePolicyWorkloadPolicy build()
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy |
buildPartial()
public ResourcePolicyWorkloadPolicy buildPartial()
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy |
clear()
public ResourcePolicyWorkloadPolicy.Builder clear()
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
clearAcceleratorTopology()
public ResourcePolicyWorkloadPolicy.Builder clearAcceleratorTopology()
Specifies the topology required to create a partition for VMs that have interconnected GPUs.
optional string accelerator_topology = 389323203;
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ResourcePolicyWorkloadPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
clearMaxTopologyDistance()
public ResourcePolicyWorkloadPolicy.Builder clearMaxTopologyDistance()
Specifies the maximum distance between instances. Check the MaxTopologyDistance enum for the list of possible values.
optional string max_topology_distance = 7521706;
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ResourcePolicyWorkloadPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
clearType()
public ResourcePolicyWorkloadPolicy.Builder 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 | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
This builder for chaining. |
clone()
public ResourcePolicyWorkloadPolicy.Builder clone()
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
getAcceleratorTopology()
public String getAcceleratorTopology()
Specifies the topology required to create a partition for VMs that have interconnected GPUs.
optional string accelerator_topology = 389323203;
Returns | |
---|---|
Type | Description |
String |
The acceleratorTopology. |
getAcceleratorTopologyBytes()
public ByteString getAcceleratorTopologyBytes()
Specifies the topology required to create a partition for VMs that have interconnected GPUs.
optional string accelerator_topology = 389323203;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for acceleratorTopology. |
getDefaultInstanceForType()
public ResourcePolicyWorkloadPolicy getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getMaxTopologyDistance()
public String getMaxTopologyDistance()
Specifies the maximum distance between instances. Check the MaxTopologyDistance enum for the list of possible values.
optional string max_topology_distance = 7521706;
Returns | |
---|---|
Type | Description |
String |
The maxTopologyDistance. |
getMaxTopologyDistanceBytes()
public ByteString getMaxTopologyDistanceBytes()
Specifies the maximum distance between instances. Check the MaxTopologyDistance enum for the list of possible values.
optional string max_topology_distance = 7521706;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for maxTopologyDistance. |
getType()
public String 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;
Returns | |
---|---|
Type | Description |
String |
The type. |
getTypeBytes()
public 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;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for type. |
hasAcceleratorTopology()
public boolean hasAcceleratorTopology()
Specifies the topology required to create a partition for VMs that have interconnected GPUs.
optional string accelerator_topology = 389323203;
Returns | |
---|---|
Type | Description |
boolean |
Whether the acceleratorTopology field is set. |
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;
Returns | |
---|---|
Type | Description |
boolean |
Whether the maxTopologyDistance field is set. |
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;
Returns | |
---|---|
Type | Description |
boolean |
Whether the type field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(ResourcePolicyWorkloadPolicy other)
public ResourcePolicyWorkloadPolicy.Builder mergeFrom(ResourcePolicyWorkloadPolicy other)
Parameter | |
---|---|
Name | Description |
other |
ResourcePolicyWorkloadPolicy |
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ResourcePolicyWorkloadPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ResourcePolicyWorkloadPolicy.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResourcePolicyWorkloadPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
setAcceleratorTopology(String value)
public ResourcePolicyWorkloadPolicy.Builder setAcceleratorTopology(String value)
Specifies the topology required to create a partition for VMs that have interconnected GPUs.
optional string accelerator_topology = 389323203;
Parameter | |
---|---|
Name | Description |
value |
String The acceleratorTopology to set. |
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
This builder for chaining. |
setAcceleratorTopologyBytes(ByteString value)
public ResourcePolicyWorkloadPolicy.Builder setAcceleratorTopologyBytes(ByteString value)
Specifies the topology required to create a partition for VMs that have interconnected GPUs.
optional string accelerator_topology = 389323203;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for acceleratorTopology to set. |
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ResourcePolicyWorkloadPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
setMaxTopologyDistance(String value)
public ResourcePolicyWorkloadPolicy.Builder setMaxTopologyDistance(String value)
Specifies the maximum distance between instances. Check the MaxTopologyDistance enum for the list of possible values.
optional string max_topology_distance = 7521706;
Parameter | |
---|---|
Name | Description |
value |
String The maxTopologyDistance to set. |
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
This builder for chaining. |
setMaxTopologyDistanceBytes(ByteString value)
public ResourcePolicyWorkloadPolicy.Builder setMaxTopologyDistanceBytes(ByteString value)
Specifies the maximum distance between instances. Check the MaxTopologyDistance enum for the list of possible values.
optional string max_topology_distance = 7521706;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for maxTopologyDistance to set. |
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ResourcePolicyWorkloadPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
setType(String value)
public ResourcePolicyWorkloadPolicy.Builder setType(String value)
Specifies the intent of the instance placement in the MIG. Check the Type enum for the list of possible values.
optional string type = 3575610;
Parameter | |
---|---|
Name | Description |
value |
String The type to set. |
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
This builder for chaining. |
setTypeBytes(ByteString value)
public ResourcePolicyWorkloadPolicy.Builder setTypeBytes(ByteString value)
Specifies the intent of the instance placement in the MIG. Check the Type enum for the list of possible values.
optional string type = 3575610;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for type to set. |
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ResourcePolicyWorkloadPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ResourcePolicyWorkloadPolicy.Builder |