Package com.google.bigtable.v2
Class ReadModifyWriteRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReadModifyWriteRule.Builder>
com.google.bigtable.v2.ReadModifyWriteRule.Builder
- All Implemented Interfaces:
ReadModifyWriteRuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ReadModifyWriteRule
public static final class ReadModifyWriteRule.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Rule specifying that `append_value` be appended to the existing value.The qualifier of the column to which the read/modify/write should be applied.The name of the family to which the read/modify/write should be applied.Rule specifying that `increment_amount` be added to the existing value.com.google.protobuf.ByteStringRule specifying that `append_value` be appended to the existing value.com.google.protobuf.ByteStringThe qualifier of the column to which the read/modify/write should be applied.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe name of the family to which the read/modify/write should be applied.com.google.protobuf.ByteStringThe name of the family to which the read/modify/write should be applied.longRule specifying that `increment_amount` be added to the existing value.booleanRule specifying that `append_value` be appended to the existing value.booleanRule specifying that `increment_amount` be added to the existing value.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ReadModifyWriteRule other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAppendValue(com.google.protobuf.ByteString value) Rule specifying that `append_value` be appended to the existing value.setColumnQualifier(com.google.protobuf.ByteString value) The qualifier of the column to which the read/modify/write should be applied.setFamilyName(String value) The name of the family to which the read/modify/write should be applied.setFamilyNameBytes(com.google.protobuf.ByteString value) The name of the family to which the read/modify/write should be applied.setIncrementAmount(long value) Rule specifying that `increment_amount` be added to the existing value.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ReadModifyWriteRule.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ReadModifyWriteRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ReadModifyWriteRule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReadModifyWriteRule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ReadModifyWriteRule.Builder>
-
mergeFrom
public ReadModifyWriteRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReadModifyWriteRule.Builder>- Throws:
IOException
-
getRuleCase
- Specified by:
getRuleCasein interfaceReadModifyWriteRuleOrBuilder
-
clearRule
-
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;- Specified by:
getFamilyNamein interfaceReadModifyWriteRuleOrBuilder- Returns:
- The familyName.
-
getFamilyNameBytes
public com.google.protobuf.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;- Specified by:
getFamilyNameBytesin interfaceReadModifyWriteRuleOrBuilder- Returns:
- The bytes for familyName.
-
setFamilyName
The name of the family to which the read/modify/write should be applied. Must match `[-_.a-zA-Z0-9]+`
string family_name = 1;- Parameters:
value- The familyName to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setFamilyNameBytes
The name of the family to which the read/modify/write should be applied. Must match `[-_.a-zA-Z0-9]+`
string family_name = 1;- Parameters:
value- The bytes for familyName to set.- Returns:
- This builder for chaining.
-
getColumnQualifier
public com.google.protobuf.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;- Specified by:
getColumnQualifierin interfaceReadModifyWriteRuleOrBuilder- Returns:
- The columnQualifier.
-
setColumnQualifier
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;- Parameters:
value- The columnQualifier to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;- Specified by:
hasAppendValuein interfaceReadModifyWriteRuleOrBuilder- Returns:
- Whether the appendValue field is set.
-
getAppendValue
public com.google.protobuf.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;- Specified by:
getAppendValuein interfaceReadModifyWriteRuleOrBuilder- Returns:
- The appendValue.
-
setAppendValue
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;- Parameters:
value- The appendValue to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;- Specified by:
hasIncrementAmountin interfaceReadModifyWriteRuleOrBuilder- Returns:
- Whether the incrementAmount field is set.
-
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;- Specified by:
getIncrementAmountin interfaceReadModifyWriteRuleOrBuilder- Returns:
- The incrementAmount.
-
setIncrementAmount
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;- Parameters:
value- The incrementAmount to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-