Class ChangeQuorumCloudDatabaseAction (6.85.0)

public final class ChangeQuorumCloudDatabaseAction extends GeneratedMessageV3 implements ChangeQuorumCloudDatabaseActionOrBuilder

Action that changes quorum of a Cloud Spanner database.

Protobuf type google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction

Static Fields

DATABASE_URI_FIELD_NUMBER

public static final int DATABASE_URI_FIELD_NUMBER
Field Value
TypeDescription
int

SERVING_LOCATIONS_FIELD_NUMBER

public static final int SERVING_LOCATIONS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ChangeQuorumCloudDatabaseAction getDefaultInstance()
Returns
TypeDescription
ChangeQuorumCloudDatabaseAction

getDescriptor()

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

newBuilder()

public static ChangeQuorumCloudDatabaseAction.Builder newBuilder()
Returns
TypeDescription
ChangeQuorumCloudDatabaseAction.Builder

newBuilder(ChangeQuorumCloudDatabaseAction )

public static ChangeQuorumCloudDatabaseAction.Builder newBuilder(ChangeQuorumCloudDatabaseAction )
Parameter
NameDescription
ChangeQuorumCloudDatabaseAction
Returns
TypeDescription
ChangeQuorumCloudDatabaseAction.Builder

parseDelimitedFrom(InputStream input)

public static ChangeQuorumCloudDatabaseAction parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ChangeQuorumCloudDatabaseAction
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ChangeQuorumCloudDatabaseAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ChangeQuorumCloudDatabaseAction
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ChangeQuorumCloudDatabaseAction parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ChangeQuorumCloudDatabaseAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ChangeQuorumCloudDatabaseAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ChangeQuorumCloudDatabaseAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ChangeQuorumCloudDatabaseAction parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ChangeQuorumCloudDatabaseAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ChangeQuorumCloudDatabaseAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ChangeQuorumCloudDatabaseAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ChangeQuorumCloudDatabaseAction parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ChangeQuorumCloudDatabaseAction
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ChangeQuorumCloudDatabaseAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ChangeQuorumCloudDatabaseAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ChangeQuorumCloudDatabaseAction parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ChangeQuorumCloudDatabaseAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ChangeQuorumCloudDatabaseAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ChangeQuorumCloudDatabaseAction
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ChangeQuorumCloudDatabaseAction parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ChangeQuorumCloudDatabaseAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ChangeQuorumCloudDatabaseAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ChangeQuorumCloudDatabaseAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ChangeQuorumCloudDatabaseAction> parser()
Returns
TypeDescription
Parser<ChangeQuorumCloudDatabaseAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for databaseUri.

getDefaultInstanceForType()

public ChangeQuorumCloudDatabaseAction getDefaultInstanceForType()
Returns
TypeDescription
ChangeQuorumCloudDatabaseAction

getParserForType()

public Parser<ChangeQuorumCloudDatabaseAction> getParserForType()
Returns
TypeDescription
Parser<ChangeQuorumCloudDatabaseAction>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
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 whose quorum has to be changed.

optional string database_uri = 1;

Returns
TypeDescription
boolean

Whether the databaseUri field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ChangeQuorumCloudDatabaseAction.Builder newBuilderForType()
Returns
TypeDescription
ChangeQuorumCloudDatabaseAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ChangeQuorumCloudDatabaseAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ChangeQuorumCloudDatabaseAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ChangeQuorumCloudDatabaseAction.Builder toBuilder()
Returns
TypeDescription
ChangeQuorumCloudDatabaseAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException