Class ReconfigureCloudDatabaseAction.Builder (6.56.0)

public static final class ReconfigureCloudDatabaseAction.Builder extends GeneratedMessageV3.Builder<ReconfigureCloudDatabaseAction.Builder> implements ReconfigureCloudDatabaseActionOrBuilder

Action that reconfigures a Cloud Spanner database.

Protobuf type google.spanner.executor.v1.ReconfigureCloudDatabaseAction

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllServingLocations(Iterable<String> values)

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

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

repeated string serving_locations = 2;

Parameter
NameDescription
valuesIterable<String>

The servingLocations to add.

Returns
TypeDescription
ReconfigureCloudDatabaseAction.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReconfigureCloudDatabaseAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ReconfigureCloudDatabaseAction.Builder
Overrides

addServingLocations(String value)

public ReconfigureCloudDatabaseAction.Builder addServingLocations(String value)

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

repeated string serving_locations = 2;

Parameter
NameDescription
valueString

The servingLocations to add.

Returns
TypeDescription
ReconfigureCloudDatabaseAction.Builder

This builder for chaining.

addServingLocationsBytes(ByteString value)

public ReconfigureCloudDatabaseAction.Builder addServingLocationsBytes(ByteString value)

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

repeated string serving_locations = 2;

Parameter
NameDescription
valueByteString

The bytes of the servingLocations to add.

Returns
TypeDescription
ReconfigureCloudDatabaseAction.Builder

This builder for chaining.

build()

public ReconfigureCloudDatabaseAction build()
Returns
TypeDescription
ReconfigureCloudDatabaseAction

buildPartial()

public ReconfigureCloudDatabaseAction buildPartial()
Returns
TypeDescription
ReconfigureCloudDatabaseAction

clear()

public ReconfigureCloudDatabaseAction.Builder clear()
Returns
TypeDescription
ReconfigureCloudDatabaseAction.Builder
Overrides

clearDatabaseUri()

public ReconfigureCloudDatabaseAction.Builder clearDatabaseUri()

The fully qualified uri of the database to be reconfigured.

optional string database_uri = 1;

Returns
TypeDescription
ReconfigureCloudDatabaseAction.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ReconfigureCloudDatabaseAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ReconfigureCloudDatabaseAction.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ReconfigureCloudDatabaseAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ReconfigureCloudDatabaseAction.Builder
Overrides

clearServingLocations()

public ReconfigureCloudDatabaseAction.Builder clearServingLocations()

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

repeated string serving_locations = 2;

Returns
TypeDescription
ReconfigureCloudDatabaseAction.Builder

This builder for chaining.

clone()

public ReconfigureCloudDatabaseAction.Builder clone()
Returns
TypeDescription
ReconfigureCloudDatabaseAction.Builder
Overrides

getDatabaseUri()

public String getDatabaseUri()

The fully qualified uri of the database to be reconfigured.

optional string database_uri = 1;

Returns
TypeDescription
String

The databaseUri.

getDatabaseUriBytes()

public ByteString getDatabaseUriBytes()

The fully qualified uri of the database to be reconfigured.

optional string database_uri = 1;

Returns
TypeDescription
ByteString

The bytes for databaseUri.

getDefaultInstanceForType()

public ReconfigureCloudDatabaseAction getDefaultInstanceForType()
Returns
TypeDescription
ReconfigureCloudDatabaseAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the servingLocations.

hasDatabaseUri()

public boolean hasDatabaseUri()

The fully qualified uri of the database to be reconfigured.

optional string database_uri = 1;

Returns
TypeDescription
boolean

Whether the databaseUri field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReconfigureCloudDatabaseAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReconfigureCloudDatabaseAction.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ReconfigureCloudDatabaseAction.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ReconfigureCloudDatabaseAction.Builder
Overrides

mergeFrom(ReconfigureCloudDatabaseAction other)

public ReconfigureCloudDatabaseAction.Builder mergeFrom(ReconfigureCloudDatabaseAction other)
Parameter
NameDescription
otherReconfigureCloudDatabaseAction
Returns
TypeDescription
ReconfigureCloudDatabaseAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReconfigureCloudDatabaseAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ReconfigureCloudDatabaseAction.Builder
Overrides

setDatabaseUri(String value)

public ReconfigureCloudDatabaseAction.Builder setDatabaseUri(String value)

The fully qualified uri of the database to be reconfigured.

optional string database_uri = 1;

Parameter
NameDescription
valueString

The databaseUri to set.

Returns
TypeDescription
ReconfigureCloudDatabaseAction.Builder

This builder for chaining.

setDatabaseUriBytes(ByteString value)

public ReconfigureCloudDatabaseAction.Builder setDatabaseUriBytes(ByteString value)

The fully qualified uri of the database to be reconfigured.

optional string database_uri = 1;

Parameter
NameDescription
valueByteString

The bytes for databaseUri to set.

Returns
TypeDescription
ReconfigureCloudDatabaseAction.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ReconfigureCloudDatabaseAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ReconfigureCloudDatabaseAction.Builder
Overrides

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

public ReconfigureCloudDatabaseAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ReconfigureCloudDatabaseAction.Builder
Overrides

setServingLocations(int index, String value)

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

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

repeated string serving_locations = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The servingLocations to set.

Returns
TypeDescription
ReconfigureCloudDatabaseAction.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ReconfigureCloudDatabaseAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ReconfigureCloudDatabaseAction.Builder
Overrides