Class Store.TxnCheckTxnStatusRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Store.TxnCheckTxnStatusRequest.Builder>
io.dingodb.store.Store.TxnCheckTxnStatusRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Store.TxnCheckTxnStatusRequestOrBuilder, Cloneable
Enclosing class:
Store.TxnCheckTxnStatusRequest

public static final class Store.TxnCheckTxnStatusRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Store.TxnCheckTxnStatusRequest.Builder> implements Store.TxnCheckTxnStatusRequestOrBuilder
 CheckTxnStatusRequest checks the status of a transaction.
 If the transaction is rollbacked/committed, return that result.
 If the TTL of the transaction is exhausted, abort that transaction and inform the caller.
 Otherwise, returns the TTL information for the transaction.
 
Protobuf type dingodb.pb.store.TxnCheckTxnStatusRequest
  • 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<Store.TxnCheckTxnStatusRequest.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<Store.TxnCheckTxnStatusRequest.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<Store.TxnCheckTxnStatusRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Store.TxnCheckTxnStatusRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<Store.TxnCheckTxnStatusRequest.Builder>
    • setField

      public Store.TxnCheckTxnStatusRequest.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<Store.TxnCheckTxnStatusRequest.Builder>
    • clearField

      public Store.TxnCheckTxnStatusRequest.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<Store.TxnCheckTxnStatusRequest.Builder>
    • clearOneof

      public Store.TxnCheckTxnStatusRequest.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<Store.TxnCheckTxnStatusRequest.Builder>
    • setRepeatedField

      public Store.TxnCheckTxnStatusRequest.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<Store.TxnCheckTxnStatusRequest.Builder>
    • addRepeatedField

      public Store.TxnCheckTxnStatusRequest.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<Store.TxnCheckTxnStatusRequest.Builder>
    • mergeFrom

      public Store.TxnCheckTxnStatusRequest.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<Store.TxnCheckTxnStatusRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Store.TxnCheckTxnStatusRequest.Builder>
    • mergeFrom

      public Store.TxnCheckTxnStatusRequest.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<Store.TxnCheckTxnStatusRequest.Builder>
      Throws:
      IOException
    • hasRequestInfo

      public boolean hasRequestInfo()
      .dingodb.pb.common.RequestInfo request_info = 1;
      Specified by:
      hasRequestInfo in interface Store.TxnCheckTxnStatusRequestOrBuilder
      Returns:
      Whether the requestInfo field is set.
    • getRequestInfo

      public Common.RequestInfo getRequestInfo()
      .dingodb.pb.common.RequestInfo request_info = 1;
      Specified by:
      getRequestInfo in interface Store.TxnCheckTxnStatusRequestOrBuilder
      Returns:
      The requestInfo.
    • setRequestInfo

      .dingodb.pb.common.RequestInfo request_info = 1;
    • setRequestInfo

      public Store.TxnCheckTxnStatusRequest.Builder setRequestInfo(Common.RequestInfo.Builder builderForValue)
      .dingodb.pb.common.RequestInfo request_info = 1;
    • mergeRequestInfo

      .dingodb.pb.common.RequestInfo request_info = 1;
    • clearRequestInfo

      public Store.TxnCheckTxnStatusRequest.Builder clearRequestInfo()
      .dingodb.pb.common.RequestInfo request_info = 1;
    • getRequestInfoBuilder

      public Common.RequestInfo.Builder getRequestInfoBuilder()
      .dingodb.pb.common.RequestInfo request_info = 1;
    • getRequestInfoOrBuilder

      public Common.RequestInfoOrBuilder getRequestInfoOrBuilder()
      .dingodb.pb.common.RequestInfo request_info = 1;
      Specified by:
      getRequestInfoOrBuilder in interface Store.TxnCheckTxnStatusRequestOrBuilder
    • hasContext

      public boolean hasContext()
      .dingodb.pb.store.Context context = 2;
      Specified by:
      hasContext in interface Store.TxnCheckTxnStatusRequestOrBuilder
      Returns:
      Whether the context field is set.
    • getContext

      public Store.Context getContext()
      .dingodb.pb.store.Context context = 2;
      Specified by:
      getContext in interface Store.TxnCheckTxnStatusRequestOrBuilder
      Returns:
      The context.
    • setContext

      .dingodb.pb.store.Context context = 2;
    • setContext

      .dingodb.pb.store.Context context = 2;
    • mergeContext

      .dingodb.pb.store.Context context = 2;
    • clearContext

      .dingodb.pb.store.Context context = 2;
    • getContextBuilder

      public Store.Context.Builder getContextBuilder()
      .dingodb.pb.store.Context context = 2;
    • getContextOrBuilder

      public Store.ContextOrBuilder getContextOrBuilder()
      .dingodb.pb.store.Context context = 2;
      Specified by:
      getContextOrBuilder in interface Store.TxnCheckTxnStatusRequestOrBuilder
    • getPrimaryKey

      public com.google.protobuf.ByteString getPrimaryKey()
       Primary key and lock ts together to locate the primary lock of a transaction.
       
      bytes primary_key = 3;
      Specified by:
      getPrimaryKey in interface Store.TxnCheckTxnStatusRequestOrBuilder
      Returns:
      The primaryKey.
    • setPrimaryKey

      public Store.TxnCheckTxnStatusRequest.Builder setPrimaryKey(com.google.protobuf.ByteString value)
       Primary key and lock ts together to locate the primary lock of a transaction.
       
      bytes primary_key = 3;
      Parameters:
      value - The primaryKey to set.
      Returns:
      This builder for chaining.
    • clearPrimaryKey

      public Store.TxnCheckTxnStatusRequest.Builder clearPrimaryKey()
       Primary key and lock ts together to locate the primary lock of a transaction.
       
      bytes primary_key = 3;
      Returns:
      This builder for chaining.
    • getLockTs

      public long getLockTs()
       Starting timestamp oracle of the transaction being checked.
       
      int64 lock_ts = 4;
      Specified by:
      getLockTs in interface Store.TxnCheckTxnStatusRequestOrBuilder
      Returns:
      The lockTs.
    • setLockTs

      public Store.TxnCheckTxnStatusRequest.Builder setLockTs(long value)
       Starting timestamp oracle of the transaction being checked.
       
      int64 lock_ts = 4;
      Parameters:
      value - The lockTs to set.
      Returns:
      This builder for chaining.
    • clearLockTs

       Starting timestamp oracle of the transaction being checked.
       
      int64 lock_ts = 4;
      Returns:
      This builder for chaining.
    • getCallerStartTs

      public long getCallerStartTs()
       The start timestamp oracle of the transaction which this request is part of.
       If the the lock_ts < caller_start_ts and the lock_ttl is not outdated, the transaction is not expired.
       In this case, store will try to update the lock's min_commit_ts to caller_start_ts, in order to prevent the
       read-write conflict. If the min_commit_ts is updated, the Action of the response will be MinCommitTSPushed.
       
      int64 caller_start_ts = 5;
      Specified by:
      getCallerStartTs in interface Store.TxnCheckTxnStatusRequestOrBuilder
      Returns:
      The callerStartTs.
    • setCallerStartTs

      public Store.TxnCheckTxnStatusRequest.Builder setCallerStartTs(long value)
       The start timestamp oracle of the transaction which this request is part of.
       If the the lock_ts < caller_start_ts and the lock_ttl is not outdated, the transaction is not expired.
       In this case, store will try to update the lock's min_commit_ts to caller_start_ts, in order to prevent the
       read-write conflict. If the min_commit_ts is updated, the Action of the response will be MinCommitTSPushed.
       
      int64 caller_start_ts = 5;
      Parameters:
      value - The callerStartTs to set.
      Returns:
      This builder for chaining.
    • clearCallerStartTs

      public Store.TxnCheckTxnStatusRequest.Builder clearCallerStartTs()
       The start timestamp oracle of the transaction which this request is part of.
       If the the lock_ts < caller_start_ts and the lock_ttl is not outdated, the transaction is not expired.
       In this case, store will try to update the lock's min_commit_ts to caller_start_ts, in order to prevent the
       read-write conflict. If the min_commit_ts is updated, the Action of the response will be MinCommitTSPushed.
       
      int64 caller_start_ts = 5;
      Returns:
      This builder for chaining.
    • getCurrentTs

      public long getCurrentTs()
       The client must specify the current time to dingo-store using this timestamp oracle.
       It is used to check TTL timeouts. It may be inaccurate.
       
      int64 current_ts = 6;
      Specified by:
      getCurrentTs in interface Store.TxnCheckTxnStatusRequestOrBuilder
      Returns:
      The currentTs.
    • setCurrentTs

      public Store.TxnCheckTxnStatusRequest.Builder setCurrentTs(long value)
       The client must specify the current time to dingo-store using this timestamp oracle.
       It is used to check TTL timeouts. It may be inaccurate.
       
      int64 current_ts = 6;
      Parameters:
      value - The currentTs to set.
      Returns:
      This builder for chaining.
    • clearCurrentTs

      public Store.TxnCheckTxnStatusRequest.Builder clearCurrentTs()
       The client must specify the current time to dingo-store using this timestamp oracle.
       It is used to check TTL timeouts. It may be inaccurate.
       
      int64 current_ts = 6;
      Returns:
      This builder for chaining.
    • getForceSyncCommit

      public boolean getForceSyncCommit()
       This field is set to true only if the transaction is known to fall back from async commit.
       Then, CheckTxnStatus treats the transaction as non-async-commit even if the use_async_commit
       field in the primary lock is true.
       
      bool force_sync_commit = 7;
      Specified by:
      getForceSyncCommit in interface Store.TxnCheckTxnStatusRequestOrBuilder
      Returns:
      The forceSyncCommit.
    • setForceSyncCommit

      public Store.TxnCheckTxnStatusRequest.Builder setForceSyncCommit(boolean value)
       This field is set to true only if the transaction is known to fall back from async commit.
       Then, CheckTxnStatus treats the transaction as non-async-commit even if the use_async_commit
       field in the primary lock is true.
       
      bool force_sync_commit = 7;
      Parameters:
      value - The forceSyncCommit to set.
      Returns:
      This builder for chaining.
    • clearForceSyncCommit

      public Store.TxnCheckTxnStatusRequest.Builder clearForceSyncCommit()
       This field is set to true only if the transaction is known to fall back from async commit.
       Then, CheckTxnStatus treats the transaction as non-async-commit even if the use_async_commit
       field in the primary lock is true.
       
      bool force_sync_commit = 7;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Store.TxnCheckTxnStatusRequest.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<Store.TxnCheckTxnStatusRequest.Builder>
    • mergeUnknownFields

      public final Store.TxnCheckTxnStatusRequest.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<Store.TxnCheckTxnStatusRequest.Builder>