Class RuntimeSoftwareConfig (1.10.0)

public final class RuntimeSoftwareConfig extends GeneratedMessageV3 implements RuntimeSoftwareConfigOrBuilder

Specifies the selection and configuration of software inside the runtime. The properties to set on runtime. Properties keys are specified in key:value format, for example:

  • idle_shutdown: true
  • idle_shutdown_timeout: 180
  • enable_health_monitoring: true

Protobuf type google.cloud.notebooks.v1.RuntimeSoftwareConfig

Static Fields

CUSTOM_GPU_DRIVER_PATH_FIELD_NUMBER

public static final int CUSTOM_GPU_DRIVER_PATH_FIELD_NUMBER
Field Value
TypeDescription
int

DISABLE_TERMINAL_FIELD_NUMBER

public static final int DISABLE_TERMINAL_FIELD_NUMBER
Field Value
TypeDescription
int

ENABLE_HEALTH_MONITORING_FIELD_NUMBER

public static final int ENABLE_HEALTH_MONITORING_FIELD_NUMBER
Field Value
TypeDescription
int

IDLE_SHUTDOWN_FIELD_NUMBER

public static final int IDLE_SHUTDOWN_FIELD_NUMBER
Field Value
TypeDescription
int

IDLE_SHUTDOWN_TIMEOUT_FIELD_NUMBER

public static final int IDLE_SHUTDOWN_TIMEOUT_FIELD_NUMBER
Field Value
TypeDescription
int

INSTALL_GPU_DRIVER_FIELD_NUMBER

public static final int INSTALL_GPU_DRIVER_FIELD_NUMBER
Field Value
TypeDescription
int

KERNELS_FIELD_NUMBER

public static final int KERNELS_FIELD_NUMBER
Field Value
TypeDescription
int

NOTEBOOK_UPGRADE_SCHEDULE_FIELD_NUMBER

public static final int NOTEBOOK_UPGRADE_SCHEDULE_FIELD_NUMBER
Field Value
TypeDescription
int

POST_STARTUP_SCRIPT_BEHAVIOR_FIELD_NUMBER

public static final int POST_STARTUP_SCRIPT_BEHAVIOR_FIELD_NUMBER
Field Value
TypeDescription
int

POST_STARTUP_SCRIPT_FIELD_NUMBER

public static final int POST_STARTUP_SCRIPT_FIELD_NUMBER
Field Value
TypeDescription
int

UPGRADEABLE_FIELD_NUMBER

public static final int UPGRADEABLE_FIELD_NUMBER
Field Value
TypeDescription
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RuntimeSoftwareConfig getDefaultInstance()
Returns
TypeDescription
RuntimeSoftwareConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static RuntimeSoftwareConfig.Builder newBuilder()
Returns
TypeDescription
RuntimeSoftwareConfig.Builder

newBuilder(RuntimeSoftwareConfig prototype)

public static RuntimeSoftwareConfig.Builder newBuilder(RuntimeSoftwareConfig prototype)
Parameter
NameDescription
prototypeRuntimeSoftwareConfig
Returns
TypeDescription
RuntimeSoftwareConfig.Builder

parseDelimitedFrom(InputStream input)

public static RuntimeSoftwareConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RuntimeSoftwareConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RuntimeSoftwareConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RuntimeSoftwareConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RuntimeSoftwareConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RuntimeSoftwareConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RuntimeSoftwareConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RuntimeSoftwareConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RuntimeSoftwareConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RuntimeSoftwareConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RuntimeSoftwareConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RuntimeSoftwareConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RuntimeSoftwareConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RuntimeSoftwareConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RuntimeSoftwareConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RuntimeSoftwareConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RuntimeSoftwareConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RuntimeSoftwareConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RuntimeSoftwareConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RuntimeSoftwareConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RuntimeSoftwareConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RuntimeSoftwareConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RuntimeSoftwareConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RuntimeSoftwareConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<RuntimeSoftwareConfig> parser()
Returns
TypeDescription
Parser<RuntimeSoftwareConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCustomGpuDriverPath()

public String getCustomGpuDriverPath()

Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.

string custom_gpu_driver_path = 6;

Returns
TypeDescription
String

The customGpuDriverPath.

getCustomGpuDriverPathBytes()

public ByteString getCustomGpuDriverPathBytes()

Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.

string custom_gpu_driver_path = 6;

Returns
TypeDescription
ByteString

The bytes for customGpuDriverPath.

getDefaultInstanceForType()

public RuntimeSoftwareConfig getDefaultInstanceForType()
Returns
TypeDescription
RuntimeSoftwareConfig

getDisableTerminal()

public boolean getDisableTerminal()

Bool indicating whether JupyterLab terminal will be available or not. Default: False

optional bool disable_terminal = 11;

Returns
TypeDescription
boolean

The disableTerminal.

getEnableHealthMonitoring()

public boolean getEnableHealthMonitoring()

Verifies core internal services are running. Default: True

optional bool enable_health_monitoring = 2;

Returns
TypeDescription
boolean

