Class MongodbProfile (1.71.0)

public final class MongodbProfile extends GeneratedMessageV3 implements MongodbProfileOrBuilder

MongoDB profile.

Protobuf type google.cloud.datastream.v1.MongodbProfile

Static Fields

HOST_ADDRESSES_FIELD_NUMBER

public static final int HOST_ADDRESSES_FIELD_NUMBER
Field Value
Type Description
int

PASSWORD_FIELD_NUMBER

public static final int PASSWORD_FIELD_NUMBER
Field Value
Type Description
int

REPLICA_SET_FIELD_NUMBER

public static final int REPLICA_SET_FIELD_NUMBER
Field Value
Type Description
int

SECRET_MANAGER_STORED_PASSWORD_FIELD_NUMBER

public static final int SECRET_MANAGER_STORED_PASSWORD_FIELD_NUMBER
Field Value
Type Description
int

SRV_CONNECTION_FORMAT_FIELD_NUMBER

public static final int SRV_CONNECTION_FORMAT_FIELD_NUMBER
Field Value
Type Description
int

SSL_CONFIG_FIELD_NUMBER

public static final int SSL_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

STANDARD_CONNECTION_FORMAT_FIELD_NUMBER

public static final int STANDARD_CONNECTION_FORMAT_FIELD_NUMBER
Field Value
Type Description
int

USERNAME_FIELD_NUMBER

public static final int USERNAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static MongodbProfile getDefaultInstance()
Returns
Type Description
MongodbProfile

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static MongodbProfile.Builder newBuilder()
Returns
Type Description
MongodbProfile.Builder

newBuilder(MongodbProfile prototype)

public static MongodbProfile.Builder newBuilder(MongodbProfile prototype)
Parameter
Name Description
prototype MongodbProfile
Returns
Type Description
MongodbProfile.Builder

parseDelimitedFrom(InputStream input)

public static MongodbProfile parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MongodbProfile
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MongodbProfile parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MongodbProfile
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static MongodbProfile parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
MongodbProfile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MongodbProfile parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MongodbProfile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MongodbProfile parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
MongodbProfile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MongodbProfile parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MongodbProfile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MongodbProfile parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
MongodbProfile
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MongodbProfile parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MongodbProfile
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static MongodbProfile parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MongodbProfile
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MongodbProfile parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MongodbProfile
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static MongodbProfile parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
MongodbProfile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MongodbProfile parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MongodbProfile
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<MongodbProfile> parser()
Returns
Type Description
Parser<MongodbProfile>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public MongodbProfile getDefaultInstanceForType()
Returns
Type Description
MongodbProfile

getHostAddresses(int index)

public 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 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 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 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 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 MongodbProfile.MongodbConnectionFormatCase getMongodbConnectionFormatCase()
Returns
Type Description
MongodbProfile.MongodbConnectionFormatCase

getParserForType()

public Parser<MongodbProfile> getParserForType()
Returns
Type Description
Parser<MongodbProfile>
Overrides

getPassword()

public 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 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 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 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 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 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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSrvConnectionFormat()

public SrvConnectionFormat getSrvConnectionFormat()

Srv connection format.

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

Returns
Type Description
SrvConnectionFormat

The srvConnectionFormat.

getSrvConnectionFormatOrBuilder()

public SrvConnectionFormatOrBuilder getSrvConnectionFormatOrBuilder()

Srv connection format.

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

Returns
Type Description
SrvConnectionFormatOrBuilder

getSslConfig()

public 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 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 StandardConnectionFormat getStandardConnectionFormat()

Standard connection format.

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

Returns
Type Description
StandardConnectionFormat

The standardConnectionFormat.

getStandardConnectionFormatOrBuilder()

public StandardConnectionFormatOrBuilder getStandardConnectionFormatOrBuilder()

Standard connection format.

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

Returns
Type Description
StandardConnectionFormatOrBuilder

getUsername()

public String getUsername()

Required. Username for the MongoDB connection.

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

Returns
Type Description
String

The username.

getUsernameBytes()

public 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 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 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 boolean hasStandardConnectionFormat()

Standard connection format.

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

Returns
Type Description
boolean

Whether the standardConnectionFormat field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public MongodbProfile.Builder newBuilderForType()
Returns
Type Description
MongodbProfile.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MongodbProfile.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
MongodbProfile.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public MongodbProfile.Builder toBuilder()
Returns
Type Description
MongodbProfile.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException