Class Repository.WorkspaceCompilationOverrides.Builder

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

public static final class Repository.WorkspaceCompilationOverrides.Builder extends com.google.protobuf.GeneratedMessage.Builder<Repository.WorkspaceCompilationOverrides.Builder> implements Repository.WorkspaceCompilationOverridesOrBuilder
 Configures workspace compilation overrides for a repository. Primarily used
 by the UI (`console.cloud.google.com`). `schema_suffix` and `table_prefix`
 can have a special expression - `${workspaceName}`, which refers to the
 workspace name from which the compilation results will be created. API
 callers are expected to resolve the expression in these overrides and
 provide them explicitly in `code_compilation_config`
 (https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories.compilationResults#codecompilationconfig)
 when creating workspace-scoped compilation results.
 
Protobuf type google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides
  • 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<Repository.WorkspaceCompilationOverrides.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<Repository.WorkspaceCompilationOverrides.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<Repository.WorkspaceCompilationOverrides.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

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

      public String getDefaultDatabase()
       Optional. The default database (Google Cloud project ID).
       
      string default_database = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDefaultDatabase in interface Repository.WorkspaceCompilationOverridesOrBuilder
      Returns:
      The defaultDatabase.
    • getDefaultDatabaseBytes

      public com.google.protobuf.ByteString getDefaultDatabaseBytes()
       Optional. The default database (Google Cloud project ID).
       
      string default_database = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDefaultDatabaseBytes in interface Repository.WorkspaceCompilationOverridesOrBuilder
      Returns:
      The bytes for defaultDatabase.
    • setDefaultDatabase

      public Repository.WorkspaceCompilationOverrides.Builder setDefaultDatabase(String value)
       Optional. The default database (Google Cloud project ID).
       
      string default_database = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The defaultDatabase to set.
      Returns:
      This builder for chaining.
    • clearDefaultDatabase

      public Repository.WorkspaceCompilationOverrides.Builder clearDefaultDatabase()
       Optional. The default database (Google Cloud project ID).
       
      string default_database = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDefaultDatabaseBytes

      public Repository.WorkspaceCompilationOverrides.Builder setDefaultDatabaseBytes(com.google.protobuf.ByteString value)
       Optional. The default database (Google Cloud project ID).
       
      string default_database = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for defaultDatabase to set.
      Returns:
      This builder for chaining.
    • getSchemaSuffix

      public String getSchemaSuffix()
       Optional. The suffix that should be appended to all schema (BigQuery
       dataset ID) names.
       
      string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSchemaSuffix in interface Repository.WorkspaceCompilationOverridesOrBuilder
      Returns:
      The schemaSuffix.
    • getSchemaSuffixBytes

      public com.google.protobuf.ByteString getSchemaSuffixBytes()
       Optional. The suffix that should be appended to all schema (BigQuery
       dataset ID) names.
       
      string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSchemaSuffixBytes in interface Repository.WorkspaceCompilationOverridesOrBuilder
      Returns:
      The bytes for schemaSuffix.
    • setSchemaSuffix

       Optional. The suffix that should be appended to all schema (BigQuery
       dataset ID) names.
       
      string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The schemaSuffix to set.
      Returns:
      This builder for chaining.
    • clearSchemaSuffix

       Optional. The suffix that should be appended to all schema (BigQuery
       dataset ID) names.
       
      string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setSchemaSuffixBytes

      public Repository.WorkspaceCompilationOverrides.Builder setSchemaSuffixBytes(com.google.protobuf.ByteString value)
       Optional. The suffix that should be appended to all schema (BigQuery
       dataset ID) names.
       
      string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for schemaSuffix to set.
      Returns:
      This builder for chaining.
    • getTablePrefix

      public String getTablePrefix()
       Optional. The prefix that should be prepended to all table names.
       
      string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTablePrefix in interface Repository.WorkspaceCompilationOverridesOrBuilder
      Returns:
      The tablePrefix.
    • getTablePrefixBytes

      public com.google.protobuf.ByteString getTablePrefixBytes()
       Optional. The prefix that should be prepended to all table names.
       
      string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTablePrefixBytes in interface Repository.WorkspaceCompilationOverridesOrBuilder
      Returns:
      The bytes for tablePrefix.
    • setTablePrefix

       Optional. The prefix that should be prepended to all table names.
       
      string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The tablePrefix to set.
      Returns:
      This builder for chaining.
    • clearTablePrefix

       Optional. The prefix that should be prepended to all table names.
       
      string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setTablePrefixBytes

      public Repository.WorkspaceCompilationOverrides.Builder setTablePrefixBytes(com.google.protobuf.ByteString value)
       Optional. The prefix that should be prepended to all table names.
       
      string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for tablePrefix to set.
      Returns:
      This builder for chaining.