Class Store.TxnCommitResponse.Builder

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

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

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

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

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

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

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

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

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

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

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

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

      public boolean hasResponseInfo()
       response info
       
      .dingodb.pb.common.ResponseInfo response_info = 1;
      Specified by:
      hasResponseInfo in interface Store.TxnCommitResponseOrBuilder
      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.TxnCommitResponseOrBuilder
      Returns:
      The responseInfo.
    • setResponseInfo

      public Store.TxnCommitResponse.Builder setResponseInfo(Common.ResponseInfo value)
       response info
       
      .dingodb.pb.common.ResponseInfo response_info = 1;
    • setResponseInfo

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

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

      public Store.TxnCommitResponse.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.TxnCommitResponseOrBuilder
    • hasError

      public boolean hasError()
       error code
       
      .dingodb.pb.error.Error error = 2;
      Specified by:
      hasError in interface Store.TxnCommitResponseOrBuilder
      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.TxnCommitResponseOrBuilder
      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.TxnCommitResponse.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.TxnCommitResponseOrBuilder
    • hasTxnResult

      public boolean hasTxnResult()
       the txn_result is one of the following:
       1. LockInfo: Commit meets a lock and can't proceed, the lock is returned
       2. TxnNotFound: if committing a key but not found its lock, the lock may be cleaned up by gc or resolved by. If
       committing primary key meet this error, the transaction may be rolled back. If committing secondary key meet this,
       Executor can think its lock is resolved, and continue to commit.
       3. WriteConflict: SelfRolledBack: the transaction itself has been rolled back when it tries to commit.
       4. otherwise, txn_result is empty
       
      .dingodb.pb.store.TxnResultInfo txn_result = 3;
      Specified by:
      hasTxnResult in interface Store.TxnCommitResponseOrBuilder
      Returns:
      Whether the txnResult field is set.
    • getTxnResult

      public Store.TxnResultInfo getTxnResult()
       the txn_result is one of the following:
       1. LockInfo: Commit meets a lock and can't proceed, the lock is returned
       2. TxnNotFound: if committing a key but not found its lock, the lock may be cleaned up by gc or resolved by. If
       committing primary key meet this error, the transaction may be rolled back. If committing secondary key meet this,
       Executor can think its lock is resolved, and continue to commit.
       3. WriteConflict: SelfRolledBack: the transaction itself has been rolled back when it tries to commit.
       4. otherwise, txn_result is empty
       
      .dingodb.pb.store.TxnResultInfo txn_result = 3;
      Specified by:
      getTxnResult in interface Store.TxnCommitResponseOrBuilder
      Returns:
      The txnResult.
    • setTxnResult

       the txn_result is one of the following:
       1. LockInfo: Commit meets a lock and can't proceed, the lock is returned
       2. TxnNotFound: if committing a key but not found its lock, the lock may be cleaned up by gc or resolved by. If
       committing primary key meet this error, the transaction may be rolled back. If committing secondary key meet this,
       Executor can think its lock is resolved, and continue to commit.
       3. WriteConflict: SelfRolledBack: the transaction itself has been rolled back when it tries to commit.
       4. otherwise, txn_result is empty
       
      .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • setTxnResult

      public Store.TxnCommitResponse.Builder setTxnResult(Store.TxnResultInfo.Builder builderForValue)
       the txn_result is one of the following:
       1. LockInfo: Commit meets a lock and can't proceed, the lock is returned
       2. TxnNotFound: if committing a key but not found its lock, the lock may be cleaned up by gc or resolved by. If
       committing primary key meet this error, the transaction may be rolled back. If committing secondary key meet this,
       Executor can think its lock is resolved, and continue to commit.
       3. WriteConflict: SelfRolledBack: the transaction itself has been rolled back when it tries to commit.
       4. otherwise, txn_result is empty
       
      .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • mergeTxnResult

       the txn_result is one of the following:
       1. LockInfo: Commit meets a lock and can't proceed, the lock is returned
       2. TxnNotFound: if committing a key but not found its lock, the lock may be cleaned up by gc or resolved by. If
       committing primary key meet this error, the transaction may be rolled back. If committing secondary key meet this,
       Executor can think its lock is resolved, and continue to commit.
       3. WriteConflict: SelfRolledBack: the transaction itself has been rolled back when it tries to commit.
       4. otherwise, txn_result is empty
       
      .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • clearTxnResult

      public Store.TxnCommitResponse.Builder clearTxnResult()
       the txn_result is one of the following:
       1. LockInfo: Commit meets a lock and can't proceed, the lock is returned
       2. TxnNotFound: if committing a key but not found its lock, the lock may be cleaned up by gc or resolved by. If
       committing primary key meet this error, the transaction may be rolled back. If committing secondary key meet this,
       Executor can think its lock is resolved, and continue to commit.
       3. WriteConflict: SelfRolledBack: the transaction itself has been rolled back when it tries to commit.
       4. otherwise, txn_result is empty
       
      .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • getTxnResultBuilder

      public Store.TxnResultInfo.Builder getTxnResultBuilder()
       the txn_result is one of the following:
       1. LockInfo: Commit meets a lock and can't proceed, the lock is returned
       2. TxnNotFound: if committing a key but not found its lock, the lock may be cleaned up by gc or resolved by. If
       committing primary key meet this error, the transaction may be rolled back. If committing secondary key meet this,
       Executor can think its lock is resolved, and continue to commit.
       3. WriteConflict: SelfRolledBack: the transaction itself has been rolled back when it tries to commit.
       4. otherwise, txn_result is empty
       
      .dingodb.pb.store.TxnResultInfo txn_result = 3;
    • getTxnResultOrBuilder

      public Store.TxnResultInfoOrBuilder getTxnResultOrBuilder()
       the txn_result is one of the following:
       1. LockInfo: Commit meets a lock and can't proceed, the lock is returned
       2. TxnNotFound: if committing a key but not found its lock, the lock may be cleaned up by gc or resolved by. If
       committing primary key meet this error, the transaction may be rolled back. If committing secondary key meet this,
       Executor can think its lock is resolved, and continue to commit.
       3. WriteConflict: SelfRolledBack: the transaction itself has been rolled back when it tries to commit.
       4. otherwise, txn_result is empty
       
      .dingodb.pb.store.TxnResultInfo txn_result = 3;
      Specified by:
      getTxnResultOrBuilder in interface Store.TxnCommitResponseOrBuilder
    • getCommitTs

      public long getCommitTs()
       The commit_ts of the transaction.
       
      int64 commit_ts = 4;
      Specified by:
      getCommitTs in interface Store.TxnCommitResponseOrBuilder
      Returns:
      The commitTs.
    • setCommitTs

      public Store.TxnCommitResponse.Builder setCommitTs(long value)
       The commit_ts of the transaction.
       
      int64 commit_ts = 4;
      Parameters:
      value - The commitTs to set.
      Returns:
      This builder for chaining.
    • clearCommitTs

      public Store.TxnCommitResponse.Builder clearCommitTs()
       The commit_ts of the transaction.
       
      int64 commit_ts = 4;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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