Class ChangeQuorumCloudDatabaseAction (6.65.1)

public final class ChangeQuorumCloudDatabaseAction extends GeneratedMessageV3 implements ChangeQuorumCloudDatabaseActionOrBuilder

Action that changes quorum of a Cloud Spanner database.

Protobuf type google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ChangeQuorumCloudDatabaseAction

Static Fields

DATABASE_URI_FIELD_NUMBER

public static final int DATABASE_URI_FIELD_NUMBER
Field Value
Type Description
int

SERVING_LOCATIONS_FIELD_NUMBER

public static final int SERVING_LOCATIONS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ChangeQuorumCloudDatabaseAction getDefaultInstance()
Returns
Type Description
ChangeQuorumCloudDatabaseAction

getDescriptor()

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

newBuilder()

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

newBuilder(ChangeQuorumCloudDatabaseAction prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ChangeQuorumCloudDatabaseAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ChangeQuorumCloudDatabaseAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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