Class ChangeQuorumCloudDatabaseAction.Builder (6.77.0)

public static final class ChangeQuorumCloudDatabaseAction.Builder extends GeneratedMessageV3.Builder<ChangeQuorumCloudDatabaseAction.Builder> implements ChangeQuorumCloudDatabaseActionOrBuilder

Action that changes quorum of a Cloud Spanner database.

Protobuf type google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction

Static Methods

getDescriptor()

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

Methods

addAllServingLocations(Iterable<String> values)

public ChangeQuorumCloudDatabaseAction.Builder addAllServingLocations(Iterable<String> values)

The locations of the serving regions, e.g. "asia-south1".

repeated string serving_locations = 2;

Parameter
Name Description
values Iterable<String>

The servingLocations to add.

Returns
Type Description
ChangeQuorumCloudDatabaseAction.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ChangeQuorumCloudDatabaseAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ChangeQuorumCloudDatabaseAction.Builder
Overrides

addServingLocations(String value)

public ChangeQuorumCloudDatabaseAction.Builder addServingLocations(String value)

The locations of the serving regions, e.g. "asia-south1".

repeated string serving_locations = 2;

Parameter
Name Description
value String

The servingLocations to add.

Returns
Type Description
ChangeQuorumCloudDatabaseAction.Builder

This builder for chaining.

addServingLocationsBytes(ByteString value)

public ChangeQuorumCloudDatabaseAction.Builder addServingLocationsBytes(ByteString value)

The locations of the serving regions, e.g. "asia-south1".

repeated string serving_locations = 2;

Parameter
Name Description
value ByteString

The bytes of the servingLocations to add.

Returns
Type Description
ChangeQuorumCloudDatabaseAction.Builder

This builder for chaining.

build()

public ChangeQuorumCloudDatabaseAction build()
Returns
Type Description
ChangeQuorumCloudDatabaseAction

buildPartial()

public ChangeQuorumCloudDatabaseAction buildPartial()
Returns
Type Description
ChangeQuorumCloudDatabaseAction

clear()

public ChangeQuorumCloudDatabaseAction.Builder clear()
Returns
Type Description
ChangeQuorumCloudDatabaseAction.Builder
Overrides

clearDatabaseUri()

public ChangeQuorumCloudDatabaseAction.Builder clearDatabaseUri()

The fully qualified uri of the database whose quorum has to be changed.

optional string database_uri = 1;

Returns
Type Description
ChangeQuorumCloudDatabaseAction.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ChangeQuorumCloudDatabaseAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ChangeQuorumCloudDatabaseAction.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ChangeQuorumCloudDatabaseAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ChangeQuorumCloudDatabaseAction.Builder
Overrides

clearServingLocations()

public ChangeQuorumCloudDatabaseAction.Builder clearServingLocations()

The locations of the serving regions, e.g. "asia-south1".

repeated string serving_locations = 2;

Returns
Type Description
ChangeQuorumCloudDatabaseAction.Builder

This builder for chaining.

clone()

public ChangeQuorumCloudDatabaseAction.Builder clone()
Returns
Type Description
ChangeQuorumCloudDatabaseAction.Builder
Overrides

getDatabaseUri()

public String getDatabaseUri()

The fully qualified uri of the database whose quorum has to be changed.

optional string database_uri = 1;

Returns
Type Description
String

The databaseUri.

getDatabaseUriBytes()

public ByteString getDatabaseUriBytes()

The fully qualified uri of the database whose quorum has to be changed.

optional string database_uri = 1;

Returns
Type Description
ByteString

The bytes for databaseUri.

getDefaultInstanceForType()

public ChangeQuorumCloudDatabaseAction getDefaultInstanceForType()
Returns
Type Description
ChangeQuorumCloudDatabaseAction

getDescriptorForType()

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

getServingLocations(int index)

public String getServingLocations(int index)

The locations of the serving regions, e.g. "asia-south1".

repeated string serving_locations = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The servingLocations at the given index.

getServingLocationsBytes(int index)

public ByteString getServingLocationsBytes(int index)

The locations of the serving regions, e.g. "asia-south1".

repeated string serving_locations = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the servingLocations at the given index.

getServingLocationsCount()

public int getServingLocationsCount()

The locations of the serving regions, e.g. "asia-south1".

repeated string serving_locations = 2;

Returns
Type Description
int

The count of servingLocations.

getServingLocationsList()

public ProtocolStringList getServingLocationsList()

The locations of the serving regions, e.g. "asia-south1".

repeated string serving_locations = 2;

Returns
Type Description
ProtocolStringList

A list containing the servingLocations.

hasDatabaseUri()

public boolean hasDatabaseUri()

The fully qualified uri of the database whose quorum has to be changed.

optional string database_uri = 1;

Returns
Type Description
boolean

Whether the databaseUri field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ChangeQuorumCloudDatabaseAction other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ChangeQuorumCloudDatabaseAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ChangeQuorumCloudDatabaseAction.Builder
Overrides

setDatabaseUri(String value)

public ChangeQuorumCloudDatabaseAction.Builder setDatabaseUri(String value)

The fully qualified uri of the database whose quorum has to be changed.

optional string database_uri = 1;

Parameter
Name Description
value String

The databaseUri to set.

Returns
Type Description
ChangeQuorumCloudDatabaseAction.Builder

This builder for chaining.

setDatabaseUriBytes(ByteString value)

public ChangeQuorumCloudDatabaseAction.Builder setDatabaseUriBytes(ByteString value)

The fully qualified uri of the database whose quorum has to be changed.

optional string database_uri = 1;

Parameter
Name Description
value ByteString

The bytes for databaseUri to set.

Returns
Type Description
ChangeQuorumCloudDatabaseAction.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ChangeQuorumCloudDatabaseAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ChangeQuorumCloudDatabaseAction.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ChangeQuorumCloudDatabaseAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ChangeQuorumCloudDatabaseAction.Builder
Overrides

setServingLocations(int index, String value)

public ChangeQuorumCloudDatabaseAction.Builder setServingLocations(int index, String value)

The locations of the serving regions, e.g. "asia-south1".

repeated string serving_locations = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The servingLocations to set.

Returns
Type Description
ChangeQuorumCloudDatabaseAction.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ChangeQuorumCloudDatabaseAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ChangeQuorumCloudDatabaseAction.Builder
Overrides