Class ReadModifyWriteRule.Builder (2.11.2)

public static final class ReadModifyWriteRule.Builder extends GeneratedMessageV3.Builder<ReadModifyWriteRule.Builder> implements ReadModifyWriteRuleOrBuilder

Specifies an atomic read/modify/write operation on the latest value of the specified column.

Protobuf type google.bigtable.v2.ReadModifyWriteRule

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReadModifyWriteRule build()
Returns
TypeDescription
ReadModifyWriteRule

buildPartial()

public ReadModifyWriteRule buildPartial()
Returns
TypeDescription
ReadModifyWriteRule

clear()

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

clearAppendValue()

public ReadModifyWriteRule.Builder clearAppendValue()

Rule specifying that append_value be appended to the existing value. If the targeted cell is unset, it will be treated as containing the empty string.

bytes append_value = 3;

Returns
TypeDescription
ReadModifyWriteRule.Builder

This builder for chaining.

clearColumnQualifier()

public ReadModifyWriteRule.Builder clearColumnQualifier()

The qualifier of the column to which the read/modify/write should be applied. Can be any byte string, including the empty string.

bytes column_qualifier = 2;

Returns
TypeDescription
ReadModifyWriteRule.Builder

This builder for chaining.

clearFamilyName()

public ReadModifyWriteRule.Builder clearFamilyName()

The name of the family to which the read/modify/write should be applied. Must match [-_.a-zA-Z0-9]+

string family_name = 1;

Returns
TypeDescription
ReadModifyWriteRule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIncrementAmount()

public ReadModifyWriteRule.Builder clearIncrementAmount()

Rule specifying that increment_amount be added to the existing value. If the targeted cell is unset, it will be treated as containing a zero. Otherwise, the targeted cell must contain an 8-byte value (interpreted as a 64-bit big-endian signed integer), or the entire request will fail.

int64 increment_amount = 4;

Returns
TypeDescription
ReadModifyWriteRule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRule()

public ReadModifyWriteRule.Builder clearRule()
Returns
TypeDescription
ReadModifyWriteRule.Builder

clone()

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

getAppendValue()

public ByteString getAppendValue()

Rule specifying that append_value be appended to the existing value. If the targeted cell is unset, it will be treated as containing the empty string.

bytes append_value = 3;

Returns
TypeDescription
ByteString

The appendValue.

getColumnQualifier()

public ByteString getColumnQualifier()

The qualifier of the column to which the read/modify/write should be applied. Can be any byte string, including the empty string.

bytes column_qualifier = 2;

Returns
TypeDescription
ByteString

The columnQualifier.

getDefaultInstanceForType()

public ReadModifyWriteRule getDefaultInstanceForType()
Returns
TypeDescription
ReadModifyWriteRule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFamilyName()

public String getFamilyName()

The name of the family to which the read/modify/write should be applied. Must match [-_.a-zA-Z0-9]+

string family_name = 1;

Returns
TypeDescription
String

The familyName.

getFamilyNameBytes()

public ByteString getFamilyNameBytes()

The name of the family to which the read/modify/write should be applied. Must match [-_.a-zA-Z0-9]+

string family_name = 1;

Returns
TypeDescription
ByteString

The bytes for familyName.

getIncrementAmount()

public long getIncrementAmount()

Rule specifying that increment_amount be added to the existing value. If the targeted cell is unset, it will be treated as containing a zero. Otherwise, the targeted cell must contain an 8-byte value (interpreted as a 64-bit big-endian signed integer), or the entire request will fail.

int64 increment_amount = 4;

Returns
TypeDescription
long

The incrementAmount.

getRuleCase()

public ReadModifyWriteRule.RuleCase getRuleCase()
Returns
TypeDescription
ReadModifyWriteRule.RuleCase

hasAppendValue()

public boolean hasAppendValue()

Rule specifying that append_value be appended to the existing value. If the targeted cell is unset, it will be treated as containing the empty string.

bytes append_value = 3;

Returns
TypeDescription
boolean

Whether the appendValue field is set.

hasIncrementAmount()

public boolean hasIncrementAmount()

Rule specifying that increment_amount be added to the existing value. If the targeted cell is unset, it will be treated as containing a zero. Otherwise, the targeted cell must contain an 8-byte value (interpreted as a 64-bit big-endian signed integer), or the entire request will fail.

int64 increment_amount = 4;

Returns
TypeDescription
boolean

Whether the incrementAmount field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ReadModifyWriteRule other)

public ReadModifyWriteRule.Builder mergeFrom(ReadModifyWriteRule other)
Parameter
NameDescription
otherReadModifyWriteRule
Returns
TypeDescription
ReadModifyWriteRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAppendValue(ByteString value)

public ReadModifyWriteRule.Builder setAppendValue(ByteString value)

Rule specifying that append_value be appended to the existing value. If the targeted cell is unset, it will be treated as containing the empty string.

bytes append_value = 3;

Parameter
NameDescription
valueByteString

The appendValue to set.

Returns
TypeDescription
ReadModifyWriteRule.Builder

This builder for chaining.

setColumnQualifier(ByteString value)

public ReadModifyWriteRule.Builder setColumnQualifier(ByteString value)

The qualifier of the column to which the read/modify/write should be applied. Can be any byte string, including the empty string.

bytes column_qualifier = 2;

Parameter
NameDescription
valueByteString

The columnQualifier to set.

Returns
TypeDescription
ReadModifyWriteRule.Builder

This builder for chaining.

setFamilyName(String value)

public ReadModifyWriteRule.Builder setFamilyName(String value)

The name of the family to which the read/modify/write should be applied. Must match [-_.a-zA-Z0-9]+

string family_name = 1;

Parameter
NameDescription
valueString

The familyName to set.

Returns
TypeDescription
ReadModifyWriteRule.Builder

This builder for chaining.

setFamilyNameBytes(ByteString value)

public ReadModifyWriteRule.Builder setFamilyNameBytes(ByteString value)

The name of the family to which the read/modify/write should be applied. Must match [-_.a-zA-Z0-9]+

string family_name = 1;

Parameter
NameDescription
valueByteString

The bytes for familyName to set.

Returns
TypeDescription
ReadModifyWriteRule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIncrementAmount(long value)

public ReadModifyWriteRule.Builder setIncrementAmount(long value)

Rule specifying that increment_amount be added to the existing value. If the targeted cell is unset, it will be treated as containing a zero. Otherwise, the targeted cell must contain an 8-byte value (interpreted as a 64-bit big-endian signed integer), or the entire request will fail.

int64 increment_amount = 4;

Parameter
NameDescription
valuelong

The incrementAmount to set.

Returns
TypeDescription
ReadModifyWriteRule.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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