Class SourceEnvironment.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SourceEnvironment.Builder>
com.google.cloud.bigquery.migration.v2.SourceEnvironment.Builder
All Implemented Interfaces:
SourceEnvironmentOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SourceEnvironment

public static final class SourceEnvironment.Builder extends com.google.protobuf.GeneratedMessage.Builder<SourceEnvironment.Builder> implements SourceEnvironmentOrBuilder
 Represents the default source environment values for the translation.
 
Protobuf type google.cloud.bigquery.migration.v2.SourceEnvironment
  • 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<SourceEnvironment.Builder>
    • clear

      public SourceEnvironment.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<SourceEnvironment.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<SourceEnvironment.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public SourceEnvironment.Builder mergeFrom(SourceEnvironment other)
    • isInitialized

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

      public SourceEnvironment.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<SourceEnvironment.Builder>
      Throws:
      IOException
    • getDefaultDatabase

      public String getDefaultDatabase()
       The default database name to fully qualify SQL objects when their database
       name is missing.
       
      string default_database = 1;
      Specified by:
      getDefaultDatabase in interface SourceEnvironmentOrBuilder
      Returns:
      The defaultDatabase.
    • getDefaultDatabaseBytes

      public com.google.protobuf.ByteString getDefaultDatabaseBytes()
       The default database name to fully qualify SQL objects when their database
       name is missing.
       
      string default_database = 1;
      Specified by:
      getDefaultDatabaseBytes in interface SourceEnvironmentOrBuilder
      Returns:
      The bytes for defaultDatabase.
    • setDefaultDatabase

      public SourceEnvironment.Builder setDefaultDatabase(String value)
       The default database name to fully qualify SQL objects when their database
       name is missing.
       
      string default_database = 1;
      Parameters:
      value - The defaultDatabase to set.
      Returns:
      This builder for chaining.
    • clearDefaultDatabase

      public SourceEnvironment.Builder clearDefaultDatabase()
       The default database name to fully qualify SQL objects when their database
       name is missing.
       
      string default_database = 1;
      Returns:
      This builder for chaining.
    • setDefaultDatabaseBytes

      public SourceEnvironment.Builder setDefaultDatabaseBytes(com.google.protobuf.ByteString value)
       The default database name to fully qualify SQL objects when their database
       name is missing.
       
      string default_database = 1;
      Parameters:
      value - The bytes for defaultDatabase to set.
      Returns:
      This builder for chaining.
    • getSchemaSearchPathList

      public com.google.protobuf.ProtocolStringList getSchemaSearchPathList()
       The schema search path. When SQL objects are missing schema name,
       translation engine will search through this list to find the value.
       
      repeated string schema_search_path = 2;
      Specified by:
      getSchemaSearchPathList in interface SourceEnvironmentOrBuilder
      Returns:
      A list containing the schemaSearchPath.
    • getSchemaSearchPathCount

      public int getSchemaSearchPathCount()
       The schema search path. When SQL objects are missing schema name,
       translation engine will search through this list to find the value.
       
      repeated string schema_search_path = 2;
      Specified by:
      getSchemaSearchPathCount in interface SourceEnvironmentOrBuilder
      Returns:
      The count of schemaSearchPath.
    • getSchemaSearchPath

      public String getSchemaSearchPath(int index)
       The schema search path. When SQL objects are missing schema name,
       translation engine will search through this list to find the value.
       
      repeated string schema_search_path = 2;
      Specified by:
      getSchemaSearchPath in interface SourceEnvironmentOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The schemaSearchPath at the given index.
    • getSchemaSearchPathBytes

      public com.google.protobuf.ByteString getSchemaSearchPathBytes(int index)
       The schema search path. When SQL objects are missing schema name,
       translation engine will search through this list to find the value.
       
      repeated string schema_search_path = 2;
      Specified by:
      getSchemaSearchPathBytes in interface SourceEnvironmentOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the schemaSearchPath at the given index.
    • setSchemaSearchPath

      public SourceEnvironment.Builder setSchemaSearchPath(int index, String value)
       The schema search path. When SQL objects are missing schema name,
       translation engine will search through this list to find the value.
       
      repeated string schema_search_path = 2;
      Parameters:
      index - The index to set the value at.
      value - The schemaSearchPath to set.
      Returns:
      This builder for chaining.
    • addSchemaSearchPath

      public SourceEnvironment.Builder addSchemaSearchPath(String value)
       The schema search path. When SQL objects are missing schema name,
       translation engine will search through this list to find the value.
       
      repeated string schema_search_path = 2;
      Parameters:
      value - The schemaSearchPath to add.
      Returns:
      This builder for chaining.
    • addAllSchemaSearchPath

      public SourceEnvironment.Builder addAllSchemaSearchPath(Iterable<String> values)
       The schema search path. When SQL objects are missing schema name,
       translation engine will search through this list to find the value.
       
      repeated string schema_search_path = 2;
      Parameters:
      values - The schemaSearchPath to add.
      Returns:
      This builder for chaining.
    • clearSchemaSearchPath

      public SourceEnvironment.Builder clearSchemaSearchPath()
       The schema search path. When SQL objects are missing schema name,
       translation engine will search through this list to find the value.
       
      repeated string schema_search_path = 2;
      Returns:
      This builder for chaining.
    • addSchemaSearchPathBytes

      public SourceEnvironment.Builder addSchemaSearchPathBytes(com.google.protobuf.ByteString value)
       The schema search path. When SQL objects are missing schema name,
       translation engine will search through this list to find the value.
       
      repeated string schema_search_path = 2;
      Parameters:
      value - The bytes of the schemaSearchPath to add.
      Returns:
      This builder for chaining.
    • getMetadataStoreDataset

      public String getMetadataStoreDataset()
       Optional. Expects a validQ BigQuery dataset ID that exists, e.g.,
       project-123.metadata_store_123.  If specified, translation will search and
       read the required schema information from a metadata store in this dataset.
       If metadata store doesn't exist, translation will parse the metadata file
       and upload the schema info to a temp table in the dataset to speed up
       future translation jobs.
       
      string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetadataStoreDataset in interface SourceEnvironmentOrBuilder
      Returns:
      The metadataStoreDataset.
    • getMetadataStoreDatasetBytes

      public com.google.protobuf.ByteString getMetadataStoreDatasetBytes()
       Optional. Expects a validQ BigQuery dataset ID that exists, e.g.,
       project-123.metadata_store_123.  If specified, translation will search and
       read the required schema information from a metadata store in this dataset.
       If metadata store doesn't exist, translation will parse the metadata file
       and upload the schema info to a temp table in the dataset to speed up
       future translation jobs.
       
      string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetadataStoreDatasetBytes in interface SourceEnvironmentOrBuilder
      Returns:
      The bytes for metadataStoreDataset.
    • setMetadataStoreDataset

      public SourceEnvironment.Builder setMetadataStoreDataset(String value)
       Optional. Expects a validQ BigQuery dataset ID that exists, e.g.,
       project-123.metadata_store_123.  If specified, translation will search and
       read the required schema information from a metadata store in this dataset.
       If metadata store doesn't exist, translation will parse the metadata file
       and upload the schema info to a temp table in the dataset to speed up
       future translation jobs.
       
      string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The metadataStoreDataset to set.
      Returns:
      This builder for chaining.
    • clearMetadataStoreDataset

      public SourceEnvironment.Builder clearMetadataStoreDataset()
       Optional. Expects a validQ BigQuery dataset ID that exists, e.g.,
       project-123.metadata_store_123.  If specified, translation will search and
       read the required schema information from a metadata store in this dataset.
       If metadata store doesn't exist, translation will parse the metadata file
       and upload the schema info to a temp table in the dataset to speed up
       future translation jobs.
       
      string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setMetadataStoreDatasetBytes

      public SourceEnvironment.Builder setMetadataStoreDatasetBytes(com.google.protobuf.ByteString value)
       Optional. Expects a validQ BigQuery dataset ID that exists, e.g.,
       project-123.metadata_store_123.  If specified, translation will search and
       read the required schema information from a metadata store in this dataset.
       If metadata store doesn't exist, translation will parse the metadata file
       and upload the schema info to a temp table in the dataset to speed up
       future translation jobs.
       
      string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for metadataStoreDataset to set.
      Returns:
      This builder for chaining.