Package io.dingodb.store
Class Store.TxnCheckTxnStatusResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Store.TxnCheckTxnStatusResponse.Builder>
io.dingodb.store.Store.TxnCheckTxnStatusResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Store.TxnCheckTxnStatusResponseOrBuilder,Cloneable
- Enclosing class:
- Store.TxnCheckTxnStatusResponse
public static final class Store.TxnCheckTxnStatusResponse.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Store.TxnCheckTxnStatusResponse.Builder>
implements Store.TxnCheckTxnStatusResponseOrBuilder
Protobuf type
dingodb.pb.store.TxnCheckTxnStatusResponse-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The action performed by dingo-store (and why if the action is to rollback).if the transaction of the lock is committed, the commit_ts is returnederror codeclearField(com.google.protobuf.Descriptors.FieldDescriptor field) .dingodb.pb.store.LockInfo lock_info = 7;Three kinds of transaction status: locked: lock_ttl > 0 committed: commit_ts > 0 rollbacked: lock_ttl = 0 && commit_ts = 0clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) response infothe txn_result is one of the following: 1.clone()The action performed by dingo-store (and why if the action is to rollback).intThe action performed by dingo-store (and why if the action is to rollback).longif the transaction of the lock is committed, the commit_ts is returnedstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetError()error codeerror codeerror code.dingodb.pb.store.LockInfo lock_info = 7;.dingodb.pb.store.LockInfo lock_info = 7;.dingodb.pb.store.LockInfo lock_info = 7;longThree kinds of transaction status: locked: lock_ttl > 0 committed: commit_ts > 0 rollbacked: lock_ttl = 0 && commit_ts = 0response inforesponse inforesponse infothe txn_result is one of the following: 1.the txn_result is one of the following: 1.the txn_result is one of the following: 1.booleanhasError()error codeboolean.dingodb.pb.store.LockInfo lock_info = 7;booleanresponse infobooleanthe txn_result is one of the following: 1.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeError(ErrorOuterClass.Error value) error codemergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLockInfo(Store.LockInfo value) .dingodb.pb.store.LockInfo lock_info = 7;response infothe txn_result is one of the following: 1.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAction(Store.Action value) The action performed by dingo-store (and why if the action is to rollback).setActionValue(int value) The action performed by dingo-store (and why if the action is to rollback).setCommitTs(long value) if the transaction of the lock is committed, the commit_ts is returnedsetError(ErrorOuterClass.Error value) error codesetError(ErrorOuterClass.Error.Builder builderForValue) error codesetLockInfo(Store.LockInfo value) .dingodb.pb.store.LockInfo lock_info = 7;setLockInfo(Store.LockInfo.Builder builderForValue) .dingodb.pb.store.LockInfo lock_info = 7;setLockTtl(long value) Three kinds of transaction status: locked: lock_ttl > 0 committed: commit_ts > 0 rollbacked: lock_ttl = 0 && commit_ts = 0setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) response infosetResponseInfo(Common.ResponseInfo.Builder builderForValue) response infosetTxnResult(Store.TxnResultInfo value) the txn_result is one of the following: 1.setTxnResult(Store.TxnResultInfo.Builder builderForValue) the txn_result is one of the following: 1.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, 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<Store.TxnCheckTxnStatusResponse.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<Store.TxnCheckTxnStatusResponse.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<Store.TxnCheckTxnStatusResponse.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<Store.TxnCheckTxnStatusResponse.Builder>
-
setField
public Store.TxnCheckTxnStatusResponse.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<Store.TxnCheckTxnStatusResponse.Builder>
-
clearField
public Store.TxnCheckTxnStatusResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.TxnCheckTxnStatusResponse.Builder>
-
clearOneof
public Store.TxnCheckTxnStatusResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.TxnCheckTxnStatusResponse.Builder>
-
setRepeatedField
public Store.TxnCheckTxnStatusResponse.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<Store.TxnCheckTxnStatusResponse.Builder>
-
addRepeatedField
public Store.TxnCheckTxnStatusResponse.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<Store.TxnCheckTxnStatusResponse.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Store.TxnCheckTxnStatusResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.TxnCheckTxnStatusResponse.Builder>
-
mergeFrom
public Store.TxnCheckTxnStatusResponse.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<Store.TxnCheckTxnStatusResponse.Builder>- Throws:
IOException
-
hasResponseInfo
public boolean hasResponseInfo()response info
.dingodb.pb.common.ResponseInfo response_info = 1;- Specified by:
hasResponseInfoin interfaceStore.TxnCheckTxnStatusResponseOrBuilder- Returns:
- Whether the responseInfo field is set.
-
getResponseInfo
response info
.dingodb.pb.common.ResponseInfo response_info = 1;- Specified by:
getResponseInfoin interfaceStore.TxnCheckTxnStatusResponseOrBuilder- Returns:
- The responseInfo.
-
setResponseInfo
response info
.dingodb.pb.common.ResponseInfo response_info = 1; -
setResponseInfo
public Store.TxnCheckTxnStatusResponse.Builder setResponseInfo(Common.ResponseInfo.Builder builderForValue) response info
.dingodb.pb.common.ResponseInfo response_info = 1; -
mergeResponseInfo
response info
.dingodb.pb.common.ResponseInfo response_info = 1; -
clearResponseInfo
response info
.dingodb.pb.common.ResponseInfo response_info = 1; -
getResponseInfoBuilder
response info
.dingodb.pb.common.ResponseInfo response_info = 1; -
getResponseInfoOrBuilder
response info
.dingodb.pb.common.ResponseInfo response_info = 1;- Specified by:
getResponseInfoOrBuilderin interfaceStore.TxnCheckTxnStatusResponseOrBuilder
-
hasError
public boolean hasError()error code
.dingodb.pb.error.Error error = 2;- Specified by:
hasErrorin interfaceStore.TxnCheckTxnStatusResponseOrBuilder- Returns:
- Whether the error field is set.
-
getError
error code
.dingodb.pb.error.Error error = 2;- Specified by:
getErrorin interfaceStore.TxnCheckTxnStatusResponseOrBuilder- Returns:
- The error.
-
setError
error code
.dingodb.pb.error.Error error = 2; -
setError
public Store.TxnCheckTxnStatusResponse.Builder setError(ErrorOuterClass.Error.Builder builderForValue) error code
.dingodb.pb.error.Error error = 2; -
mergeError
error code
.dingodb.pb.error.Error error = 2; -
clearError
error code
.dingodb.pb.error.Error error = 2; -
getErrorBuilder
error code
.dingodb.pb.error.Error error = 2; -
getErrorOrBuilder
error code
.dingodb.pb.error.Error error = 2;- Specified by:
getErrorOrBuilderin interfaceStore.TxnCheckTxnStatusResponseOrBuilder
-
hasTxnResult
public boolean hasTxnResult()the txn_result is one of the following: 1. PrimaryMismatch: CheckTxnStatus is sent to a lock that's not the primary. 2. TxnNotFound: Txn not found when checking txn status. 3. otherwise, txn_result is empty
.dingodb.pb.store.TxnResultInfo txn_result = 3;- Specified by:
hasTxnResultin interfaceStore.TxnCheckTxnStatusResponseOrBuilder- Returns:
- Whether the txnResult field is set.
-
getTxnResult
the txn_result is one of the following: 1. PrimaryMismatch: CheckTxnStatus is sent to a lock that's not the primary. 2. TxnNotFound: Txn not found when checking txn status. 3. otherwise, txn_result is empty
.dingodb.pb.store.TxnResultInfo txn_result = 3;- Specified by:
getTxnResultin interfaceStore.TxnCheckTxnStatusResponseOrBuilder- Returns:
- The txnResult.
-
setTxnResult
the txn_result is one of the following: 1. PrimaryMismatch: CheckTxnStatus is sent to a lock that's not the primary. 2. TxnNotFound: Txn not found when checking txn status. 3. otherwise, txn_result is empty
.dingodb.pb.store.TxnResultInfo txn_result = 3; -
setTxnResult
public Store.TxnCheckTxnStatusResponse.Builder setTxnResult(Store.TxnResultInfo.Builder builderForValue) the txn_result is one of the following: 1. PrimaryMismatch: CheckTxnStatus is sent to a lock that's not the primary. 2. TxnNotFound: Txn not found when checking txn status. 3. otherwise, txn_result is empty
.dingodb.pb.store.TxnResultInfo txn_result = 3; -
mergeTxnResult
the txn_result is one of the following: 1. PrimaryMismatch: CheckTxnStatus is sent to a lock that's not the primary. 2. TxnNotFound: Txn not found when checking txn status. 3. otherwise, txn_result is empty
.dingodb.pb.store.TxnResultInfo txn_result = 3; -
clearTxnResult
the txn_result is one of the following: 1. PrimaryMismatch: CheckTxnStatus is sent to a lock that's not the primary. 2. TxnNotFound: Txn not found when checking txn status. 3. otherwise, txn_result is empty
.dingodb.pb.store.TxnResultInfo txn_result = 3; -
getTxnResultBuilder
the txn_result is one of the following: 1. PrimaryMismatch: CheckTxnStatus is sent to a lock that's not the primary. 2. TxnNotFound: Txn not found when checking txn status. 3. otherwise, txn_result is empty
.dingodb.pb.store.TxnResultInfo txn_result = 3; -
getTxnResultOrBuilder
the txn_result is one of the following: 1. PrimaryMismatch: CheckTxnStatus is sent to a lock that's not the primary. 2. TxnNotFound: Txn not found when checking txn status. 3. otherwise, txn_result is empty
.dingodb.pb.store.TxnResultInfo txn_result = 3;- Specified by:
getTxnResultOrBuilderin interfaceStore.TxnCheckTxnStatusResponseOrBuilder
-
getLockTtl
public long getLockTtl()Three kinds of transaction status: locked: lock_ttl > 0 committed: commit_ts > 0 rollbacked: lock_ttl = 0 && commit_ts = 0
int64 lock_ttl = 4;- Specified by:
getLockTtlin interfaceStore.TxnCheckTxnStatusResponseOrBuilder- Returns:
- The lockTtl.
-
setLockTtl
Three kinds of transaction status: locked: lock_ttl > 0 committed: commit_ts > 0 rollbacked: lock_ttl = 0 && commit_ts = 0
int64 lock_ttl = 4;- Parameters:
value- The lockTtl to set.- Returns:
- This builder for chaining.
-
clearLockTtl
Three kinds of transaction status: locked: lock_ttl > 0 committed: commit_ts > 0 rollbacked: lock_ttl = 0 && commit_ts = 0
int64 lock_ttl = 4;- Returns:
- This builder for chaining.
-
getCommitTs
public long getCommitTs()if the transaction of the lock is committed, the commit_ts is returned
int64 commit_ts = 5;- Specified by:
getCommitTsin interfaceStore.TxnCheckTxnStatusResponseOrBuilder- Returns:
- The commitTs.
-
setCommitTs
if the transaction of the lock is committed, the commit_ts is returned
int64 commit_ts = 5;- Parameters:
value- The commitTs to set.- Returns:
- This builder for chaining.
-
clearCommitTs
if the transaction of the lock is committed, the commit_ts is returned
int64 commit_ts = 5;- Returns:
- This builder for chaining.
-
getActionValue
public int getActionValue()The action performed by dingo-store (and why if the action is to rollback). If the min_commit_ts of the lock is pushed, the Action of the response will be MinCommitTSPushed.
.dingodb.pb.store.Action action = 6;- Specified by:
getActionValuein interfaceStore.TxnCheckTxnStatusResponseOrBuilder- Returns:
- The enum numeric value on the wire for action.
-
setActionValue
The action performed by dingo-store (and why if the action is to rollback). If the min_commit_ts of the lock is pushed, the Action of the response will be MinCommitTSPushed.
.dingodb.pb.store.Action action = 6;- Parameters:
value- The enum numeric value on the wire for action to set.- Returns:
- This builder for chaining.
-
getAction
The action performed by dingo-store (and why if the action is to rollback). If the min_commit_ts of the lock is pushed, the Action of the response will be MinCommitTSPushed.
.dingodb.pb.store.Action action = 6;- Specified by:
getActionin interfaceStore.TxnCheckTxnStatusResponseOrBuilder- Returns:
- The action.
-
setAction
The action performed by dingo-store (and why if the action is to rollback). If the min_commit_ts of the lock is pushed, the Action of the response will be MinCommitTSPushed.
.dingodb.pb.store.Action action = 6;- Parameters:
value- The action to set.- Returns:
- This builder for chaining.
-
clearAction
The action performed by dingo-store (and why if the action is to rollback). If the min_commit_ts of the lock is pushed, the Action of the response will be MinCommitTSPushed.
.dingodb.pb.store.Action action = 6;- Returns:
- This builder for chaining.
-
hasLockInfo
public boolean hasLockInfo().dingodb.pb.store.LockInfo lock_info = 7;- Specified by:
hasLockInfoin interfaceStore.TxnCheckTxnStatusResponseOrBuilder- Returns:
- Whether the lockInfo field is set.
-
getLockInfo
.dingodb.pb.store.LockInfo lock_info = 7;- Specified by:
getLockInfoin interfaceStore.TxnCheckTxnStatusResponseOrBuilder- Returns:
- The lockInfo.
-
setLockInfo
.dingodb.pb.store.LockInfo lock_info = 7; -
setLockInfo
.dingodb.pb.store.LockInfo lock_info = 7; -
mergeLockInfo
.dingodb.pb.store.LockInfo lock_info = 7; -
clearLockInfo
.dingodb.pb.store.LockInfo lock_info = 7; -
getLockInfoBuilder
.dingodb.pb.store.LockInfo lock_info = 7; -
getLockInfoOrBuilder
.dingodb.pb.store.LockInfo lock_info = 7;- Specified by:
getLockInfoOrBuilderin interfaceStore.TxnCheckTxnStatusResponseOrBuilder
-
setUnknownFields
public final Store.TxnCheckTxnStatusResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.TxnCheckTxnStatusResponse.Builder>
-
mergeUnknownFields
public final Store.TxnCheckTxnStatusResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.TxnCheckTxnStatusResponse.Builder>
-