# Interface GoldengateMongodbConnectionPropertiesOrBuilder (0.42.0)

0.42.0 (latest) 0.40.0 0.37.0 0.36.0 0.34.0 0.32.0 0.31.0 0.29.0 0.27.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.19.0 0.17.0 0.16.0 0.13.0 0.12.0 0.11.0 0.9.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 GoldengateMongodbConnectionPropertiesOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getConnectionPasswordOptionsCase()

    public abstract GoldengateMongodbConnectionProperties.ConnectionPasswordOptionsCase getConnectionPasswordOptionsCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-oracledatabase/latest/com.google.cloud.oracledatabase.v1.GoldengateMongodbConnectionProperties.ConnectionPasswordOptionsCase` |   |

### getConnectionString()

    public abstract String getConnectionString()

Optional. MongoDB connection string.
e.g.: 'mongodb://mongodb0.example.com:27017/recordsrecords'

`string connection_string = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getConnectionStringBytes()

    public abstract ByteString getConnectionStringBytes()

Optional. MongoDB connection string.
e.g.: 'mongodb://mongodb0.example.com:27017/recordsrecords'

`string connection_string = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getDatabaseId()

    public abstract String getDatabaseId()

Optional. The OCID of the Oracle Autonomous Json Database.

`string database_id = 5 [(.google.api.field_behavior) = OPTIONAL];`

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

### getDatabaseIdBytes()

    public abstract ByteString getDatabaseIdBytes()

Optional. The OCID of the Oracle Autonomous Json Database.

`string database_id = 5 [(.google.api.field_behavior) = OPTIONAL];`

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

### getPassword()

    public abstract String getPassword()

Optional. Input only. The password Oracle Goldengate uses to connect the
Mongodb connection in plain text.

`
string password = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
`

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

### getPasswordBytes()

    public abstract ByteString getPasswordBytes()

Optional. Input only. The password Oracle Goldengate uses to connect the
Mongodb connection in plain text.

`
string password = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
`

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

### getPasswordSecretVersion()

    public abstract String getPasswordSecretVersion()

Optional. Input only. The resource name of a secret version in Secret
Manager which contains the password Oracle Goldengate uses to connect the
Mongodb connection. Format:
projects/{project}/secrets/{secret}/versions/{version}.

`
string password_secret_version = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.resource_reference) = { ... }
`

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

### getPasswordSecretVersionBytes()

    public abstract ByteString getPasswordSecretVersionBytes()

Optional. Input only. The resource name of a secret version in Secret
Manager which contains the password Oracle Goldengate uses to connect the
Mongodb connection. Format:
projects/{project}/secrets/{secret}/versions/{version}.

`
string password_secret_version = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.resource_reference) = { ... }
`

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

### getSecurityProtocol()

    public abstract GoldengateMongodbConnectionProperties.MongodbSecurityProtocol getSecurityProtocol()

Optional. Security Type for MongoDB.

`
.google.cloud.oracledatabase.v1.GoldengateMongodbConnectionProperties.MongodbSecurityProtocol security_protocol = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-oracledatabase/latest/com.google.cloud.oracledatabase.v1.GoldengateMongodbConnectionProperties.MongodbSecurityProtocol` | The securityProtocol. |

### getSecurityProtocolValue()

    public abstract int getSecurityProtocolValue()

Optional. Security Type for MongoDB.

`
.google.cloud.oracledatabase.v1.GoldengateMongodbConnectionProperties.MongodbSecurityProtocol security_protocol = 6 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getTechnologyType()

    public abstract String getTechnologyType()

Optional. The technology type of MongodbConnection.

`string technology_type = 1 [(.google.api.field_behavior) = OPTIONAL];`

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

### getTechnologyTypeBytes()

    public abstract ByteString getTechnologyTypeBytes()

Optional. The technology type of MongodbConnection.

`string technology_type = 1 [(.google.api.field_behavior) = OPTIONAL];`

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

### getTlsCaFile()

    public abstract String getTlsCaFile()

Optional. Database Certificate - The base64 encoded content of a .pem file,
containing the server public key (for 1 and 2-way SSL).

`string tls_ca_file = 7 [(.google.api.field_behavior) = OPTIONAL];`

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

### getTlsCaFileBytes()

    public abstract ByteString getTlsCaFileBytes()

