Interface ResourceCommitmentOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    ResourceCommitment, ResourceCommitment.Builder

    public interface ResourceCommitmentOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getAcceleratorType()
      Name of the accelerator type resource.
      com.google.protobuf.ByteString getAcceleratorTypeBytes()
      Name of the accelerator type resource.
      long getAmount()
      The amount of the resource purchased (in a type-dependent unit, such as bytes).
      String getType()
      Type of resource for which this commitment applies.
      com.google.protobuf.ByteString getTypeBytes()
      Type of resource for which this commitment applies.
      boolean hasAcceleratorType()
      Name of the accelerator type resource.
      boolean hasAmount()
      The amount of the resource purchased (in a type-dependent unit, such as bytes).
      boolean hasType()
      Type of resource for which this commitment applies.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • hasAcceleratorType

        boolean hasAcceleratorType()
         Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.
         
        optional string accelerator_type = 138031246;
        Returns:
        Whether the acceleratorType field is set.
      • getAcceleratorType

        String getAcceleratorType()
         Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.
         
        optional string accelerator_type = 138031246;
        Returns:
        The acceleratorType.
      • getAcceleratorTypeBytes

        com.google.protobuf.ByteString getAcceleratorTypeBytes()
         Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.
         
        optional string accelerator_type = 138031246;
        Returns:
        The bytes for acceleratorType.
      • hasAmount

        boolean hasAmount()
         The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU.
         
        optional int64 amount = 196759640;
        Returns:
        Whether the amount field is set.
      • getAmount

        long getAmount()
         The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU.
         
        optional int64 amount = 196759640;
        Returns:
        The amount.
      • hasType

        boolean hasType()
         Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.
         Check the Type enum for the list of possible values.
         
        optional string type = 3575610;
        Returns:
        Whether the type field is set.
      • getType

        String getType()
         Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.
         Check the Type enum for the list of possible values.
         
        optional string type = 3575610;
        Returns:
        The type.
      • getTypeBytes

        com.google.protobuf.ByteString getTypeBytes()
         Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.
         Check the Type enum for the list of possible values.
         
        optional string type = 3575610;
        Returns:
        The bytes for type.