# Interface ConnectionProfileOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.ConnectionProfileOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.datastream.v1.ConnectionProfileOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.datastream.v1.ConnectionProfileOrBuilder)

    public interface ConnectionProfileOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### containsLabels(String key)

    public abstract boolean containsLabels(String key)

Labels.

`map<string, string> labels = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getBigqueryProfile()

    public abstract BigQueryProfile getBigqueryProfile()

BigQuery Connection Profile configuration.

`.google.events.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.BigQueryProfile` | The bigqueryProfile. |

### getBigqueryProfileOrBuilder()

    public abstract BigQueryProfileOrBuilder getBigqueryProfileOrBuilder()

BigQuery Connection Profile configuration.

`.google.events.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.BigQueryProfileOrBuilder` |   |

### getConnectivityCase()

    public abstract ConnectionProfile.ConnectivityCase getConnectivityCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.ConnectionProfile.ConnectivityCase` |   |

### getCreateTime()

    public abstract Timestamp getCreateTime()

Output only. The create time of the resource.

`.google.protobuf.Timestamp create_time = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The createTime. |

### getCreateTimeOrBuilder()

    public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The create time of the resource.

`.google.protobuf.Timestamp create_time = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getDisplayName()

    public abstract String getDisplayName()

Required. Display name.

`string display_name = 5;`

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

### getDisplayNameBytes()

    public abstract ByteString getDisplayNameBytes()

Required. Display name.

`string display_name = 5;`

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

### getForwardSshConnectivity()

    public abstract ForwardSshTunnelConnectivity getForwardSshConnectivity()

Forward SSH tunnel connectivity.

`
.google.events.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.ForwardSshTunnelConnectivity` | The forwardSshConnectivity. |

### getForwardSshConnectivityOrBuilder()

    public abstract ForwardSshTunnelConnectivityOrBuilder getForwardSshConnectivityOrBuilder()

Forward SSH tunnel connectivity.

`
.google.events.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder` |   |

### getGcsProfile()

    public abstract GcsProfile getGcsProfile()

Cloud Storage ConnectionProfile configuration.

`.google.events.cloud.datastream.v1.GcsProfile gcs_profile = 101;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.GcsProfile` | The gcsProfile. |

### getGcsProfileOrBuilder()

    public abstract GcsProfileOrBuilder getGcsProfileOrBuilder()

Cloud Storage ConnectionProfile configuration.

`.google.events.cloud.datastream.v1.GcsProfile gcs_profile = 101;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.GcsProfileOrBuilder` |   |

### getLabels()

    public abstract Map<String,String> getLabels()

