Class SwitchRuntimeRequest.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<SwitchRuntimeRequest.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public SwitchRuntimeRequest.Builder setMachineType​(String value)
         machine type.
         
        string machine_type = 2;
        Parameters:
        value - The machineType to set.
        Returns:
        This builder for chaining.
      • clearMachineType

        public SwitchRuntimeRequest.Builder clearMachineType()
         machine type.
         
        string machine_type = 2;
        Returns:
        This builder for chaining.
      • setMachineTypeBytes

        public SwitchRuntimeRequest.Builder setMachineTypeBytes​(com.google.protobuf.ByteString value)
         machine type.
         
        string machine_type = 2;
        Parameters:
        value - The bytes for machineType to set.
        Returns:
        This builder for chaining.
      • hasAcceleratorConfig

        public boolean hasAcceleratorConfig()
         accelerator config.
         
        .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3;
        Specified by:
        hasAcceleratorConfig in interface SwitchRuntimeRequestOrBuilder
        Returns:
        Whether the acceleratorConfig field is set.
      • clearAcceleratorConfig

        public SwitchRuntimeRequest.Builder clearAcceleratorConfig()
         accelerator config.
         
        .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3;
      • getAcceleratorConfigBuilder

        public RuntimeAcceleratorConfig.Builder getAcceleratorConfigBuilder()
         accelerator config.
         
        .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3;
      • getRequestIdBytes

        public com.google.protobuf.ByteString getRequestIdBytes()
         Idempotent request UUID.
         
        string request_id = 4;
        Specified by:
        getRequestIdBytes in interface SwitchRuntimeRequestOrBuilder
        Returns:
        The bytes for requestId.
      • setRequestId

        public SwitchRuntimeRequest.Builder setRequestId​(String value)
         Idempotent request UUID.
         
        string request_id = 4;
        Parameters:
        value - The requestId to set.
        Returns:
        This builder for chaining.
      • clearRequestId

        public SwitchRuntimeRequest.Builder clearRequestId()
         Idempotent request UUID.
         
        string request_id = 4;
        Returns:
        This builder for chaining.
      • setRequestIdBytes

        public SwitchRuntimeRequest.Builder setRequestIdBytes​(com.google.protobuf.ByteString value)
         Idempotent request UUID.
         
        string request_id = 4;
        Parameters:
        value - The bytes for requestId to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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