Class DatabaseInstance.SqlFailoverReplica.Builder (0.1.0)

public static final class DatabaseInstance.SqlFailoverReplica.Builder extends GeneratedMessage.Builder<DatabaseInstance.SqlFailoverReplica.Builder> implements DatabaseInstance.SqlFailoverReplicaOrBuilder

Protobuf type google.cloud.sql.v1.DatabaseInstance.SqlFailoverReplica

Static Methods

getDescriptor()

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

Methods

build()

public DatabaseInstance.SqlFailoverReplica build()
Returns
Type Description
DatabaseInstance.SqlFailoverReplica

buildPartial()

public DatabaseInstance.SqlFailoverReplica buildPartial()
Returns
Type Description
DatabaseInstance.SqlFailoverReplica

clear()

public DatabaseInstance.SqlFailoverReplica.Builder clear()
Returns
Type Description
DatabaseInstance.SqlFailoverReplica.Builder
Overrides

clearAvailable()

public DatabaseInstance.SqlFailoverReplica.Builder clearAvailable()

The availability status of the failover replica. A false status indicates that the failover replica is out of sync. The primary instance can only failover to the failover replica when the status is true.

.google.protobuf.BoolValue available = 2;

Returns
Type Description
DatabaseInstance.SqlFailoverReplica.Builder

clearName()

public DatabaseInstance.SqlFailoverReplica.Builder clearName()

The name of the failover replica. If specified at instance creation, a failover replica is created for the instance. The name doesn't include the project ID.

string name = 1;

Returns
Type Description
DatabaseInstance.SqlFailoverReplica.Builder

This builder for chaining.

getAvailable()

public BoolValue getAvailable()

The availability status of the failover replica. A false status indicates that the failover replica is out of sync. The primary instance can only failover to the failover replica when the status is true.

.google.protobuf.BoolValue available = 2;

Returns
Type Description
BoolValue

The available.

getAvailableBuilder()

public BoolValue.Builder getAvailableBuilder()

The availability status of the failover replica. A false status indicates that the failover replica is out of sync. The primary instance can only failover to the failover replica when the status is true.

.google.protobuf.BoolValue available = 2;

Returns
Type Description
Builder

getAvailableOrBuilder()

public BoolValueOrBuilder getAvailableOrBuilder()

The availability status of the failover replica. A false status indicates that the failover replica is out of sync. The primary instance can only failover to the failover replica when the status is true.

.google.protobuf.BoolValue available = 2;

Returns
Type Description
BoolValueOrBuilder

getDefaultInstanceForType()

public DatabaseInstance.SqlFailoverReplica getDefaultInstanceForType()
Returns
Type Description
DatabaseInstance.SqlFailoverReplica

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

The name of the failover replica. If specified at instance creation, a failover replica is created for the instance. The name doesn't include the project ID.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the failover replica. If specified at instance creation, a failover replica is created for the instance. The name doesn't include the project ID.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

hasAvailable()

public boolean hasAvailable()

The availability status of the failover replica. A false status indicates that the failover replica is out of sync. The primary instance can only failover to the failover replica when the status is true.

.google.protobuf.BoolValue available = 2;

Returns
Type Description
boolean

Whether the available field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAvailable(BoolValue value)

public DatabaseInstance.SqlFailoverReplica.Builder mergeAvailable(BoolValue value)

The availability status of the failover replica. A false status indicates that the failover replica is out of sync. The primary instance can only failover to the failover replica when the status is true.

.google.protobuf.BoolValue available = 2;

Parameter
Name Description
value BoolValue
Returns
Type Description
DatabaseInstance.SqlFailoverReplica.Builder

mergeFrom(DatabaseInstance.SqlFailoverReplica other)

public DatabaseInstance.SqlFailoverReplica.Builder mergeFrom(DatabaseInstance.SqlFailoverReplica other)
Parameter
Name Description
other DatabaseInstance.SqlFailoverReplica
Returns
Type Description
DatabaseInstance.SqlFailoverReplica.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DatabaseInstance.SqlFailoverReplica.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DatabaseInstance.SqlFailoverReplica.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DatabaseInstance.SqlFailoverReplica.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DatabaseInstance.SqlFailoverReplica.Builder
Overrides

setAvailable(BoolValue value)

public DatabaseInstance.SqlFailoverReplica.Builder setAvailable(BoolValue value)

The availability status of the failover replica. A false status indicates that the failover replica is out of sync. The primary instance can only failover to the failover replica when the status is true.

.google.protobuf.BoolValue available = 2;

Parameter
Name Description
value BoolValue
Returns
Type Description
DatabaseInstance.SqlFailoverReplica.Builder

setAvailable(BoolValue.Builder builderForValue)

public DatabaseInstance.SqlFailoverReplica.Builder setAvailable(BoolValue.Builder builderForValue)

The availability status of the failover replica. A false status indicates that the failover replica is out of sync. The primary instance can only failover to the failover replica when the status is true.

.google.protobuf.BoolValue available = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DatabaseInstance.SqlFailoverReplica.Builder

setName(String value)

public DatabaseInstance.SqlFailoverReplica.Builder setName(String value)

The name of the failover replica. If specified at instance creation, a failover replica is created for the instance. The name doesn't include the project ID.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DatabaseInstance.SqlFailoverReplica.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DatabaseInstance.SqlFailoverReplica.Builder setNameBytes(ByteString value)

The name of the failover replica. If specified at instance creation, a failover replica is created for the instance. The name doesn't include the project ID.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DatabaseInstance.SqlFailoverReplica.Builder

This builder for chaining.