Optional. Database Certificate - The base64 encoded content of a .pem file,
containing the server public key (for 1 and 2-way SSL).

`string tls_ca_file = 7 [(.google.api.field_behavior) = OPTIONAL];`

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

### getTlsCertificateKeyFile()

    public abstract String getTlsCertificateKeyFile()

Optional. Client Certificate - The base64 encoded content of a .pem file,
containing the client public key (for 2-way SSL).

`string tls_certificate_key_file = 8 [(.google.api.field_behavior) = OPTIONAL];`

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

### getTlsCertificateKeyFileBytes()

    public abstract ByteString getTlsCertificateKeyFileBytes()

Optional. Client Certificate - The base64 encoded content of a .pem file,
containing the client public key (for 2-way SSL).

`string tls_certificate_key_file = 8 [(.google.api.field_behavior) = OPTIONAL];`

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

### getTlsCertificateKeyFilePassword()

    public abstract String getTlsCertificateKeyFilePassword()

Optional. Input only. The Client Certificate key file password in plain
text.

`
string tls_certificate_key_file_password = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
`

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

### getTlsCertificateKeyFilePasswordBytes()

    public abstract ByteString getTlsCertificateKeyFilePasswordBytes()

Optional. Input only. The Client Certificate key file password in plain
text.

`
string tls_certificate_key_file_password = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
`

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

### getTlsCertificateKeyFilePasswordOptionsCase()

    public abstract GoldengateMongodbConnectionProperties.TlsCertificateKeyFilePasswordOptionsCase getTlsCertificateKeyFilePasswordOptionsCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-oracledatabase/latest/com.google.cloud.oracledatabase.v1.GoldengateMongodbConnectionProperties.TlsCertificateKeyFilePasswordOptionsCase` |   |

### getTlsCertificateKeyFilePasswordSecretVersion()

    public abstract String getTlsCertificateKeyFilePasswordSecretVersion()

Optional. Input only. The resource name of a secret version in Secret
Manager which contains the Client Certificate key file password in Secret
Manager. Format: projects/{project}/secrets/{secret}/versions/{version}.

`
string tls_certificate_key_file_password_secret_version = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.resource_reference) = { ... }
`

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

### getTlsCertificateKeyFilePasswordSecretVersionBytes()

    public abstract ByteString getTlsCertificateKeyFilePasswordSecretVersionBytes()

Optional. Input only. The resource name of a secret version in Secret
Manager which contains the Client Certificate key file password in Secret
Manager. Format: projects/{project}/secrets/{secret}/versions/{version}.

`
string tls_certificate_key_file_password_secret_version = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.resource_reference) = { ... }
`

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

### getUsername()

    public abstract String getUsername()

Optional. The username Oracle Goldengate uses to connect to the database.

`string username = 3 [(.google.api.field_behavior) = OPTIONAL];`

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

### getUsernameBytes()

    public abstract ByteString getUsernameBytes()

Optional. The username Oracle Goldengate uses to connect to the database.

`string username = 3 [(.google.api.field_behavior) = OPTIONAL];`

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

### hasPassword()

    public abstract boolean hasPassword()

Optional. Input only. The password Oracle Goldengate uses to connect the
Mongodb connection in plain text.

`
string password = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
`

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

### hasPasswordSecretVersion()

    public abstract boolean hasPasswordSecretVersion()

Optional. Input only. The resource name of a secret version in Secret
Manager which contains the password Oracle Goldengate uses to connect the
Mongodb connection. Format:
projects/{project}/secrets/{secret}/versions/{version}.

`
string password_secret_version = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.resource_reference) = { ... }
`

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

### hasTlsCertificateKeyFilePassword()

    public abstract boolean hasTlsCertificateKeyFilePassword()

Optional. Input only. The Client Certificate key file password in plain
text.

`
string tls_certificate_key_file_password = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
`

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

### hasTlsCertificateKeyFilePasswordSecretVersion()

    public abstract boolean hasTlsCertificateKeyFilePasswordSecretVersion()

Optional. Input only. The resource name of a secret version in Secret
Manager which contains the Client Certificate key file password in Secret
Manager. Format: projects/{project}/secrets/{secret}/versions/{version}.

`
string tls_certificate_key_file_password_secret_version = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.resource_reference) = { ... }
`

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