Class AppProfile.SingleClusterRouting.Builder (2.6.2)

public static final class AppProfile.SingleClusterRouting.Builder extends GeneratedMessageV3.Builder<AppProfile.SingleClusterRouting.Builder> 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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

public AppProfile.SingleClusterRouting.Builder clear()
Returns
TypeDescription
AppProfile.SingleClusterRouting.Builder
Overrides

clearAllowTransactionalWrites()

public AppProfile.SingleClusterRouting.Builder clearAllowTransactionalWrites()

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
AppProfile.SingleClusterRouting.Builder

This builder for chaining.

clearClusterId()

public AppProfile.SingleClusterRouting.Builder clearClusterId()

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

string cluster_id = 1;

Returns
TypeDescription
AppProfile.SingleClusterRouting.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AppProfile.SingleClusterRouting other)

public AppProfile.SingleClusterRouting.Builder mergeFrom(AppProfile.SingleClusterRouting other)
Parameter
NameDescription
otherAppProfile.SingleClusterRouting
Returns
TypeDescription
AppProfile.SingleClusterRouting.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAllowTransactionalWrites(boolean value)

public AppProfile.SingleClusterRouting.Builder setAllowTransactionalWrites(boolean value)

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;

Parameter
NameDescription
valueboolean

The allowTransactionalWrites to set.

Returns
TypeDescription
AppProfile.SingleClusterRouting.Builder

This builder for chaining.

setClusterId(String value)

public AppProfile.SingleClusterRouting.Builder setClusterId(String value)

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

string cluster_id = 1;

Parameter
NameDescription
valueString

The clusterId to set.

Returns
TypeDescription
AppProfile.SingleClusterRouting.Builder

This builder for chaining.

setClusterIdBytes(ByteString value)

public AppProfile.SingleClusterRouting.Builder setClusterIdBytes(ByteString value)

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

string cluster_id = 1;

Parameter
NameDescription
valueByteString

The bytes for clusterId to set.

Returns
TypeDescription
AppProfile.SingleClusterRouting.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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