Class DatabaseTableSpec.DatabaseViewSpec.Builder (1.52.0)

public static final class DatabaseTableSpec.DatabaseViewSpec.Builder extends GeneratedMessageV3.Builder<DatabaseTableSpec.DatabaseViewSpec.Builder> implements DatabaseTableSpec.DatabaseViewSpecOrBuilder

Specification that applies to database view.

Protobuf type google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DatabaseTableSpec.DatabaseViewSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.Builder
Overrides

build()

public DatabaseTableSpec.DatabaseViewSpec build()
Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec

buildPartial()

public DatabaseTableSpec.DatabaseViewSpec buildPartial()
Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec

clear()

public DatabaseTableSpec.DatabaseViewSpec.Builder clear()
Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.Builder
Overrides

clearBaseTable()

public DatabaseTableSpec.DatabaseViewSpec.Builder clearBaseTable()

Name of a singular table this view reflects one to one.

string base_table = 2;

Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DatabaseTableSpec.DatabaseViewSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DatabaseTableSpec.DatabaseViewSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.Builder
Overrides

clearSourceDefinition()

public DatabaseTableSpec.DatabaseViewSpec.Builder clearSourceDefinition()
Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.Builder

clearSqlQuery()

public DatabaseTableSpec.DatabaseViewSpec.Builder clearSqlQuery()

SQL query used to generate this view.

string sql_query = 3;

Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.Builder

This builder for chaining.

clearViewType()

public DatabaseTableSpec.DatabaseViewSpec.Builder clearViewType()

Type of this view.

.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType view_type = 1;

Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.Builder

This builder for chaining.

clone()

public DatabaseTableSpec.DatabaseViewSpec.Builder clone()
Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.Builder
Overrides

getBaseTable()

public String getBaseTable()

Name of a singular table this view reflects one to one.

string base_table = 2;

Returns
Type Description
String

The baseTable.

getBaseTableBytes()

public ByteString getBaseTableBytes()

Name of a singular table this view reflects one to one.

string base_table = 2;

Returns
Type Description
ByteString

The bytes for baseTable.

getDefaultInstanceForType()

public DatabaseTableSpec.DatabaseViewSpec getDefaultInstanceForType()
Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec

getDescriptorForType()

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

getSourceDefinitionCase()

public DatabaseTableSpec.DatabaseViewSpec.SourceDefinitionCase getSourceDefinitionCase()
Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.SourceDefinitionCase

getSqlQuery()

public String getSqlQuery()

SQL query used to generate this view.

string sql_query = 3;

Returns
Type Description
String

The sqlQuery.

getSqlQueryBytes()

public ByteString getSqlQueryBytes()

SQL query used to generate this view.

string sql_query = 3;

Returns
Type Description
ByteString

The bytes for sqlQuery.

getViewType()

public DatabaseTableSpec.DatabaseViewSpec.ViewType getViewType()

Type of this view.

.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType view_type = 1;

Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.ViewType

The viewType.

getViewTypeValue()

public int getViewTypeValue()

Type of this view.

.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType view_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for viewType.

hasBaseTable()

public boolean hasBaseTable()

Name of a singular table this view reflects one to one.

string base_table = 2;

Returns
Type Description
boolean

Whether the baseTable field is set.

hasSqlQuery()

public boolean hasSqlQuery()

SQL query used to generate this view.

string sql_query = 3;

Returns
Type Description
boolean

Whether the sqlQuery field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DatabaseTableSpec.DatabaseViewSpec other)

public DatabaseTableSpec.DatabaseViewSpec.Builder mergeFrom(DatabaseTableSpec.DatabaseViewSpec other)
Parameter
Name Description
other DatabaseTableSpec.DatabaseViewSpec
Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DatabaseTableSpec.DatabaseViewSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DatabaseTableSpec.DatabaseViewSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.Builder
Overrides

setBaseTable(String value)

public DatabaseTableSpec.DatabaseViewSpec.Builder setBaseTable(String value)

Name of a singular table this view reflects one to one.

string base_table = 2;

Parameter
Name Description
value String

The baseTable to set.

Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.Builder

This builder for chaining.

setBaseTableBytes(ByteString value)

public DatabaseTableSpec.DatabaseViewSpec.Builder setBaseTableBytes(ByteString value)

Name of a singular table this view reflects one to one.

string base_table = 2;

Parameter
Name Description
value ByteString

The bytes for baseTable to set.

Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DatabaseTableSpec.DatabaseViewSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DatabaseTableSpec.DatabaseViewSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.Builder
Overrides

setSqlQuery(String value)

public DatabaseTableSpec.DatabaseViewSpec.Builder setSqlQuery(String value)

SQL query used to generate this view.

string sql_query = 3;

Parameter
Name Description
value String

The sqlQuery to set.

Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.Builder

This builder for chaining.

setSqlQueryBytes(ByteString value)

public DatabaseTableSpec.DatabaseViewSpec.Builder setSqlQueryBytes(ByteString value)

SQL query used to generate this view.

string sql_query = 3;

Parameter
Name Description
value ByteString

The bytes for sqlQuery to set.

Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DatabaseTableSpec.DatabaseViewSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.Builder
Overrides

setViewType(DatabaseTableSpec.DatabaseViewSpec.ViewType value)

public DatabaseTableSpec.DatabaseViewSpec.Builder setViewType(DatabaseTableSpec.DatabaseViewSpec.ViewType value)

Type of this view.

.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType view_type = 1;

Parameter
Name Description
value DatabaseTableSpec.DatabaseViewSpec.ViewType

The viewType to set.

Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.Builder

This builder for chaining.

setViewTypeValue(int value)

public DatabaseTableSpec.DatabaseViewSpec.Builder setViewTypeValue(int value)

Type of this view.

.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType view_type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for viewType to set.

Returns
Type Description
DatabaseTableSpec.DatabaseViewSpec.Builder

This builder for chaining.