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 Type
    Method
    Description
    addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
     
     
     
    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.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Timestamp
    Client-assigned timestamp when the mutation's first attempt was sent.
    com.google.protobuf.Timestamp.Builder
    Client-assigned timestamp when the mutation's first attempt was sent.
    com.google.protobuf.TimestampOrBuilder
    Client-assigned timestamp when the mutation's first attempt was sent.
    com.google.protobuf.ByteString
    Unique token used to identify replays of this mutation.
    boolean
    Client-assigned timestamp when the mutation's first attempt was sent.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
    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.
    mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
    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.
    setUnknownFields(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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>
    • clear

      public Idempotency.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>
    • getDefaultInstanceForType

      public Idempotency getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Idempotency build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Idempotency buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Idempotency.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>
    • setField

      public Idempotency.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>
    • clearField

      public Idempotency.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>
    • clearOneof

      public Idempotency.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>
    • setRepeatedField

      public Idempotency.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>
    • addRepeatedField

      public Idempotency.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>
    • mergeFrom

      public Idempotency.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Idempotency.Builder>
    • mergeFrom

      public Idempotency.Builder mergeFrom(Idempotency other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getToken in interface IdempotencyOrBuilder
      Returns:
      The token.
    • setToken

      public Idempotency.Builder setToken(com.google.protobuf.ByteString value)
       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

      public Idempotency.Builder 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:
      hasStartTime in interface IdempotencyOrBuilder
      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:
      getStartTime in interface IdempotencyOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public Idempotency.Builder setStartTime(com.google.protobuf.Timestamp value)
       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

      public Idempotency.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       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

      public Idempotency.Builder mergeStartTime(com.google.protobuf.Timestamp value)
       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

      public Idempotency.Builder 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:
      getStartTimeOrBuilder in interface IdempotencyOrBuilder
    • setUnknownFields

      public final Idempotency.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>
    • mergeUnknownFields

      public final Idempotency.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Idempotency.Builder>