Class CloudSqlDatabaseReference.Builder (0.21.0)

public static final class CloudSqlDatabaseReference.Builder extends GeneratedMessage.Builder<CloudSqlDatabaseReference.Builder> implements CloudSqlDatabaseReferenceOrBuilder

Message representing a reference to a single CloudSQL database.

Protobuf type google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference

Static Methods

getDescriptor()

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

Methods

addAllDatabaseTableReferences(Iterable<? extends DatabaseTableReference> values)

public CloudSqlDatabaseReference.Builder addAllDatabaseTableReferences(Iterable<? extends DatabaseTableReference> values)

Optional. References to tables within the database. Each reference specifies a table and can optionally include the table's schema to provide context for the query.

repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.geminidataanalytics.v1beta.DatabaseTableReference>
Returns
Type Description
CloudSqlDatabaseReference.Builder

addAllTableIds(Iterable<String> values)

public CloudSqlDatabaseReference.Builder addAllTableIds(Iterable<String> values)

Optional. The table ids. Denotes all tables if unset.

repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The tableIds to add.

Returns
Type Description
CloudSqlDatabaseReference.Builder

This builder for chaining.

addDatabaseTableReferences(DatabaseTableReference value)

public CloudSqlDatabaseReference.Builder addDatabaseTableReferences(DatabaseTableReference value)

Optional. References to tables within the database. Each reference specifies a table and can optionally include the table's schema to provide context for the query.

repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DatabaseTableReference
Returns
Type Description
CloudSqlDatabaseReference.Builder

addDatabaseTableReferences(DatabaseTableReference.Builder builderForValue)

public CloudSqlDatabaseReference.Builder addDatabaseTableReferences(DatabaseTableReference.Builder builderForValue)

Optional. References to tables within the database. Each reference specifies a table and can optionally include the table's schema to provide context for the query.

repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue DatabaseTableReference.Builder
Returns
Type Description
CloudSqlDatabaseReference.Builder

addDatabaseTableReferences(int index, DatabaseTableReference value)

public CloudSqlDatabaseReference.Builder addDatabaseTableReferences(int index, DatabaseTableReference value)

Optional. References to tables within the database. Each reference specifies a table and can optionally include the table's schema to provide context for the query.

repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value DatabaseTableReference
Returns
Type Description
CloudSqlDatabaseReference.Builder

addDatabaseTableReferences(int index, DatabaseTableReference.Builder builderForValue)

public CloudSqlDatabaseReference.Builder addDatabaseTableReferences(int index, DatabaseTableReference.Builder builderForValue)

Optional. References to tables within the database. Each reference specifies a table and can optionally include the table's schema to provide context for the query.

repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue DatabaseTableReference.Builder
Returns
Type Description
CloudSqlDatabaseReference.Builder

addDatabaseTableReferencesBuilder()

public DatabaseTableReference.Builder addDatabaseTableReferencesBuilder()

Optional. References to tables within the database. Each reference specifies a table and can optionally include the table's schema to provide context for the query.

repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DatabaseTableReference.Builder

addDatabaseTableReferencesBuilder(int index)

public DatabaseTableReference.Builder addDatabaseTableReferencesBuilder(int index)

Optional. References to tables within the database. Each reference specifies a table and can optionally include the table's schema to provide context for the query.

repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
DatabaseTableReference.Builder

addTableIds(String value)

public CloudSqlDatabaseReference.Builder addTableIds(String value)

Optional. The table ids. Denotes all tables if unset.

repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The tableIds to add.

Returns
Type Description
CloudSqlDatabaseReference.Builder

This builder for chaining.

addTableIdsBytes(ByteString value)

public CloudSqlDatabaseReference.Builder addTableIdsBytes(ByteString value)

Optional. The table ids. Denotes all tables if unset.

repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the tableIds to add.

Returns
Type Description
CloudSqlDatabaseReference.Builder

This builder for chaining.

build()

public CloudSqlDatabaseReference build()
Returns
Type Description
CloudSqlDatabaseReference

buildPartial()

public CloudSqlDatabaseReference buildPartial()
Returns
Type Description
CloudSqlDatabaseReference

clear()

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

clearDatabaseId()

public CloudSqlDatabaseReference.Builder clearDatabaseId()

Required. The database id.

string database_id = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CloudSqlDatabaseReference.Builder

This builder for chaining.

clearDatabaseTableReferences()

