public static final class DemoteMasterMySqlReplicaConfiguration.Builder extends GeneratedMessage.Builder<DemoteMasterMySqlReplicaConfiguration.Builder> implements DemoteMasterMySqlReplicaConfigurationOrBuilderRead-replica configuration specific to MySQL databases.
Protobuf type google.cloud.sql.v1.DemoteMasterMySqlReplicaConfiguration
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DemoteMasterMySqlReplicaConfiguration.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public DemoteMasterMySqlReplicaConfiguration build()| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration |
|
buildPartial()
public DemoteMasterMySqlReplicaConfiguration buildPartial()| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration |
|
clear()
public DemoteMasterMySqlReplicaConfiguration.Builder clear()| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration.Builder |
|
clearCaCertificate()
public DemoteMasterMySqlReplicaConfiguration.Builder clearCaCertificate()PEM representation of the trusted CA's x509 certificate.
string ca_certificate = 6;
| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration.Builder |
This builder for chaining. |
clearClientCertificate()
public DemoteMasterMySqlReplicaConfiguration.Builder clearClientCertificate()PEM representation of the replica's x509 certificate.
string client_certificate = 5;
| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration.Builder |
This builder for chaining. |
clearClientKey()
public DemoteMasterMySqlReplicaConfiguration.Builder clearClientKey()PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate. The format of the replica's private key can be either PKCS #1 or PKCS #8.
string client_key = 4;
| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration.Builder |
This builder for chaining. |
clearKind()
public DemoteMasterMySqlReplicaConfiguration.Builder clearKind() This is always sql#demoteMasterMysqlReplicaConfiguration.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration.Builder |
This builder for chaining. |
clearPassword()
public DemoteMasterMySqlReplicaConfiguration.Builder clearPassword()The password for the replication connection.
string password = 3;
| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration.Builder |
This builder for chaining. |
clearUsername()
public DemoteMasterMySqlReplicaConfiguration.Builder clearUsername()The username for the replication connection.
string username = 2;
| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration.Builder |
This builder for chaining. |
getCaCertificate()
public String getCaCertificate()PEM representation of the trusted CA's x509 certificate.
string ca_certificate = 6;
| Returns | |
|---|---|
| Type | Description |
String |
The caCertificate. |
getCaCertificateBytes()
public ByteString getCaCertificateBytes()PEM representation of the trusted CA's x509 certificate.
string ca_certificate = 6;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for caCertificate. |
getClientCertificate()
public String getClientCertificate()PEM representation of the replica's x509 certificate.
string client_certificate = 5;
| Returns | |
|---|---|
| Type | Description |
String |
The clientCertificate. |
getClientCertificateBytes()
public ByteString getClientCertificateBytes()PEM representation of the replica's x509 certificate.
string client_certificate = 5;
| 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. The format of the replica's private key can be either PKCS #1 or PKCS #8.
string client_key = 4;
| 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. The format of the replica's private key can be either PKCS #1 or PKCS #8.
string client_key = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for clientKey. |
getDefaultInstanceForType()
public DemoteMasterMySqlReplicaConfiguration getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getKind()
public String getKind() This is always sql#demoteMasterMysqlReplicaConfiguration.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The kind. |
getKindBytes()
public ByteString getKindBytes() This is always sql#demoteMasterMysqlReplicaConfiguration.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kind. |
getPassword()
public String getPassword()The password for the replication connection.
string password = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The password. |
getPasswordBytes()
public ByteString getPasswordBytes()The password for the replication connection.
string password = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for password. |
getUsername()
public String getUsername()The username for the replication connection.
string username = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The username. |
getUsernameBytes()
public ByteString getUsernameBytes()The username for the replication connection.
string username = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for username. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(DemoteMasterMySqlReplicaConfiguration other)
public DemoteMasterMySqlReplicaConfiguration.Builder mergeFrom(DemoteMasterMySqlReplicaConfiguration other)| Parameter | |
|---|---|
| Name | Description |
other |
DemoteMasterMySqlReplicaConfiguration |
| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DemoteMasterMySqlReplicaConfiguration.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DemoteMasterMySqlReplicaConfiguration.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration.Builder |
|
setCaCertificate(String value)
public DemoteMasterMySqlReplicaConfiguration.Builder setCaCertificate(String value)PEM representation of the trusted CA's x509 certificate.
string ca_certificate = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe caCertificate to set. |
| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration.Builder |
This builder for chaining. |
setCaCertificateBytes(ByteString value)
public DemoteMasterMySqlReplicaConfiguration.Builder setCaCertificateBytes(ByteString value)PEM representation of the trusted CA's x509 certificate.
string ca_certificate = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for caCertificate to set. |
| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration.Builder |
This builder for chaining. |
setClientCertificate(String value)
public DemoteMasterMySqlReplicaConfiguration.Builder setClientCertificate(String value)PEM representation of the replica's x509 certificate.
string client_certificate = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe clientCertificate to set. |
| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration.Builder |
This builder for chaining. |
setClientCertificateBytes(ByteString value)
public DemoteMasterMySqlReplicaConfiguration.Builder setClientCertificateBytes(ByteString value)PEM representation of the replica's x509 certificate.
string client_certificate = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for clientCertificate to set. |
| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration.Builder |
This builder for chaining. |
setClientKey(String value)
public DemoteMasterMySqlReplicaConfiguration.Builder setClientKey(String value)PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate. The format of the replica's private key can be either PKCS #1 or PKCS #8.
string client_key = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe clientKey to set. |
| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration.Builder |
This builder for chaining. |
setClientKeyBytes(ByteString value)
public DemoteMasterMySqlReplicaConfiguration.Builder setClientKeyBytes(ByteString value)PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate. The format of the replica's private key can be either PKCS #1 or PKCS #8.
string client_key = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for clientKey to set. |
| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration.Builder |
This builder for chaining. |
setKind(String value)
public DemoteMasterMySqlReplicaConfiguration.Builder setKind(String value) This is always sql#demoteMasterMysqlReplicaConfiguration.
string kind = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe kind to set. |
| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration.Builder |
This builder for chaining. |
setKindBytes(ByteString value)
public DemoteMasterMySqlReplicaConfiguration.Builder setKindBytes(ByteString value) This is always sql#demoteMasterMysqlReplicaConfiguration.
string kind = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for kind to set. |
| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration.Builder |
This builder for chaining. |
setPassword(String value)
public DemoteMasterMySqlReplicaConfiguration.Builder setPassword(String value)The password for the replication connection.
string password = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe password to set. |
| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration.Builder |
This builder for chaining. |
setPasswordBytes(ByteString value)
public DemoteMasterMySqlReplicaConfiguration.Builder setPasswordBytes(ByteString value)The password for the replication connection.
string password = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for password to set. |
| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration.Builder |
This builder for chaining. |
setUsername(String value)
public DemoteMasterMySqlReplicaConfiguration.Builder setUsername(String value)The username for the replication connection.
string username = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe username to set. |
| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration.Builder |
This builder for chaining. |
setUsernameBytes(ByteString value)
public DemoteMasterMySqlReplicaConfiguration.Builder setUsernameBytes(ByteString value)The username for the replication connection.
string username = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for username to set. |
| Returns | |
|---|---|
| Type | Description |
DemoteMasterMySqlReplicaConfiguration.Builder |
This builder for chaining. |