Class Runtime

  • All Implemented Interfaces:
    RuntimeOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Runtime
    extends com.google.protobuf.GeneratedMessageV3
    implements RuntimeOrBuilder
     The definition of a Runtime for a managed notebook instance.
     
    Protobuf type google.cloud.notebooks.v1.Runtime
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Runtime parseFrom​(ByteBuffer data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Runtime parseFrom​(ByteBuffer data,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Runtime parseFrom​(com.google.protobuf.ByteString data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Runtime parseFrom​(com.google.protobuf.ByteString data,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Runtime parseFrom​(byte[] data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Runtime parseFrom​(byte[] data,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Runtime parseFrom​(com.google.protobuf.CodedInputStream input,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected Runtime.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Runtime getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Runtime> parser()
      • getParserForType

        public com.google.protobuf.Parser<Runtime> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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