Use [#getLabelsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.ConnectionProfileOrBuilder#com_google_events_cloud_datastream_v1_ConnectionProfileOrBuilder_getLabelsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsCount()

    public abstract int getLabelsCount()

Labels.

`map<string, string> labels = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getLabelsMap()

    public abstract Map<String,String> getLabelsMap()

Labels.

`map<string, string> labels = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsOrDefault(String key, String defaultValue)

    public abstract String getLabelsOrDefault(String key, String defaultValue)

Labels.

`map<string, string> labels = 4;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getLabelsOrThrow(String key)

    public abstract String getLabelsOrThrow(String key)

Labels.

`map<string, string> labels = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getMysqlProfile()

    public abstract MysqlProfile getMysqlProfile()

MySQL ConnectionProfile configuration.

`.google.events.cloud.datastream.v1.MysqlProfile mysql_profile = 102;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.MysqlProfile` | The mysqlProfile. |

### getMysqlProfileOrBuilder()

    public abstract MysqlProfileOrBuilder getMysqlProfileOrBuilder()

MySQL ConnectionProfile configuration.

`.google.events.cloud.datastream.v1.MysqlProfile mysql_profile = 102;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.MysqlProfileOrBuilder` |   |

### getName()

    public abstract String getName()

Output only. The resource's name.

`string name = 1;`

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

### getNameBytes()

    public abstract ByteString getNameBytes()

Output only. The resource's name.

`string name = 1;`

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

### getOracleProfile()

    public abstract OracleProfile getOracleProfile()

Oracle ConnectionProfile configuration.

`.google.events.cloud.datastream.v1.OracleProfile oracle_profile = 100;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.OracleProfile` | The oracleProfile. |

### getOracleProfileOrBuilder()

    public abstract OracleProfileOrBuilder getOracleProfileOrBuilder()

Oracle ConnectionProfile configuration.

`.google.events.cloud.datastream.v1.OracleProfile oracle_profile = 100;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.OracleProfileOrBuilder` |   |

### getPostgresqlProfile()

    public abstract PostgresqlProfile getPostgresqlProfile()

PostgreSQL Connection Profile configuration.

`.google.events.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.PostgresqlProfile` | The postgresqlProfile. |

### getPostgresqlProfileOrBuilder()

    public abstract PostgresqlProfileOrBuilder getPostgresqlProfileOrBuilder()

PostgreSQL Connection Profile configuration.

`.google.events.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.PostgresqlProfileOrBuilder` |   |

### getPrivateConnectivity()

    public abstract PrivateConnectivity getPrivateConnectivity()

Private connectivity.

`.google.events.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.PrivateConnectivity` | The privateConnectivity. |

### getPrivateConnectivityOrBuilder()

    public abstract PrivateConnectivityOrBuilder getPrivateConnectivityOrBuilder()

Private connectivity.

`.google.events.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.PrivateConnectivityOrBuilder` |   |

### getProfileCase()

    public abstract ConnectionProfile.ProfileCase getProfileCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.ConnectionProfile.ProfileCase` |   |

### getStaticServiceIpConnectivity()

    public abstract StaticServiceIpConnectivity getStaticServiceIpConnectivity()

Static Service IP connectivity.

`
.google.events.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.StaticServiceIpConnectivity` | The staticServiceIpConnectivity. |

### getStaticServiceIpConnectivityOrBuilder()

    public abstract StaticServiceIpConnectivityOrBuilder getStaticServiceIpConnectivityOrBuilder()

Static Service IP connectivity.

`
.google.events.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder` |   |

### getUpdateTime()

    public abstract Timestamp getUpdateTime()

Output only. The update time of the resource.

`.google.protobuf.Timestamp update_time = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The updateTime. |

### getUpdateTimeOrBuilder()

    public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The update time of the resource.

`.google.protobuf.Timestamp update_time = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### hasBigqueryProfile()

    public abstract boolean hasBigqueryProfile()

BigQuery Connection Profile configuration.

`.google.events.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103;`

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

### hasCreateTime()

    public abstract boolean hasCreateTime()

Output only. The create time of the resource.

`.google.protobuf.Timestamp create_time = 2;`

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

### hasForwardSshConnectivity()

    public abstract boolean hasForwardSshConnectivity()

Forward SSH tunnel connectivity.

`
.google.events.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201;
`

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

### hasGcsProfile()

    public abstract boolean hasGcsProfile()

Cloud Storage ConnectionProfile configuration.

`.google.events.cloud.datastream.v1.GcsProfile gcs_profile = 101;`

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

### hasMysqlProfile()

    public abstract boolean hasMysqlProfile()

MySQL ConnectionProfile configuration.

`.google.events.cloud.datastream.v1.MysqlProfile mysql_profile = 102;`

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

### hasOracleProfile()

    public abstract boolean hasOracleProfile()

Oracle ConnectionProfile configuration.

`.google.events.cloud.datastream.v1.OracleProfile oracle_profile = 100;`

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

### hasPostgresqlProfile()

    public abstract boolean hasPostgresqlProfile()

PostgreSQL Connection Profile configuration.

`.google.events.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104;`

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

### hasPrivateConnectivity()

    public abstract boolean hasPrivateConnectivity()

Private connectivity.

`.google.events.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202;`

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

### hasStaticServiceIpConnectivity()

    public abstract boolean hasStaticServiceIpConnectivity()

Static Service IP connectivity.

`
.google.events.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200;
`

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

### hasUpdateTime()

    public abstract boolean hasUpdateTime()

Output only. The update time of the resource.

`.google.protobuf.Timestamp update_time = 3;`

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