Class MachineSpec.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MachineSpec.Builder>
com.google.cloud.visionai.v1.MachineSpec.Builder
All Implemented Interfaces:
MachineSpecOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MachineSpec

public static final class MachineSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<MachineSpec.Builder> implements MachineSpecOrBuilder
 Specification of a single machine.
 
Protobuf type google.cloud.visionai.v1.MachineSpec
  • 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<MachineSpec.Builder>
    • clear

      public MachineSpec.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<MachineSpec.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<MachineSpec.Builder>
    • getDefaultInstanceForType

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

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

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

      public MachineSpec.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<MachineSpec.Builder>
    • mergeFrom

      public MachineSpec.Builder mergeFrom(MachineSpec other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<MachineSpec.Builder>
    • mergeFrom

      public MachineSpec.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<MachineSpec.Builder>
      Throws:
      IOException
    • getMachineType

      public String getMachineType()
       Immutable. The type of the machine.
      
       See the [list of machine types supported for
       prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
      
       See the [list of machine types supported for custom
       training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
      
       For [DeployedModel][] this field is optional, and the default
       value is `n1-standard-2`. For [BatchPredictionJob][] or as part of
       [WorkerPoolSpec][] this field is required.
       
      string machine_type = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getMachineType in interface MachineSpecOrBuilder
      Returns:
      The machineType.
    • getMachineTypeBytes

      public com.google.protobuf.ByteString getMachineTypeBytes()
       Immutable. The type of the machine.
      
       See the [list of machine types supported for
       prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
      
       See the [list of machine types supported for custom
       training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
      
       For [DeployedModel][] this field is optional, and the default
       value is `n1-standard-2`. For [BatchPredictionJob][] or as part of
       [WorkerPoolSpec][] this field is required.
       
      string machine_type = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getMachineTypeBytes in interface MachineSpecOrBuilder
      Returns:
      The bytes for machineType.
    • setMachineType

      public MachineSpec.Builder setMachineType(String value)
       Immutable. The type of the machine.
      
       See the [list of machine types supported for
       prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
      
       See the [list of machine types supported for custom
       training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
      
       For [DeployedModel][] this field is optional, and the default
       value is `n1-standard-2`. For [BatchPredictionJob][] or as part of
       [WorkerPoolSpec][] this field is required.
       
      string machine_type = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The machineType to set.
      Returns:
      This builder for chaining.
    • clearMachineType

      public MachineSpec.Builder clearMachineType()
       Immutable. The type of the machine.
      
       See the [list of machine types supported for
       prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
      
       See the [list of machine types supported for custom
       training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
      
       For [DeployedModel][] this field is optional, and the default
       value is `n1-standard-2`. For [BatchPredictionJob][] or as part of
       [WorkerPoolSpec][] this field is required.
       
      string machine_type = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setMachineTypeBytes

      public MachineSpec.Builder setMachineTypeBytes(com.google.protobuf.ByteString value)
       Immutable. The type of the machine.
      
       See the [list of machine types supported for
       prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)
      
       See the [list of machine types supported for custom
       training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).
      
       For [DeployedModel][] this field is optional, and the default
       value is `n1-standard-2`. For [BatchPredictionJob][] or as part of
       [WorkerPoolSpec][] this field is required.
       
      string machine_type = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for machineType to set.
      Returns:
      This builder for chaining.
    • getAcceleratorTypeValue

      public int getAcceleratorTypeValue()
       Immutable. The type of accelerator(s) that may be attached to the machine
       as per
       [accelerator_count][google.cloud.visionai.v1.MachineSpec.accelerator_count].
       
      .google.cloud.visionai.v1.AcceleratorType accelerator_type = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getAcceleratorTypeValue in interface MachineSpecOrBuilder
      Returns:
      The enum numeric value on the wire for acceleratorType.
    • setAcceleratorTypeValue

      public MachineSpec.Builder setAcceleratorTypeValue(int value)
       Immutable. The type of accelerator(s) that may be attached to the machine
       as per
       [accelerator_count][google.cloud.visionai.v1.MachineSpec.accelerator_count].
       
      .google.cloud.visionai.v1.AcceleratorType accelerator_type = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The enum numeric value on the wire for acceleratorType to set.
      Returns:
      This builder for chaining.
    • getAcceleratorType

      public AcceleratorType getAcceleratorType()
       Immutable. The type of accelerator(s) that may be attached to the machine
       as per
       [accelerator_count][google.cloud.visionai.v1.MachineSpec.accelerator_count].
       
      .google.cloud.visionai.v1.AcceleratorType accelerator_type = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getAcceleratorType in interface MachineSpecOrBuilder
      Returns:
      The acceleratorType.
    • setAcceleratorType

      public MachineSpec.Builder setAcceleratorType(AcceleratorType value)
       Immutable. The type of accelerator(s) that may be attached to the machine
       as per
       [accelerator_count][google.cloud.visionai.v1.MachineSpec.accelerator_count].
       
      .google.cloud.visionai.v1.AcceleratorType accelerator_type = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The acceleratorType to set.
      Returns:
      This builder for chaining.
    • clearAcceleratorType

      public MachineSpec.Builder clearAcceleratorType()
       Immutable. The type of accelerator(s) that may be attached to the machine
       as per
       [accelerator_count][google.cloud.visionai.v1.MachineSpec.accelerator_count].
       
      .google.cloud.visionai.v1.AcceleratorType accelerator_type = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • getAcceleratorCount

      public int getAcceleratorCount()
       The number of accelerators to attach to the machine.
       
      int32 accelerator_count = 3;
      Specified by:
      getAcceleratorCount in interface MachineSpecOrBuilder
      Returns:
      The acceleratorCount.
    • setAcceleratorCount

      public MachineSpec.Builder setAcceleratorCount(int value)
       The number of accelerators to attach to the machine.
       
      int32 accelerator_count = 3;
      Parameters:
      value - The acceleratorCount to set.
      Returns:
      This builder for chaining.
    • clearAcceleratorCount

      public MachineSpec.Builder clearAcceleratorCount()
       The number of accelerators to attach to the machine.
       
      int32 accelerator_count = 3;
      Returns:
      This builder for chaining.