public final class MongodbProfile extends GeneratedMessageV3 implements MongodbProfileOrBuilder
MongoDB profile.
Protobuf type google.cloud.datastream.v1.MongodbProfile
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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 |
|
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 |
|
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static MongodbProfile.Builder newBuilder()
newBuilder(MongodbProfile prototype)
public static MongodbProfile.Builder newBuilder(MongodbProfile prototype)
public static MongodbProfile parseDelimitedFrom(InputStream input)
public static MongodbProfile parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static MongodbProfile parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MongodbProfile parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static MongodbProfile parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MongodbProfile parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MongodbProfile parseFrom(CodedInputStream input)
public static MongodbProfile parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MongodbProfile parseFrom(InputStream input)
public static MongodbProfile parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static MongodbProfile parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MongodbProfile parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<MongodbProfile> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public MongodbProfile getDefaultInstanceForType()
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
|
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];
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
|
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> |
|
public MongodbProfile.MongodbConnectionFormatCase getMongodbConnectionFormatCase()
getParserForType()
public Parser<MongodbProfile> getParserForType()
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
public SrvConnectionFormat getSrvConnectionFormat()
Srv connection format.
.google.cloud.datastream.v1.SrvConnectionFormat srv_connection_format = 101;
public SrvConnectionFormatOrBuilder getSrvConnectionFormatOrBuilder()
Srv connection format.
.google.cloud.datastream.v1.SrvConnectionFormat srv_connection_format = 101;
getSslConfig()
public MongodbSslConfig getSslConfig()
Optional. SSL configuration for the MongoDB connection.
.google.cloud.datastream.v1.MongodbSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL];
getSslConfigOrBuilder()
public MongodbSslConfigOrBuilder getSslConfigOrBuilder()
Optional. SSL configuration for the MongoDB connection.
.google.cloud.datastream.v1.MongodbSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL];
public StandardConnectionFormat getStandardConnectionFormat()
Standard connection format.
.google.cloud.datastream.v1.StandardConnectionFormat standard_connection_format = 102;
public StandardConnectionFormatOrBuilder getStandardConnectionFormatOrBuilder()
Standard connection format.
.google.cloud.datastream.v1.StandardConnectionFormat standard_connection_format = 102;
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.
|
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.
|
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()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public MongodbProfile.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MongodbProfile.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public MongodbProfile.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides