# Interface SslConfigOrBuilder (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.alloydb.v1.SslConfigOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.alloydb.v1.SslConfigOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.alloydb.v1.SslConfigOrBuilder)

    public interface SslConfigOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getCaSource()

    public abstract SslConfig.CaSource getCaSource()

Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is
supported currently, and is the default value.

`.google.events.cloud.alloydb.v1.SslConfig.CaSource ca_source = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.alloydb.v1.SslConfig.CaSource` | The caSource. |

### getCaSourceValue()

    public abstract int getCaSourceValue()

Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is
supported currently, and is the default value.

`.google.events.cloud.alloydb.v1.SslConfig.CaSource ca_source = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for caSource. |

### getSslMode()

    public abstract SslConfig.SslMode getSslMode()

Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.

`.google.events.cloud.alloydb.v1.SslConfig.SslMode ssl_mode = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.alloydb.v1.SslConfig.SslMode` | The sslMode. |

### getSslModeValue()

    public abstract int getSslModeValue()

Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.

`.google.events.cloud.alloydb.v1.SslConfig.SslMode ssl_mode = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for sslMode. |