Class SourceEnv.Builder

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

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

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

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

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

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

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

      public SourceEnv.Builder mergeFrom(SourceEnv other)
    • isInitialized

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

      public SourceEnv.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<SourceEnv.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 SourceEnvOrBuilder
      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 SourceEnvOrBuilder
      Returns:
      The bytes for defaultDatabase.
    • setDefaultDatabase

      public SourceEnv.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 SourceEnv.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 SourceEnv.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 SourceEnvOrBuilder
      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 SourceEnvOrBuilder
      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 SourceEnvOrBuilder
      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 SourceEnvOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the schemaSearchPath at the given index.
    • setSchemaSearchPath

      public SourceEnv.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 SourceEnv.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 SourceEnv.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 SourceEnv.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 SourceEnv.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 valid 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 SourceEnvOrBuilder
      Returns:
      The metadataStoreDataset.
    • getMetadataStoreDatasetBytes

      public com.google.protobuf.ByteString getMetadataStoreDatasetBytes()
       Optional. Expects a valid 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 SourceEnvOrBuilder
      Returns:
      The bytes for metadataStoreDataset.
    • setMetadataStoreDataset

      public SourceEnv.Builder setMetadataStoreDataset(String value)
       Optional. Expects a valid 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 SourceEnv.Builder clearMetadataStoreDataset()
       Optional. Expects a valid 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 SourceEnv.Builder setMetadataStoreDatasetBytes(com.google.protobuf.ByteString value)
       Optional. Expects a valid 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.