Class NotebookIdleShutdownConfig.Builder (3.47.0)

public static final class NotebookIdleShutdownConfig.Builder extends GeneratedMessageV3.Builder<NotebookIdleShutdownConfig.Builder> implements NotebookIdleShutdownConfigOrBuilder

The idle shutdown configuration of NotebookRuntimeTemplate, which contains the idle_timeout as required field.

Protobuf type google.cloud.aiplatform.v1.NotebookIdleShutdownConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NotebookIdleShutdownConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NotebookIdleShutdownConfig.Builder
Overrides

build()

public NotebookIdleShutdownConfig build()
Returns
Type Description
NotebookIdleShutdownConfig

buildPartial()

public NotebookIdleShutdownConfig buildPartial()
Returns
Type Description
NotebookIdleShutdownConfig

clear()

public NotebookIdleShutdownConfig.Builder clear()
Returns
Type Description
NotebookIdleShutdownConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public NotebookIdleShutdownConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NotebookIdleShutdownConfig.Builder
Overrides

clearIdleShutdownDisabled()

public NotebookIdleShutdownConfig.Builder clearIdleShutdownDisabled()

Whether Idle Shutdown is disabled in this NotebookRuntimeTemplate.

bool idle_shutdown_disabled = 2;

Returns
Type Description
NotebookIdleShutdownConfig.Builder

This builder for chaining.

clearIdleTimeout()

public NotebookIdleShutdownConfig.Builder clearIdleTimeout()

Required. Duration is accurate to the second. In Notebook, Idle Timeout is accurate to minute so the range of idle_timeout (second) is: 10 * 60 ~ 1440

  • 60.

.google.protobuf.Duration idle_timeout = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NotebookIdleShutdownConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public NotebookIdleShutdownConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NotebookIdleShutdownConfig.Builder
Overrides

clone()

public NotebookIdleShutdownConfig.Builder clone()
Returns
Type Description
NotebookIdleShutdownConfig.Builder
Overrides

getDefaultInstanceForType()

public NotebookIdleShutdownConfig getDefaultInstanceForType()
Returns
Type Description
NotebookIdleShutdownConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getIdleShutdownDisabled()

public boolean getIdleShutdownDisabled()

Whether Idle Shutdown is disabled in this NotebookRuntimeTemplate.

bool idle_shutdown_disabled = 2;

Returns
Type Description
boolean

The idleShutdownDisabled.

getIdleTimeout()

public Duration getIdleTimeout()

Required. Duration is accurate to the second. In Notebook, Idle Timeout is accurate to minute so the range of idle_timeout (second) is: 10 * 60 ~ 1440

  • 60.

.google.protobuf.Duration idle_timeout = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Duration

The idleTimeout.

getIdleTimeoutBuilder()

public Duration.Builder getIdleTimeoutBuilder()

Required. Duration is accurate to the second. In Notebook, Idle Timeout is accurate to minute so the range of idle_timeout (second) is: 10 * 60 ~ 1440

  • 60.

.google.protobuf.Duration idle_timeout = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getIdleTimeoutOrBuilder()

public DurationOrBuilder getIdleTimeoutOrBuilder()

Required. Duration is accurate to the second. In Notebook, Idle Timeout is accurate to minute so the range of idle_timeout (second) is: 10 * 60 ~ 1440

  • 60.

.google.protobuf.Duration idle_timeout = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DurationOrBuilder

hasIdleTimeout()

public boolean hasIdleTimeout()

Required. Duration is accurate to the second. In Notebook, Idle Timeout is accurate to minute so the range of idle_timeout (second) is: 10 * 60 ~ 1440

  • 60.

.google.protobuf.Duration idle_timeout = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the idleTimeout field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NotebookIdleShutdownConfig other)

public NotebookIdleShutdownConfig.Builder mergeFrom(NotebookIdleShutdownConfig other)
Parameter
Name Description
other NotebookIdleShutdownConfig
Returns
Type Description
NotebookIdleShutdownConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NotebookIdleShutdownConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NotebookIdleShutdownConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public NotebookIdleShutdownConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NotebookIdleShutdownConfig.Builder
Overrides

mergeIdleTimeout(Duration value)

public NotebookIdleShutdownConfig.Builder mergeIdleTimeout(Duration value)

Required. Duration is accurate to the second. In Notebook, Idle Timeout is accurate to minute so the range of idle_timeout (second) is: 10 * 60 ~ 1440

  • 60.

.google.protobuf.Duration idle_timeout = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Duration
Returns
Type Description
NotebookIdleShutdownConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NotebookIdleShutdownConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NotebookIdleShutdownConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public NotebookIdleShutdownConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NotebookIdleShutdownConfig.Builder
Overrides

setIdleShutdownDisabled(boolean value)

public NotebookIdleShutdownConfig.Builder setIdleShutdownDisabled(boolean value)

Whether Idle Shutdown is disabled in this NotebookRuntimeTemplate.

bool idle_shutdown_disabled = 2;

Parameter
Name Description
value boolean

The idleShutdownDisabled to set.

Returns
Type Description
NotebookIdleShutdownConfig.Builder

This builder for chaining.

setIdleTimeout(Duration value)

public NotebookIdleShutdownConfig.Builder setIdleTimeout(Duration value)

Required. Duration is accurate to the second. In Notebook, Idle Timeout is accurate to minute so the range of idle_timeout (second) is: 10 * 60 ~ 1440

  • 60.

.google.protobuf.Duration idle_timeout = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Duration
Returns
Type Description
NotebookIdleShutdownConfig.Builder

setIdleTimeout(Duration.Builder builderForValue)

public NotebookIdleShutdownConfig.Builder setIdleTimeout(Duration.Builder builderForValue)

Required. Duration is accurate to the second. In Notebook, Idle Timeout is accurate to minute so the range of idle_timeout (second) is: 10 * 60 ~ 1440

  • 60.

.google.protobuf.Duration idle_timeout = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
NotebookIdleShutdownConfig.Builder

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

public NotebookIdleShutdownConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NotebookIdleShutdownConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NotebookIdleShutdownConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NotebookIdleShutdownConfig.Builder
Overrides