Class Runtime.Builder (1.29.0)

public static final class Runtime.Builder extends GeneratedMessageV3.Builder<Runtime.Builder> implements RuntimeOrBuilder

The definition of a Runtime for a managed notebook instance.

Protobuf type google.cloud.notebooks.v1.Runtime

Implements

RuntimeOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Runtime.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Runtime.Builder
Overrides

build()

public Runtime build()
Returns
TypeDescription
Runtime

buildPartial()

public Runtime buildPartial()
Returns
TypeDescription
Runtime

clear()

public Runtime.Builder clear()
Returns
TypeDescription
Runtime.Builder
Overrides

clearAccessConfig()

public Runtime.Builder clearAccessConfig()

The config settings for accessing runtime.

.google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;

Returns
TypeDescription
Runtime.Builder

clearCreateTime()

public Runtime.Builder clearCreateTime()

Output only. Runtime creation time.

.google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Runtime.Builder

clearField(Descriptors.FieldDescriptor field)

public Runtime.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Runtime.Builder
Overrides

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
TypeDescription
Runtime.Builder

This builder for chaining.

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];

Returns
TypeDescription
Runtime.Builder

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
TypeDescription
Runtime.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Runtime.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Runtime.Builder
Overrides

clearRuntimeType()

public Runtime.Builder clearRuntimeType()
Returns
TypeDescription
Runtime.Builder

clearSoftwareConfig()

public Runtime.Builder clearSoftwareConfig()

The config settings for software inside the runtime.

.google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;

Returns
TypeDescription
Runtime.Builder

clearState()

public Runtime.Builder clearState()

Output only. Runtime state.

.google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Runtime.Builder

This builder for chaining.

clearUpdateTime()

public Runtime.Builder clearUpdateTime()

Output only. Runtime update time.

.google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Runtime.Builder

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;

Returns
TypeDescription
Runtime.Builder

clone()

public Runtime.Builder clone()
Returns
TypeDescription
Runtime.Builder
Overrides

getAccessConfig()

public RuntimeAccessConfig getAccessConfig()

The config settings for accessing runtime.

.google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;

Returns
TypeDescription
RuntimeAccessConfig

The accessConfig.

getAccessConfigBuilder()

public RuntimeAccessConfig.Builder getAccessConfigBuilder()

The config settings for accessing runtime.

.google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;

Returns
TypeDescription
RuntimeAccessConfig.Builder

getAccessConfigOrBuilder()

public RuntimeAccessConfigOrBuilder getAccessConfigOrBuilder()

The config settings for accessing runtime.

.google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;

Returns
TypeDescription
RuntimeAccessConfigOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. Runtime creation time.

.google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Runtime creation time.

.google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Runtime creation time.

.google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Runtime getDefaultInstanceForType()
Returns
TypeDescription
Runtime

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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];

Returns
TypeDescription
Runtime.HealthState

The healthState.

getHealthStateValue()

public int getHealthStateValue()

Output only. Runtime health_state.

.google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for healthState.

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];

Returns
TypeDescription
RuntimeMetrics

The metrics.

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];

Returns
TypeDescription
RuntimeMetrics.Builder

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];

Returns
TypeDescription
RuntimeMetricsOrBuilder

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];

Returns
TypeDescription
String

The name.

getNameBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for name.

getRuntimeTypeCase()

public Runtime.RuntimeTypeCase getRuntimeTypeCase()
Returns
TypeDescription
Runtime.RuntimeTypeCase

getSoftwareConfig()

public RuntimeSoftwareConfig getSoftwareConfig()

The config settings for software inside the runtime.

.google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;

Returns
TypeDescription
RuntimeSoftwareConfig

The softwareConfig.

getSoftwareConfigBuilder()

public RuntimeSoftwareConfig.Builder getSoftwareConfigBuilder()

The config settings for software inside the runtime.

.google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;

Returns
TypeDescription
RuntimeSoftwareConfig.Builder

getSoftwareConfigOrBuilder()

public RuntimeSoftwareConfigOrBuilder getSoftwareConfigOrBuilder()

The config settings for software inside the runtime.

.google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;

Returns
TypeDescription
RuntimeSoftwareConfigOrBuilder

getState()

public Runtime.State getState()

Output only. Runtime state.

.google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Runtime.State

The state.

getStateValue()

public int getStateValue()

Output only. Runtime state.

.google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Runtime update time.

.google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Runtime update time.

.google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Runtime update time.

.google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getVirtualMachine()

public VirtualMachine getVirtualMachine()

Use a Compute Engine VM image to start the managed notebook instance.

.google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;

Returns
TypeDescription
VirtualMachine

The virtualMachine.

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;

Returns
TypeDescription
VirtualMachine.Builder

getVirtualMachineOrBuilder()

public VirtualMachineOrBuilder getVirtualMachineOrBuilder()

Use a Compute Engine VM image to start the managed notebook instance.

.google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;

Returns
TypeDescription
VirtualMachineOrBuilder

hasAccessConfig()

public boolean hasAccessConfig()

The config settings for accessing runtime.

.google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;

Returns
TypeDescription
boolean

Whether the accessConfig field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Runtime creation time.

.google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

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];

Returns
TypeDescription
boolean

Whether the metrics field is set.

hasSoftwareConfig()