public CloudSqlDatabaseReference.Builder clearDatabaseTableReferences()

Optional. References to tables within the database. Each reference specifies a table and can optionally include the table's schema to provide context for the query.

repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CloudSqlDatabaseReference.Builder

clearEngine()

public CloudSqlDatabaseReference.Builder clearEngine()

Required. The engine of the Cloud SQL instance.

.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CloudSqlDatabaseReference.Builder

This builder for chaining.

clearInstanceId()

public CloudSqlDatabaseReference.Builder clearInstanceId()

Required. The instance id.

string instance_id = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CloudSqlDatabaseReference.Builder

This builder for chaining.

clearProjectId()

public CloudSqlDatabaseReference.Builder clearProjectId()

Required. The project the instance belongs to.

string project_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CloudSqlDatabaseReference.Builder

This builder for chaining.

clearRegion()

public CloudSqlDatabaseReference.Builder clearRegion()

Required. The region of the instance.

string region = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CloudSqlDatabaseReference.Builder

This builder for chaining.

clearTableIds()

public CloudSqlDatabaseReference.Builder clearTableIds()

Optional. The table ids. Denotes all tables if unset.

repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CloudSqlDatabaseReference.Builder

This builder for chaining.

getDatabaseId()

public String getDatabaseId()

Required. The database id.

string database_id = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The databaseId.

getDatabaseIdBytes()

public ByteString getDatabaseIdBytes()

Required. The database id.

string database_id = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for databaseId.

getDatabaseTableReferences(int index)

public DatabaseTableReference getDatabaseTableReferences(int index)

Optional. References to tables within the database. Each reference specifies a table and can optionally include the table's schema to provide context for the query.

repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
DatabaseTableReference

getDatabaseTableReferencesBuilder(int index)

public DatabaseTableReference.Builder getDatabaseTableReferencesBuilder(int index)

Optional. References to tables within the database. Each reference specifies a table and can optionally include the table's schema to provide context for the query.

repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
DatabaseTableReference.Builder

getDatabaseTableReferencesBuilderList()

public List<DatabaseTableReference.Builder> getDatabaseTableReferencesBuilderList()

Optional. References to tables within the database. Each reference specifies a table and can optionally include the table's schema to provide context for the query.

repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getDatabaseTableReferencesCount()

public int getDatabaseTableReferencesCount()

Optional. References to tables within the database. Each reference specifies a table and can optionally include the table's schema to provide context for the query.

repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getDatabaseTableReferencesList()

public List<DatabaseTableReference> getDatabaseTableReferencesList()

Optional. References to tables within the database. Each reference specifies a table and can optionally include the table's schema to provide context for the query.

repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<DatabaseTableReference>

getDatabaseTableReferencesOrBuilder(int index)

public DatabaseTableReferenceOrBuilder getDatabaseTableReferencesOrBuilder(int index)

Optional. References to tables within the database. Each reference specifies a table and can optionally include the table's schema to provide context for the query.

repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
DatabaseTableReferenceOrBuilder

getDatabaseTableReferencesOrBuilderList()

public List<? extends DatabaseTableReferenceOrBuilder> getDatabaseTableReferencesOrBuilderList()

Optional. References to tables within the database. Each reference specifies a table and can optionally include the table's schema to provide context for the query.

repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.geminidataanalytics.v1beta.DatabaseTableReferenceOrBuilder>

getDefaultInstanceForType()

public CloudSqlDatabaseReference getDefaultInstanceForType()
Returns
Type Description
CloudSqlDatabaseReference

getDescriptorForType()

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

getEngine()

public CloudSqlDatabaseReference.Engine getEngine()

Required. The engine of the Cloud SQL instance.

.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CloudSqlDatabaseReference.Engine

The engine.

getEngineValue()

public int getEngineValue()

Required. The engine of the Cloud SQL instance.

.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for engine.

getInstanceId()

public String getInstanceId()

Required. The instance id.

string instance_id = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The instanceId.

getInstanceIdBytes()

public ByteString getInstanceIdBytes()

Required. The instance id.

string instance_id = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for instanceId.

getProjectId()

public String getProjectId()

Required. The project the instance belongs to.

string project_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Required. The project the instance belongs to.

string project_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for projectId.

getRegion()

public String getRegion()

Required. The region of the instance.

string region = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Required. The region of the instance.

string region = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for region.

getTableIds(int index)

public String getTableIds(int index)