The enableHealthMonitoring.

getIdleShutdown()

public boolean getIdleShutdown()

Runtime will automatically shutdown after idle_shutdown_time. Default: True

optional bool idle_shutdown = 3;

Returns
TypeDescription
boolean

The idleShutdown.

getIdleShutdownTimeout()

public int getIdleShutdownTimeout()

Time in minutes to wait before shutting down runtime. Default: 180 minutes

int32 idle_shutdown_timeout = 4;

Returns
TypeDescription
int

The idleShutdownTimeout.

getInstallGpuDriver()

public boolean getInstallGpuDriver()

Install Nvidia Driver automatically. Default: True

bool install_gpu_driver = 5;

Returns
TypeDescription
boolean

The installGpuDriver.

getKernels(int index)

public ContainerImage getKernels(int index)

Optional. Use a list of container images to use as Kernels in the notebook instance.

repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ContainerImage

getKernelsCount()

public int getKernelsCount()

Optional. Use a list of container images to use as Kernels in the notebook instance.

repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getKernelsList()

public List<ContainerImage> getKernelsList()

Optional. Use a list of container images to use as Kernels in the notebook instance.

repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<ContainerImage>

getKernelsOrBuilder(int index)

public ContainerImageOrBuilder getKernelsOrBuilder(int index)

Optional. Use a list of container images to use as Kernels in the notebook instance.

repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ContainerImageOrBuilder

getKernelsOrBuilderList()

public List<? extends ContainerImageOrBuilder> getKernelsOrBuilderList()

Optional. Use a list of container images to use as Kernels in the notebook instance.

repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.notebooks.v1.ContainerImageOrBuilder>

getNotebookUpgradeSchedule()

public String getNotebookUpgradeSchedule()

Cron expression in UTC timezone, used to schedule instance auto upgrade. Please follow the cron format.

string notebook_upgrade_schedule = 1;

Returns
TypeDescription
String

The notebookUpgradeSchedule.

getNotebookUpgradeScheduleBytes()

public ByteString getNotebookUpgradeScheduleBytes()

Cron expression in UTC timezone, used to schedule instance auto upgrade. Please follow the cron format.

string notebook_upgrade_schedule = 1;

Returns
TypeDescription
ByteString

The bytes for notebookUpgradeSchedule.

getParserForType()

public Parser<RuntimeSoftwareConfig> getParserForType()
Returns
TypeDescription
Parser<RuntimeSoftwareConfig>
Overrides

getPostStartupScript()

public String getPostStartupScript()

Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-name).

string post_startup_script = 7;

Returns
TypeDescription
String

The postStartupScript.

getPostStartupScriptBehavior()

public RuntimeSoftwareConfig.PostStartupScriptBehavior getPostStartupScriptBehavior()

Behavior for the post startup script.

.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10;

Returns
TypeDescription
RuntimeSoftwareConfig.PostStartupScriptBehavior

The postStartupScriptBehavior.

getPostStartupScriptBehaviorValue()

public int getPostStartupScriptBehaviorValue()

Behavior for the post startup script.

.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10;

Returns
TypeDescription
int

The enum numeric value on the wire for postStartupScriptBehavior.

getPostStartupScriptBytes()

public ByteString getPostStartupScriptBytes()

Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-name).

string post_startup_script = 7;

Returns
TypeDescription
ByteString

The bytes for postStartupScript.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUpgradeable()

public boolean getUpgradeable()

Output only. Bool indicating whether an newer image is available in an image family.

optional bool upgradeable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The upgradeable.

getVersion()

public String getVersion()

Output only. version of boot image such as M100, from release label of the image.

optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Output only. version of boot image such as M100, from release label of the image.

optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for version.

hasDisableTerminal()

public boolean hasDisableTerminal()

Bool indicating whether JupyterLab terminal will be available or not. Default: False

optional bool disable_terminal = 11;

Returns
TypeDescription
boolean

Whether the disableTerminal field is set.

hasEnableHealthMonitoring()

public boolean hasEnableHealthMonitoring()

Verifies core internal services are running. Default: True

optional bool enable_health_monitoring = 2;

Returns
TypeDescription
boolean

Whether the enableHealthMonitoring field is set.

hasIdleShutdown()

public boolean hasIdleShutdown()

Runtime will automatically shutdown after idle_shutdown_time. Default: True

optional bool idle_shutdown = 3;

Returns
TypeDescription
boolean

Whether the idleShutdown field is set.

hasUpgradeable()

public boolean hasUpgradeable()

Output only. Bool indicating whether an newer image is available in an image family.

optional bool upgradeable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the upgradeable field is set.

hasVersion()

public boolean hasVersion()

Output only. version of boot image such as M100, from release label of the image.

optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the version field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public RuntimeSoftwareConfig.Builder newBuilderForType()
Returns
TypeDescription
RuntimeSoftwareConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RuntimeSoftwareConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RuntimeSoftwareConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public RuntimeSoftwareConfig.Builder toBuilder()
Returns
TypeDescription
RuntimeSoftwareConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException