Class Environment.SessionSpec.Builder (1.30.0)

public static final class Environment.SessionSpec.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Environment.SessionSpec build()
Returns
TypeDescription
Environment.SessionSpec

buildPartial()

public Environment.SessionSpec buildPartial()
Returns
TypeDescription
Environment.SessionSpec

clear()

public Environment.SessionSpec.Builder clear()
Returns
TypeDescription
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
TypeDescription
Environment.SessionSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

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
TypeDescription
Environment.SessionSpec.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Environment.SessionSpec.Builder clone()
Returns
TypeDescription
Environment.SessionSpec.Builder
Overrides

getDefaultInstanceForType()

public Environment.SessionSpec getDefaultInstanceForType()
Returns
TypeDescription
Environment.SessionSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the maxIdleDuration field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Environment.SessionSpec other)

public Environment.SessionSpec.Builder mergeFrom(Environment.SessionSpec other)
Parameter
NameDescription
otherEnvironment.SessionSpec
Returns
TypeDescription
Environment.SessionSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Environment.SessionSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
Environment.SessionSpec.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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
NameDescription
valueboolean

The enableFastStartup to set.

Returns
TypeDescription
Environment.SessionSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Environment.SessionSpec.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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