Class SetInstanceAcceleratorRequest.Builder

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

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

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

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

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

        public SetInstanceAcceleratorRequest.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<SetInstanceAcceleratorRequest.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Required. Format:
         `projects/{project_id}/locations/{location}/instances/{instance_id}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getName in interface SetInstanceAcceleratorRequestOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. Format:
         `projects/{project_id}/locations/{location}/instances/{instance_id}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getNameBytes in interface SetInstanceAcceleratorRequestOrBuilder
        Returns:
        The bytes for name.
      • setName

        public SetInstanceAcceleratorRequest.Builder setName​(String value)
         Required. Format:
         `projects/{project_id}/locations/{location}/instances/{instance_id}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public SetInstanceAcceleratorRequest.Builder clearName()
         Required. Format:
         `projects/{project_id}/locations/{location}/instances/{instance_id}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setNameBytes

        public SetInstanceAcceleratorRequest.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. Format:
         `projects/{project_id}/locations/{location}/instances/{instance_id}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getTypeValue

        public int getTypeValue()
         Required. Type of this accelerator.
         
        .google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getTypeValue in interface SetInstanceAcceleratorRequestOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public SetInstanceAcceleratorRequest.Builder setTypeValue​(int value)
         Required. Type of this accelerator.
         
        .google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • setType

        public SetInstanceAcceleratorRequest.Builder setType​(Instance.AcceleratorType value)
         Required. Type of this accelerator.
         
        .google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public SetInstanceAcceleratorRequest.Builder clearType()
         Required. Type of this accelerator.
         
        .google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • getCoreCount

        public long getCoreCount()
         Required. Count of cores of this accelerator. Note that not all combinations
         of `type` and `core_count` are valid. Check [GPUs on
         Compute Engine](https://cloud.google.com/compute/docs/gpus/#gpus-list) to
         find a valid combination. TPUs are not supported.
         
        int64 core_count = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getCoreCount in interface SetInstanceAcceleratorRequestOrBuilder
        Returns:
        The coreCount.
      • setCoreCount

        public SetInstanceAcceleratorRequest.Builder setCoreCount​(long value)
         Required. Count of cores of this accelerator. Note that not all combinations
         of `type` and `core_count` are valid. Check [GPUs on
         Compute Engine](https://cloud.google.com/compute/docs/gpus/#gpus-list) to
         find a valid combination. TPUs are not supported.
         
        int64 core_count = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The coreCount to set.
        Returns:
        This builder for chaining.
      • clearCoreCount

        public SetInstanceAcceleratorRequest.Builder clearCoreCount()
         Required. Count of cores of this accelerator. Note that not all combinations
         of `type` and `core_count` are valid. Check [GPUs on
         Compute Engine](https://cloud.google.com/compute/docs/gpus/#gpus-list) to
         find a valid combination. TPUs are not supported.
         
        int64 core_count = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.