Class 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.GeneratedMessageV3.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 Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public AcceleratorConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>
      • setField

        public AcceleratorConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>
      • clearField

        public AcceleratorConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>
      • clearOneof

        public AcceleratorConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>
      • setRepeatedField

        public AcceleratorConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          int index,
                                                          Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>
      • addRepeatedField

        public AcceleratorConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • setUnknownFields

        public final AcceleratorConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>
      • mergeUnknownFields

        public final AcceleratorConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>