- 1.71.0 (latest)
- 1.69.0
- 1.67.0
- 1.66.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.2
- 1.1.1
- 1.0.0
- 0.4.2
public static final class MongodbProfile.Builder extends GeneratedMessageV3.Builder<MongodbProfile.Builder> implements MongodbProfileOrBuilder
MongoDB profile.
Protobuf type google.cloud.datastream.v1.MongodbProfile
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MongodbProfile.BuilderImplements
MongodbProfileOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllHostAddresses(Iterable<? extends HostAddress> values)
public MongodbProfile.Builder addAllHostAddresses(Iterable<? extends HostAddress> values)
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 |
values |
Iterable<? extends com.google.cloud.datastream.v1.HostAddress> |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
addHostAddresses(HostAddress value)
public MongodbProfile.Builder addHostAddresses(HostAddress value)
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 |
value |
HostAddress |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
addHostAddresses(HostAddress.Builder builderForValue)
public MongodbProfile.Builder addHostAddresses(HostAddress.Builder builderForValue)
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 |
builderForValue |
HostAddress.Builder |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
addHostAddresses(int index, HostAddress value)
public MongodbProfile.Builder addHostAddresses(int index, HostAddress value)
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];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
HostAddress |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
addHostAddresses(int index, HostAddress.Builder builderForValue)
public MongodbProfile.Builder addHostAddresses(int index, HostAddress.Builder builderForValue)
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];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
HostAddress.Builder |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
addHostAddressesBuilder()
public HostAddress.Builder addHostAddressesBuilder()
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 |
HostAddress.Builder |
addHostAddressesBuilder(int index)
public HostAddress.Builder addHostAddressesBuilder(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.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MongodbProfile.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
build()
public MongodbProfile build()
Returns | |
---|---|
Type | Description |
MongodbProfile |
buildPartial()
public MongodbProfile buildPartial()
Returns | |
---|---|
Type | Description |
MongodbProfile |
clear()
public MongodbProfile.Builder clear()
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
clearField(Descriptors.FieldDescriptor field)
public MongodbProfile.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
clearHostAddresses()
public MongodbProfile.Builder clearHostAddresses()
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 |
MongodbProfile.Builder |
clearMongodbConnectionFormat()
public MongodbProfile.Builder clearMongodbConnectionFormat()
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public MongodbProfile.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
clearPassword()
public MongodbProfile.Builder clearPassword()
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 |
MongodbProfile.Builder |
This builder for chaining. |
clearReplicaSet()
public MongodbProfile.Builder clearReplicaSet()
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 |
MongodbProfile.Builder |
This builder for chaining. |
clearSecretManagerStoredPassword()
public MongodbProfile.Builder clearSecretManagerStoredPassword()
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 |
MongodbProfile.Builder |
This builder for chaining. |
clearSrvConnectionFormat()
public MongodbProfile.Builder clearSrvConnectionFormat()
Srv connection format.
.google.cloud.datastream.v1.SrvConnectionFormat srv_connection_format = 101;
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
clearSslConfig()
public MongodbProfile.Builder clearSslConfig()
Optional. SSL configuration for the MongoDB connection.
.google.cloud.datastream.v1.MongodbSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
clearStandardConnectionFormat()
public MongodbProfile.Builder clearStandardConnectionFormat()
Standard connection format.
.google.cloud.datastream.v1.StandardConnectionFormat standard_connection_format = 102;
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
clearUsername()
public MongodbProfile.Builder clearUsername()
Required. Username for the MongoDB connection.
string username = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
This builder for chaining. |
clone()
public MongodbProfile.Builder clone()
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
getDefaultInstanceForType()
public MongodbProfile getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
MongodbProfile |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 |
getHostAddressesBuilder(int index)
public HostAddress.Builder getHostAddressesBuilder(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.Builder |
getHostAddressesBuilderList()
public List<HostAddress.Builder> getHostAddressesBuilderList()
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<Builder> |
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 |
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. |
getSrvConnectionFormat()
public SrvConnectionFormat getSrvConnectionFormat()
Srv connection format.
.google.cloud.datastream.v1.SrvConnectionFormat srv_connection_format = 101;
Returns | |
---|---|
Type | Description |
SrvConnectionFormat |
The srvConnectionFormat. |
getSrvConnectionFormatBuilder()
public SrvConnectionFormat.Builder getSrvConnectionFormatBuilder()
Srv connection format.
.google.cloud.datastream.v1.SrvConnectionFormat srv_connection_format = 101;
Returns | |
---|---|
Type | Description |
SrvConnectionFormat.Builder |
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. |
getSslConfigBuilder()
public MongodbSslConfig.Builder getSslConfigBuilder()
Optional. SSL configuration for the MongoDB connection.
.google.cloud.datastream.v1.MongodbSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
MongodbSslConfig.Builder |
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. |
getStandardConnectionFormatBuilder()
public StandardConnectionFormat.Builder getStandardConnectionFormatBuilder()
Standard connection format.
.google.cloud.datastream.v1.StandardConnectionFormat standard_connection_format = 102;
Returns | |
---|---|
Type | Description |
StandardConnectionFormat.Builder |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(MongodbProfile other)
public MongodbProfile.Builder mergeFrom(MongodbProfile other)
Parameter | |
---|---|
Name | Description |
other |
MongodbProfile |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MongodbProfile.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public MongodbProfile.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
mergeSrvConnectionFormat(SrvConnectionFormat value)
public MongodbProfile.Builder mergeSrvConnectionFormat(SrvConnectionFormat value)
Srv connection format.
.google.cloud.datastream.v1.SrvConnectionFormat srv_connection_format = 101;
Parameter | |
---|---|
Name | Description |
value |
SrvConnectionFormat |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
mergeSslConfig(MongodbSslConfig value)
public MongodbProfile.Builder mergeSslConfig(MongodbSslConfig value)
Optional. SSL configuration for the MongoDB connection.
.google.cloud.datastream.v1.MongodbSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
MongodbSslConfig |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
mergeStandardConnectionFormat(StandardConnectionFormat value)
public MongodbProfile.Builder mergeStandardConnectionFormat(StandardConnectionFormat value)
Standard connection format.
.google.cloud.datastream.v1.StandardConnectionFormat standard_connection_format = 102;
Parameter | |
---|---|
Name | Description |
value |
StandardConnectionFormat |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MongodbProfile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
removeHostAddresses(int index)
public MongodbProfile.Builder removeHostAddresses(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 |
MongodbProfile.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public MongodbProfile.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
setHostAddresses(int index, HostAddress value)
public MongodbProfile.Builder setHostAddresses(int index, HostAddress value)
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];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
HostAddress |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
setHostAddresses(int index, HostAddress.Builder builderForValue)
public MongodbProfile.Builder setHostAddresses(int index, HostAddress.Builder builderForValue)
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];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
HostAddress.Builder |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
setPassword(String value)
public MongodbProfile.Builder setPassword(String value)
Optional. Password for the MongoDB connection. Mutually exclusive with the
secret_manager_stored_password
field.
string password = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The password to set. |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
This builder for chaining. |
setPasswordBytes(ByteString value)
public MongodbProfile.Builder setPasswordBytes(ByteString value)
Optional. Password for the MongoDB connection. Mutually exclusive with the
secret_manager_stored_password
field.
string password = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for password to set. |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MongodbProfile.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
setReplicaSet(String value)
public MongodbProfile.Builder setReplicaSet(String value)
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];
Parameter | |
---|---|
Name | Description |
value |
String The replicaSet to set. |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
This builder for chaining. |
setReplicaSetBytes(ByteString value)
public MongodbProfile.Builder setReplicaSetBytes(ByteString value)
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];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for replicaSet to set. |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
This builder for chaining. |
setSecretManagerStoredPassword(String value)
public MongodbProfile.Builder setSecretManagerStoredPassword(String value)
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];
Parameter | |
---|---|
Name | Description |
value |
String The secretManagerStoredPassword to set. |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
This builder for chaining. |
setSecretManagerStoredPasswordBytes(ByteString value)
public MongodbProfile.Builder setSecretManagerStoredPasswordBytes(ByteString value)
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];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for secretManagerStoredPassword to set. |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
This builder for chaining. |
setSrvConnectionFormat(SrvConnectionFormat value)
public MongodbProfile.Builder setSrvConnectionFormat(SrvConnectionFormat value)
Srv connection format.
.google.cloud.datastream.v1.SrvConnectionFormat srv_connection_format = 101;
Parameter | |
---|---|
Name | Description |
value |
SrvConnectionFormat |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
setSrvConnectionFormat(SrvConnectionFormat.Builder builderForValue)
public MongodbProfile.Builder setSrvConnectionFormat(SrvConnectionFormat.Builder builderForValue)
Srv connection format.
.google.cloud.datastream.v1.SrvConnectionFormat srv_connection_format = 101;
Parameter | |
---|---|
Name | Description |
builderForValue |
SrvConnectionFormat.Builder |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
setSslConfig(MongodbSslConfig value)
public MongodbProfile.Builder setSslConfig(MongodbSslConfig value)
Optional. SSL configuration for the MongoDB connection.
.google.cloud.datastream.v1.MongodbSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
MongodbSslConfig |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
setSslConfig(MongodbSslConfig.Builder builderForValue)
public MongodbProfile.Builder setSslConfig(MongodbSslConfig.Builder builderForValue)
Optional. SSL configuration for the MongoDB connection.
.google.cloud.datastream.v1.MongodbSslConfig ssl_config = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
MongodbSslConfig.Builder |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
setStandardConnectionFormat(StandardConnectionFormat value)
public MongodbProfile.Builder setStandardConnectionFormat(StandardConnectionFormat value)
Standard connection format.
.google.cloud.datastream.v1.StandardConnectionFormat standard_connection_format = 102;
Parameter | |
---|---|
Name | Description |
value |
StandardConnectionFormat |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
setStandardConnectionFormat(StandardConnectionFormat.Builder builderForValue)
public MongodbProfile.Builder setStandardConnectionFormat(StandardConnectionFormat.Builder builderForValue)
Standard connection format.
.google.cloud.datastream.v1.StandardConnectionFormat standard_connection_format = 102;
Parameter | |
---|---|
Name | Description |
builderForValue |
StandardConnectionFormat.Builder |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final MongodbProfile.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
setUsername(String value)
public MongodbProfile.Builder setUsername(String value)
Required. Username for the MongoDB connection.
string username = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The username to set. |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
This builder for chaining. |
setUsernameBytes(ByteString value)
public MongodbProfile.Builder setUsernameBytes(ByteString value)
Required. Username for the MongoDB connection.
string username = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for username to set. |
Returns | |
---|---|
Type | Description |
MongodbProfile.Builder |
This builder for chaining. |