Class AppProfile.SingleClusterRouting (2.17.1)

public static final class AppProfile.SingleClusterRouting extends GeneratedMessageV3 implements AppProfile.SingleClusterRoutingOrBuilder

Unconditionally routes all read/write requests to a specific cluster. This option preserves read-your-writes consistency but does not improve availability.

Protobuf type google.bigtable.admin.v2.AppProfile.SingleClusterRouting

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AppProfile.SingleClusterRouting

Static Fields

ALLOW_TRANSACTIONAL_WRITES_FIELD_NUMBER

public static final int ALLOW_TRANSACTIONAL_WRITES_FIELD_NUMBER
Field Value
TypeDescription
int

CLUSTER_ID_FIELD_NUMBER

public static final int CLUSTER_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AppProfile.SingleClusterRouting getDefaultInstance()
Returns
TypeDescription
AppProfile.SingleClusterRouting

getDescriptor()

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

newBuilder()

public static AppProfile.SingleClusterRouting.Builder newBuilder()
Returns
TypeDescription
AppProfile.SingleClusterRouting.Builder

newBuilder(AppProfile.SingleClusterRouting prototype)

public static AppProfile.SingleClusterRouting.Builder newBuilder(AppProfile.SingleClusterRouting prototype)
Parameter
NameDescription
prototypeAppProfile.SingleClusterRouting
Returns
TypeDescription
AppProfile.SingleClusterRouting.Builder

parseDelimitedFrom(InputStream input)

public static AppProfile.SingleClusterRouting parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AppProfile.SingleClusterRouting
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static AppProfile.SingleClusterRouting parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AppProfile.SingleClusterRouting
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static AppProfile.SingleClusterRouting parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AppProfile.SingleClusterRouting
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static AppProfile.SingleClusterRouting parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AppProfile.SingleClusterRouting
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static AppProfile.SingleClusterRouting parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AppProfile.SingleClusterRouting
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<AppProfile.SingleClusterRouting> parser()
Returns
TypeDescription
Parser<SingleClusterRouting>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAllowTransactionalWrites()

public boolean getAllowTransactionalWrites()

Whether or not CheckAndMutateRow and ReadModifyWriteRow requests are allowed by this app profile. It is unsafe to send these requests to the same table/row/column in multiple clusters.

bool allow_transactional_writes = 2;

Returns
TypeDescription
boolean

The allowTransactionalWrites.

getClusterId()

public String getClusterId()

The cluster to which read/write requests should be routed.

string cluster_id = 1;

Returns
TypeDescription
String

The clusterId.

getClusterIdBytes()

public ByteString getClusterIdBytes()

The cluster to which read/write requests should be routed.

string cluster_id = 1;

Returns
TypeDescription
ByteString

The bytes for clusterId.

getDefaultInstanceForType()

public AppProfile.SingleClusterRouting getDefaultInstanceForType()
Returns
TypeDescription
AppProfile.SingleClusterRouting

getParserForType()

public Parser<AppProfile.SingleClusterRouting> getParserForType()
Returns
TypeDescription
Parser<SingleClusterRouting>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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 AppProfile.SingleClusterRouting.Builder newBuilderForType()
Returns
TypeDescription
AppProfile.SingleClusterRouting.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public AppProfile.SingleClusterRouting.Builder toBuilder()
Returns
TypeDescription
AppProfile.SingleClusterRouting.Builder

writeTo(CodedOutputStream output)

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