Class NotebookIdleShutdownConfig.Builder (3.84.0)

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

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

Protobuf type google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig

Static Methods

getDescriptor()

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

Methods

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

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

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 GeneratedMessage.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

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