Class Environment.SessionSpec.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Environment.SessionSpec.Builder>
com.google.cloud.dataplex.v1.Environment.SessionSpec.Builder
All Implemented Interfaces:
Environment.SessionSpecOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Environment.SessionSpec

public static final class Environment.SessionSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<Environment.SessionSpec.Builder> implements Environment.SessionSpecOrBuilder
 Configuration for sessions created for this environment.
 
Protobuf type google.cloud.dataplex.v1.Environment.SessionSpec
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Environment.SessionSpec.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Environment.SessionSpec.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Environment.SessionSpec.Builder>
    • getDefaultInstanceForType

      public Environment.SessionSpec getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Environment.SessionSpec build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Environment.SessionSpec buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Environment.SessionSpec.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Environment.SessionSpec.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Environment.SessionSpec.Builder>
    • mergeFrom

      public Environment.SessionSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Environment.SessionSpec.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      hasMaxIdleDuration in interface Environment.SessionSpecOrBuilder
      Returns:
      Whether the maxIdleDuration field is set.
    • getMaxIdleDuration

      public com.google.protobuf.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];
      Specified by:
      getMaxIdleDuration in interface Environment.SessionSpecOrBuilder
      Returns:
      The maxIdleDuration.
    • setMaxIdleDuration

      public Environment.SessionSpec.Builder setMaxIdleDuration(com.google.protobuf.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];
    • setMaxIdleDuration

      public Environment.SessionSpec.Builder setMaxIdleDuration(com.google.protobuf.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];
    • mergeMaxIdleDuration

      public Environment.SessionSpec.Builder mergeMaxIdleDuration(com.google.protobuf.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];
    • 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];
    • getMaxIdleDurationBuilder

      public com.google.protobuf.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];
    • getMaxIdleDurationOrBuilder

      public com.google.protobuf.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];
      Specified by:
      getMaxIdleDurationOrBuilder in interface Environment.SessionSpecOrBuilder
    • 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];
      Specified by:
      getEnableFastStartup in interface Environment.SessionSpecOrBuilder
      Returns:
      The enableFastStartup.
    • setEnableFastStartup

      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];
      Parameters:
      value - The enableFastStartup to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.