public static final class Kvrpcpb.LockInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.LockInfo.Builder> implements Kvrpcpb.LockInfoOrBuilder
kvrpcpb.LockInfo
Modifier and Type | Method and Description |
---|---|
Kvrpcpb.LockInfo.Builder |
addAllSecondaries(Iterable<? extends com.google.protobuf.ByteString> values)
repeated bytes secondaries = 10; |
Kvrpcpb.LockInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Kvrpcpb.LockInfo.Builder |
addSecondaries(com.google.protobuf.ByteString value)
repeated bytes secondaries = 10; |
Kvrpcpb.LockInfo |
build() |
Kvrpcpb.LockInfo |
buildPartial() |
Kvrpcpb.LockInfo.Builder |
clear() |
Kvrpcpb.LockInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Kvrpcpb.LockInfo.Builder |
clearKey()
bytes key = 3; |
Kvrpcpb.LockInfo.Builder |
clearLockForUpdateTs()
uint64 lock_for_update_ts = 7; |
Kvrpcpb.LockInfo.Builder |
clearLockTtl()
uint64 lock_ttl = 4; |
Kvrpcpb.LockInfo.Builder |
clearLockType()
.kvrpcpb.Op lock_type = 6; |
Kvrpcpb.LockInfo.Builder |
clearLockVersion()
uint64 lock_version = 2; |
Kvrpcpb.LockInfo.Builder |
clearMinCommitTs()
uint64 min_commit_ts = 9; |
Kvrpcpb.LockInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Kvrpcpb.LockInfo.Builder |
clearPrimaryLock()
bytes primary_lock = 1; |
Kvrpcpb.LockInfo.Builder |
clearSecondaries()
repeated bytes secondaries = 10; |
Kvrpcpb.LockInfo.Builder |
clearTxnSize()
How many keys this transaction involves in this region.
|
Kvrpcpb.LockInfo.Builder |
clearUseAsyncCommit()
Fields for transactions that are using Async Commit.
|
Kvrpcpb.LockInfo.Builder |
clone() |
Kvrpcpb.LockInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getKey()
bytes key = 3; |
long |
getLockForUpdateTs()
uint64 lock_for_update_ts = 7; |
long |
getLockTtl()
uint64 lock_ttl = 4; |
Kvrpcpb.Op |
getLockType()
.kvrpcpb.Op lock_type = 6; |
int |
getLockTypeValue()
.kvrpcpb.Op lock_type = 6; |
long |
getLockVersion()
uint64 lock_version = 2; |
long |
getMinCommitTs()
uint64 min_commit_ts = 9; |
com.google.protobuf.ByteString |
getPrimaryLock()
bytes primary_lock = 1; |
com.google.protobuf.ByteString |
getSecondaries(int index)
repeated bytes secondaries = 10; |
int |
getSecondariesCount()
repeated bytes secondaries = 10; |
List<com.google.protobuf.ByteString> |
getSecondariesList()
repeated bytes secondaries = 10; |
long |
getTxnSize()
How many keys this transaction involves in this region.
|
boolean |
getUseAsyncCommit()
Fields for transactions that are using Async Commit.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Kvrpcpb.LockInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Kvrpcpb.LockInfo.Builder |
mergeFrom(Kvrpcpb.LockInfo other) |
Kvrpcpb.LockInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
Kvrpcpb.LockInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Kvrpcpb.LockInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Kvrpcpb.LockInfo.Builder |
setKey(com.google.protobuf.ByteString value)
bytes key = 3; |
Kvrpcpb.LockInfo.Builder |
setLockForUpdateTs(long value)
uint64 lock_for_update_ts = 7; |
Kvrpcpb.LockInfo.Builder |
setLockTtl(long value)
uint64 lock_ttl = 4; |
Kvrpcpb.LockInfo.Builder |
setLockType(Kvrpcpb.Op value)
.kvrpcpb.Op lock_type = 6; |
Kvrpcpb.LockInfo.Builder |
setLockTypeValue(int value)
.kvrpcpb.Op lock_type = 6; |
Kvrpcpb.LockInfo.Builder |
setLockVersion(long value)
uint64 lock_version = 2; |
Kvrpcpb.LockInfo.Builder |
setMinCommitTs(long value)
uint64 min_commit_ts = 9; |
Kvrpcpb.LockInfo.Builder |
setPrimaryLock(com.google.protobuf.ByteString value)
bytes primary_lock = 1; |
Kvrpcpb.LockInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Kvrpcpb.LockInfo.Builder |
setSecondaries(int index,
com.google.protobuf.ByteString value)
repeated bytes secondaries = 10; |
Kvrpcpb.LockInfo.Builder |
setTxnSize(long value)
How many keys this transaction involves in this region.
|
Kvrpcpb.LockInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Kvrpcpb.LockInfo.Builder |
setUseAsyncCommit(boolean value)
Fields for transactions that are using Async Commit.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.LockInfo.Builder>
public Kvrpcpb.LockInfo.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.LockInfo.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.LockInfo.Builder>
public Kvrpcpb.LockInfo getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Kvrpcpb.LockInfo build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Kvrpcpb.LockInfo buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Kvrpcpb.LockInfo.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.LockInfo.Builder>
public Kvrpcpb.LockInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.LockInfo.Builder>
public Kvrpcpb.LockInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.LockInfo.Builder>
public Kvrpcpb.LockInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.LockInfo.Builder>
public Kvrpcpb.LockInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.LockInfo.Builder>
public Kvrpcpb.LockInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.LockInfo.Builder>
public Kvrpcpb.LockInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Kvrpcpb.LockInfo.Builder>
public Kvrpcpb.LockInfo.Builder mergeFrom(Kvrpcpb.LockInfo other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.LockInfo.Builder>
public Kvrpcpb.LockInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Kvrpcpb.LockInfo.Builder>
IOException
public com.google.protobuf.ByteString getPrimaryLock()
bytes primary_lock = 1;
getPrimaryLock
in interface Kvrpcpb.LockInfoOrBuilder
public Kvrpcpb.LockInfo.Builder setPrimaryLock(com.google.protobuf.ByteString value)
bytes primary_lock = 1;
value
- The primaryLock to set.public Kvrpcpb.LockInfo.Builder clearPrimaryLock()
bytes primary_lock = 1;
public long getLockVersion()
uint64 lock_version = 2;
getLockVersion
in interface Kvrpcpb.LockInfoOrBuilder
public Kvrpcpb.LockInfo.Builder setLockVersion(long value)
uint64 lock_version = 2;
value
- The lockVersion to set.public Kvrpcpb.LockInfo.Builder clearLockVersion()
uint64 lock_version = 2;
public com.google.protobuf.ByteString getKey()
bytes key = 3;
getKey
in interface Kvrpcpb.LockInfoOrBuilder
public Kvrpcpb.LockInfo.Builder setKey(com.google.protobuf.ByteString value)
bytes key = 3;
value
- The key to set.public Kvrpcpb.LockInfo.Builder clearKey()
bytes key = 3;
public long getLockTtl()
uint64 lock_ttl = 4;
getLockTtl
in interface Kvrpcpb.LockInfoOrBuilder
public Kvrpcpb.LockInfo.Builder setLockTtl(long value)
uint64 lock_ttl = 4;
value
- The lockTtl to set.public Kvrpcpb.LockInfo.Builder clearLockTtl()
uint64 lock_ttl = 4;
public long getTxnSize()
How many keys this transaction involves in this region.
uint64 txn_size = 5;
getTxnSize
in interface Kvrpcpb.LockInfoOrBuilder
public Kvrpcpb.LockInfo.Builder setTxnSize(long value)
How many keys this transaction involves in this region.
uint64 txn_size = 5;
value
- The txnSize to set.public Kvrpcpb.LockInfo.Builder clearTxnSize()
How many keys this transaction involves in this region.
uint64 txn_size = 5;
public int getLockTypeValue()
.kvrpcpb.Op lock_type = 6;
getLockTypeValue
in interface Kvrpcpb.LockInfoOrBuilder
public Kvrpcpb.LockInfo.Builder setLockTypeValue(int value)
.kvrpcpb.Op lock_type = 6;
value
- The enum numeric value on the wire for lockType to set.public Kvrpcpb.Op getLockType()
.kvrpcpb.Op lock_type = 6;
getLockType
in interface Kvrpcpb.LockInfoOrBuilder
public Kvrpcpb.LockInfo.Builder setLockType(Kvrpcpb.Op value)
.kvrpcpb.Op lock_type = 6;
value
- The lockType to set.public Kvrpcpb.LockInfo.Builder clearLockType()
.kvrpcpb.Op lock_type = 6;
public long getLockForUpdateTs()
uint64 lock_for_update_ts = 7;
getLockForUpdateTs
in interface Kvrpcpb.LockInfoOrBuilder
public Kvrpcpb.LockInfo.Builder setLockForUpdateTs(long value)
uint64 lock_for_update_ts = 7;
value
- The lockForUpdateTs to set.public Kvrpcpb.LockInfo.Builder clearLockForUpdateTs()
uint64 lock_for_update_ts = 7;
public boolean getUseAsyncCommit()
Fields for transactions that are using Async Commit.
bool use_async_commit = 8;
getUseAsyncCommit
in interface Kvrpcpb.LockInfoOrBuilder
public Kvrpcpb.LockInfo.Builder setUseAsyncCommit(boolean value)
Fields for transactions that are using Async Commit.
bool use_async_commit = 8;
value
- The useAsyncCommit to set.public Kvrpcpb.LockInfo.Builder clearUseAsyncCommit()
Fields for transactions that are using Async Commit.
bool use_async_commit = 8;
public long getMinCommitTs()
uint64 min_commit_ts = 9;
getMinCommitTs
in interface Kvrpcpb.LockInfoOrBuilder
public Kvrpcpb.LockInfo.Builder setMinCommitTs(long value)
uint64 min_commit_ts = 9;
value
- The minCommitTs to set.public Kvrpcpb.LockInfo.Builder clearMinCommitTs()
uint64 min_commit_ts = 9;
public List<com.google.protobuf.ByteString> getSecondariesList()
repeated bytes secondaries = 10;
getSecondariesList
in interface Kvrpcpb.LockInfoOrBuilder
public int getSecondariesCount()
repeated bytes secondaries = 10;
getSecondariesCount
in interface Kvrpcpb.LockInfoOrBuilder
public com.google.protobuf.ByteString getSecondaries(int index)
repeated bytes secondaries = 10;
getSecondaries
in interface Kvrpcpb.LockInfoOrBuilder
index
- The index of the element to return.public Kvrpcpb.LockInfo.Builder setSecondaries(int index, com.google.protobuf.ByteString value)
repeated bytes secondaries = 10;
index
- The index to set the value at.value
- The secondaries to set.public Kvrpcpb.LockInfo.Builder addSecondaries(com.google.protobuf.ByteString value)
repeated bytes secondaries = 10;
value
- The secondaries to add.public Kvrpcpb.LockInfo.Builder addAllSecondaries(Iterable<? extends com.google.protobuf.ByteString> values)
repeated bytes secondaries = 10;
values
- The secondaries to add.public Kvrpcpb.LockInfo.Builder clearSecondaries()
repeated bytes secondaries = 10;
public final Kvrpcpb.LockInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.LockInfo.Builder>
public final Kvrpcpb.LockInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.LockInfo.Builder>
Copyright © 2024 PingCAP. All rights reserved.