Interface MongodbProfileOrBuilder (1.71.0)

public interface MongodbProfileOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getHostAddresses(int index)

public abstract HostAddress getHostAddresses(int index)

Required. List of host addresses for a MongoDB cluster. For SRV connection format, this list must contain exactly one DNS host without a port. For Standard connection format, this list must contain all the required hosts in the cluster with their respective ports.

repeated .google.cloud.datastream.v1.HostAddress host_addresses = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
HostAddress

getHostAddressesCount()

public abstract int getHostAddressesCount()

Required. List of host addresses for a MongoDB cluster. For SRV connection format, this list must contain exactly one DNS host without a port. For Standard connection format, this list must contain all the required hosts in the cluster with their respective ports.

repeated .google.cloud.datastream.v1.HostAddress host_addresses = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getHostAddressesList()

public abstract List<HostAddress> getHostAddressesList()

Required. List of host addresses for a MongoDB cluster. For SRV connection format, this list must contain exactly one DNS host without a port. For Standard connection format, this list must contain all the required hosts in the cluster with their respective ports.

repeated .google.cloud.datastream.v1.HostAddress host_addresses = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<HostAddress>

getHostAddressesOrBuilder(int index)

public abstract HostAddressOrBuilder getHostAddressesOrBuilder(int index)

Required. List of host addresses for a MongoDB cluster. For SRV connection format, this list must contain exactly one DNS host without a port. For Standard connection format, this list must contain all the required hosts in the cluster with their respective ports.

repeated .google.cloud.datastream.v1.HostAddress host_addresses = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
HostAddressOrBuilder

getHostAddressesOrBuilderList()

public abstract List<? extends HostAddressOrBuilder> getHostAddressesOrBuilderList()

Required. List of host addresses for a MongoDB cluster. For SRV connection format, this list must contain exactly one DNS host without a port. For Standard connection format, this list must contain all the required hosts in the cluster with their respective ports.

repeated .google.cloud.datastream.v1.HostAddress host_addresses = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.datastream.v1.HostAddressOrBuilder>

getMongodbConnectionFormatCase()

public abstract MongodbProfile.MongodbConnectionFormatCase getMongodbConnectionFormatCase()
Returns
Type Description
MongodbProfile.MongodbConnectionFormatCase

getPassword()

public abstract String getPassword()

Optional. Password for the MongoDB connection. Mutually exclusive with the secret_manager_stored_password field.

string password = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The password.

getPasswordBytes()

public abstract ByteString getPasswordBytes()

Optional. Password for the MongoDB connection. Mutually exclusive with the secret_manager_stored_password field.

string password = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for password.

getReplicaSet()

public abstract String getReplicaSet()

Optional. Name of the replica set. Only needed for self hosted replica set type MongoDB cluster. For SRV connection format, this field must be empty. For Standard connection format, this field must be specified.

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

Returns
Type Description
String

The replicaSet.

getReplicaSetBytes()

public abstract ByteString getReplicaSetBytes()

Optional. Name of the replica set. Only needed for self hosted replica set type MongoDB cluster. For SRV connection format, this field must be empty. For Standard connection format, this field must be specified.

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

Returns
Type Description
ByteString

The bytes for replicaSet.

getSecretManagerStoredPassword()

public abstract String getSecretManagerStoredPassword()

Optional. A reference to a Secret Manager resource name storing the SQLServer connection password. Mutually exclusive with the password field.

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

Returns
Type Description
String

The secretManagerStoredPassword.

getSecretManagerStoredPasswordBytes()

public abstract ByteString getSecretManagerStoredPasswordBytes()

Optional. A reference to a Secret Manager resource name storing the SQLServer connection password. Mutually exclusive with the password field.

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

Returns
Type Description
ByteString

The bytes for secretManagerStoredPassword.

getSrvConnectionFormat()

public abstract SrvConnectionFormat getSrvConnectionFormat()

Srv connection format.

.google.cloud.datastream.v1.SrvConnectionFormat srv_connection_format = 101;

Returns
Type Description
SrvConnectionFormat

The srvConnectionFormat.

getSrvConnectionFormatOrBuilder()

public abstract SrvConnectionFormatOrBuilder getSrvConnectionFormatOrBuilder()

Srv connection format.

.google.cloud.datastream.v1.SrvConnectionFormat srv_connection_format = 101;

Returns
Type Description
SrvConnectionFormatOrBuilder

getSslConfig()

public abstract MongodbSslConfig getSslConfig()

Optional. SSL configuration for the MongoDB connection.

.google.cloud.datastream.v1.MongodbSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MongodbSslConfig

The sslConfig.

getSslConfigOrBuilder()

public abstract MongodbSslConfigOrBuilder getSslConfigOrBuilder()

Optional. SSL configuration for the MongoDB connection.

.google.cloud.datastream.v1.MongodbSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MongodbSslConfigOrBuilder

getStandardConnectionFormat()

public abstract StandardConnectionFormat getStandardConnectionFormat()

Standard connection format.

.google.cloud.datastream.v1.StandardConnectionFormat standard_connection_format = 102;

Returns
Type Description
StandardConnectionFormat

The standardConnectionFormat.

getStandardConnectionFormatOrBuilder()

public abstract StandardConnectionFormatOrBuilder getStandardConnectionFormatOrBuilder()

Standard connection format.

.google.cloud.datastream.v1.StandardConnectionFormat standard_connection_format = 102;

Returns
Type Description
StandardConnectionFormatOrBuilder

getUsername()

public abstract String getUsername()

Required. Username for the MongoDB connection.

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

Returns
Type Description
String

The username.

getUsernameBytes()

public abstract ByteString getUsernameBytes()

Required. Username for the MongoDB connection.

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

Returns
Type Description
ByteString

The bytes for username.

hasSrvConnectionFormat()

public abstract boolean hasSrvConnectionFormat()

Srv connection format.

.google.cloud.datastream.v1.SrvConnectionFormat srv_connection_format = 101;

Returns
Type Description
boolean

Whether the srvConnectionFormat field is set.

hasSslConfig()

public abstract boolean hasSslConfig()

Optional. SSL configuration for the MongoDB connection.

.google.cloud.datastream.v1.MongodbSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the sslConfig field is set.

hasStandardConnectionFormat()

public abstract boolean hasStandardConnectionFormat()

Standard connection format.

.google.cloud.datastream.v1.StandardConnectionFormat standard_connection_format = 102;

Returns
Type Description
boolean

Whether the standardConnectionFormat field is set.