Class Task.NotebookTaskConfig.Builder

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

public static final class Task.NotebookTaskConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<Task.NotebookTaskConfig.Builder> implements Task.NotebookTaskConfigOrBuilder
 Config for running scheduled notebooks.
 
Protobuf type google.cloud.dataplex.v1.Task.NotebookTaskConfig
  • 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<Task.NotebookTaskConfig.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<Task.NotebookTaskConfig.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<Task.NotebookTaskConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Task.NotebookTaskConfig.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<Task.NotebookTaskConfig.Builder>
      Throws:
      IOException
    • getNotebook

      public String getNotebook()
       Required. Path to input notebook. This can be the Cloud Storage URI of
       the notebook file or the path to a Notebook Content. The execution args
       are accessible as environment variables
       (`TASK_key=value`).
       
      string notebook = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNotebook in interface Task.NotebookTaskConfigOrBuilder
      Returns:
      The notebook.
    • getNotebookBytes

      public com.google.protobuf.ByteString getNotebookBytes()
       Required. Path to input notebook. This can be the Cloud Storage URI of
       the notebook file or the path to a Notebook Content. The execution args
       are accessible as environment variables
       (`TASK_key=value`).
       
      string notebook = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNotebookBytes in interface Task.NotebookTaskConfigOrBuilder
      Returns:
      The bytes for notebook.
    • setNotebook

      public Task.NotebookTaskConfig.Builder setNotebook(String value)
       Required. Path to input notebook. This can be the Cloud Storage URI of
       the notebook file or the path to a Notebook Content. The execution args
       are accessible as environment variables
       (`TASK_key=value`).
       
      string notebook = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The notebook to set.
      Returns:
      This builder for chaining.
    • clearNotebook

      public Task.NotebookTaskConfig.Builder clearNotebook()
       Required. Path to input notebook. This can be the Cloud Storage URI of
       the notebook file or the path to a Notebook Content. The execution args
       are accessible as environment variables
       (`TASK_key=value`).
       
      string notebook = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNotebookBytes

      public Task.NotebookTaskConfig.Builder setNotebookBytes(com.google.protobuf.ByteString value)
       Required. Path to input notebook. This can be the Cloud Storage URI of
       the notebook file or the path to a Notebook Content. The execution args
       are accessible as environment variables
       (`TASK_key=value`).
       
      string notebook = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for notebook to set.
      Returns:
      This builder for chaining.
    • hasInfrastructureSpec

      public boolean hasInfrastructureSpec()
       Optional. Infrastructure specification for the execution.
       
      .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasInfrastructureSpec in interface Task.NotebookTaskConfigOrBuilder
      Returns:
      Whether the infrastructureSpec field is set.
    • getInfrastructureSpec

      public Task.InfrastructureSpec getInfrastructureSpec()
       Optional. Infrastructure specification for the execution.
       
      .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInfrastructureSpec in interface Task.NotebookTaskConfigOrBuilder
      Returns:
      The infrastructureSpec.
    • setInfrastructureSpec

      public Task.NotebookTaskConfig.Builder setInfrastructureSpec(Task.InfrastructureSpec value)
       Optional. Infrastructure specification for the execution.
       
      .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setInfrastructureSpec

      public Task.NotebookTaskConfig.Builder setInfrastructureSpec(Task.InfrastructureSpec.Builder builderForValue)
       Optional. Infrastructure specification for the execution.
       
      .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeInfrastructureSpec

      public Task.NotebookTaskConfig.Builder mergeInfrastructureSpec(Task.InfrastructureSpec value)
       Optional. Infrastructure specification for the execution.
       
      .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearInfrastructureSpec

      public Task.NotebookTaskConfig.Builder clearInfrastructureSpec()
       Optional. Infrastructure specification for the execution.
       
      .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getInfrastructureSpecBuilder

      public Task.InfrastructureSpec.Builder getInfrastructureSpecBuilder()
       Optional. Infrastructure specification for the execution.
       
      .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getInfrastructureSpecOrBuilder

      public Task.InfrastructureSpecOrBuilder getInfrastructureSpecOrBuilder()
       Optional. Infrastructure specification for the execution.
       
      .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInfrastructureSpecOrBuilder in interface Task.NotebookTaskConfigOrBuilder
    • getFileUrisList

      public com.google.protobuf.ProtocolStringList getFileUrisList()
       Optional. Cloud Storage URIs of files to be placed in the working
       directory of each executor.
       
      repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFileUrisList in interface Task.NotebookTaskConfigOrBuilder
      Returns:
      A list containing the fileUris.
    • getFileUrisCount

      public int getFileUrisCount()
       Optional. Cloud Storage URIs of files to be placed in the working
       directory of each executor.
       
      repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFileUrisCount in interface Task.NotebookTaskConfigOrBuilder
      Returns:
      The count of fileUris.
    • getFileUris

      public String getFileUris(int index)
       Optional. Cloud Storage URIs of files to be placed in the working
       directory of each executor.
       
      repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFileUris in interface Task.NotebookTaskConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The fileUris at the given index.
    • getFileUrisBytes

      public com.google.protobuf.ByteString getFileUrisBytes(int index)
       Optional. Cloud Storage URIs of files to be placed in the working
       directory of each executor.
       
      repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFileUrisBytes in interface Task.NotebookTaskConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the fileUris at the given index.
    • setFileUris

      public Task.NotebookTaskConfig.Builder setFileUris(int index, String value)
       Optional. Cloud Storage URIs of files to be placed in the working
       directory of each executor.
       
      repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The fileUris to set.
      Returns:
      This builder for chaining.
    • addFileUris

      public Task.NotebookTaskConfig.Builder addFileUris(String value)
       Optional. Cloud Storage URIs of files to be placed in the working
       directory of each executor.
       
      repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The fileUris to add.
      Returns:
      This builder for chaining.
    • addAllFileUris

      public Task.NotebookTaskConfig.Builder addAllFileUris(Iterable<String> values)
       Optional. Cloud Storage URIs of files to be placed in the working
       directory of each executor.
       
      repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The fileUris to add.
      Returns:
      This builder for chaining.
    • clearFileUris

      public Task.NotebookTaskConfig.Builder clearFileUris()
       Optional. Cloud Storage URIs of files to be placed in the working
       directory of each executor.
       
      repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addFileUrisBytes

      public Task.NotebookTaskConfig.Builder addFileUrisBytes(com.google.protobuf.ByteString value)
       Optional. Cloud Storage URIs of files to be placed in the working
       directory of each executor.
       
      repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the fileUris to add.
      Returns:
      This builder for chaining.
    • getArchiveUrisList

      public com.google.protobuf.ProtocolStringList getArchiveUrisList()
       Optional. Cloud Storage URIs of archives to be extracted into the working
       directory of each executor. Supported file types: .jar, .tar, .tar.gz,
       .tgz, and .zip.
       
      repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getArchiveUrisList in interface Task.NotebookTaskConfigOrBuilder
      Returns:
      A list containing the archiveUris.
    • getArchiveUrisCount

      public int getArchiveUrisCount()
       Optional. Cloud Storage URIs of archives to be extracted into the working
       directory of each executor. Supported file types: .jar, .tar, .tar.gz,
       .tgz, and .zip.
       
      repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getArchiveUrisCount in interface Task.NotebookTaskConfigOrBuilder
      Returns:
      The count of archiveUris.
    • getArchiveUris

      public String getArchiveUris(int index)
       Optional. Cloud Storage URIs of archives to be extracted into the working
       directory of each executor. Supported file types: .jar, .tar, .tar.gz,
       .tgz, and .zip.
       
      repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getArchiveUris in interface Task.NotebookTaskConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The archiveUris at the given index.
    • getArchiveUrisBytes

      public com.google.protobuf.ByteString getArchiveUrisBytes(int index)
       Optional. Cloud Storage URIs of archives to be extracted into the working
       directory of each executor. Supported file types: .jar, .tar, .tar.gz,
       .tgz, and .zip.
       
      repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getArchiveUrisBytes in interface Task.NotebookTaskConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the archiveUris at the given index.
    • setArchiveUris

      public Task.NotebookTaskConfig.Builder setArchiveUris(int index, String value)
       Optional. Cloud Storage URIs of archives to be extracted into the working
       directory of each executor. Supported file types: .jar, .tar, .tar.gz,
       .tgz, and .zip.
       
      repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The archiveUris to set.
      Returns:
      This builder for chaining.
    • addArchiveUris

      public Task.NotebookTaskConfig.Builder addArchiveUris(String value)
       Optional. Cloud Storage URIs of archives to be extracted into the working
       directory of each executor. Supported file types: .jar, .tar, .tar.gz,
       .tgz, and .zip.
       
      repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The archiveUris to add.
      Returns:
      This builder for chaining.
    • addAllArchiveUris

      public Task.NotebookTaskConfig.Builder addAllArchiveUris(Iterable<String> values)
       Optional. Cloud Storage URIs of archives to be extracted into the working
       directory of each executor. Supported file types: .jar, .tar, .tar.gz,
       .tgz, and .zip.
       
      repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The archiveUris to add.
      Returns:
      This builder for chaining.
    • clearArchiveUris

      public Task.NotebookTaskConfig.Builder clearArchiveUris()
       Optional. Cloud Storage URIs of archives to be extracted into the working
       directory of each executor. Supported file types: .jar, .tar, .tar.gz,
       .tgz, and .zip.
       
      repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addArchiveUrisBytes

      public Task.NotebookTaskConfig.Builder addArchiveUrisBytes(com.google.protobuf.ByteString value)
       Optional. Cloud Storage URIs of archives to be extracted into the working
       directory of each executor. Supported file types: .jar, .tar, .tar.gz,
       .tgz, and .zip.
       
      repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the archiveUris to add.
      Returns:
      This builder for chaining.