Class NotebookRuntimeOptions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NotebookRuntimeOptions.Builder>
com.google.cloud.dataform.v1beta1.NotebookRuntimeOptions.Builder
All Implemented Interfaces:
NotebookRuntimeOptionsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
NotebookRuntimeOptions

public static final class NotebookRuntimeOptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<NotebookRuntimeOptions.Builder> implements NotebookRuntimeOptionsOrBuilder
 Configures various aspects of Dataform notebook runtime.
 
Protobuf type google.cloud.dataform.v1beta1.NotebookRuntimeOptions
  • 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<NotebookRuntimeOptions.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<NotebookRuntimeOptions.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<NotebookRuntimeOptions.Builder>
    • getDefaultInstanceForType

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

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

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

      public NotebookRuntimeOptions.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<NotebookRuntimeOptions.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<NotebookRuntimeOptions.Builder>
    • mergeFrom

      public NotebookRuntimeOptions.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<NotebookRuntimeOptions.Builder>
      Throws:
      IOException
    • getExecutionSinkCase

      public NotebookRuntimeOptions.ExecutionSinkCase getExecutionSinkCase()
      Specified by:
      getExecutionSinkCase in interface NotebookRuntimeOptionsOrBuilder
    • clearExecutionSink

      public NotebookRuntimeOptions.Builder clearExecutionSink()
    • hasGcsOutputBucket

      public boolean hasGcsOutputBucket()
       Optional. The Google Cloud Storage location to upload the result to.
       Format: `gs://bucket-name`.
       
      string gcs_output_bucket = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasGcsOutputBucket in interface NotebookRuntimeOptionsOrBuilder
      Returns:
      Whether the gcsOutputBucket field is set.
    • getGcsOutputBucket

      public String getGcsOutputBucket()
       Optional. The Google Cloud Storage location to upload the result to.
       Format: `gs://bucket-name`.
       
      string gcs_output_bucket = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGcsOutputBucket in interface NotebookRuntimeOptionsOrBuilder
      Returns:
      The gcsOutputBucket.
    • getGcsOutputBucketBytes

      public com.google.protobuf.ByteString getGcsOutputBucketBytes()
       Optional. The Google Cloud Storage location to upload the result to.
       Format: `gs://bucket-name`.
       
      string gcs_output_bucket = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGcsOutputBucketBytes in interface NotebookRuntimeOptionsOrBuilder
      Returns:
      The bytes for gcsOutputBucket.
    • setGcsOutputBucket

      public NotebookRuntimeOptions.Builder setGcsOutputBucket(String value)
       Optional. The Google Cloud Storage location to upload the result to.
       Format: `gs://bucket-name`.
       
      string gcs_output_bucket = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The gcsOutputBucket to set.
      Returns:
      This builder for chaining.
    • clearGcsOutputBucket

      public NotebookRuntimeOptions.Builder clearGcsOutputBucket()
       Optional. The Google Cloud Storage location to upload the result to.
       Format: `gs://bucket-name`.
       
      string gcs_output_bucket = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setGcsOutputBucketBytes

      public NotebookRuntimeOptions.Builder setGcsOutputBucketBytes(com.google.protobuf.ByteString value)
       Optional. The Google Cloud Storage location to upload the result to.
       Format: `gs://bucket-name`.
       
      string gcs_output_bucket = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for gcsOutputBucket to set.
      Returns:
      This builder for chaining.
    • getAiPlatformNotebookRuntimeTemplate

      public String getAiPlatformNotebookRuntimeTemplate()
       Optional. The resource name of the [Colab runtime template]
       (https://cloud.google.com/colab/docs/runtimes), from which a runtime is
       created for notebook executions. If not specified, a runtime is created
       with Colab's default specifications.
       
      string ai_platform_notebook_runtime_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getAiPlatformNotebookRuntimeTemplate in interface NotebookRuntimeOptionsOrBuilder
      Returns:
      The aiPlatformNotebookRuntimeTemplate.
    • getAiPlatformNotebookRuntimeTemplateBytes

      public com.google.protobuf.ByteString getAiPlatformNotebookRuntimeTemplateBytes()
       Optional. The resource name of the [Colab runtime template]
       (https://cloud.google.com/colab/docs/runtimes), from which a runtime is
       created for notebook executions. If not specified, a runtime is created
       with Colab's default specifications.
       
      string ai_platform_notebook_runtime_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getAiPlatformNotebookRuntimeTemplateBytes in interface NotebookRuntimeOptionsOrBuilder
      Returns:
      The bytes for aiPlatformNotebookRuntimeTemplate.
    • setAiPlatformNotebookRuntimeTemplate

      public NotebookRuntimeOptions.Builder setAiPlatformNotebookRuntimeTemplate(String value)
       Optional. The resource name of the [Colab runtime template]
       (https://cloud.google.com/colab/docs/runtimes), from which a runtime is
       created for notebook executions. If not specified, a runtime is created
       with Colab's default specifications.
       
      string ai_platform_notebook_runtime_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The aiPlatformNotebookRuntimeTemplate to set.
      Returns:
      This builder for chaining.
    • clearAiPlatformNotebookRuntimeTemplate

      public NotebookRuntimeOptions.Builder clearAiPlatformNotebookRuntimeTemplate()
       Optional. The resource name of the [Colab runtime template]
       (https://cloud.google.com/colab/docs/runtimes), from which a runtime is
       created for notebook executions. If not specified, a runtime is created
       with Colab's default specifications.
       
      string ai_platform_notebook_runtime_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setAiPlatformNotebookRuntimeTemplateBytes

      public NotebookRuntimeOptions.Builder setAiPlatformNotebookRuntimeTemplateBytes(com.google.protobuf.ByteString value)
       Optional. The resource name of the [Colab runtime template]
       (https://cloud.google.com/colab/docs/runtimes), from which a runtime is
       created for notebook executions. If not specified, a runtime is created
       with Colab's default specifications.
       
      string ai_platform_notebook_runtime_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for aiPlatformNotebookRuntimeTemplate to set.
      Returns:
      This builder for chaining.