Class Environment.SessionSpec.Builder (1.81.0)

public static final class Environment.SessionSpec.Builder extends GeneratedMessage.Builder<Environment.SessionSpec.Builder> implements Environment.SessionSpecOrBuilder

Configuration for sessions created for this environment.

Protobuf type google.cloud.dataplex.v1.Environment.SessionSpec

Static Methods

getDescriptor()

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

Methods

build()

public Environment.SessionSpec build()
Returns
Type Description
Environment.SessionSpec

buildPartial()

public Environment.SessionSpec buildPartial()
Returns
Type Description
Environment.SessionSpec

clear()

public Environment.SessionSpec.Builder clear()
Returns
Type Description
Environment.SessionSpec.Builder
Overrides

clearEnableFastStartup()

public Environment.SessionSpec.Builder clearEnableFastStartup()

Optional. If True, this causes sessions to be pre-created and available for faster startup to enable interactive exploration use-cases. This defaults to False to avoid additional billed charges. These can only be set to True for the environment with name set to "default", and with default configuration.

bool enable_fast_startup = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Environment.SessionSpec.Builder

This builder for chaining.

clearMaxIdleDuration()

public Environment.SessionSpec.Builder clearMaxIdleDuration()

Optional. The idle time configuration of the session. The session will be auto-terminated at the end of this period.

.google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Environment.SessionSpec.Builder

getDefaultInstanceForType()

public Environment.SessionSpec getDefaultInstanceForType()
Returns
Type Description
Environment.SessionSpec

getDescriptorForType()

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

getEnableFastStartup()

public boolean getEnableFastStartup()

Optional. If True, this causes sessions to be pre-created and available for faster startup to enable interactive exploration use-cases. This defaults to False to avoid additional billed charges. These can only be set to True for the environment with name set to "default", and with default configuration.

bool enable_fast_startup = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The enableFastStartup.

getMaxIdleDuration()

public Duration getMaxIdleDuration()

Optional. The idle time configuration of the session. The session will be auto-terminated at the end of this period.

.google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Duration

The maxIdleDuration.

getMaxIdleDurationBuilder()

public Duration.Builder getMaxIdleDurationBuilder()

Optional. The idle time configuration of the session. The session will be auto-terminated at the end of this period.

.google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getMaxIdleDurationOrBuilder()

public DurationOrBuilder getMaxIdleDurationOrBuilder()

Optional. The idle time configuration of the session. The session will be auto-terminated at the end of this period.

.google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DurationOrBuilder

hasMaxIdleDuration()

public boolean hasMaxIdleDuration()

Optional. The idle time configuration of the session. The session will be auto-terminated at the end of this period.

.google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the maxIdleDuration field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Environment.SessionSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMaxIdleDuration(Duration value)

public Environment.SessionSpec.Builder mergeMaxIdleDuration(Duration value)

Optional. The idle time configuration of the session. The session will be auto-terminated at the end of this period.

.google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
Environment.SessionSpec.Builder

setEnableFastStartup(boolean value)

public Environment.SessionSpec.Builder setEnableFastStartup(boolean value)

Optional. If True, this causes sessions to be pre-created and available for faster startup to enable interactive exploration use-cases. This defaults to False to avoid additional billed charges. These can only be set to True for the environment with name set to "default", and with default configuration.

bool enable_fast_startup = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The enableFastStartup to set.

Returns
Type Description
Environment.SessionSpec.Builder

This builder for chaining.

setMaxIdleDuration(Duration value)

public Environment.SessionSpec.Builder setMaxIdleDuration(Duration value)

Optional. The idle time configuration of the session. The session will be auto-terminated at the end of this period.

.google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
Environment.SessionSpec.Builder

setMaxIdleDuration(Duration.Builder builderForValue)

public Environment.SessionSpec.Builder setMaxIdleDuration(Duration.Builder builderForValue)

Optional. The idle time configuration of the session. The session will be auto-terminated at the end of this period.

.google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Environment.SessionSpec.Builder