Package com.google.bigtable.v2
Class Idempotency.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>
com.google.bigtable.v2.Idempotency.Builder
- All Implemented Interfaces:
IdempotencyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Idempotency
public static final class Idempotency.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>
implements IdempotencyOrBuilder
Parameters on mutations where clients want to ensure idempotency (i.e. at-most-once semantics). This is currently only needed for certain aggregate types.Protobuf type
google.bigtable.v2.Idempotency-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Client-assigned timestamp when the mutation's first attempt was sent.Unique token used to identify replays of this mutation.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampClient-assigned timestamp when the mutation's first attempt was sent.com.google.protobuf.Timestamp.BuilderClient-assigned timestamp when the mutation's first attempt was sent.com.google.protobuf.TimestampOrBuilderClient-assigned timestamp when the mutation's first attempt was sent.com.google.protobuf.ByteStringgetToken()Unique token used to identify replays of this mutation.booleanClient-assigned timestamp when the mutation's first attempt was sent.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(Idempotency other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStartTime(com.google.protobuf.Timestamp value) Client-assigned timestamp when the mutation's first attempt was sent.final Idempotency.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStartTime(com.google.protobuf.Timestamp value) Client-assigned timestamp when the mutation's first attempt was sent.setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) Client-assigned timestamp when the mutation's first attempt was sent.setToken(com.google.protobuf.ByteString value) Unique token used to identify replays of this mutation.final Idempotency.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Idempotency.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.GeneratedMessageV3.Builder<Idempotency.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>
-
setField
public Idempotency.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>
-
setRepeatedField
public Idempotency.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>
-
addRepeatedField
public Idempotency.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Idempotency.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>
-
mergeFrom
public Idempotency.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<Idempotency.Builder>- Throws:
IOException
-
getToken
public com.google.protobuf.ByteString getToken()Unique token used to identify replays of this mutation. Must be at least 8 bytes long.
bytes token = 1;- Specified by:
getTokenin interfaceIdempotencyOrBuilder- Returns:
- The token.
-
setToken
Unique token used to identify replays of this mutation. Must be at least 8 bytes long.
bytes token = 1;- Parameters:
value- The token to set.- Returns:
- This builder for chaining.
-
clearToken
Unique token used to identify replays of this mutation. Must be at least 8 bytes long.
bytes token = 1;- Returns:
- This builder for chaining.
-
hasStartTime
public boolean hasStartTime()Client-assigned timestamp when the mutation's first attempt was sent. Used to reject mutations that arrive after idempotency protection may have expired. May cause spurious rejections if clock skew is too high. Leave unset or zero to always accept the mutation, at the risk of double counting if the protection for previous attempts has expired.
.google.protobuf.Timestamp start_time = 2;- Specified by:
hasStartTimein interfaceIdempotencyOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.Timestamp getStartTime()Client-assigned timestamp when the mutation's first attempt was sent. Used to reject mutations that arrive after idempotency protection may have expired. May cause spurious rejections if clock skew is too high. Leave unset or zero to always accept the mutation, at the risk of double counting if the protection for previous attempts has expired.
.google.protobuf.Timestamp start_time = 2;- Specified by:
getStartTimein interfaceIdempotencyOrBuilder- Returns:
- The startTime.
-
setStartTime
Client-assigned timestamp when the mutation's first attempt was sent. Used to reject mutations that arrive after idempotency protection may have expired. May cause spurious rejections if clock skew is too high. Leave unset or zero to always accept the mutation, at the risk of double counting if the protection for previous attempts has expired.
.google.protobuf.Timestamp start_time = 2; -
setStartTime
Client-assigned timestamp when the mutation's first attempt was sent. Used to reject mutations that arrive after idempotency protection may have expired. May cause spurious rejections if clock skew is too high. Leave unset or zero to always accept the mutation, at the risk of double counting if the protection for previous attempts has expired.
.google.protobuf.Timestamp start_time = 2; -
mergeStartTime
Client-assigned timestamp when the mutation's first attempt was sent. Used to reject mutations that arrive after idempotency protection may have expired. May cause spurious rejections if clock skew is too high. Leave unset or zero to always accept the mutation, at the risk of double counting if the protection for previous attempts has expired.
.google.protobuf.Timestamp start_time = 2; -
clearStartTime
Client-assigned timestamp when the mutation's first attempt was sent. Used to reject mutations that arrive after idempotency protection may have expired. May cause spurious rejections if clock skew is too high. Leave unset or zero to always accept the mutation, at the risk of double counting if the protection for previous attempts has expired.
.google.protobuf.Timestamp start_time = 2; -
getStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()Client-assigned timestamp when the mutation's first attempt was sent. Used to reject mutations that arrive after idempotency protection may have expired. May cause spurious rejections if clock skew is too high. Leave unset or zero to always accept the mutation, at the risk of double counting if the protection for previous attempts has expired.
.google.protobuf.Timestamp start_time = 2; -
getStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()Client-assigned timestamp when the mutation's first attempt was sent. Used to reject mutations that arrive after idempotency protection may have expired. May cause spurious rejections if clock skew is too high. Leave unset or zero to always accept the mutation, at the risk of double counting if the protection for previous attempts has expired.
.google.protobuf.Timestamp start_time = 2;- Specified by:
getStartTimeOrBuilderin interfaceIdempotencyOrBuilder
-
setUnknownFields
public final Idempotency.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>
-
mergeUnknownFields
public final Idempotency.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>
-