# Google Cloud Datastream V1 Client - Class PostgresqlSslConfig (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.1 2.2.0 2.1.1 2.0.1 1.5.5 1.4.2 1.3.0 1.2.1 1.1.0 1.0.5 Reference documentation and code samples for the Google Cloud Datastream V1 Client class PostgresqlSslConfig.

PostgreSQL SSL configuration information.

Generated from protobuf message `google.cloud.datastream.v1.PostgresqlSslConfig`

## Namespace

Google \\ Cloud \\ Datastream \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ server_verification` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.PostgresqlSslConfig.ServerVerification` If this field is set, the communication will be encrypted with TLS encryption and the server identity will be authenticated. |
| `↳ server_and_client_verification` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.PostgresqlSslConfig.ServerAndClientVerification` If this field is set, the communication will be encrypted with TLS encryption and both the server identity and the client identity will be authenticated. |

### getServerVerification

If this field is set, the communication will be encrypted with TLS
encryption and the server identity will be authenticated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.PostgresqlSslConfig.ServerVerification|null` |   |

### hasServerVerification

### setServerVerification

If this field is set, the communication will be encrypted with TLS
encryption and the server identity will be authenticated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.PostgresqlSslConfig.ServerVerification` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getServerAndClientVerification

If this field is set, the communication will be encrypted with TLS
encryption and both the server identity and the client identity will be
authenticated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.PostgresqlSslConfig.ServerAndClientVerification|null` |   |

### hasServerAndClientVerification

### setServerAndClientVerification

If this field is set, the communication will be encrypted with TLS
encryption and both the server identity and the client identity will be
authenticated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.PostgresqlSslConfig.ServerAndClientVerification` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEncryptionSetting

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |