Class MysqlDatabase.Builder (1.43.0)

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

MySQL database.

Protobuf type google.cloud.datastream.v1alpha1.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.v1alpha1.MysqlTable mysql_tables = 2;

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

addMysqlTables(MysqlTable value)

public MysqlDatabase.Builder addMysqlTables(MysqlTable value)

Tables in the database.

repeated .google.cloud.datastream.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.MysqlTable mysql_tables = 2;

Parameter
Name Description
index int
Returns
Type Description
MysqlTable.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearDatabaseName()

public MysqlDatabase.Builder clearDatabaseName()

Database name.

string database_name = 1;

Returns
Type Description
MysqlDatabase.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMysqlTables()

public MysqlDatabase.Builder clearMysqlTables()

Tables in the database.

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

Returns
Type Description
MysqlDatabase.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDatabaseName()

public String getDatabaseName()

Database name.

string database_name = 1;

Returns
Type Description
String

The databaseName.

getDatabaseNameBytes()

public ByteString getDatabaseNameBytes()

Database name.

string database_name = 1;

Returns
Type Description
ByteString

The bytes for databaseName.

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.v1alpha1.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.v1alpha1.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.v1alpha1.MysqlTable mysql_tables = 2;

Returns
Type Description
List<Builder>

getMysqlTablesCount()

public int getMysqlTablesCount()

Tables in the database.

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

Returns
Type Description
int

getMysqlTablesList()

public List<MysqlTable> getMysqlTablesList()

Tables in the database.

repeated .google.cloud.datastream.v1alpha1.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.v1alpha1.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.v1alpha1.MysqlTable mysql_tables = 2;

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMysqlTables(int index)

public MysqlDatabase.Builder removeMysqlTables(int index)

Tables in the database.

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

Parameter
Name Description
index int
Returns
Type Description
MysqlDatabase.Builder

setDatabaseName(String value)

public MysqlDatabase.Builder setDatabaseName(String value)

Database name.

string database_name = 1;

Parameter
Name Description
value String

The databaseName to set.

Returns
Type Description
MysqlDatabase.Builder

This builder for chaining.

setDatabaseNameBytes(ByteString value)

public MysqlDatabase.Builder setDatabaseNameBytes(ByteString value)

Database name.

string database_name = 1;

Parameter
Name Description
value ByteString

The bytes for databaseName to set.

Returns
Type Description
MysqlDatabase.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMysqlTables(int index, MysqlTable value)

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

Tables in the database.

repeated .google.cloud.datastream.v1alpha1.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.v1alpha1.MysqlTable mysql_tables = 2;

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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