Optional. The table ids. Denotes all tables if unset.

repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The tableIds at the given index.

getTableIdsBytes(int index)

public ByteString getTableIdsBytes(int index)

Optional. The table ids. Denotes all tables if unset.

repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the tableIds at the given index.

getTableIdsCount()

public int getTableIdsCount()

Optional. The table ids. Denotes all tables if unset.

repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of tableIds.

getTableIdsList()

public ProtocolStringList getTableIdsList()

Optional. The table ids. Denotes all tables if unset.

repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the tableIds.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CloudSqlDatabaseReference other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeDatabaseTableReferences(int index)

public CloudSqlDatabaseReference.Builder removeDatabaseTableReferences(int index)

Optional. References to tables within the database. Each reference specifies a table and can optionally include the table's schema to provide context for the query.

repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CloudSqlDatabaseReference.Builder

setDatabaseId(String value)

public CloudSqlDatabaseReference.Builder setDatabaseId(String value)

Required. The database id.

string database_id = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The databaseId to set.

Returns
Type Description
CloudSqlDatabaseReference.Builder

This builder for chaining.

setDatabaseIdBytes(ByteString value)

public CloudSqlDatabaseReference.Builder setDatabaseIdBytes(ByteString value)

Required. The database id.

string database_id = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for databaseId to set.

Returns
Type Description
CloudSqlDatabaseReference.Builder

This builder for chaining.

setDatabaseTableReferences(int index, DatabaseTableReference value)

public CloudSqlDatabaseReference.Builder setDatabaseTableReferences(int index, DatabaseTableReference value)

Optional. References to tables within the database. Each reference specifies a table and can optionally include the table's schema to provide context for the query.

repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value DatabaseTableReference
Returns
Type Description
CloudSqlDatabaseReference.Builder

setDatabaseTableReferences(int index, DatabaseTableReference.Builder builderForValue)

public CloudSqlDatabaseReference.Builder setDatabaseTableReferences(int index, DatabaseTableReference.Builder builderForValue)

Optional. References to tables within the database. Each reference specifies a table and can optionally include the table's schema to provide context for the query.

repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue DatabaseTableReference.Builder
Returns
Type Description
CloudSqlDatabaseReference.Builder

setEngine(CloudSqlDatabaseReference.Engine value)

public CloudSqlDatabaseReference.Builder setEngine(CloudSqlDatabaseReference.Engine value)

Required. The engine of the Cloud SQL instance.

.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CloudSqlDatabaseReference.Engine

The engine to set.

Returns
Type Description
CloudSqlDatabaseReference.Builder

This builder for chaining.

setEngineValue(int value)

public CloudSqlDatabaseReference.Builder setEngineValue(int value)

Required. The engine of the Cloud SQL instance.

.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
CloudSqlDatabaseReference.Builder

This builder for chaining.

setInstanceId(String value)

public CloudSqlDatabaseReference.Builder setInstanceId(String value)

Required. The instance id.

string instance_id = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The instanceId to set.

Returns
Type Description
CloudSqlDatabaseReference.Builder

This builder for chaining.

setInstanceIdBytes(ByteString value)

public CloudSqlDatabaseReference.Builder setInstanceIdBytes(ByteString value)

Required. The instance id.

string instance_id = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for instanceId to set.

Returns
Type Description
CloudSqlDatabaseReference.Builder

This builder for chaining.

setProjectId(String value)

public CloudSqlDatabaseReference.Builder setProjectId(String value)

Required. The project the instance belongs to.

string project_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
CloudSqlDatabaseReference.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public CloudSqlDatabaseReference.Builder setProjectIdBytes(ByteString value)

Required. The project the instance belongs to.

string project_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
CloudSqlDatabaseReference.Builder

This builder for chaining.

setRegion(String value)

public CloudSqlDatabaseReference.Builder setRegion(String value)

Required. The region of the instance.

string region = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The region to set.

Returns
Type Description
CloudSqlDatabaseReference.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public CloudSqlDatabaseReference.Builder setRegionBytes(ByteString value)

Required. The region of the instance.

string region = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
CloudSqlDatabaseReference.Builder

This builder for chaining.

setTableIds(int index, String value)

public CloudSqlDatabaseReference.Builder setTableIds(int index, String value)

Optional. The table ids. Denotes all tables if unset.

repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The tableIds to set.

Returns
Type Description
CloudSqlDatabaseReference.Builder

This builder for chaining.