public boolean hasSoftwareConfig()

The config settings for software inside the runtime.

.google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;

Returns
TypeDescription
boolean

Whether the softwareConfig field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Runtime update time.

.google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

hasVirtualMachine()

public boolean hasVirtualMachine()

Use a Compute Engine VM image to start the managed notebook instance.

.google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;

Returns
TypeDescription
boolean

Whether the virtualMachine field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAccessConfig(RuntimeAccessConfig value)

public Runtime.Builder mergeAccessConfig(RuntimeAccessConfig value)

The config settings for accessing runtime.

.google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;

Parameter
NameDescription
valueRuntimeAccessConfig
Returns
TypeDescription
Runtime.Builder

mergeCreateTime(Timestamp value)

public Runtime.Builder mergeCreateTime(Timestamp value)

Output only. Runtime creation time.

.google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Runtime.Builder

mergeFrom(Runtime other)

public Runtime.Builder mergeFrom(Runtime other)
Parameter
NameDescription
otherRuntime
Returns
TypeDescription
Runtime.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Runtime.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Runtime.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Runtime.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Runtime.Builder
Overrides

mergeMetrics(RuntimeMetrics value)

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];

Parameter
NameDescription
valueRuntimeMetrics
Returns
TypeDescription
Runtime.Builder

mergeSoftwareConfig(RuntimeSoftwareConfig value)

public Runtime.Builder mergeSoftwareConfig(RuntimeSoftwareConfig value)

The config settings for software inside the runtime.

.google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;

Parameter
NameDescription
valueRuntimeSoftwareConfig
Returns
TypeDescription
Runtime.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Runtime.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Runtime.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Runtime.Builder mergeUpdateTime(Timestamp value)

Output only. Runtime update time.

.google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Runtime.Builder

mergeVirtualMachine(VirtualMachine value)

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;

Parameter
NameDescription
valueVirtualMachine
Returns
TypeDescription
Runtime.Builder

setAccessConfig(RuntimeAccessConfig value)

public Runtime.Builder setAccessConfig(RuntimeAccessConfig value)

The config settings for accessing runtime.

.google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;

Parameter
NameDescription
valueRuntimeAccessConfig
Returns
TypeDescription
Runtime.Builder

setAccessConfig(RuntimeAccessConfig.Builder builderForValue)

public Runtime.Builder setAccessConfig(RuntimeAccessConfig.Builder builderForValue)

The config settings for accessing runtime.

.google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;

Parameter
NameDescription
builderForValueRuntimeAccessConfig.Builder
Returns
TypeDescription
Runtime.Builder

setCreateTime(Timestamp value)

public Runtime.Builder setCreateTime(Timestamp value)

Output only. Runtime creation time.

.google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Runtime.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Runtime.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Runtime creation time.

.google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Runtime.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Runtime.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Runtime.Builder
Overrides

setHealthState(Runtime.HealthState value)

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];

Parameter
NameDescription
valueRuntime.HealthState

The healthState to set.

Returns
TypeDescription
Runtime.Builder

This builder for chaining.

setHealthStateValue(int value)

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];

Parameter
NameDescription
valueint

The enum numeric value on the wire for healthState to set.

Returns
TypeDescription
Runtime.Builder

This builder for chaining.

setMetrics(RuntimeMetrics value)

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];

Parameter
NameDescription
valueRuntimeMetrics
Returns
TypeDescription
Runtime.Builder

setMetrics(RuntimeMetrics.Builder builderForValue)

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];

Parameter
NameDescription
builderForValueRuntimeMetrics.Builder
Returns
TypeDescription
Runtime.Builder

setName(String value)

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];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Runtime.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Runtime.Builder setNameBytes(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];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Runtime.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Runtime.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Runtime.Builder
Overrides

setSoftwareConfig(RuntimeSoftwareConfig value)

public Runtime.Builder setSoftwareConfig(RuntimeSoftwareConfig value)

The config settings for software inside the runtime.

.google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;

Parameter
NameDescription
valueRuntimeSoftwareConfig
Returns
TypeDescription
Runtime.Builder

setSoftwareConfig(RuntimeSoftwareConfig.Builder builderForValue)

public Runtime.Builder setSoftwareConfig(RuntimeSoftwareConfig.Builder builderForValue)

The config settings for software inside the runtime.

.google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;

Parameter
NameDescription
builderForValueRuntimeSoftwareConfig.Builder
Returns
TypeDescription
Runtime.Builder

setState(Runtime.State value)

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];

Parameter
NameDescription
valueRuntime.State

The state to set.

Returns
TypeDescription
Runtime.Builder

This builder for chaining.

setStateValue(int value)

public Runtime.Builder setStateValue(int value)

Output only. Runtime state.

.google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
Runtime.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Runtime.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Runtime.Builder
Overrides

setUpdateTime(Timestamp value)

public Runtime.Builder setUpdateTime(Timestamp value)

Output only. Runtime update time.

.google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Runtime.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Runtime.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Runtime update time.

.google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Runtime.Builder

setVirtualMachine(VirtualMachine value)

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;

Parameter
NameDescription
valueVirtualMachine
Returns
TypeDescription
Runtime.Builder

setVirtualMachine(VirtualMachine.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueVirtualMachine.Builder
Returns
TypeDescription
Runtime.Builder