Class Accelerator.Builder

  • All Implemented Interfaces:
    AcceleratorOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Accelerator

    public static final class Accelerator.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Accelerator.Builder>
    implements AcceleratorOrBuilder
     Carries information about an accelerator that can be attached to a VM.
     
    Protobuf type google.cloud.lifesciences.v2beta.Accelerator
    • 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<Accelerator.Builder>
      • clear

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

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

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

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

        public Accelerator.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<Accelerator.Builder>
      • setField

        public Accelerator.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<Accelerator.Builder>
      • clearField

        public Accelerator.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<Accelerator.Builder>
      • clearOneof

        public Accelerator.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<Accelerator.Builder>
      • setRepeatedField

        public Accelerator.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<Accelerator.Builder>
      • addRepeatedField

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

        public Accelerator.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<Accelerator.Builder>
      • isInitialized

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

        public Accelerator.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<Accelerator.Builder>
        Throws:
        IOException
      • getType

        public String getType()
         The accelerator type string (for example, "nvidia-tesla-k80").
        
         Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is
         attached, the required runtime libraries will be made available to all
         containers under `/usr/local/nvidia`. The driver version to install must
         be specified using the NVIDIA driver version parameter on the virtual
         machine specification. Note that attaching a GPU increases the worker VM
         startup time by a few minutes.
         
        string type = 1;
        Specified by:
        getType in interface AcceleratorOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
         The accelerator type string (for example, "nvidia-tesla-k80").
        
         Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is
         attached, the required runtime libraries will be made available to all
         containers under `/usr/local/nvidia`. The driver version to install must
         be specified using the NVIDIA driver version parameter on the virtual
         machine specification. Note that attaching a GPU increases the worker VM
         startup time by a few minutes.
         
        string type = 1;
        Specified by:
        getTypeBytes in interface AcceleratorOrBuilder
        Returns:
        The bytes for type.
      • setType

        public Accelerator.Builder setType​(String value)
         The accelerator type string (for example, "nvidia-tesla-k80").
        
         Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is
         attached, the required runtime libraries will be made available to all
         containers under `/usr/local/nvidia`. The driver version to install must
         be specified using the NVIDIA driver version parameter on the virtual
         machine specification. Note that attaching a GPU increases the worker VM
         startup time by a few minutes.
         
        string type = 1;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public Accelerator.Builder clearType()
         The accelerator type string (for example, "nvidia-tesla-k80").
        
         Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is
         attached, the required runtime libraries will be made available to all
         containers under `/usr/local/nvidia`. The driver version to install must
         be specified using the NVIDIA driver version parameter on the virtual
         machine specification. Note that attaching a GPU increases the worker VM
         startup time by a few minutes.
         
        string type = 1;
        Returns:
        This builder for chaining.
      • setTypeBytes

        public Accelerator.Builder setTypeBytes​(com.google.protobuf.ByteString value)
         The accelerator type string (for example, "nvidia-tesla-k80").
        
         Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is
         attached, the required runtime libraries will be made available to all
         containers under `/usr/local/nvidia`. The driver version to install must
         be specified using the NVIDIA driver version parameter on the virtual
         machine specification. Note that attaching a GPU increases the worker VM
         startup time by a few minutes.
         
        string type = 1;
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • getCount

        public long getCount()
         How many accelerators of this type to attach.
         
        int64 count = 2;
        Specified by:
        getCount in interface AcceleratorOrBuilder
        Returns:
        The count.
      • setCount

        public Accelerator.Builder setCount​(long value)
         How many accelerators of this type to attach.
         
        int64 count = 2;
        Parameters:
        value - The count to set.
        Returns:
        This builder for chaining.
      • clearCount

        public Accelerator.Builder clearCount()
         How many accelerators of this type to attach.
         
        int64 count = 2;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Accelerator.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<Accelerator.Builder>
      • mergeUnknownFields

        public final Accelerator.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<Accelerator.Builder>