Class DatabaseTableSpec.DatabaseViewSpec.Builder (1.35.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DatabaseTableSpec.DatabaseViewSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DatabaseTableSpec.DatabaseViewSpec.Builder
Overrides

build()

public DatabaseTableSpec.DatabaseViewSpec build()
Returns
TypeDescription
DatabaseTableSpec.DatabaseViewSpec

buildPartial()

public DatabaseTableSpec.DatabaseViewSpec buildPartial()
Returns
TypeDescription
DatabaseTableSpec.DatabaseViewSpec

clear()

public DatabaseTableSpec.DatabaseViewSpec.Builder clear()
Returns
TypeDescription
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
TypeDescription
DatabaseTableSpec.DatabaseViewSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DatabaseTableSpec.DatabaseViewSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DatabaseTableSpec.DatabaseViewSpec.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DatabaseTableSpec.DatabaseViewSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DatabaseTableSpec.DatabaseViewSpec.Builder
Overrides

clearSourceDefinition()

public DatabaseTableSpec.DatabaseViewSpec.Builder clearSourceDefinition()
Returns
TypeDescription
DatabaseTableSpec.DatabaseViewSpec.Builder

clearSqlQuery()

public DatabaseTableSpec.DatabaseViewSpec.Builder clearSqlQuery()

SQL query used to generate this view.

string sql_query = 3;

Returns
TypeDescription
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
TypeDescription
DatabaseTableSpec.DatabaseViewSpec.Builder

This builder for chaining.

clone()

public DatabaseTableSpec.DatabaseViewSpec.Builder clone()
Returns
TypeDescription
DatabaseTableSpec.DatabaseViewSpec.Builder
Overrides

getBaseTable()

public String getBaseTable()

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

string base_table = 2;

Returns
TypeDescription
String

The baseTable.

getBaseTableBytes()

public ByteString getBaseTableBytes()

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

string base_table = 2;

Returns
TypeDescription
ByteString

The bytes for baseTable.

getDefaultInstanceForType()

public DatabaseTableSpec.DatabaseViewSpec getDefaultInstanceForType()
Returns
TypeDescription
DatabaseTableSpec.DatabaseViewSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSourceDefinitionCase()

public DatabaseTableSpec.DatabaseViewSpec.SourceDefinitionCase getSourceDefinitionCase()
Returns
TypeDescription
DatabaseTableSpec.DatabaseViewSpec.SourceDefinitionCase

getSqlQuery()

public String getSqlQuery()

SQL query used to generate this view.

string sql_query = 3;

Returns
TypeDescription
String

The sqlQuery.

getSqlQueryBytes()

public ByteString getSqlQueryBytes()

SQL query used to generate this view.

string sql_query = 3;

Returns
TypeDescription
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
TypeDescription
DatabaseTableSpec.DatabaseViewSpec.ViewType

The viewType.

getViewTypeValue()

public int getViewTypeValue()

Type of this view.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the baseTable field is set.

hasSqlQuery()

public boolean hasSqlQuery()

SQL query used to generate this view.

string sql_query = 3;

Returns
TypeDescription
boolean

Whether the sqlQuery field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DatabaseTableSpec.DatabaseViewSpec other)

public DatabaseTableSpec.DatabaseViewSpec.Builder mergeFrom(DatabaseTableSpec.DatabaseViewSpec other)
Parameter
NameDescription
otherDatabaseTableSpec.DatabaseViewSpec
Returns
TypeDescription
DatabaseTableSpec.DatabaseViewSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DatabaseTableSpec.DatabaseViewSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DatabaseTableSpec.DatabaseViewSpec.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DatabaseTableSpec.DatabaseViewSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DatabaseTableSpec.DatabaseViewSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DatabaseTableSpec.DatabaseViewSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The baseTable to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for baseTable to set.

Returns
TypeDescription
DatabaseTableSpec.DatabaseViewSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DatabaseTableSpec.DatabaseViewSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The sqlQuery to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for sqlQuery to set.

Returns
TypeDescription
DatabaseTableSpec.DatabaseViewSpec.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DatabaseTableSpec.DatabaseViewSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDatabaseTableSpec.DatabaseViewSpec.ViewType

The viewType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
DatabaseTableSpec.DatabaseViewSpec.Builder

This builder for chaining.