Class ResourcePolicyWorkloadPolicy

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.ResourcePolicyWorkloadPolicy
All Implemented Interfaces:
ResourcePolicyWorkloadPolicyOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ResourcePolicyWorkloadPolicy extends com.google.protobuf.GeneratedMessage implements ResourcePolicyWorkloadPolicyOrBuilder
 Represents the workload policy.
 
Protobuf type google.cloud.compute.v1.ResourcePolicyWorkloadPolicy
See Also:
  • Field Details

    • ACCELERATOR_TOPOLOGY_FIELD_NUMBER

      public static final int ACCELERATOR_TOPOLOGY_FIELD_NUMBER
      See Also:
    • ACCELERATOR_TOPOLOGY_MODE_FIELD_NUMBER

      public static final int ACCELERATOR_TOPOLOGY_MODE_FIELD_NUMBER
      See Also:
    • MAX_TOPOLOGY_DISTANCE_FIELD_NUMBER

      public static final int MAX_TOPOLOGY_DISTANCE_FIELD_NUMBER
      See Also:
    • TYPE_FIELD_NUMBER

      public static final int TYPE_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ResourcePolicyWorkloadPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResourcePolicyWorkloadPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResourcePolicyWorkloadPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResourcePolicyWorkloadPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResourcePolicyWorkloadPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResourcePolicyWorkloadPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResourcePolicyWorkloadPolicy parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ResourcePolicyWorkloadPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ResourcePolicyWorkloadPolicy parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ResourcePolicyWorkloadPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ResourcePolicyWorkloadPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ResourcePolicyWorkloadPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static ResourcePolicyWorkloadPolicy.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ResourcePolicyWorkloadPolicy.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ResourcePolicyWorkloadPolicy getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ResourcePolicyWorkloadPolicy> parser()
    • getParserForType

      public com.google.protobuf.Parser<ResourcePolicyWorkloadPolicy> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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