public static final class ResourcePolicyWorkloadPolicy.Builder extends GeneratedMessage.Builder<ResourcePolicyWorkloadPolicy.Builder> implements ResourcePolicyWorkloadPolicyOrBuilderRepresents the workload policy.
Protobuf type google.cloud.compute.v1.ResourcePolicyWorkloadPolicy
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ResourcePolicyWorkloadPolicy.BuilderImplements
ResourcePolicyWorkloadPolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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. |
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. |
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. |
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 GeneratedMessage.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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for acceleratorTopology to set. |
| Returns | |
|---|---|
| Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
This builder for chaining. |
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 |
StringThe 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 |
ByteStringThe bytes for maxTopologyDistance to set. |
| Returns | |
|---|---|
| Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
This builder for chaining. |
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 |
StringThe 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 |
ByteStringThe bytes for type to set. |
| Returns | |
|---|---|
| Type | Description |
ResourcePolicyWorkloadPolicy.Builder |
This builder for chaining. |