Class MySqlReplicaConfiguration (0.1.0)

public final class MySqlReplicaConfiguration extends GeneratedMessage implements MySqlReplicaConfigurationOrBuilder

Read-replica configuration specific to MySQL databases.

Protobuf type google.cloud.sql.v1beta4.MySqlReplicaConfiguration

Static Fields

CA_CERTIFICATE_FIELD_NUMBER

public static final int CA_CERTIFICATE_FIELD_NUMBER
Field Value
Type Description
int

CLIENT_CERTIFICATE_FIELD_NUMBER

public static final int CLIENT_CERTIFICATE_FIELD_NUMBER
Field Value
Type Description
int

CLIENT_KEY_FIELD_NUMBER

public static final int CLIENT_KEY_FIELD_NUMBER
Field Value
Type Description
int

CONNECT_RETRY_INTERVAL_FIELD_NUMBER

public static final int CONNECT_RETRY_INTERVAL_FIELD_NUMBER
Field Value
Type Description
int

DUMP_FILE_PATH_FIELD_NUMBER

public static final int DUMP_FILE_PATH_FIELD_NUMBER
Field Value
Type Description
int

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
Type Description
int

MASTER_HEARTBEAT_PERIOD_FIELD_NUMBER

public static final int MASTER_HEARTBEAT_PERIOD_FIELD_NUMBER
Field Value
Type Description
int

PASSWORD_FIELD_NUMBER

public static final int PASSWORD_FIELD_NUMBER
Field Value
Type Description
int

SSL_CIPHER_FIELD_NUMBER

public static final int SSL_CIPHER_FIELD_NUMBER
Field Value
Type Description
int

USERNAME_FIELD_NUMBER

public static final int USERNAME_FIELD_NUMBER
Field Value
Type Description
int

VERIFY_SERVER_CERTIFICATE_FIELD_NUMBER

public static final int VERIFY_SERVER_CERTIFICATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static MySqlReplicaConfiguration getDefaultInstance()
Returns
Type Description
MySqlReplicaConfiguration

getDescriptor()

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

newBuilder()

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

newBuilder(MySqlReplicaConfiguration prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

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 = 7;

Returns
Type Description
String

The clientCertificate.

getClientCertificateBytes()

public ByteString getClientCertificateBytes()

PEM representation of the replica's x509 certificate.

string client_certificate = 7;

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 = 8;

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 = 8;

Returns
Type Description
ByteString

The bytes for clientKey.

getConnectRetryInterval()

public Int32Value getConnectRetryInterval()

Seconds to wait between connect retries. MySQL's default is 60 seconds.

.google.protobuf.Int32Value connect_retry_interval = 4;

Returns
Type Description
Int32Value

The connectRetryInterval.

getConnectRetryIntervalOrBuilder()

public Int32ValueOrBuilder getConnectRetryIntervalOrBuilder()

Seconds to wait between connect retries. MySQL's default is 60 seconds.

.google.protobuf.Int32Value connect_retry_interval = 4;

Returns
Type Description
Int32ValueOrBuilder

getDefaultInstanceForType()

public MySqlReplicaConfiguration getDefaultInstanceForType()
Returns
Type Description
MySqlReplicaConfiguration

getDumpFilePath()

public String getDumpFilePath()

Path to a SQL dump file in Google Cloud Storage from which the replica instance is to be created. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also supported. Dumps have the binlog co-ordinates from which replication begins. This can be accomplished by setting --master-data to 1 when using mysqldump.

string dump_file_path = 1;

Returns
Type Description
String

The dumpFilePath.

getDumpFilePathBytes()

public ByteString getDumpFilePathBytes()

Path to a SQL dump file in Google Cloud Storage from which the replica instance is to be created. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also supported. Dumps have the binlog co-ordinates from which replication begins. This can be accomplished by setting --master-data to 1 when using mysqldump.

string dump_file_path = 1;

Returns
Type Description
ByteString

The bytes for dumpFilePath.

getKind()

public String getKind()

This is always sql#mysqlReplicaConfiguration.

string kind = 11;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

This is always sql#mysqlReplicaConfiguration.

string kind = 11;

Returns
Type Description
ByteString

The bytes for kind.

getMasterHeartbeatPeriod()

public Int64Value getMasterHeartbeatPeriod()

Interval in milliseconds between replication heartbeats.

.google.protobuf.Int64Value master_heartbeat_period = 5;

Returns
Type Description
Int64Value

The masterHeartbeatPeriod.

getMasterHeartbeatPeriodOrBuilder()

public Int64ValueOrBuilder getMasterHeartbeatPeriodOrBuilder()

Interval in milliseconds between replication heartbeats.

.google.protobuf.Int64Value master_heartbeat_period = 5;

Returns
Type Description
Int64ValueOrBuilder

getParserForType()

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

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSslCipher()

public String getSslCipher()

A list of permissible ciphers to use for SSL encryption.

string ssl_cipher = 9;

Returns
Type Description
String

The sslCipher.

getSslCipherBytes()

public ByteString getSslCipherBytes()

A list of permissible ciphers to use for SSL encryption.

string ssl_cipher = 9;

Returns
Type Description
ByteString

The bytes for sslCipher.

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.

getVerifyServerCertificate()

public BoolValue getVerifyServerCertificate()

Whether or not to check the primary instance's Common Name value in the certificate that it sends during the SSL handshake.

.google.protobuf.BoolValue verify_server_certificate = 10;

Returns
Type Description
BoolValue

The verifyServerCertificate.

getVerifyServerCertificateOrBuilder()

public BoolValueOrBuilder getVerifyServerCertificateOrBuilder()

Whether or not to check the primary instance's Common Name value in the certificate that it sends during the SSL handshake.

.google.protobuf.BoolValue verify_server_certificate = 10;

Returns
Type Description
BoolValueOrBuilder

hasConnectRetryInterval()

public boolean hasConnectRetryInterval()

Seconds to wait between connect retries. MySQL's default is 60 seconds.

.google.protobuf.Int32Value connect_retry_interval = 4;

Returns
Type Description
boolean

Whether the connectRetryInterval field is set.

hasMasterHeartbeatPeriod()

public boolean hasMasterHeartbeatPeriod()

Interval in milliseconds between replication heartbeats.

.google.protobuf.Int64Value master_heartbeat_period = 5;

Returns
Type Description
boolean

Whether the masterHeartbeatPeriod field is set.

hasVerifyServerCertificate()

public boolean hasVerifyServerCertificate()

Whether or not to check the primary instance's Common Name value in the certificate that it sends during the SSL handshake.

.google.protobuf.BoolValue verify_server_certificate = 10;

Returns
Type Description
boolean

Whether the verifyServerCertificate field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected MySqlReplicaConfiguration.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
MySqlReplicaConfiguration.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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