Class Runtime.Builder

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

    public static final class Runtime.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Runtime.Builder>
    implements RuntimeOrBuilder
     The definition of a Runtime for a managed notebook instance.
     
    Protobuf type google.cloud.notebooks.v1.Runtime
    • 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<Runtime.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

        public String getName()
         Output only. The resource name of the runtime.
         Format:
         `projects/{project}/locations/{location}/runtimes/{runtimeId}`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface RuntimeOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The resource name of the runtime.
         Format:
         `projects/{project}/locations/{location}/runtimes/{runtimeId}`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface RuntimeOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Runtime.Builder setName​(String value)
         Output only. The resource name of the runtime.
         Format:
         `projects/{project}/locations/{location}/runtimes/{runtimeId}`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Runtime.Builder clearName()
         Output only. The resource name of the runtime.
         Format:
         `projects/{project}/locations/{location}/runtimes/{runtimeId}`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Runtime.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The resource name of the runtime.
         Format:
         `projects/{project}/locations/{location}/runtimes/{runtimeId}`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasVirtualMachine

        public boolean hasVirtualMachine()
         Use a Compute Engine VM image to start the managed notebook instance.
         
        .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;
        Specified by:
        hasVirtualMachine in interface RuntimeOrBuilder
        Returns:
        Whether the virtualMachine field is set.
      • getVirtualMachine

        public VirtualMachine getVirtualMachine()
         Use a Compute Engine VM image to start the managed notebook instance.
         
        .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;
        Specified by:
        getVirtualMachine in interface RuntimeOrBuilder
        Returns:
        The virtualMachine.
      • setVirtualMachine

        public Runtime.Builder setVirtualMachine​(VirtualMachine value)
         Use a Compute Engine VM image to start the managed notebook instance.
         
        .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;
      • setVirtualMachine

        public Runtime.Builder setVirtualMachine​(VirtualMachine.Builder builderForValue)
         Use a Compute Engine VM image to start the managed notebook instance.
         
        .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;
      • mergeVirtualMachine

        public Runtime.Builder mergeVirtualMachine​(VirtualMachine value)
         Use a Compute Engine VM image to start the managed notebook instance.
         
        .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;
      • clearVirtualMachine

        public Runtime.Builder clearVirtualMachine()
         Use a Compute Engine VM image to start the managed notebook instance.
         
        .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;
      • getVirtualMachineBuilder

        public VirtualMachine.Builder getVirtualMachineBuilder()
         Use a Compute Engine VM image to start the managed notebook instance.
         
        .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;
      • getStateValue

        public int getStateValue()
         Output only. Runtime state.
         
        .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface RuntimeOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public Runtime.Builder setStateValue​(int value)
         Output only. Runtime state.
         
        .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • getState

        public Runtime.State getState()
         Output only. Runtime state.
         
        .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface RuntimeOrBuilder
        Returns:
        The state.
      • setState

        public Runtime.Builder setState​(Runtime.State value)
         Output only. Runtime state.
         
        .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public Runtime.Builder clearState()
         Output only. Runtime state.
         
        .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getHealthStateValue

        public int getHealthStateValue()
         Output only. Runtime health_state.
         
        .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getHealthStateValue in interface RuntimeOrBuilder
        Returns:
        The enum numeric value on the wire for healthState.
      • setHealthStateValue

        public Runtime.Builder setHealthStateValue​(int value)
         Output only. Runtime health_state.
         
        .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for healthState to set.
        Returns:
        This builder for chaining.
      • getHealthState

        public Runtime.HealthState getHealthState()
         Output only. Runtime health_state.
         
        .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getHealthState in interface RuntimeOrBuilder
        Returns:
        The healthState.
      • setHealthState

        public Runtime.Builder setHealthState​(Runtime.HealthState value)
         Output only. Runtime health_state.
         
        .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The healthState to set.
        Returns:
        This builder for chaining.
      • clearHealthState

        public Runtime.Builder clearHealthState()
         Output only. Runtime health_state.
         
        .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasAccessConfig

        public boolean hasAccessConfig()
         The config settings for accessing runtime.
         
        .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;
        Specified by:
        hasAccessConfig in interface RuntimeOrBuilder
        Returns:
        Whether the accessConfig field is set.
      • getAccessConfig

        public RuntimeAccessConfig getAccessConfig()
         The config settings for accessing runtime.
         
        .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;
        Specified by:
        getAccessConfig in interface RuntimeOrBuilder
        Returns:
        The accessConfig.
      • setAccessConfig

        public Runtime.Builder setAccessConfig​(RuntimeAccessConfig value)
         The config settings for accessing runtime.
         
        .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;
      • setAccessConfig

        public Runtime.Builder setAccessConfig​(RuntimeAccessConfig.Builder builderForValue)
         The config settings for accessing runtime.
         
        .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;
      • mergeAccessConfig

        public Runtime.Builder mergeAccessConfig​(RuntimeAccessConfig value)
         The config settings for accessing runtime.
         
        .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;
      • clearAccessConfig

        public Runtime.Builder clearAccessConfig()
         The config settings for accessing runtime.
         
        .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;
      • getAccessConfigBuilder

        public RuntimeAccessConfig.Builder getAccessConfigBuilder()
         The config settings for accessing runtime.
         
        .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;
      • hasSoftwareConfig

        public boolean hasSoftwareConfig()
         The config settings for software inside the runtime.
         
        .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;
        Specified by:
        hasSoftwareConfig in interface RuntimeOrBuilder
        Returns:
        Whether the softwareConfig field is set.
      • getSoftwareConfig

        public RuntimeSoftwareConfig getSoftwareConfig()
         The config settings for software inside the runtime.
         
        .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;
        Specified by:
        getSoftwareConfig in interface RuntimeOrBuilder
        Returns:
        The softwareConfig.
      • setSoftwareConfig

        public Runtime.Builder setSoftwareConfig​(RuntimeSoftwareConfig value)
         The config settings for software inside the runtime.
         
        .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;
      • setSoftwareConfig

        public Runtime.Builder setSoftwareConfig​(RuntimeSoftwareConfig.Builder builderForValue)
         The config settings for software inside the runtime.
         
        .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;
      • mergeSoftwareConfig

        public Runtime.Builder mergeSoftwareConfig​(RuntimeSoftwareConfig value)
         The config settings for software inside the runtime.
         
        .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;
      • clearSoftwareConfig

        public Runtime.Builder clearSoftwareConfig()
         The config settings for software inside the runtime.
         
        .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;
      • getSoftwareConfigBuilder

        public RuntimeSoftwareConfig.Builder getSoftwareConfigBuilder()
         The config settings for software inside the runtime.
         
        .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;
      • hasMetrics

        public boolean hasMetrics()
         Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
         stats.
         
        .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasMetrics in interface RuntimeOrBuilder
        Returns:
        Whether the metrics field is set.
      • getMetrics

        public RuntimeMetrics getMetrics()
         Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
         stats.
         
        .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMetrics in interface RuntimeOrBuilder
        Returns:
        The metrics.
      • setMetrics

        public Runtime.Builder setMetrics​(RuntimeMetrics value)
         Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
         stats.
         
        .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setMetrics

        public Runtime.Builder setMetrics​(RuntimeMetrics.Builder builderForValue)
         Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
         stats.
         
        .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeMetrics

        public Runtime.Builder mergeMetrics​(RuntimeMetrics value)
         Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
         stats.
         
        .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearMetrics

        public Runtime.Builder clearMetrics()
         Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
         stats.
         
        .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getMetricsBuilder

        public RuntimeMetrics.Builder getMetricsBuilder()
         Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
         stats.
         
        .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getMetricsOrBuilder

        public RuntimeMetricsOrBuilder getMetricsOrBuilder()
         Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
         stats.
         
        .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMetricsOrBuilder in interface RuntimeOrBuilder
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. Runtime creation time.
         
        .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface RuntimeOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. Runtime creation time.
         
        .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface RuntimeOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public Runtime.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Runtime creation time.
         
        .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public Runtime.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Runtime creation time.
         
        .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public Runtime.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Runtime creation time.
         
        .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public Runtime.Builder clearCreateTime()
         Output only. Runtime creation time.
         
        .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. Runtime creation time.
         
        .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. Runtime creation time.
         
        .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface RuntimeOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. Runtime update time.
         
        .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface RuntimeOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. Runtime update time.
         
        .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface RuntimeOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public Runtime.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. Runtime update time.
         
        .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public Runtime.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Runtime update time.
         
        .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeUpdateTime

        public Runtime.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. Runtime update time.
         
        .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearUpdateTime

        public Runtime.Builder clearUpdateTime()
         Output only. Runtime update time.
         
        .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Output only. Runtime update time.
         
        .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. Runtime update time.
         
        .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface RuntimeOrBuilder
      • setUnknownFields

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

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