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