Class Store.TxnPrewriteResponse.Builder

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

public static final class Store.TxnPrewriteResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Store.TxnPrewriteResponse.Builder> implements Store.TxnPrewriteResponseOrBuilder
Protobuf type dingodb.pb.store.TxnPrewriteResponse
  • 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.TxnPrewriteResponse.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.TxnPrewriteResponse.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.TxnPrewriteResponse.Builder>
    • getDefaultInstanceForType

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

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

      public Store.TxnPrewriteResponse 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.TxnPrewriteResponse.Builder>
    • setField

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

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

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

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

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

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

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

      public boolean hasResponseInfo()
       response info
       
      .dingodb.pb.common.ResponseInfo response_info = 1;
      Specified by:
      hasResponseInfo in interface Store.TxnPrewriteResponseOrBuilder
      Returns:
      Whether the responseInfo field is set.
    • getResponseInfo

      public Common.ResponseInfo getResponseInfo()
       response info
       
      .dingodb.pb.common.ResponseInfo response_info = 1;
      Specified by:
      getResponseInfo in interface Store.TxnPrewriteResponseOrBuilder
      Returns:
      The responseInfo.
    • setResponseInfo

       response info
       
      .dingodb.pb.common.ResponseInfo response_info = 1;
    • setResponseInfo

      public Store.TxnPrewriteResponse.Builder setResponseInfo(Common.ResponseInfo.Builder builderForValue)
       response info
       
      .dingodb.pb.common.ResponseInfo response_info = 1;
    • mergeResponseInfo

      public Store.TxnPrewriteResponse.Builder mergeResponseInfo(Common.ResponseInfo value)
       response info
       
      .dingodb.pb.common.ResponseInfo response_info = 1;
    • clearResponseInfo

      public Store.TxnPrewriteResponse.Builder clearResponseInfo()
       response info
       
      .dingodb.pb.common.ResponseInfo response_info = 1;
    • getResponseInfoBuilder

      public Common.ResponseInfo.Builder getResponseInfoBuilder()
       response info
       
      .dingodb.pb.common.ResponseInfo response_info = 1;
    • getResponseInfoOrBuilder

      public Common.ResponseInfoOrBuilder getResponseInfoOrBuilder()
       response info
       
      .dingodb.pb.common.ResponseInfo response_info = 1;
      Specified by:
      getResponseInfoOrBuilder in interface Store.TxnPrewriteResponseOrBuilder
    • hasError

      public boolean hasError()
       error code
       
      .dingodb.pb.error.Error error = 2;
      Specified by:
      hasError in interface Store.TxnPrewriteResponseOrBuilder
      Returns:
      Whether the error field is set.
    • getError

      public ErrorOuterClass.Error getError()
       error code
       
      .dingodb.pb.error.Error error = 2;
      Specified by:
      getError in interface Store.TxnPrewriteResponseOrBuilder
      Returns:
      The error.
    • setError

       error code
       
      .dingodb.pb.error.Error error = 2;
    • setError

       error code
       
      .dingodb.pb.error.Error error = 2;
    • mergeError

       error code
       
      .dingodb.pb.error.Error error = 2;
    • clearError

      public Store.TxnPrewriteResponse.Builder clearError()
       error code
       
      .dingodb.pb.error.Error error = 2;
    • getErrorBuilder

      public ErrorOuterClass.Error.Builder getErrorBuilder()
       error code
       
      .dingodb.pb.error.Error error = 2;
    • getErrorOrBuilder

      public ErrorOuterClass.ErrorOrBuilder getErrorOrBuilder()
       error code
       
      .dingodb.pb.error.Error error = 2;
      Specified by:
      getErrorOrBuilder in interface Store.TxnPrewriteResponseOrBuilder
    • getTxnResultList

      public List<Store.TxnResultInfo> getTxnResultList()
       for prewrite, txn_result will be one of the following:
       1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned
       2. WriteConflict: Write conflict with key which is already written after start_ts
          2.1 Optimistic: in optimistic transactions.
          2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.
       3. otherwise, txn_result is empty
       for success prewrite, txn_result is empty
       for failure prewrite, txn_result is not empty
       if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retry
       
      repeated .dingodb.pb.store.TxnResultInfo txn_result = 3;
      Specified by:
      getTxnResultList in interface Store.TxnPrewriteResponseOrBuilder
    • getTxnResultCount

      public int getTxnResultCount()
       for prewrite, txn_result will be one of the following:
       1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned
       2. WriteConflict: Write conflict with key which is already written after start_ts
          2.1 Optimistic: in optimistic transactions.
          2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.
       3. otherwise, txn_result is empty
       for success prewrite, txn_result is empty
       for failure prewrite, txn_result is not empty
       if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retry
       
      repeated .dingodb.pb.store.TxnResultInfo txn_result = 3;
      Specified by:
      getTxnResultCount in interface Store.TxnPrewriteResponseOrBuilder
    • getTxnResult

      public Store.TxnResultInfo getTxnResult(int index)
       for prewrite, txn_result will be one of the following:
       1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned
       2. WriteConflict: Write conflict with key which is already written after start_ts
          2.1 Optimistic: in optimistic transactions.
          2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.
       3. otherwise, txn_result is empty
       for success prewrite, txn_result is empty
       for failure prewrite, txn_result is not empty
       if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retry
       
      repeated .dingodb.pb.store.TxnResultInfo txn_result = 3;
      Specified by:
      getTxnResult in interface Store.TxnPrewriteResponseOrBuilder
    • setTxnResult

      public Store.TxnPrewriteResponse.Builder setTxnResult(int index, Store.TxnResultInfo value)
       for prewrite, txn_result will be one of the following:
       1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned
       2. WriteConflict: Write conflict with key which is already written after start_ts
          2.1 Optimistic: in optimistic transactions.
          2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.
       3. otherwise, txn_result is empty
       for success prewrite, txn_result is empty
       for failure prewrite, txn_result is not empty
       if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retry
       
      repeated .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • setTxnResult

      public Store.TxnPrewriteResponse.Builder setTxnResult(int index, Store.TxnResultInfo.Builder builderForValue)
       for prewrite, txn_result will be one of the following:
       1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned
       2. WriteConflict: Write conflict with key which is already written after start_ts
          2.1 Optimistic: in optimistic transactions.
          2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.
       3. otherwise, txn_result is empty
       for success prewrite, txn_result is empty
       for failure prewrite, txn_result is not empty
       if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retry
       
      repeated .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • addTxnResult

       for prewrite, txn_result will be one of the following:
       1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned
       2. WriteConflict: Write conflict with key which is already written after start_ts
          2.1 Optimistic: in optimistic transactions.
          2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.
       3. otherwise, txn_result is empty
       for success prewrite, txn_result is empty
       for failure prewrite, txn_result is not empty
       if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retry
       
      repeated .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • addTxnResult

      public Store.TxnPrewriteResponse.Builder addTxnResult(int index, Store.TxnResultInfo value)
       for prewrite, txn_result will be one of the following:
       1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned
       2. WriteConflict: Write conflict with key which is already written after start_ts
          2.1 Optimistic: in optimistic transactions.
          2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.
       3. otherwise, txn_result is empty
       for success prewrite, txn_result is empty
       for failure prewrite, txn_result is not empty
       if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retry
       
      repeated .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • addTxnResult

      public Store.TxnPrewriteResponse.Builder addTxnResult(Store.TxnResultInfo.Builder builderForValue)
       for prewrite, txn_result will be one of the following:
       1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned
       2. WriteConflict: Write conflict with key which is already written after start_ts
          2.1 Optimistic: in optimistic transactions.
          2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.
       3. otherwise, txn_result is empty
       for success prewrite, txn_result is empty
       for failure prewrite, txn_result is not empty
       if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retry
       
      repeated .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • addTxnResult

      public Store.TxnPrewriteResponse.Builder addTxnResult(int index, Store.TxnResultInfo.Builder builderForValue)
       for prewrite, txn_result will be one of the following:
       1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned
       2. WriteConflict: Write conflict with key which is already written after start_ts
          2.1 Optimistic: in optimistic transactions.
          2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.
       3. otherwise, txn_result is empty
       for success prewrite, txn_result is empty
       for failure prewrite, txn_result is not empty
       if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retry
       
      repeated .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • addAllTxnResult

      public Store.TxnPrewriteResponse.Builder addAllTxnResult(Iterable<? extends Store.TxnResultInfo> values)
       for prewrite, txn_result will be one of the following:
       1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned
       2. WriteConflict: Write conflict with key which is already written after start_ts
          2.1 Optimistic: in optimistic transactions.
          2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.
       3. otherwise, txn_result is empty
       for success prewrite, txn_result is empty
       for failure prewrite, txn_result is not empty
       if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retry
       
      repeated .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • clearTxnResult

      public Store.TxnPrewriteResponse.Builder clearTxnResult()
       for prewrite, txn_result will be one of the following:
       1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned
       2. WriteConflict: Write conflict with key which is already written after start_ts
          2.1 Optimistic: in optimistic transactions.
          2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.
       3. otherwise, txn_result is empty
       for success prewrite, txn_result is empty
       for failure prewrite, txn_result is not empty
       if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retry
       
      repeated .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • removeTxnResult

      public Store.TxnPrewriteResponse.Builder removeTxnResult(int index)
       for prewrite, txn_result will be one of the following:
       1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned
       2. WriteConflict: Write conflict with key which is already written after start_ts
          2.1 Optimistic: in optimistic transactions.
          2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.
       3. otherwise, txn_result is empty
       for success prewrite, txn_result is empty
       for failure prewrite, txn_result is not empty
       if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retry
       
      repeated .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • getTxnResultBuilder

      public Store.TxnResultInfo.Builder getTxnResultBuilder(int index)
       for prewrite, txn_result will be one of the following:
       1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned
       2. WriteConflict: Write conflict with key which is already written after start_ts
          2.1 Optimistic: in optimistic transactions.
          2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.
       3. otherwise, txn_result is empty
       for success prewrite, txn_result is empty
       for failure prewrite, txn_result is not empty
       if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retry
       
      repeated .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • getTxnResultOrBuilder

      public Store.TxnResultInfoOrBuilder getTxnResultOrBuilder(int index)
       for prewrite, txn_result will be one of the following:
       1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned
       2. WriteConflict: Write conflict with key which is already written after start_ts
          2.1 Optimistic: in optimistic transactions.
          2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.
       3. otherwise, txn_result is empty
       for success prewrite, txn_result is empty
       for failure prewrite, txn_result is not empty
       if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retry
       
      repeated .dingodb.pb.store.TxnResultInfo txn_result = 3;
      Specified by:
      getTxnResultOrBuilder in interface Store.TxnPrewriteResponseOrBuilder
    • getTxnResultOrBuilderList

      public List<? extends Store.TxnResultInfoOrBuilder> getTxnResultOrBuilderList()
       for prewrite, txn_result will be one of the following:
       1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned
       2. WriteConflict: Write conflict with key which is already written after start_ts
          2.1 Optimistic: in optimistic transactions.
          2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.
       3. otherwise, txn_result is empty
       for success prewrite, txn_result is empty
       for failure prewrite, txn_result is not empty
       if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retry
       
      repeated .dingodb.pb.store.TxnResultInfo txn_result = 3;
      Specified by:
      getTxnResultOrBuilderList in interface Store.TxnPrewriteResponseOrBuilder
    • addTxnResultBuilder

      public Store.TxnResultInfo.Builder addTxnResultBuilder()
       for prewrite, txn_result will be one of the following:
       1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned
       2. WriteConflict: Write conflict with key which is already written after start_ts
          2.1 Optimistic: in optimistic transactions.
          2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.
       3. otherwise, txn_result is empty
       for success prewrite, txn_result is empty
       for failure prewrite, txn_result is not empty
       if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retry
       
      repeated .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • addTxnResultBuilder

      public Store.TxnResultInfo.Builder addTxnResultBuilder(int index)
       for prewrite, txn_result will be one of the following:
       1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned
       2. WriteConflict: Write conflict with key which is already written after start_ts
          2.1 Optimistic: in optimistic transactions.
          2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.
       3. otherwise, txn_result is empty
       for success prewrite, txn_result is empty
       for failure prewrite, txn_result is not empty
       if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retry
       
      repeated .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • getTxnResultBuilderList

      public List<Store.TxnResultInfo.Builder> getTxnResultBuilderList()
       for prewrite, txn_result will be one of the following:
       1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned
       2. WriteConflict: Write conflict with key which is already written after start_ts
          2.1 Optimistic: in optimistic transactions.
          2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.
       3. otherwise, txn_result is empty
       for success prewrite, txn_result is empty
       for failure prewrite, txn_result is not empty
       if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retry
       
      repeated .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • getKeysAlreadyExistList

      public List<Store.AlreadyExist> getKeysAlreadyExistList()
       if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
       
      repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;
      Specified by:
      getKeysAlreadyExistList in interface Store.TxnPrewriteResponseOrBuilder
    • getKeysAlreadyExistCount

      public int getKeysAlreadyExistCount()
       if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
       
      repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;
      Specified by:
      getKeysAlreadyExistCount in interface Store.TxnPrewriteResponseOrBuilder
    • getKeysAlreadyExist

      public Store.AlreadyExist getKeysAlreadyExist(int index)
       if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
       
      repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;
      Specified by:
      getKeysAlreadyExist in interface Store.TxnPrewriteResponseOrBuilder
    • setKeysAlreadyExist

      public Store.TxnPrewriteResponse.Builder setKeysAlreadyExist(int index, Store.AlreadyExist value)
       if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
       
      repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;
    • setKeysAlreadyExist

      public Store.TxnPrewriteResponse.Builder setKeysAlreadyExist(int index, Store.AlreadyExist.Builder builderForValue)
       if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
       
      repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;
    • addKeysAlreadyExist

      public Store.TxnPrewriteResponse.Builder addKeysAlreadyExist(Store.AlreadyExist value)
       if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
       
      repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;
    • addKeysAlreadyExist

      public Store.TxnPrewriteResponse.Builder addKeysAlreadyExist(int index, Store.AlreadyExist value)
       if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
       
      repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;
    • addKeysAlreadyExist

      public Store.TxnPrewriteResponse.Builder addKeysAlreadyExist(Store.AlreadyExist.Builder builderForValue)
       if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
       
      repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;
    • addKeysAlreadyExist

      public Store.TxnPrewriteResponse.Builder addKeysAlreadyExist(int index, Store.AlreadyExist.Builder builderForValue)
       if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
       
      repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;
    • addAllKeysAlreadyExist

      public Store.TxnPrewriteResponse.Builder addAllKeysAlreadyExist(Iterable<? extends Store.AlreadyExist> values)
       if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
       
      repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;
    • clearKeysAlreadyExist

      public Store.TxnPrewriteResponse.Builder clearKeysAlreadyExist()
       if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
       
      repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;
    • removeKeysAlreadyExist

      public Store.TxnPrewriteResponse.Builder removeKeysAlreadyExist(int index)
       if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
       
      repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;
    • getKeysAlreadyExistBuilder

      public Store.AlreadyExist.Builder getKeysAlreadyExistBuilder(int index)
       if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
       
      repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;
    • getKeysAlreadyExistOrBuilder

      public Store.AlreadyExistOrBuilder getKeysAlreadyExistOrBuilder(int index)
       if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
       
      repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;
      Specified by:
      getKeysAlreadyExistOrBuilder in interface Store.TxnPrewriteResponseOrBuilder
    • getKeysAlreadyExistOrBuilderList

      public List<? extends Store.AlreadyExistOrBuilder> getKeysAlreadyExistOrBuilderList()
       if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
       
      repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;
      Specified by:
      getKeysAlreadyExistOrBuilderList in interface Store.TxnPrewriteResponseOrBuilder
    • addKeysAlreadyExistBuilder

      public Store.AlreadyExist.Builder addKeysAlreadyExistBuilder()
       if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
       
      repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;
    • addKeysAlreadyExistBuilder

      public Store.AlreadyExist.Builder addKeysAlreadyExistBuilder(int index)
       if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
       
      repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;
    • getKeysAlreadyExistBuilderList

      public List<Store.AlreadyExist.Builder> getKeysAlreadyExistBuilderList()
       if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
       
      repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;
    • getOnePcCommitTs

      public long getOnePcCommitTs()
       When the transaction is successfully committed with 1PC protocol, this
       field will be set to the commit ts of the transaction. Otherwise, if dingo-store
       failed to commit it with 1PC or the transaction is not 1PC, the value will
       be 0.
       
      int64 one_pc_commit_ts = 5;
      Specified by:
      getOnePcCommitTs in interface Store.TxnPrewriteResponseOrBuilder
      Returns:
      The onePcCommitTs.
    • setOnePcCommitTs

      public Store.TxnPrewriteResponse.Builder setOnePcCommitTs(long value)
       When the transaction is successfully committed with 1PC protocol, this
       field will be set to the commit ts of the transaction. Otherwise, if dingo-store
       failed to commit it with 1PC or the transaction is not 1PC, the value will
       be 0.
       
      int64 one_pc_commit_ts = 5;
      Parameters:
      value - The onePcCommitTs to set.
      Returns:
      This builder for chaining.
    • clearOnePcCommitTs

      public Store.TxnPrewriteResponse.Builder clearOnePcCommitTs()
       When the transaction is successfully committed with 1PC protocol, this
       field will be set to the commit ts of the transaction. Otherwise, if dingo-store
       failed to commit it with 1PC or the transaction is not 1PC, the value will
       be 0.
       
      int64 one_pc_commit_ts = 5;
      Returns:
      This builder for chaining.
    • getMinCommitTs

      public long getMinCommitTs()
       0 if the min_commit_ts is not ready or any other reason that async
       commit cannot proceed. The client can then fallback to normal way to
       continue committing the transaction if prewrite are all finished.
       
      uint64 min_commit_ts = 6;
      Specified by:
      getMinCommitTs in interface Store.TxnPrewriteResponseOrBuilder
      Returns:
      The minCommitTs.
    • setMinCommitTs

      public Store.TxnPrewriteResponse.Builder setMinCommitTs(long value)
       0 if the min_commit_ts is not ready or any other reason that async
       commit cannot proceed. The client can then fallback to normal way to
       continue committing the transaction if prewrite are all finished.
       
      uint64 min_commit_ts = 6;
      Parameters:
      value - The minCommitTs to set.
      Returns:
      This builder for chaining.
    • clearMinCommitTs

      public Store.TxnPrewriteResponse.Builder clearMinCommitTs()
       0 if the min_commit_ts is not ready or any other reason that async
       commit cannot proceed. The client can then fallback to normal way to
       continue committing the transaction if prewrite are all finished.
       
      uint64 min_commit_ts = 6;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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