# Interface DataSourceGcpResourceInfoOrBuilder (0.50.0)

0.50.0 (latest) 0.47.0 0.46.0 0.44.0 0.42.0 0.41.0 0.40.0 0.39.0 0.37.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.29.0 0.27.0 0.26.0 0.23.0 0.22.0 0.21.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface DataSourceGcpResourceInfoOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getCloudSqlInstanceProperties()

    public abstract CloudSqlInstanceDataSourceReferenceProperties getCloudSqlInstanceProperties()

Output only. The properties of the Cloud SQL instance.

`
.google.cloud.backupdr.v1.CloudSqlInstanceDataSourceReferenceProperties cloud_sql_instance_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.CloudSqlInstanceDataSourceReferenceProperties` | The cloudSqlInstanceProperties. |

### getCloudSqlInstancePropertiesOrBuilder()

    public abstract CloudSqlInstanceDataSourceReferencePropertiesOrBuilder getCloudSqlInstancePropertiesOrBuilder()

Output only. The properties of the Cloud SQL instance.

`
.google.cloud.backupdr.v1.CloudSqlInstanceDataSourceReferenceProperties cloud_sql_instance_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.CloudSqlInstanceDataSourceReferencePropertiesOrBuilder` |   |

### getGcpResourcename()

    public abstract String getGcpResourcename()

Output only. The resource name of the GCP resource.
Ex: projects/{project}/zones/{zone}/instances/{instance}

`string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The gcpResourcename. |

### getGcpResourcenameBytes()

    public abstract ByteString getGcpResourcenameBytes()

Output only. The resource name of the GCP resource.
Ex: projects/{project}/zones/{zone}/instances/{instance}

`string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for gcpResourcename. |

### getLocation()

    public abstract String getLocation()

Output only. The location of the GCP resource.
Ex: \<region\>/\<zone\>/"global"/"unspecified"

`string location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The location. |

### getLocationBytes()

    public abstract ByteString getLocationBytes()

Output only. The location of the GCP resource.
Ex: \<region\>/\<zone\>/"global"/"unspecified"

`string location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for location. |

### getResourcePropertiesCase()

    public abstract DataSourceGcpResourceInfo.ResourcePropertiesCase getResourcePropertiesCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.DataSourceGcpResourceInfo.ResourcePropertiesCase` |   |

### getType()

    public abstract String getType()

Output only. The type of the GCP resource.
Ex: compute.googleapis.com/Instance

`string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The type. |

### getTypeBytes()

    public abstract ByteString getTypeBytes()

Output only. The type of the GCP resource.
Ex: compute.googleapis.com/Instance

`string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for type. |

### hasCloudSqlInstanceProperties()

    public abstract boolean hasCloudSqlInstanceProperties()

Output only. The properties of the Cloud SQL instance.

`
.google.cloud.backupdr.v1.CloudSqlInstanceDataSourceReferenceProperties cloud_sql_instance_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the cloudSqlInstanceProperties field is set. |