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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ResourcePolicyWorkloadPolicy.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ResourcePolicyWorkloadPolicy.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ResourcePolicyWorkloadPolicy.Builder>
    • getDefaultInstanceForType

      public ResourcePolicyWorkloadPolicy getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ResourcePolicyWorkloadPolicy buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ResourcePolicyWorkloadPolicy.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResourcePolicyWorkloadPolicy.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasAcceleratorTopology in interface ResourcePolicyWorkloadPolicyOrBuilder
      Returns:
      Whether the acceleratorTopology field is set.
    • getAcceleratorTopology

      public String getAcceleratorTopology()
       Specifies the topology required to create a partition for VMs that have
       interconnected GPUs.
       
      optional string accelerator_topology = 389323203;
      Specified by:
      getAcceleratorTopology in interface ResourcePolicyWorkloadPolicyOrBuilder
      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:
      getAcceleratorTopologyBytes in interface ResourcePolicyWorkloadPolicyOrBuilder
      Returns:
      The bytes for acceleratorTopology.
    • setAcceleratorTopology

      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;
      Parameters:
      value - The acceleratorTopology to set.
      Returns:
      This builder for chaining.
    • 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:
      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:
      hasAcceleratorTopologyMode in interface ResourcePolicyWorkloadPolicyOrBuilder
      Returns:
      Whether the acceleratorTopologyMode field is set.
    • getAcceleratorTopologyMode

      public String 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:
      getAcceleratorTopologyMode in interface ResourcePolicyWorkloadPolicyOrBuilder
      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:
      getAcceleratorTopologyModeBytes in interface ResourcePolicyWorkloadPolicyOrBuilder
      Returns:
      The bytes for acceleratorTopologyMode.
    • setAcceleratorTopologyMode

      public ResourcePolicyWorkloadPolicy.Builder setAcceleratorTopologyMode(String 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 acceleratorTopologyMode to set.
      Returns:
      This builder for chaining.
    • clearAcceleratorTopologyMode

      public ResourcePolicyWorkloadPolicy.Builder 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:
      hasMaxTopologyDistance in interface ResourcePolicyWorkloadPolicyOrBuilder
      Returns:
      Whether the maxTopologyDistance field is set.
    • 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;
      Specified by:
      getMaxTopologyDistance in interface ResourcePolicyWorkloadPolicyOrBuilder
      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:
      getMaxTopologyDistanceBytes in interface ResourcePolicyWorkloadPolicyOrBuilder
      Returns:
      The bytes for maxTopologyDistance.
    • setMaxTopologyDistance

      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;
      Parameters:
      value - The maxTopologyDistance to set.
      Returns:
      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:
      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:
      hasType in interface ResourcePolicyWorkloadPolicyOrBuilder
      Returns:
      Whether the type field is set.
    • 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;
      Specified by:
      getType in interface ResourcePolicyWorkloadPolicyOrBuilder
      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:
      getTypeBytes in interface ResourcePolicyWorkloadPolicyOrBuilder
      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

      public ResourcePolicyWorkloadPolicy.Builder setTypeBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.