Class AlloyDbDatabaseReference.Builder (0.21.0)

public static final class AlloyDbDatabaseReference.Builder extends GeneratedMessage.Builder<AlloyDbDatabaseReference.Builder> implements AlloyDbDatabaseReferenceOrBuilder

Message representing a reference to a single AlloyDB database.

Protobuf type google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference

Static Methods

getDescriptor()

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

Methods

addAllDatabaseTableReferences(Iterable<? extends DatabaseTableReference> values)

public AlloyDbDatabaseReference.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 = 7 [(.google.api.field_behavior) = OPTIONAL];

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

addAllTableIds(Iterable<String> values)

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

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

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

Parameter
Name Description
values Iterable<String>

The tableIds to add.

Returns
Type Description
AlloyDbDatabaseReference.Builder

This builder for chaining.

addDatabaseTableReferences(DatabaseTableReference value)

public AlloyDbDatabaseReference.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 = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DatabaseTableReference
Returns
Type Description
AlloyDbDatabaseReference.Builder

addDatabaseTableReferences(DatabaseTableReference.Builder builderForValue)

public AlloyDbDatabaseReference.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 = 7 [(.google.api.field_behavior) = OPTIONAL];

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

addDatabaseTableReferences(int index, DatabaseTableReference value)

public AlloyDbDatabaseReference.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 = 7 [(.google.api.field_behavior) = OPTIONAL];

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

addDatabaseTableReferences(int index, DatabaseTableReference.Builder builderForValue)

public AlloyDbDatabaseReference.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 = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue DatabaseTableReference.Builder
Returns
Type Description
AlloyDbDatabaseReference.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 = 7 [(.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 = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
DatabaseTableReference.Builder

addTableIds(String value)

public AlloyDbDatabaseReference.Builder addTableIds(String value)

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

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

Parameter
Name Description
value String

The tableIds to add.

Returns
Type Description
AlloyDbDatabaseReference.Builder

This builder for chaining.

addTableIdsBytes(ByteString value)

public AlloyDbDatabaseReference.Builder addTableIdsBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes of the tableIds to add.

Returns
Type Description
AlloyDbDatabaseReference.Builder

This builder for chaining.

build()

public AlloyDbDatabaseReference build()
Returns
Type Description
AlloyDbDatabaseReference

buildPartial()

public AlloyDbDatabaseReference buildPartial()
Returns
Type Description
AlloyDbDatabaseReference

clear()

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

clearClusterId()

public AlloyDbDatabaseReference.Builder clearClusterId()

Required. The cluster id.

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

Returns
Type Description
AlloyDbDatabaseReference.Builder

This builder for chaining.

clearDatabaseId()

public AlloyDbDatabaseReference.Builder clearDatabaseId()

Required. The database id.

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

Returns
Type Description
AlloyDbDatabaseReference.Builder

This builder for chaining.

clearDatabaseTableReferences()

public AlloyDbDatabaseReference.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 = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AlloyDbDatabaseReference.Builder

clearInstanceId()

public AlloyDbDatabaseReference.Builder clearInstanceId()

Required. The instance id.

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

Returns
Type Description
AlloyDbDatabaseReference.Builder

This builder for chaining.

clearProjectId()

public AlloyDbDatabaseReference.Builder clearProjectId()

Required. The project the instance belongs to.

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

Returns
Type Description
AlloyDbDatabaseReference.Builder

This builder for chaining.

clearRegion()

public AlloyDbDatabaseReference.Builder clearRegion()

Required. The region of the instance.

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

Returns
Type Description
AlloyDbDatabaseReference.Builder

This builder for chaining.

clearTableIds()

public AlloyDbDatabaseReference.Builder clearTableIds()

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

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

Returns
Type Description
AlloyDbDatabaseReference.Builder

This builder for chaining.

getClusterId()

public String getClusterId()

Required. The cluster id.

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

Returns
Type Description
String

The clusterId.

getClusterIdBytes()

public ByteString getClusterIdBytes()

Required. The cluster id.

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

Returns
Type Description
ByteString

The bytes for clusterId.

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 = 7 [(.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 = 7 [(.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 = 7 [(.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 = 7 [(.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 = 7 [(.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 = 7 [(.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 = 7 [(.google.api.field_behavior) = OPTIONAL];

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

getDefaultInstanceForType()

public AlloyDbDatabaseReference getDefaultInstanceForType()
Returns
Type Description
AlloyDbDatabaseReference

getDescriptorForType()

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

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 = 1 [(.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 = 1 [(.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 = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Required. The region of the instance.

string region = 2 [(.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 = 6 [(.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 = 6 [(.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 = 6 [(.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 = 6 [(.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(AlloyDbDatabaseReference other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeDatabaseTableReferences(int index)

public AlloyDbDatabaseReference.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 = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AlloyDbDatabaseReference.Builder

setClusterId(String value)

public AlloyDbDatabaseReference.Builder setClusterId(String value)

Required. The cluster id.

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

Parameter
Name Description
value String

The clusterId to set.

Returns
Type Description
AlloyDbDatabaseReference.Builder

This builder for chaining.

setClusterIdBytes(ByteString value)

public AlloyDbDatabaseReference.Builder setClusterIdBytes(ByteString value)

Required. The cluster id.

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

Parameter
Name Description
value ByteString

The bytes for clusterId to set.

Returns
Type Description
AlloyDbDatabaseReference.Builder

This builder for chaining.

setDatabaseId(String value)

public AlloyDbDatabaseReference.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
AlloyDbDatabaseReference.Builder

This builder for chaining.

setDatabaseIdBytes(ByteString value)

public AlloyDbDatabaseReference.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
AlloyDbDatabaseReference.Builder

This builder for chaining.

setDatabaseTableReferences(int index, DatabaseTableReference value)

public AlloyDbDatabaseReference.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 = 7 [(.google.api.field_behavior) = OPTIONAL];

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

setDatabaseTableReferences(int index, DatabaseTableReference.Builder builderForValue)

public AlloyDbDatabaseReference.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 = 7 [(.google.api.field_behavior) = OPTIONAL];

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

setInstanceId(String value)

public AlloyDbDatabaseReference.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
AlloyDbDatabaseReference.Builder

This builder for chaining.

setInstanceIdBytes(ByteString value)

public AlloyDbDatabaseReference.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
AlloyDbDatabaseReference.Builder

This builder for chaining.

setProjectId(String value)

public AlloyDbDatabaseReference.Builder setProjectId(String value)

Required. The project the instance belongs to.

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

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
AlloyDbDatabaseReference.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public AlloyDbDatabaseReference.Builder setProjectIdBytes(ByteString value)

Required. The project the instance belongs to.

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

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
AlloyDbDatabaseReference.Builder

This builder for chaining.

setRegion(String value)

public AlloyDbDatabaseReference.Builder setRegion(String value)

Required. The region of the instance.

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

Parameter
Name Description
value String

The region to set.

Returns
Type Description
AlloyDbDatabaseReference.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public AlloyDbDatabaseReference.Builder setRegionBytes(ByteString value)

Required. The region of the instance.

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

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
AlloyDbDatabaseReference.Builder

This builder for chaining.

setTableIds(int index, String value)

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

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

repeated string table_ids = 6 [(.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
AlloyDbDatabaseReference.Builder

This builder for chaining.