public static final class OnPremisesConfiguration.Builder extends GeneratedMessage.Builder<OnPremisesConfiguration.Builder> implements OnPremisesConfigurationOrBuilderOn-premises instance configuration.
Protobuf type google.cloud.sql.v1.OnPremisesConfiguration
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > OnPremisesConfiguration.BuilderImplements
OnPremisesConfigurationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllSelectedObjects(Iterable<? extends SelectedObjects> values)
public OnPremisesConfiguration.Builder addAllSelectedObjects(Iterable<? extends SelectedObjects> values)Optional. A list of objects that the user selects for replication from an external source instance.
repeated .google.cloud.sql.v1.SelectedObjects selected_objects = 16 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.sql.v1.SelectedObjects> |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
|
addSelectedObjects(SelectedObjects value)
public OnPremisesConfiguration.Builder addSelectedObjects(SelectedObjects value)Optional. A list of objects that the user selects for replication from an external source instance.
repeated .google.cloud.sql.v1.SelectedObjects selected_objects = 16 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
SelectedObjects |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
|
addSelectedObjects(SelectedObjects.Builder builderForValue)
public OnPremisesConfiguration.Builder addSelectedObjects(SelectedObjects.Builder builderForValue)Optional. A list of objects that the user selects for replication from an external source instance.
repeated .google.cloud.sql.v1.SelectedObjects selected_objects = 16 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SelectedObjects.Builder |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
|
addSelectedObjects(int index, SelectedObjects value)
public OnPremisesConfiguration.Builder addSelectedObjects(int index, SelectedObjects value)Optional. A list of objects that the user selects for replication from an external source instance.
repeated .google.cloud.sql.v1.SelectedObjects selected_objects = 16 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
SelectedObjects |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
|
addSelectedObjects(int index, SelectedObjects.Builder builderForValue)
public OnPremisesConfiguration.Builder addSelectedObjects(int index, SelectedObjects.Builder builderForValue)Optional. A list of objects that the user selects for replication from an external source instance.
repeated .google.cloud.sql.v1.SelectedObjects selected_objects = 16 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
SelectedObjects.Builder |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
|
addSelectedObjectsBuilder()
public SelectedObjects.Builder addSelectedObjectsBuilder()Optional. A list of objects that the user selects for replication from an external source instance.
repeated .google.cloud.sql.v1.SelectedObjects selected_objects = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SelectedObjects.Builder |
|
addSelectedObjectsBuilder(int index)
public SelectedObjects.Builder addSelectedObjectsBuilder(int index)Optional. A list of objects that the user selects for replication from an external source instance.
repeated .google.cloud.sql.v1.SelectedObjects selected_objects = 16 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SelectedObjects.Builder |
|
build()
public OnPremisesConfiguration build()| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration |
|
buildPartial()
public OnPremisesConfiguration buildPartial()| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration |
|
clear()
public OnPremisesConfiguration.Builder clear()| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
|
clearCaCertificate()
public OnPremisesConfiguration.Builder clearCaCertificate()PEM representation of the trusted CA's x509 certificate.
string ca_certificate = 5;
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
clearClientCertificate()
public OnPremisesConfiguration.Builder clearClientCertificate()PEM representation of the replica's x509 certificate.
string client_certificate = 6;
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
clearClientKey()
public OnPremisesConfiguration.Builder clearClientKey()PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate.
string client_key = 7;
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
clearDmsManaged()
public OnPremisesConfiguration.Builder clearDmsManaged()Output only. Indicates whether the resource is managed by Database Migration Service.
bool dms_managed = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
clearDumpFilePath()
public OnPremisesConfiguration.Builder clearDumpFilePath()The dump file to create the Cloud SQL replica.
string dump_file_path = 8;
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
clearHostPort()
public OnPremisesConfiguration.Builder clearHostPort()The host and port of the on-premises instance in host:port format
string host_port = 1;
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
clearKind()
public OnPremisesConfiguration.Builder clearKind() This is always sql#onPremisesConfiguration.
string kind = 2;
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
clearPassword()
public OnPremisesConfiguration.Builder clearPassword()The password for connecting to on-premises instance.
string password = 4;
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
clearSelectedObjects()
public OnPremisesConfiguration.Builder clearSelectedObjects()Optional. A list of objects that the user selects for replication from an external source instance.
repeated .google.cloud.sql.v1.SelectedObjects selected_objects = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
|
clearSourceInstance()
public OnPremisesConfiguration.Builder clearSourceInstance()The reference to Cloud SQL instance if the source is Cloud SQL.
.google.cloud.sql.v1.InstanceReference source_instance = 15;
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
|
clearSslOption()
public OnPremisesConfiguration.Builder clearSslOption()Optional. SSL option for replica connection to the on-premises source.
.google.cloud.sql.v1.OnPremisesConfiguration.SslOption ssl_option = 18 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
clearUsername()
public OnPremisesConfiguration.Builder clearUsername()The username for connecting to on-premises instance.
string username = 3;
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
getCaCertificate()
public String getCaCertificate()PEM representation of the trusted CA's x509 certificate.
string ca_certificate = 5;
| Returns | |
|---|---|
| Type | Description |
String |
The caCertificate. |
getCaCertificateBytes()
public ByteString getCaCertificateBytes()PEM representation of the trusted CA's x509 certificate.
string ca_certificate = 5;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for caCertificate. |
getClientCertificate()
public String getClientCertificate()PEM representation of the replica's x509 certificate.
string client_certificate = 6;
| Returns | |
|---|---|
| Type | Description |
String |
The clientCertificate. |
getClientCertificateBytes()
public ByteString getClientCertificateBytes()PEM representation of the replica's x509 certificate.
string client_certificate = 6;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for clientCertificate. |
getClientKey()
public String getClientKey()PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate.
string client_key = 7;
| Returns | |
|---|---|
| Type | Description |
String |
The clientKey. |
getClientKeyBytes()
public ByteString getClientKeyBytes()PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate.
string client_key = 7;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for clientKey. |
getDefaultInstanceForType()
public OnPremisesConfiguration getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDmsManaged()
public boolean getDmsManaged()Output only. Indicates whether the resource is managed by Database Migration Service.
bool dms_managed = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
The dmsManaged. |
getDumpFilePath()
public String getDumpFilePath()The dump file to create the Cloud SQL replica.
string dump_file_path = 8;
| Returns | |
|---|---|
| Type | Description |
String |
The dumpFilePath. |
getDumpFilePathBytes()
public ByteString getDumpFilePathBytes()The dump file to create the Cloud SQL replica.
string dump_file_path = 8;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for dumpFilePath. |
getHostPort()
public String getHostPort()The host and port of the on-premises instance in host:port format
string host_port = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The hostPort. |
getHostPortBytes()
public ByteString getHostPortBytes()The host and port of the on-premises instance in host:port format
string host_port = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for hostPort. |
getKind()
public String getKind() This is always sql#onPremisesConfiguration.
string kind = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The kind. |
getKindBytes()
public ByteString getKindBytes() This is always sql#onPremisesConfiguration.
string kind = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kind. |
getPassword()
public String getPassword()The password for connecting to on-premises instance.
string password = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The password. |
getPasswordBytes()
public ByteString getPasswordBytes()The password for connecting to on-premises instance.
string password = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for password. |
getSelectedObjects(int index)
public SelectedObjects getSelectedObjects(int index)Optional. A list of objects that the user selects for replication from an external source instance.
repeated .google.cloud.sql.v1.SelectedObjects selected_objects = 16 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SelectedObjects |
|
getSelectedObjectsBuilder(int index)
public SelectedObjects.Builder getSelectedObjectsBuilder(int index)Optional. A list of objects that the user selects for replication from an external source instance.
repeated .google.cloud.sql.v1.SelectedObjects selected_objects = 16 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SelectedObjects.Builder |
|
getSelectedObjectsBuilderList()
public List<SelectedObjects.Builder> getSelectedObjectsBuilderList()Optional. A list of objects that the user selects for replication from an external source instance.
repeated .google.cloud.sql.v1.SelectedObjects selected_objects = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getSelectedObjectsCount()
public int getSelectedObjectsCount()Optional. A list of objects that the user selects for replication from an external source instance.
repeated .google.cloud.sql.v1.SelectedObjects selected_objects = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getSelectedObjectsList()
public List<SelectedObjects> getSelectedObjectsList()Optional. A list of objects that the user selects for replication from an external source instance.
repeated .google.cloud.sql.v1.SelectedObjects selected_objects = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<SelectedObjects> |
|
getSelectedObjectsOrBuilder(int index)
public SelectedObjectsOrBuilder getSelectedObjectsOrBuilder(int index)Optional. A list of objects that the user selects for replication from an external source instance.
repeated .google.cloud.sql.v1.SelectedObjects selected_objects = 16 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SelectedObjectsOrBuilder |
|
getSelectedObjectsOrBuilderList()
public List<? extends SelectedObjectsOrBuilder> getSelectedObjectsOrBuilderList()Optional. A list of objects that the user selects for replication from an external source instance.
repeated .google.cloud.sql.v1.SelectedObjects selected_objects = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.sql.v1.SelectedObjectsOrBuilder> |
|
getSourceInstance()
public InstanceReference getSourceInstance()The reference to Cloud SQL instance if the source is Cloud SQL.
.google.cloud.sql.v1.InstanceReference source_instance = 15;
| Returns | |
|---|---|
| Type | Description |
InstanceReference |
The sourceInstance. |
getSourceInstanceBuilder()
public InstanceReference.Builder getSourceInstanceBuilder()The reference to Cloud SQL instance if the source is Cloud SQL.
.google.cloud.sql.v1.InstanceReference source_instance = 15;
| Returns | |
|---|---|
| Type | Description |
InstanceReference.Builder |
|
getSourceInstanceOrBuilder()
public InstanceReferenceOrBuilder getSourceInstanceOrBuilder()The reference to Cloud SQL instance if the source is Cloud SQL.
.google.cloud.sql.v1.InstanceReference source_instance = 15;
| Returns | |
|---|---|
| Type | Description |
InstanceReferenceOrBuilder |
|
getSslOption()
public OnPremisesConfiguration.SslOption getSslOption()Optional. SSL option for replica connection to the on-premises source.
.google.cloud.sql.v1.OnPremisesConfiguration.SslOption ssl_option = 18 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.SslOption |
The sslOption. |
getSslOptionValue()
public int getSslOptionValue()Optional. SSL option for replica connection to the on-premises source.
.google.cloud.sql.v1.OnPremisesConfiguration.SslOption ssl_option = 18 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for sslOption. |
getUsername()
public String getUsername()The username for connecting to on-premises instance.
string username = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The username. |
getUsernameBytes()
public ByteString getUsernameBytes()The username for connecting to on-premises instance.
string username = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for username. |
hasSourceInstance()
public boolean hasSourceInstance()The reference to Cloud SQL instance if the source is Cloud SQL.
.google.cloud.sql.v1.InstanceReference source_instance = 15;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sourceInstance field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(OnPremisesConfiguration other)
public OnPremisesConfiguration.Builder mergeFrom(OnPremisesConfiguration other)| Parameter | |
|---|---|
| Name | Description |
other |
OnPremisesConfiguration |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public OnPremisesConfiguration.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public OnPremisesConfiguration.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
|
mergeSourceInstance(InstanceReference value)
public OnPremisesConfiguration.Builder mergeSourceInstance(InstanceReference value)The reference to Cloud SQL instance if the source is Cloud SQL.
.google.cloud.sql.v1.InstanceReference source_instance = 15;
| Parameter | |
|---|---|
| Name | Description |
value |
InstanceReference |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
|
removeSelectedObjects(int index)
public OnPremisesConfiguration.Builder removeSelectedObjects(int index)Optional. A list of objects that the user selects for replication from an external source instance.
repeated .google.cloud.sql.v1.SelectedObjects selected_objects = 16 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
|
setCaCertificate(String value)
public OnPremisesConfiguration.Builder setCaCertificate(String value)PEM representation of the trusted CA's x509 certificate.
string ca_certificate = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe caCertificate to set. |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
setCaCertificateBytes(ByteString value)
public OnPremisesConfiguration.Builder setCaCertificateBytes(ByteString value)PEM representation of the trusted CA's x509 certificate.
string ca_certificate = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for caCertificate to set. |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
setClientCertificate(String value)
public OnPremisesConfiguration.Builder setClientCertificate(String value)PEM representation of the replica's x509 certificate.
string client_certificate = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe clientCertificate to set. |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
setClientCertificateBytes(ByteString value)
public OnPremisesConfiguration.Builder setClientCertificateBytes(ByteString value)PEM representation of the replica's x509 certificate.
string client_certificate = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for clientCertificate to set. |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
setClientKey(String value)
public OnPremisesConfiguration.Builder setClientKey(String value)PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate.
string client_key = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe clientKey to set. |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
setClientKeyBytes(ByteString value)
public OnPremisesConfiguration.Builder setClientKeyBytes(ByteString value)PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate.
string client_key = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for clientKey to set. |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
setDmsManaged(boolean value)
public OnPremisesConfiguration.Builder setDmsManaged(boolean value)Output only. Indicates whether the resource is managed by Database Migration Service.
bool dms_managed = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe dmsManaged to set. |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
setDumpFilePath(String value)
public OnPremisesConfiguration.Builder setDumpFilePath(String value)The dump file to create the Cloud SQL replica.
string dump_file_path = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe dumpFilePath to set. |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
setDumpFilePathBytes(ByteString value)
public OnPremisesConfiguration.Builder setDumpFilePathBytes(ByteString value)The dump file to create the Cloud SQL replica.
string dump_file_path = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for dumpFilePath to set. |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
setHostPort(String value)
public OnPremisesConfiguration.Builder setHostPort(String value)The host and port of the on-premises instance in host:port format
string host_port = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe hostPort to set. |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
setHostPortBytes(ByteString value)
public OnPremisesConfiguration.Builder setHostPortBytes(ByteString value)The host and port of the on-premises instance in host:port format
string host_port = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for hostPort to set. |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
setKind(String value)
public OnPremisesConfiguration.Builder setKind(String value) This is always sql#onPremisesConfiguration.
string kind = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe kind to set. |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
setKindBytes(ByteString value)
public OnPremisesConfiguration.Builder setKindBytes(ByteString value) This is always sql#onPremisesConfiguration.
string kind = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for kind to set. |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
setPassword(String value)
public OnPremisesConfiguration.Builder setPassword(String value)The password for connecting to on-premises instance.
string password = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe password to set. |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
setPasswordBytes(ByteString value)
public OnPremisesConfiguration.Builder setPasswordBytes(ByteString value)The password for connecting to on-premises instance.
string password = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for password to set. |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
setSelectedObjects(int index, SelectedObjects value)
public OnPremisesConfiguration.Builder setSelectedObjects(int index, SelectedObjects value)Optional. A list of objects that the user selects for replication from an external source instance.
repeated .google.cloud.sql.v1.SelectedObjects selected_objects = 16 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
SelectedObjects |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
|
setSelectedObjects(int index, SelectedObjects.Builder builderForValue)
public OnPremisesConfiguration.Builder setSelectedObjects(int index, SelectedObjects.Builder builderForValue)Optional. A list of objects that the user selects for replication from an external source instance.
repeated .google.cloud.sql.v1.SelectedObjects selected_objects = 16 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
SelectedObjects.Builder |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
|
setSourceInstance(InstanceReference value)
public OnPremisesConfiguration.Builder setSourceInstance(InstanceReference value)The reference to Cloud SQL instance if the source is Cloud SQL.
.google.cloud.sql.v1.InstanceReference source_instance = 15;
| Parameter | |
|---|---|
| Name | Description |
value |
InstanceReference |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
|
setSourceInstance(InstanceReference.Builder builderForValue)
public OnPremisesConfiguration.Builder setSourceInstance(InstanceReference.Builder builderForValue)The reference to Cloud SQL instance if the source is Cloud SQL.
.google.cloud.sql.v1.InstanceReference source_instance = 15;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
InstanceReference.Builder |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
|
setSslOption(OnPremisesConfiguration.SslOption value)
public OnPremisesConfiguration.Builder setSslOption(OnPremisesConfiguration.SslOption value)Optional. SSL option for replica connection to the on-premises source.
.google.cloud.sql.v1.OnPremisesConfiguration.SslOption ssl_option = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
OnPremisesConfiguration.SslOptionThe sslOption to set. |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
setSslOptionValue(int value)
public OnPremisesConfiguration.Builder setSslOptionValue(int value)Optional. SSL option for replica connection to the on-premises source.
.google.cloud.sql.v1.OnPremisesConfiguration.SslOption ssl_option = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for sslOption to set. |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
setUsername(String value)
public OnPremisesConfiguration.Builder setUsername(String value)The username for connecting to on-premises instance.
string username = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe username to set. |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |
setUsernameBytes(ByteString value)
public OnPremisesConfiguration.Builder setUsernameBytes(ByteString value)The username for connecting to on-premises instance.
string username = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for username to set. |
| Returns | |
|---|---|
| Type | Description |
OnPremisesConfiguration.Builder |
This builder for chaining. |