Class AcceleratorConfig.Builder

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

public static final class AcceleratorConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<AcceleratorConfig.Builder> implements AcceleratorConfigOrBuilder
 A specification of the type and number of accelerator cards attached to the
 instance.
 
Protobuf type google.cloud.compute.v1.AcceleratorConfig
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The number of the guest accelerator cards exposed to this instance.
    Full or partial URL of the accelerator type resource to attach to this instance.
    int
    The number of the guest accelerator cards exposed to this instance.
    Full or partial URL of the accelerator type resource to attach to this instance.
    com.google.protobuf.ByteString
    Full or partial URL of the accelerator type resource to attach to this instance.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    boolean
    The number of the guest accelerator cards exposed to this instance.
    boolean
    Full or partial URL of the accelerator type resource to attach to this instance.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    The number of the guest accelerator cards exposed to this instance.
    Full or partial URL of the accelerator type resource to attach to this instance.
    setAcceleratorTypeBytes(com.google.protobuf.ByteString value)
    Full or partial URL of the accelerator type resource to attach to this instance.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<AcceleratorConfig.Builder>
    • clear

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

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

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

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

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

      public AcceleratorConfig.Builder mergeFrom(AcceleratorConfig other)
    • isInitialized

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

      public AcceleratorConfig.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<AcceleratorConfig.Builder>
      Throws:
      IOException
    • hasAcceleratorCount

      public boolean hasAcceleratorCount()
       The number of the guest accelerator cards exposed to this instance.
       
      optional int32 accelerator_count = 504879675;
      Specified by:
      hasAcceleratorCount in interface AcceleratorConfigOrBuilder
      Returns:
      Whether the acceleratorCount field is set.
    • getAcceleratorCount

      public int getAcceleratorCount()
       The number of the guest accelerator cards exposed to this instance.
       
      optional int32 accelerator_count = 504879675;
      Specified by:
      getAcceleratorCount in interface AcceleratorConfigOrBuilder
      Returns:
      The acceleratorCount.
    • setAcceleratorCount

      public AcceleratorConfig.Builder setAcceleratorCount(int value)
       The number of the guest accelerator cards exposed to this instance.
       
      optional int32 accelerator_count = 504879675;
      Parameters:
      value - The acceleratorCount to set.
      Returns:
      This builder for chaining.
    • clearAcceleratorCount

      public AcceleratorConfig.Builder clearAcceleratorCount()
       The number of the guest accelerator cards exposed to this instance.
       
      optional int32 accelerator_count = 504879675;
      Returns:
      This builder for chaining.
    • hasAcceleratorType

      public boolean hasAcceleratorType()
       Full or partial URL of the accelerator type resource to attach to this
       instance. For example:projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100
       If you are creating an instance template, specify only the
       accelerator name.
       See GPUs on Compute Engine
       for a full list of accelerator types.
       
      optional string accelerator_type = 138031246;
      Specified by:
      hasAcceleratorType in interface AcceleratorConfigOrBuilder
      Returns:
      Whether the acceleratorType field is set.
    • getAcceleratorType

      public String getAcceleratorType()
       Full or partial URL of the accelerator type resource to attach to this
       instance. For example:projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100
       If you are creating an instance template, specify only the
       accelerator name.
       See GPUs on Compute Engine
       for a full list of accelerator types.
       
      optional string accelerator_type = 138031246;
      Specified by:
      getAcceleratorType in interface AcceleratorConfigOrBuilder
      Returns:
      The acceleratorType.
    • getAcceleratorTypeBytes

      public com.google.protobuf.ByteString getAcceleratorTypeBytes()
       Full or partial URL of the accelerator type resource to attach to this
       instance. For example:projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100
       If you are creating an instance template, specify only the
       accelerator name.
       See GPUs on Compute Engine
       for a full list of accelerator types.
       
      optional string accelerator_type = 138031246;
      Specified by:
      getAcceleratorTypeBytes in interface AcceleratorConfigOrBuilder
      Returns:
      The bytes for acceleratorType.
    • setAcceleratorType

      public AcceleratorConfig.Builder setAcceleratorType(String value)
       Full or partial URL of the accelerator type resource to attach to this
       instance. For example:projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100
       If you are creating an instance template, specify only the
       accelerator name.
       See GPUs on Compute Engine
       for a full list of accelerator types.
       
      optional string accelerator_type = 138031246;
      Parameters:
      value - The acceleratorType to set.
      Returns:
      This builder for chaining.
    • clearAcceleratorType

      public AcceleratorConfig.Builder clearAcceleratorType()
       Full or partial URL of the accelerator type resource to attach to this
       instance. For example:projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100
       If you are creating an instance template, specify only the
       accelerator name.
       See GPUs on Compute Engine
       for a full list of accelerator types.
       
      optional string accelerator_type = 138031246;
      Returns:
      This builder for chaining.
    • setAcceleratorTypeBytes

      public AcceleratorConfig.Builder setAcceleratorTypeBytes(com.google.protobuf.ByteString value)
       Full or partial URL of the accelerator type resource to attach to this
       instance. For example:projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100
       If you are creating an instance template, specify only the
       accelerator name.
       See GPUs on Compute Engine
       for a full list of accelerator types.
       
      optional string accelerator_type = 138031246;
      Parameters:
      value - The bytes for acceleratorType to set.
      Returns:
      This builder for chaining.