public static final class Kvrpcpb.CommitRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CommitRequest.Builder> implements Kvrpcpb.CommitRequestOrBuilder
The second phase of writing to TiKV. If there are no errors or conflicts, then this request commits a transaction so that its data can be read by other transactions.Protobuf type
kvrpcpb.CommitRequest
Modifier and Type | Method and Description |
---|---|
Kvrpcpb.CommitRequest.Builder |
addAllKeys(Iterable<? extends com.google.protobuf.ByteString> values)
All keys in the transaction (to be committed).
|
Kvrpcpb.CommitRequest.Builder |
addKeys(com.google.protobuf.ByteString value)
All keys in the transaction (to be committed).
|
Kvrpcpb.CommitRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Kvrpcpb.CommitRequest |
build() |
Kvrpcpb.CommitRequest |
buildPartial() |
Kvrpcpb.CommitRequest.Builder |
clear() |
Kvrpcpb.CommitRequest.Builder |
clearCommitVersion()
Timestamp for the end of the transaction.
|
Kvrpcpb.CommitRequest.Builder |
clearContext()
.kvrpcpb.Context context = 1; |
Kvrpcpb.CommitRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Kvrpcpb.CommitRequest.Builder |
clearKeys()
All keys in the transaction (to be committed).
|
Kvrpcpb.CommitRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Kvrpcpb.CommitRequest.Builder |
clearStartVersion()
Identifies the transaction.
|
Kvrpcpb.CommitRequest.Builder |
clone() |
long |
getCommitVersion()
Timestamp for the end of the transaction.
|
Kvrpcpb.Context |
getContext()
.kvrpcpb.Context context = 1; |
Kvrpcpb.Context.Builder |
getContextBuilder()
.kvrpcpb.Context context = 1; |
Kvrpcpb.ContextOrBuilder |
getContextOrBuilder()
.kvrpcpb.Context context = 1; |
Kvrpcpb.CommitRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getKeys(int index)
All keys in the transaction (to be committed).
|
int |
getKeysCount()
All keys in the transaction (to be committed).
|
List<com.google.protobuf.ByteString> |
getKeysList()
All keys in the transaction (to be committed).
|
long |
getStartVersion()
Identifies the transaction.
|
boolean |
hasContext()
.kvrpcpb.Context context = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Kvrpcpb.CommitRequest.Builder |
mergeContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1; |
Kvrpcpb.CommitRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Kvrpcpb.CommitRequest.Builder |
mergeFrom(Kvrpcpb.CommitRequest other) |
Kvrpcpb.CommitRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
Kvrpcpb.CommitRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Kvrpcpb.CommitRequest.Builder |
setCommitVersion(long value)
Timestamp for the end of the transaction.
|
Kvrpcpb.CommitRequest.Builder |
setContext(Kvrpcpb.Context.Builder builderForValue)
.kvrpcpb.Context context = 1; |
Kvrpcpb.CommitRequest.Builder |
setContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1; |
Kvrpcpb.CommitRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Kvrpcpb.CommitRequest.Builder |
setKeys(int index,
com.google.protobuf.ByteString value)
All keys in the transaction (to be committed).
|
Kvrpcpb.CommitRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Kvrpcpb.CommitRequest.Builder |
setStartVersion(long value)
Identifies the transaction.
|
Kvrpcpb.CommitRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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.CommitRequest.Builder>
public Kvrpcpb.CommitRequest.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.CommitRequest.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.CommitRequest.Builder>
public Kvrpcpb.CommitRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Kvrpcpb.CommitRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Kvrpcpb.CommitRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Kvrpcpb.CommitRequest.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.CommitRequest.Builder>
public Kvrpcpb.CommitRequest.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.CommitRequest.Builder>
public Kvrpcpb.CommitRequest.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.CommitRequest.Builder>
public Kvrpcpb.CommitRequest.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.CommitRequest.Builder>
public Kvrpcpb.CommitRequest.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.CommitRequest.Builder>
public Kvrpcpb.CommitRequest.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.CommitRequest.Builder>
public Kvrpcpb.CommitRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Kvrpcpb.CommitRequest.Builder>
public Kvrpcpb.CommitRequest.Builder mergeFrom(Kvrpcpb.CommitRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CommitRequest.Builder>
public Kvrpcpb.CommitRequest.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.CommitRequest.Builder>
IOException
public boolean hasContext()
.kvrpcpb.Context context = 1;
hasContext
in interface Kvrpcpb.CommitRequestOrBuilder
public Kvrpcpb.Context getContext()
.kvrpcpb.Context context = 1;
getContext
in interface Kvrpcpb.CommitRequestOrBuilder
public Kvrpcpb.CommitRequest.Builder setContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1;
public Kvrpcpb.CommitRequest.Builder setContext(Kvrpcpb.Context.Builder builderForValue)
.kvrpcpb.Context context = 1;
public Kvrpcpb.CommitRequest.Builder mergeContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1;
public Kvrpcpb.CommitRequest.Builder clearContext()
.kvrpcpb.Context context = 1;
public Kvrpcpb.Context.Builder getContextBuilder()
.kvrpcpb.Context context = 1;
public Kvrpcpb.ContextOrBuilder getContextOrBuilder()
.kvrpcpb.Context context = 1;
getContextOrBuilder
in interface Kvrpcpb.CommitRequestOrBuilder
public long getStartVersion()
Identifies the transaction.
uint64 start_version = 2;
getStartVersion
in interface Kvrpcpb.CommitRequestOrBuilder
public Kvrpcpb.CommitRequest.Builder setStartVersion(long value)
Identifies the transaction.
uint64 start_version = 2;
value
- The startVersion to set.public Kvrpcpb.CommitRequest.Builder clearStartVersion()
Identifies the transaction.
uint64 start_version = 2;
public List<com.google.protobuf.ByteString> getKeysList()
All keys in the transaction (to be committed).
repeated bytes keys = 3;
getKeysList
in interface Kvrpcpb.CommitRequestOrBuilder
public int getKeysCount()
All keys in the transaction (to be committed).
repeated bytes keys = 3;
getKeysCount
in interface Kvrpcpb.CommitRequestOrBuilder
public com.google.protobuf.ByteString getKeys(int index)
All keys in the transaction (to be committed).
repeated bytes keys = 3;
getKeys
in interface Kvrpcpb.CommitRequestOrBuilder
index
- The index of the element to return.public Kvrpcpb.CommitRequest.Builder setKeys(int index, com.google.protobuf.ByteString value)
All keys in the transaction (to be committed).
repeated bytes keys = 3;
index
- The index to set the value at.value
- The keys to set.public Kvrpcpb.CommitRequest.Builder addKeys(com.google.protobuf.ByteString value)
All keys in the transaction (to be committed).
repeated bytes keys = 3;
value
- The keys to add.public Kvrpcpb.CommitRequest.Builder addAllKeys(Iterable<? extends com.google.protobuf.ByteString> values)
All keys in the transaction (to be committed).
repeated bytes keys = 3;
values
- The keys to add.public Kvrpcpb.CommitRequest.Builder clearKeys()
All keys in the transaction (to be committed).
repeated bytes keys = 3;
public long getCommitVersion()
Timestamp for the end of the transaction. Must be greater than `start_version`.
uint64 commit_version = 4;
getCommitVersion
in interface Kvrpcpb.CommitRequestOrBuilder
public Kvrpcpb.CommitRequest.Builder setCommitVersion(long value)
Timestamp for the end of the transaction. Must be greater than `start_version`.
uint64 commit_version = 4;
value
- The commitVersion to set.public Kvrpcpb.CommitRequest.Builder clearCommitVersion()
Timestamp for the end of the transaction. Must be greater than `start_version`.
uint64 commit_version = 4;
public final Kvrpcpb.CommitRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CommitRequest.Builder>
public final Kvrpcpb.CommitRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CommitRequest.Builder>
Copyright © 2024 PingCAP. All rights reserved.