public static final class Kvrpcpb.PrewriteResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.PrewriteResponse.Builder> implements Kvrpcpb.PrewriteResponseOrBuilder
kvrpcpb.PrewriteResponse
Modifier and Type | Method and Description |
---|---|
Kvrpcpb.PrewriteResponse.Builder |
addAllErrors(Iterable<? extends Kvrpcpb.KeyError> values)
repeated .kvrpcpb.KeyError errors = 2; |
Kvrpcpb.PrewriteResponse.Builder |
addErrors(int index,
Kvrpcpb.KeyError.Builder builderForValue)
repeated .kvrpcpb.KeyError errors = 2; |
Kvrpcpb.PrewriteResponse.Builder |
addErrors(int index,
Kvrpcpb.KeyError value)
repeated .kvrpcpb.KeyError errors = 2; |
Kvrpcpb.PrewriteResponse.Builder |
addErrors(Kvrpcpb.KeyError.Builder builderForValue)
repeated .kvrpcpb.KeyError errors = 2; |
Kvrpcpb.PrewriteResponse.Builder |
addErrors(Kvrpcpb.KeyError value)
repeated .kvrpcpb.KeyError errors = 2; |
Kvrpcpb.KeyError.Builder |
addErrorsBuilder()
repeated .kvrpcpb.KeyError errors = 2; |
Kvrpcpb.KeyError.Builder |
addErrorsBuilder(int index)
repeated .kvrpcpb.KeyError errors = 2; |
Kvrpcpb.PrewriteResponse.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Kvrpcpb.PrewriteResponse |
build() |
Kvrpcpb.PrewriteResponse |
buildPartial() |
Kvrpcpb.PrewriteResponse.Builder |
clear() |
Kvrpcpb.PrewriteResponse.Builder |
clearErrors()
repeated .kvrpcpb.KeyError errors = 2; |
Kvrpcpb.PrewriteResponse.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Kvrpcpb.PrewriteResponse.Builder |
clearMinCommitTs()
0 if the min_commit_ts is not ready or any other reason that async
commit cannot proceed.
|
Kvrpcpb.PrewriteResponse.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Kvrpcpb.PrewriteResponse.Builder |
clearOnePcCommitTs()
When the transaction is successfully committed with 1PC protocol, this field will be set to
the commit ts of the transaction.
|
Kvrpcpb.PrewriteResponse.Builder |
clearRegionError()
.errorpb.Error region_error = 1; |
Kvrpcpb.PrewriteResponse.Builder |
clone() |
Kvrpcpb.PrewriteResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Kvrpcpb.KeyError |
getErrors(int index)
repeated .kvrpcpb.KeyError errors = 2; |
Kvrpcpb.KeyError.Builder |
getErrorsBuilder(int index)
repeated .kvrpcpb.KeyError errors = 2; |
List<Kvrpcpb.KeyError.Builder> |
getErrorsBuilderList()
repeated .kvrpcpb.KeyError errors = 2; |
int |
getErrorsCount()
repeated .kvrpcpb.KeyError errors = 2; |
List<Kvrpcpb.KeyError> |
getErrorsList()
repeated .kvrpcpb.KeyError errors = 2; |
Kvrpcpb.KeyErrorOrBuilder |
getErrorsOrBuilder(int index)
repeated .kvrpcpb.KeyError errors = 2; |
List<? extends Kvrpcpb.KeyErrorOrBuilder> |
getErrorsOrBuilderList()
repeated .kvrpcpb.KeyError errors = 2; |
long |
getMinCommitTs()
0 if the min_commit_ts is not ready or any other reason that async
commit cannot proceed.
|
long |
getOnePcCommitTs()
When the transaction is successfully committed with 1PC protocol, this field will be set to
the commit ts of the transaction.
|
Errorpb.Error |
getRegionError()
.errorpb.Error region_error = 1; |
Errorpb.Error.Builder |
getRegionErrorBuilder()
.errorpb.Error region_error = 1; |
Errorpb.ErrorOrBuilder |
getRegionErrorOrBuilder()
.errorpb.Error region_error = 1; |
boolean |
hasRegionError()
.errorpb.Error region_error = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Kvrpcpb.PrewriteResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Kvrpcpb.PrewriteResponse.Builder |
mergeFrom(Kvrpcpb.PrewriteResponse other) |
Kvrpcpb.PrewriteResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
Kvrpcpb.PrewriteResponse.Builder |
mergeRegionError(Errorpb.Error value)
.errorpb.Error region_error = 1; |
Kvrpcpb.PrewriteResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Kvrpcpb.PrewriteResponse.Builder |
removeErrors(int index)
repeated .kvrpcpb.KeyError errors = 2; |
Kvrpcpb.PrewriteResponse.Builder |
setErrors(int index,
Kvrpcpb.KeyError.Builder builderForValue)
repeated .kvrpcpb.KeyError errors = 2; |
Kvrpcpb.PrewriteResponse.Builder |
setErrors(int index,
Kvrpcpb.KeyError value)
repeated .kvrpcpb.KeyError errors = 2; |
Kvrpcpb.PrewriteResponse.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Kvrpcpb.PrewriteResponse.Builder |
setMinCommitTs(long value)
0 if the min_commit_ts is not ready or any other reason that async
commit cannot proceed.
|
Kvrpcpb.PrewriteResponse.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.
|
Kvrpcpb.PrewriteResponse.Builder |
setRegionError(Errorpb.Error.Builder builderForValue)
.errorpb.Error region_error = 1; |
Kvrpcpb.PrewriteResponse.Builder |
setRegionError(Errorpb.Error value)
.errorpb.Error region_error = 1; |
Kvrpcpb.PrewriteResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Kvrpcpb.PrewriteResponse.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.PrewriteResponse.Builder>
public Kvrpcpb.PrewriteResponse.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.PrewriteResponse.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.PrewriteResponse.Builder>
public Kvrpcpb.PrewriteResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Kvrpcpb.PrewriteResponse build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Kvrpcpb.PrewriteResponse buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Kvrpcpb.PrewriteResponse.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.PrewriteResponse.Builder>
public Kvrpcpb.PrewriteResponse.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.PrewriteResponse.Builder>
public Kvrpcpb.PrewriteResponse.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.PrewriteResponse.Builder>
public Kvrpcpb.PrewriteResponse.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.PrewriteResponse.Builder>
public Kvrpcpb.PrewriteResponse.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.PrewriteResponse.Builder>
public Kvrpcpb.PrewriteResponse.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.PrewriteResponse.Builder>
public Kvrpcpb.PrewriteResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Kvrpcpb.PrewriteResponse.Builder>
public Kvrpcpb.PrewriteResponse.Builder mergeFrom(Kvrpcpb.PrewriteResponse other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.PrewriteResponse.Builder>
public Kvrpcpb.PrewriteResponse.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.PrewriteResponse.Builder>
IOException
public boolean hasRegionError()
.errorpb.Error region_error = 1;
hasRegionError
in interface Kvrpcpb.PrewriteResponseOrBuilder
public Errorpb.Error getRegionError()
.errorpb.Error region_error = 1;
getRegionError
in interface Kvrpcpb.PrewriteResponseOrBuilder
public Kvrpcpb.PrewriteResponse.Builder setRegionError(Errorpb.Error value)
.errorpb.Error region_error = 1;
public Kvrpcpb.PrewriteResponse.Builder setRegionError(Errorpb.Error.Builder builderForValue)
.errorpb.Error region_error = 1;
public Kvrpcpb.PrewriteResponse.Builder mergeRegionError(Errorpb.Error value)
.errorpb.Error region_error = 1;
public Kvrpcpb.PrewriteResponse.Builder clearRegionError()
.errorpb.Error region_error = 1;
public Errorpb.Error.Builder getRegionErrorBuilder()
.errorpb.Error region_error = 1;
public Errorpb.ErrorOrBuilder getRegionErrorOrBuilder()
.errorpb.Error region_error = 1;
getRegionErrorOrBuilder
in interface Kvrpcpb.PrewriteResponseOrBuilder
public List<Kvrpcpb.KeyError> getErrorsList()
repeated .kvrpcpb.KeyError errors = 2;
getErrorsList
in interface Kvrpcpb.PrewriteResponseOrBuilder
public int getErrorsCount()
repeated .kvrpcpb.KeyError errors = 2;
getErrorsCount
in interface Kvrpcpb.PrewriteResponseOrBuilder
public Kvrpcpb.KeyError getErrors(int index)
repeated .kvrpcpb.KeyError errors = 2;
getErrors
in interface Kvrpcpb.PrewriteResponseOrBuilder
public Kvrpcpb.PrewriteResponse.Builder setErrors(int index, Kvrpcpb.KeyError value)
repeated .kvrpcpb.KeyError errors = 2;
public Kvrpcpb.PrewriteResponse.Builder setErrors(int index, Kvrpcpb.KeyError.Builder builderForValue)
repeated .kvrpcpb.KeyError errors = 2;
public Kvrpcpb.PrewriteResponse.Builder addErrors(Kvrpcpb.KeyError value)
repeated .kvrpcpb.KeyError errors = 2;
public Kvrpcpb.PrewriteResponse.Builder addErrors(int index, Kvrpcpb.KeyError value)
repeated .kvrpcpb.KeyError errors = 2;
public Kvrpcpb.PrewriteResponse.Builder addErrors(Kvrpcpb.KeyError.Builder builderForValue)
repeated .kvrpcpb.KeyError errors = 2;
public Kvrpcpb.PrewriteResponse.Builder addErrors(int index, Kvrpcpb.KeyError.Builder builderForValue)
repeated .kvrpcpb.KeyError errors = 2;
public Kvrpcpb.PrewriteResponse.Builder addAllErrors(Iterable<? extends Kvrpcpb.KeyError> values)
repeated .kvrpcpb.KeyError errors = 2;
public Kvrpcpb.PrewriteResponse.Builder clearErrors()
repeated .kvrpcpb.KeyError errors = 2;
public Kvrpcpb.PrewriteResponse.Builder removeErrors(int index)
repeated .kvrpcpb.KeyError errors = 2;
public Kvrpcpb.KeyError.Builder getErrorsBuilder(int index)
repeated .kvrpcpb.KeyError errors = 2;
public Kvrpcpb.KeyErrorOrBuilder getErrorsOrBuilder(int index)
repeated .kvrpcpb.KeyError errors = 2;
getErrorsOrBuilder
in interface Kvrpcpb.PrewriteResponseOrBuilder
public List<? extends Kvrpcpb.KeyErrorOrBuilder> getErrorsOrBuilderList()
repeated .kvrpcpb.KeyError errors = 2;
getErrorsOrBuilderList
in interface Kvrpcpb.PrewriteResponseOrBuilder
public Kvrpcpb.KeyError.Builder addErrorsBuilder()
repeated .kvrpcpb.KeyError errors = 2;
public Kvrpcpb.KeyError.Builder addErrorsBuilder(int index)
repeated .kvrpcpb.KeyError errors = 2;
public List<Kvrpcpb.KeyError.Builder> getErrorsBuilderList()
repeated .kvrpcpb.KeyError errors = 2;
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 = 3;
getMinCommitTs
in interface Kvrpcpb.PrewriteResponseOrBuilder
public Kvrpcpb.PrewriteResponse.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 = 3;
value
- The minCommitTs to set.public Kvrpcpb.PrewriteResponse.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 = 3;
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 TiKV failed to commit it with 1PC or the transaction is not 1PC, the value will be 0.
uint64 one_pc_commit_ts = 4;
getOnePcCommitTs
in interface Kvrpcpb.PrewriteResponseOrBuilder
public Kvrpcpb.PrewriteResponse.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 TiKV failed to commit it with 1PC or the transaction is not 1PC, the value will be 0.
uint64 one_pc_commit_ts = 4;
value
- The onePcCommitTs to set.public Kvrpcpb.PrewriteResponse.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 TiKV failed to commit it with 1PC or the transaction is not 1PC, the value will be 0.
uint64 one_pc_commit_ts = 4;
public final Kvrpcpb.PrewriteResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.PrewriteResponse.Builder>
public final Kvrpcpb.PrewriteResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.PrewriteResponse.Builder>
Copyright © 2024 PingCAP. All rights reserved.