Class Repository.WorkspaceCompilationOverrides.Builder (0.84.0)

public static final class Repository.WorkspaceCompilationOverrides.Builder extends 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public Repository.WorkspaceCompilationOverrides build()
Returns
Type Description
Repository.WorkspaceCompilationOverrides

buildPartial()

public Repository.WorkspaceCompilationOverrides buildPartial()
Returns
Type Description
Repository.WorkspaceCompilationOverrides

clear()

public Repository.WorkspaceCompilationOverrides.Builder clear()
Returns
Type Description
Repository.WorkspaceCompilationOverrides.Builder
Overrides

clearDefaultDatabase()

public Repository.WorkspaceCompilationOverrides.Builder clearDefaultDatabase()

Optional. The default database (Google Cloud project ID).

string default_database = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Repository.WorkspaceCompilationOverrides.Builder

This builder for chaining.

clearSchemaSuffix()

public Repository.WorkspaceCompilationOverrides.Builder 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
Type Description
Repository.WorkspaceCompilationOverrides.Builder

This builder for chaining.

clearTablePrefix()

public Repository.WorkspaceCompilationOverrides.Builder clearTablePrefix()

Optional. The prefix that should be prepended to all table names.

string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Repository.WorkspaceCompilationOverrides.Builder

This builder for chaining.

getDefaultDatabase()

public String getDefaultDatabase()

Optional. The default database (Google Cloud project ID).

string default_database = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The defaultDatabase.

getDefaultDatabaseBytes()

public ByteString getDefaultDatabaseBytes()

Optional. The default database (Google Cloud project ID).

string default_database = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for defaultDatabase.

getDefaultInstanceForType()

public Repository.WorkspaceCompilationOverrides getDefaultInstanceForType()
Returns
Type Description
Repository.WorkspaceCompilationOverrides

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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];

Returns
Type Description
String

The schemaSuffix.

getSchemaSuffixBytes()

public 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];

Returns
Type Description
ByteString

The bytes for schemaSuffix.

getTablePrefix()

public String getTablePrefix()

Optional. The prefix that should be prepended to all table names.

string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The tablePrefix.

getTablePrefixBytes()

public ByteString getTablePrefixBytes()

Optional. The prefix that should be prepended to all table names.

string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for tablePrefix.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Repository.WorkspaceCompilationOverrides other)

public Repository.WorkspaceCompilationOverrides.Builder mergeFrom(Repository.WorkspaceCompilationOverrides other)
Parameter
Name Description
other Repository.WorkspaceCompilationOverrides
Returns
Type Description
Repository.WorkspaceCompilationOverrides.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Repository.WorkspaceCompilationOverrides.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Repository.WorkspaceCompilationOverrides.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Repository.WorkspaceCompilationOverrides.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Repository.WorkspaceCompilationOverrides.Builder
Overrides

setDefaultDatabase(String value)

public Repository.WorkspaceCompilationOverrides.Builder setDefaultDatabase(String value)

Optional. The default database (Google Cloud project ID).

string default_database = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The defaultDatabase to set.

Returns
Type Description
Repository.WorkspaceCompilationOverrides.Builder

This builder for chaining.

setDefaultDatabaseBytes(ByteString value)

public Repository.WorkspaceCompilationOverrides.Builder setDefaultDatabaseBytes(ByteString value)

Optional. The default database (Google Cloud project ID).

string default_database = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for defaultDatabase to set.

Returns
Type Description
Repository.WorkspaceCompilationOverrides.Builder

This builder for chaining.

setSchemaSuffix(String value)

public Repository.WorkspaceCompilationOverrides.Builder setSchemaSuffix(String value)

Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names.

string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The schemaSuffix to set.

Returns
Type Description
Repository.WorkspaceCompilationOverrides.Builder

This builder for chaining.

setSchemaSuffixBytes(ByteString value)

public Repository.WorkspaceCompilationOverrides.Builder setSchemaSuffixBytes(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];

Parameter
Name Description
value ByteString

The bytes for schemaSuffix to set.

Returns
Type Description
Repository.WorkspaceCompilationOverrides.Builder

This builder for chaining.

setTablePrefix(String value)

public Repository.WorkspaceCompilationOverrides.Builder setTablePrefix(String value)

Optional. The prefix that should be prepended to all table names.

string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The tablePrefix to set.

Returns
Type Description
Repository.WorkspaceCompilationOverrides.Builder

This builder for chaining.

setTablePrefixBytes(ByteString value)

public Repository.WorkspaceCompilationOverrides.Builder setTablePrefixBytes(ByteString value)

Optional. The prefix that should be prepended to all table names.

string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for tablePrefix to set.

Returns
Type Description
Repository.WorkspaceCompilationOverrides.Builder

This builder for chaining.