public interface CloudSqlInstanceOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getInstances(int index)
public abstract String getInstances(int index) A list of Cloud SQL instance connection names. Cloud Run uses these
to establish connections to the specified Cloud SQL instances.
While the SQL instance name itself is unique within a project,
the full connection name requires the location for proper routing.
Format: {project}:{location}:{instance}
Example: my-project:us-central1:my-instance
You can find this value on the instance's Overview page in the
Google Cloud console or by using the following gcloud command:
<code><code>sh
gcloud sql instances describe INSTANCE_NAME \
--format='value(connectionName)'
</code></code>
Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run.
repeated string instances = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The instances at the given index. |
getInstancesBytes(int index)
public abstract ByteString getInstancesBytes(int index) A list of Cloud SQL instance connection names. Cloud Run uses these
to establish connections to the specified Cloud SQL instances.
While the SQL instance name itself is unique within a project,
the full connection name requires the location for proper routing.
Format: {project}:{location}:{instance}
Example: my-project:us-central1:my-instance
You can find this value on the instance's Overview page in the
Google Cloud console or by using the following gcloud command:
<code><code>sh
gcloud sql instances describe INSTANCE_NAME \
--format='value(connectionName)'
</code></code>
Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run.
repeated string instances = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the instances at the given index. |
getInstancesCount()
public abstract int getInstancesCount() A list of Cloud SQL instance connection names. Cloud Run uses these
to establish connections to the specified Cloud SQL instances.
While the SQL instance name itself is unique within a project,
the full connection name requires the location for proper routing.
Format: {project}:{location}:{instance}
Example: my-project:us-central1:my-instance
You can find this value on the instance's Overview page in the
Google Cloud console or by using the following gcloud command:
<code><code>sh
gcloud sql instances describe INSTANCE_NAME \
--format='value(connectionName)'
</code></code>
Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run.
repeated string instances = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The count of instances. |
getInstancesList()
public abstract List<String> getInstancesList() A list of Cloud SQL instance connection names. Cloud Run uses these
to establish connections to the specified Cloud SQL instances.
While the SQL instance name itself is unique within a project,
the full connection name requires the location for proper routing.
Format: {project}:{location}:{instance}
Example: my-project:us-central1:my-instance
You can find this value on the instance's Overview page in the
Google Cloud console or by using the following gcloud command:
<code><code>sh
gcloud sql instances describe INSTANCE_NAME \
--format='value(connectionName)'
</code></code>
Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run.
repeated string instances = 1;
| Returns | |
|---|---|
| Type | Description |
List<String> |
A list containing the instances. |