public static final class AlloyDbDatabaseReference.Builder extends GeneratedMessageV3.Builder<AlloyDbDatabaseReference.Builder> implements AlloyDbDatabaseReferenceOrBuilderMessage representing a reference to a single AlloyDB database.
Protobuf type google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AlloyDbDatabaseReference.BuilderImplements
AlloyDbDatabaseReferenceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AlloyDbDatabaseReference.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AlloyDbDatabaseReference.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 |
StringThe 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 |
ByteStringThe 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 |
|
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. |
clearField(Descriptors.FieldDescriptor field)
public AlloyDbDatabaseReference.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| 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. |
clearOneof(Descriptors.OneofDescriptor oneof)
public AlloyDbDatabaseReference.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
AlloyDbDatabaseReference.Builder |
|
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. |
clone()
public AlloyDbDatabaseReference.Builder clone()| Returns | |
|---|---|
| Type | Description |
AlloyDbDatabaseReference.Builder |
|
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. |
getDefaultInstanceForType()
public AlloyDbDatabaseReference getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AlloyDbDatabaseReference |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 |
intThe 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 |
intThe 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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AlloyDbDatabaseReference.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AlloyDbDatabaseReference.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AlloyDbDatabaseReference.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| 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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe bytes for databaseId to set. |
| Returns | |
|---|---|
| Type | Description |
AlloyDbDatabaseReference.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public AlloyDbDatabaseReference.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| 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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe bytes for region to set. |
| Returns | |
|---|---|
| Type | Description |
AlloyDbDatabaseReference.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AlloyDbDatabaseReference.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AlloyDbDatabaseReference.Builder |
|
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 |
intThe index to set the value at. |
value |
StringThe tableIds to set. |
| Returns | |
|---|---|
| Type | Description |
AlloyDbDatabaseReference.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final AlloyDbDatabaseReference.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
AlloyDbDatabaseReference.Builder |
|