Class MysqlDatabase.Builder (1.82.0)

public static final class MysqlDatabase.Builder extends GeneratedMessage.Builder<MysqlDatabase.Builder> implements MysqlDatabaseOrBuilder

MySQL database.

Protobuf type google.cloud.datastream.v1.MysqlDatabase

Static Methods

getDescriptor()

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

Methods

addAllMysqlTables(Iterable<? extends MysqlTable> values)

public MysqlDatabase.Builder addAllMysqlTables(Iterable<? extends MysqlTable> values)

Tables in the database.

repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.datastream.v1.MysqlTable>
Returns
Type Description
MysqlDatabase.Builder

addMysqlTables(MysqlTable value)

public MysqlDatabase.Builder addMysqlTables(MysqlTable value)

Tables in the database.

repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2;

Parameter
Name Description
value MysqlTable
Returns
Type Description
MysqlDatabase.Builder

addMysqlTables(MysqlTable.Builder builderForValue)

public MysqlDatabase.Builder addMysqlTables(MysqlTable.Builder builderForValue)

Tables in the database.

repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2;

Parameter
Name Description
builderForValue MysqlTable.Builder
Returns
Type Description
MysqlDatabase.Builder

addMysqlTables(int index, MysqlTable value)

public MysqlDatabase.Builder addMysqlTables(int index, MysqlTable value)

Tables in the database.

repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2;

Parameters
Name Description
index int
value MysqlTable
Returns
Type Description
MysqlDatabase.Builder

addMysqlTables(int index, MysqlTable.Builder builderForValue)

public MysqlDatabase.Builder addMysqlTables(int index, MysqlTable.Builder builderForValue)

Tables in the database.

repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2;

Parameters
Name Description
index int
builderForValue MysqlTable.Builder
Returns
Type Description
MysqlDatabase.Builder

addMysqlTablesBuilder()

public MysqlTable.Builder addMysqlTablesBuilder()

Tables in the database.

repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2;

Returns
Type Description
MysqlTable.Builder

addMysqlTablesBuilder(int index)

public MysqlTable.Builder addMysqlTablesBuilder(int index)

Tables in the database.

repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2;

Parameter
Name Description
index int
Returns
Type Description
MysqlTable.Builder

build()

public MysqlDatabase build()
Returns
Type Description
MysqlDatabase

buildPartial()

public MysqlDatabase buildPartial()
Returns
Type Description
MysqlDatabase

clear()

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

clearDatabase()

public MysqlDatabase.Builder clearDatabase()

Database name.

string database = 1;

Returns
Type Description
MysqlDatabase.Builder

This builder for chaining.

clearMysqlTables()

public MysqlDatabase.Builder clearMysqlTables()

Tables in the database.

repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2;

Returns
Type Description
MysqlDatabase.Builder

getDatabase()

public String getDatabase()

Database name.

string database = 1;

Returns
Type Description
String

The database.

getDatabaseBytes()

public ByteString getDatabaseBytes()

Database name.

string database = 1;

Returns
Type Description
ByteString

The bytes for database.

getDefaultInstanceForType()

public MysqlDatabase getDefaultInstanceForType()
Returns
Type Description
MysqlDatabase

getDescriptorForType()

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

getMysqlTables(int index)

public MysqlTable getMysqlTables(int index)

Tables in the database.

repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2;

Parameter
Name Description
index int
Returns
Type Description
MysqlTable

getMysqlTablesBuilder(int index)

public MysqlTable.Builder getMysqlTablesBuilder(int index)

Tables in the database.

repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2;

Parameter
Name Description
index int
Returns
Type Description
MysqlTable.Builder

getMysqlTablesBuilderList()

public List<MysqlTable.Builder> getMysqlTablesBuilderList()

Tables in the database.

repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2;

Returns
Type Description
List<Builder>

getMysqlTablesCount()

public int getMysqlTablesCount()

Tables in the database.

repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2;

Returns
Type Description
int

getMysqlTablesList()

public List<MysqlTable> getMysqlTablesList()

Tables in the database.

repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2;

Returns
Type Description
List<MysqlTable>

getMysqlTablesOrBuilder(int index)

public MysqlTableOrBuilder getMysqlTablesOrBuilder(int index)

Tables in the database.

repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2;

Parameter
Name Description
index int
Returns
Type Description
MysqlTableOrBuilder

getMysqlTablesOrBuilderList()

public List<? extends MysqlTableOrBuilder> getMysqlTablesOrBuilderList()

Tables in the database.

repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2;

Returns
Type Description
List<? extends com.google.cloud.datastream.v1.MysqlTableOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MysqlDatabase other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeMysqlTables(int index)

public MysqlDatabase.Builder removeMysqlTables(int index)

Tables in the database.

repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2;

Parameter
Name Description
index int
Returns
Type Description
MysqlDatabase.Builder

setDatabase(String value)

public MysqlDatabase.Builder setDatabase(String value)

Database name.

string database = 1;

Parameter
Name Description
value String

The database to set.

Returns
Type Description
MysqlDatabase.Builder

This builder for chaining.

setDatabaseBytes(ByteString value)

public MysqlDatabase.Builder setDatabaseBytes(ByteString value)

Database name.

string database = 1;

Parameter
Name Description
value ByteString

The bytes for database to set.

Returns
Type Description
MysqlDatabase.Builder

This builder for chaining.

setMysqlTables(int index, MysqlTable value)

public MysqlDatabase.Builder setMysqlTables(int index, MysqlTable value)

Tables in the database.

repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2;

Parameters
Name Description
index int
value MysqlTable
Returns
Type Description
MysqlDatabase.Builder

setMysqlTables(int index, MysqlTable.Builder builderForValue)

public MysqlDatabase.Builder setMysqlTables(int index, MysqlTable.Builder builderForValue)

Tables in the database.

repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2;

Parameters
Name Description
index int
builderForValue MysqlTable.Builder
Returns
Type Description
MysqlDatabase.Builder