Class TableMetadata.Builder (0.41.0)

public static final class TableMetadata.Builder extends GeneratedMessage.Builder<TableMetadata.Builder> implements TableMetadataOrBuilder

Metadata about a table used in a query.

Protobuf type google.cloud.chronicle.v1.TableMetadata

Static Methods

getDescriptor()

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

Methods

build()

public TableMetadata build()
Returns
Type Description
TableMetadata

buildPartial()

public TableMetadata buildPartial()
Returns
Type Description
TableMetadata

clear()

public TableMetadata.Builder clear()
Returns
Type Description
TableMetadata.Builder
Overrides

clearDataSource()

public TableMetadata.Builder clearDataSource()

The type of data source.

.google.cloud.chronicle.v1.TableMetadata.DataSource data_source = 2;

Returns
Type Description
TableMetadata.Builder

This builder for chaining.

clearIndex()

public TableMetadata.Builder clearIndex()

The index of the table in the query.

int32 index = 3;

Returns
Type Description
TableMetadata.Builder

This builder for chaining.

clearTable()

public TableMetadata.Builder clearTable()

The alias of the table in the query.

string table = 1;

Returns
Type Description
TableMetadata.Builder

This builder for chaining.

getDataSource()

public TableMetadata.DataSource getDataSource()

The type of data source.

.google.cloud.chronicle.v1.TableMetadata.DataSource data_source = 2;

Returns
Type Description
TableMetadata.DataSource

The dataSource.

getDataSourceValue()

public int getDataSourceValue()

The type of data source.

.google.cloud.chronicle.v1.TableMetadata.DataSource data_source = 2;

Returns
Type Description
int

The enum numeric value on the wire for dataSource.

getDefaultInstanceForType()

public TableMetadata getDefaultInstanceForType()
Returns
Type Description
TableMetadata

getDescriptorForType()

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

getIndex()

public int getIndex()

The index of the table in the query.

int32 index = 3;

Returns
Type Description
int

The index.

getTable()

public String getTable()

The alias of the table in the query.

string table = 1;

Returns
Type Description
String

The table.

getTableBytes()

public ByteString getTableBytes()

The alias of the table in the query.

string table = 1;

Returns
Type Description
ByteString

The bytes for table.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TableMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDataSource(TableMetadata.DataSource value)

public TableMetadata.Builder setDataSource(TableMetadata.DataSource value)

The type of data source.

.google.cloud.chronicle.v1.TableMetadata.DataSource data_source = 2;

Parameter
Name Description
value TableMetadata.DataSource

The dataSource to set.

Returns
Type Description
TableMetadata.Builder

This builder for chaining.

setDataSourceValue(int value)

public TableMetadata.Builder setDataSourceValue(int value)

The type of data source.

.google.cloud.chronicle.v1.TableMetadata.DataSource data_source = 2;

Parameter
Name Description
value int

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

Returns
Type Description
TableMetadata.Builder

This builder for chaining.

setIndex(int value)

public TableMetadata.Builder setIndex(int value)

The index of the table in the query.

int32 index = 3;

Parameter
Name Description
value int

The index to set.

Returns
Type Description
TableMetadata.Builder

This builder for chaining.

setTable(String value)

public TableMetadata.Builder setTable(String value)

The alias of the table in the query.

string table = 1;

Parameter
Name Description
value String

The table to set.

Returns
Type Description
TableMetadata.Builder

This builder for chaining.

setTableBytes(ByteString value)

public TableMetadata.Builder setTableBytes(ByteString value)

The alias of the table in the query.

string table = 1;

Parameter
Name Description
value ByteString

The bytes for table to set.

Returns
Type Description
TableMetadata.Builder

This builder for chaining.