com.scalar.db.rpc.TwoPhaseCommitTransactionResponse Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: scalardb.proto
package com.scalar.db.rpc;
/**
* Protobuf type {@code rpc.TwoPhaseCommitTransactionResponse}
*/
public final class TwoPhaseCommitTransactionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:rpc.TwoPhaseCommitTransactionResponse)
TwoPhaseCommitTransactionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TwoPhaseCommitTransactionResponse.newBuilder() to construct.
private TwoPhaseCommitTransactionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TwoPhaseCommitTransactionResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TwoPhaseCommitTransactionResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.class, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Builder.class);
}
public interface StartResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:rpc.TwoPhaseCommitTransactionResponse.StartResponse)
com.google.protobuf.MessageOrBuilder {
/**
* string transaction_id = 1;
* @return The transactionId.
*/
java.lang.String getTransactionId();
/**
* string transaction_id = 1;
* @return The bytes for transactionId.
*/
com.google.protobuf.ByteString
getTransactionIdBytes();
}
/**
* Protobuf type {@code rpc.TwoPhaseCommitTransactionResponse.StartResponse}
*/
public static final class StartResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:rpc.TwoPhaseCommitTransactionResponse.StartResponse)
StartResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use StartResponse.newBuilder() to construct.
private StartResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StartResponse() {
transactionId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StartResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_StartResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_StartResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse.class, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse.Builder.class);
}
public static final int TRANSACTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object transactionId_;
/**
* string transaction_id = 1;
* @return The transactionId.
*/
@java.lang.Override
public java.lang.String getTransactionId() {
java.lang.Object ref = transactionId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
transactionId_ = s;
return s;
}
}
/**
* string transaction_id = 1;
* @return The bytes for transactionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTransactionIdBytes() {
java.lang.Object ref = transactionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transactionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, transactionId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, transactionId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse)) {
return super.equals(obj);
}
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse other = (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse) obj;
if (!getTransactionId()
.equals(other.getTransactionId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TRANSACTION_ID_FIELD_NUMBER;
hash = (53 * hash) + getTransactionId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code rpc.TwoPhaseCommitTransactionResponse.StartResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:rpc.TwoPhaseCommitTransactionResponse.StartResponse)
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_StartResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_StartResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse.class, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse.Builder.class);
}
// Construct using com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
transactionId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_StartResponse_descriptor;
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse getDefaultInstanceForType() {
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse.getDefaultInstance();
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse build() {
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse buildPartial() {
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse result = new com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse(this);
result.transactionId_ = transactionId_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse) {
return mergeFrom((com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse other) {
if (other == com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse.getDefaultInstance()) return this;
if (!other.getTransactionId().isEmpty()) {
transactionId_ = other.transactionId_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
transactionId_ = input.readStringRequireUtf8();
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private java.lang.Object transactionId_ = "";
/**
* string transaction_id = 1;
* @return The transactionId.
*/
public java.lang.String getTransactionId() {
java.lang.Object ref = transactionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
transactionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string transaction_id = 1;
* @return The bytes for transactionId.
*/
public com.google.protobuf.ByteString
getTransactionIdBytes() {
java.lang.Object ref = transactionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transactionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string transaction_id = 1;
* @param value The transactionId to set.
* @return This builder for chaining.
*/
public Builder setTransactionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
transactionId_ = value;
onChanged();
return this;
}
/**
* string transaction_id = 1;
* @return This builder for chaining.
*/
public Builder clearTransactionId() {
transactionId_ = getDefaultInstance().getTransactionId();
onChanged();
return this;
}
/**
* string transaction_id = 1;
* @param value The bytes for transactionId to set.
* @return This builder for chaining.
*/
public Builder setTransactionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
transactionId_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:rpc.TwoPhaseCommitTransactionResponse.StartResponse)
}
// @@protoc_insertion_point(class_scope:rpc.TwoPhaseCommitTransactionResponse.StartResponse)
private static final com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse();
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StartResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:rpc.TwoPhaseCommitTransactionResponse.GetResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .rpc.Result result = 1;
* @return Whether the result field is set.
*/
boolean hasResult();
/**
* .rpc.Result result = 1;
* @return The result.
*/
com.scalar.db.rpc.Result getResult();
/**
* .rpc.Result result = 1;
*/
com.scalar.db.rpc.ResultOrBuilder getResultOrBuilder();
}
/**
* Protobuf type {@code rpc.TwoPhaseCommitTransactionResponse.GetResponse}
*/
public static final class GetResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:rpc.TwoPhaseCommitTransactionResponse.GetResponse)
GetResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetResponse.newBuilder() to construct.
private GetResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_GetResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_GetResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.class, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.Builder.class);
}
public static final int RESULT_FIELD_NUMBER = 1;
private com.scalar.db.rpc.Result result_;
/**
* .rpc.Result result = 1;
* @return Whether the result field is set.
*/
@java.lang.Override
public boolean hasResult() {
return result_ != null;
}
/**
* .rpc.Result result = 1;
* @return The result.
*/
@java.lang.Override
public com.scalar.db.rpc.Result getResult() {
return result_ == null ? com.scalar.db.rpc.Result.getDefaultInstance() : result_;
}
/**
* .rpc.Result result = 1;
*/
@java.lang.Override
public com.scalar.db.rpc.ResultOrBuilder getResultOrBuilder() {
return getResult();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (result_ != null) {
output.writeMessage(1, getResult());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (result_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getResult());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse)) {
return super.equals(obj);
}
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse other = (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse) obj;
if (hasResult() != other.hasResult()) return false;
if (hasResult()) {
if (!getResult()
.equals(other.getResult())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code rpc.TwoPhaseCommitTransactionResponse.GetResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:rpc.TwoPhaseCommitTransactionResponse.GetResponse)
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_GetResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_GetResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.class, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.Builder.class);
}
// Construct using com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (resultBuilder_ == null) {
result_ = null;
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_GetResponse_descriptor;
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse getDefaultInstanceForType() {
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.getDefaultInstance();
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse build() {
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse buildPartial() {
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse result = new com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse(this);
if (resultBuilder_ == null) {
result.result_ = result_;
} else {
result.result_ = resultBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse) {
return mergeFrom((com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse other) {
if (other == com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.getDefaultInstance()) return this;
if (other.hasResult()) {
mergeResult(other.getResult());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getResultFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private com.scalar.db.rpc.Result result_;
private com.google.protobuf.SingleFieldBuilderV3<
com.scalar.db.rpc.Result, com.scalar.db.rpc.Result.Builder, com.scalar.db.rpc.ResultOrBuilder> resultBuilder_;
/**
* .rpc.Result result = 1;
* @return Whether the result field is set.
*/
public boolean hasResult() {
return resultBuilder_ != null || result_ != null;
}
/**
* .rpc.Result result = 1;
* @return The result.
*/
public com.scalar.db.rpc.Result getResult() {
if (resultBuilder_ == null) {
return result_ == null ? com.scalar.db.rpc.Result.getDefaultInstance() : result_;
} else {
return resultBuilder_.getMessage();
}
}
/**
* .rpc.Result result = 1;
*/
public Builder setResult(com.scalar.db.rpc.Result value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
resultBuilder_.setMessage(value);
}
return this;
}
/**
* .rpc.Result result = 1;
*/
public Builder setResult(
com.scalar.db.rpc.Result.Builder builderForValue) {
if (resultBuilder_ == null) {
result_ = builderForValue.build();
onChanged();
} else {
resultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .rpc.Result result = 1;
*/
public Builder mergeResult(com.scalar.db.rpc.Result value) {
if (resultBuilder_ == null) {
if (result_ != null) {
result_ =
com.scalar.db.rpc.Result.newBuilder(result_).mergeFrom(value).buildPartial();
} else {
result_ = value;
}
onChanged();
} else {
resultBuilder_.mergeFrom(value);
}
return this;
}
/**
* .rpc.Result result = 1;
*/
public Builder clearResult() {
if (resultBuilder_ == null) {
result_ = null;
onChanged();
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
/**
* .rpc.Result result = 1;
*/
public com.scalar.db.rpc.Result.Builder getResultBuilder() {
onChanged();
return getResultFieldBuilder().getBuilder();
}
/**
* .rpc.Result result = 1;
*/
public com.scalar.db.rpc.ResultOrBuilder getResultOrBuilder() {
if (resultBuilder_ != null) {
return resultBuilder_.getMessageOrBuilder();
} else {
return result_ == null ?
com.scalar.db.rpc.Result.getDefaultInstance() : result_;
}
}
/**
* .rpc.Result result = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.scalar.db.rpc.Result, com.scalar.db.rpc.Result.Builder, com.scalar.db.rpc.ResultOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.scalar.db.rpc.Result, com.scalar.db.rpc.Result.Builder, com.scalar.db.rpc.ResultOrBuilder>(
getResult(),
getParentForChildren(),
isClean());
result_ = null;
}
return resultBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:rpc.TwoPhaseCommitTransactionResponse.GetResponse)
}
// @@protoc_insertion_point(class_scope:rpc.TwoPhaseCommitTransactionResponse.GetResponse)
private static final com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse();
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ScanResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:rpc.TwoPhaseCommitTransactionResponse.ScanResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .rpc.Result result = 1;
*/
java.util.List
getResultList();
/**
* repeated .rpc.Result result = 1;
*/
com.scalar.db.rpc.Result getResult(int index);
/**
* repeated .rpc.Result result = 1;
*/
int getResultCount();
/**
* repeated .rpc.Result result = 1;
*/
java.util.List extends com.scalar.db.rpc.ResultOrBuilder>
getResultOrBuilderList();
/**
* repeated .rpc.Result result = 1;
*/
com.scalar.db.rpc.ResultOrBuilder getResultOrBuilder(
int index);
}
/**
* Protobuf type {@code rpc.TwoPhaseCommitTransactionResponse.ScanResponse}
*/
public static final class ScanResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:rpc.TwoPhaseCommitTransactionResponse.ScanResponse)
ScanResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ScanResponse.newBuilder() to construct.
private ScanResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ScanResponse() {
result_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ScanResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_ScanResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_ScanResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse.class, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse.Builder.class);
}
public static final int RESULT_FIELD_NUMBER = 1;
private java.util.List result_;
/**
* repeated .rpc.Result result = 1;
*/
@java.lang.Override
public java.util.List getResultList() {
return result_;
}
/**
* repeated .rpc.Result result = 1;
*/
@java.lang.Override
public java.util.List extends com.scalar.db.rpc.ResultOrBuilder>
getResultOrBuilderList() {
return result_;
}
/**
* repeated .rpc.Result result = 1;
*/
@java.lang.Override
public int getResultCount() {
return result_.size();
}
/**
* repeated .rpc.Result result = 1;
*/
@java.lang.Override
public com.scalar.db.rpc.Result getResult(int index) {
return result_.get(index);
}
/**
* repeated .rpc.Result result = 1;
*/
@java.lang.Override
public com.scalar.db.rpc.ResultOrBuilder getResultOrBuilder(
int index) {
return result_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < result_.size(); i++) {
output.writeMessage(1, result_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < result_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, result_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse)) {
return super.equals(obj);
}
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse other = (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse) obj;
if (!getResultList()
.equals(other.getResultList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getResultCount() > 0) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResultList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code rpc.TwoPhaseCommitTransactionResponse.ScanResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:rpc.TwoPhaseCommitTransactionResponse.ScanResponse)
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_ScanResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_ScanResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse.class, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse.Builder.class);
}
// Construct using com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (resultBuilder_ == null) {
result_ = java.util.Collections.emptyList();
} else {
result_ = null;
resultBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_ScanResponse_descriptor;
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse getDefaultInstanceForType() {
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse.getDefaultInstance();
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse build() {
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse buildPartial() {
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse result = new com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse(this);
int from_bitField0_ = bitField0_;
if (resultBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
result_ = java.util.Collections.unmodifiableList(result_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.result_ = result_;
} else {
result.result_ = resultBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse) {
return mergeFrom((com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse other) {
if (other == com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse.getDefaultInstance()) return this;
if (resultBuilder_ == null) {
if (!other.result_.isEmpty()) {
if (result_.isEmpty()) {
result_ = other.result_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureResultIsMutable();
result_.addAll(other.result_);
}
onChanged();
}
} else {
if (!other.result_.isEmpty()) {
if (resultBuilder_.isEmpty()) {
resultBuilder_.dispose();
resultBuilder_ = null;
result_ = other.result_;
bitField0_ = (bitField0_ & ~0x00000001);
resultBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResultFieldBuilder() : null;
} else {
resultBuilder_.addAllMessages(other.result_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.scalar.db.rpc.Result m =
input.readMessage(
com.scalar.db.rpc.Result.parser(),
extensionRegistry);
if (resultBuilder_ == null) {
ensureResultIsMutable();
result_.add(m);
} else {
resultBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List result_ =
java.util.Collections.emptyList();
private void ensureResultIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
result_ = new java.util.ArrayList(result_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.scalar.db.rpc.Result, com.scalar.db.rpc.Result.Builder, com.scalar.db.rpc.ResultOrBuilder> resultBuilder_;
/**
* repeated .rpc.Result result = 1;
*/
public java.util.List getResultList() {
if (resultBuilder_ == null) {
return java.util.Collections.unmodifiableList(result_);
} else {
return resultBuilder_.getMessageList();
}
}
/**
* repeated .rpc.Result result = 1;
*/
public int getResultCount() {
if (resultBuilder_ == null) {
return result_.size();
} else {
return resultBuilder_.getCount();
}
}
/**
* repeated .rpc.Result result = 1;
*/
public com.scalar.db.rpc.Result getResult(int index) {
if (resultBuilder_ == null) {
return result_.get(index);
} else {
return resultBuilder_.getMessage(index);
}
}
/**
* repeated .rpc.Result result = 1;
*/
public Builder setResult(
int index, com.scalar.db.rpc.Result value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultIsMutable();
result_.set(index, value);
onChanged();
} else {
resultBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .rpc.Result result = 1;
*/
public Builder setResult(
int index, com.scalar.db.rpc.Result.Builder builderForValue) {
if (resultBuilder_ == null) {
ensureResultIsMutable();
result_.set(index, builderForValue.build());
onChanged();
} else {
resultBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .rpc.Result result = 1;
*/
public Builder addResult(com.scalar.db.rpc.Result value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultIsMutable();
result_.add(value);
onChanged();
} else {
resultBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .rpc.Result result = 1;
*/
public Builder addResult(
int index, com.scalar.db.rpc.Result value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultIsMutable();
result_.add(index, value);
onChanged();
} else {
resultBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .rpc.Result result = 1;
*/
public Builder addResult(
com.scalar.db.rpc.Result.Builder builderForValue) {
if (resultBuilder_ == null) {
ensureResultIsMutable();
result_.add(builderForValue.build());
onChanged();
} else {
resultBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .rpc.Result result = 1;
*/
public Builder addResult(
int index, com.scalar.db.rpc.Result.Builder builderForValue) {
if (resultBuilder_ == null) {
ensureResultIsMutable();
result_.add(index, builderForValue.build());
onChanged();
} else {
resultBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .rpc.Result result = 1;
*/
public Builder addAllResult(
java.lang.Iterable extends com.scalar.db.rpc.Result> values) {
if (resultBuilder_ == null) {
ensureResultIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, result_);
onChanged();
} else {
resultBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .rpc.Result result = 1;
*/
public Builder clearResult() {
if (resultBuilder_ == null) {
result_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
resultBuilder_.clear();
}
return this;
}
/**
* repeated .rpc.Result result = 1;
*/
public Builder removeResult(int index) {
if (resultBuilder_ == null) {
ensureResultIsMutable();
result_.remove(index);
onChanged();
} else {
resultBuilder_.remove(index);
}
return this;
}
/**
* repeated .rpc.Result result = 1;
*/
public com.scalar.db.rpc.Result.Builder getResultBuilder(
int index) {
return getResultFieldBuilder().getBuilder(index);
}
/**
* repeated .rpc.Result result = 1;
*/
public com.scalar.db.rpc.ResultOrBuilder getResultOrBuilder(
int index) {
if (resultBuilder_ == null) {
return result_.get(index); } else {
return resultBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .rpc.Result result = 1;
*/
public java.util.List extends com.scalar.db.rpc.ResultOrBuilder>
getResultOrBuilderList() {
if (resultBuilder_ != null) {
return resultBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(result_);
}
}
/**
* repeated .rpc.Result result = 1;
*/
public com.scalar.db.rpc.Result.Builder addResultBuilder() {
return getResultFieldBuilder().addBuilder(
com.scalar.db.rpc.Result.getDefaultInstance());
}
/**
* repeated .rpc.Result result = 1;
*/
public com.scalar.db.rpc.Result.Builder addResultBuilder(
int index) {
return getResultFieldBuilder().addBuilder(
index, com.scalar.db.rpc.Result.getDefaultInstance());
}
/**
* repeated .rpc.Result result = 1;
*/
public java.util.List
getResultBuilderList() {
return getResultFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.scalar.db.rpc.Result, com.scalar.db.rpc.Result.Builder, com.scalar.db.rpc.ResultOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.scalar.db.rpc.Result, com.scalar.db.rpc.Result.Builder, com.scalar.db.rpc.ResultOrBuilder>(
result_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
result_ = null;
}
return resultBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:rpc.TwoPhaseCommitTransactionResponse.ScanResponse)
}
// @@protoc_insertion_point(class_scope:rpc.TwoPhaseCommitTransactionResponse.ScanResponse)
private static final com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse();
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ScanResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ErrorOrBuilder extends
// @@protoc_insertion_point(interface_extends:rpc.TwoPhaseCommitTransactionResponse.Error)
com.google.protobuf.MessageOrBuilder {
/**
* .rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode error_code = 1;
* @return The enum numeric value on the wire for errorCode.
*/
int getErrorCodeValue();
/**
* .rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode error_code = 1;
* @return The errorCode.
*/
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode getErrorCode();
/**
* string message = 2;
* @return The message.
*/
java.lang.String getMessage();
/**
* string message = 2;
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
}
/**
* Protobuf type {@code rpc.TwoPhaseCommitTransactionResponse.Error}
*/
public static final class Error extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:rpc.TwoPhaseCommitTransactionResponse.Error)
ErrorOrBuilder {
private static final long serialVersionUID = 0L;
// Use Error.newBuilder() to construct.
private Error(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Error() {
errorCode_ = 0;
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Error();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_Error_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_Error_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.class, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.Builder.class);
}
/**
* Protobuf enum {@code rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode}
*/
public enum ErrorCode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* INVALID_ARGUMENT = 0;
*/
INVALID_ARGUMENT(0),
/**
* CONFLICT = 1;
*/
CONFLICT(1),
/**
* UNKNOWN_TRANSACTION = 2;
*/
UNKNOWN_TRANSACTION(2),
/**
* OTHER = 3;
*/
OTHER(3),
UNRECOGNIZED(-1),
;
/**
* INVALID_ARGUMENT = 0;
*/
public static final int INVALID_ARGUMENT_VALUE = 0;
/**
* CONFLICT = 1;
*/
public static final int CONFLICT_VALUE = 1;
/**
* UNKNOWN_TRANSACTION = 2;
*/
public static final int UNKNOWN_TRANSACTION_VALUE = 2;
/**
* OTHER = 3;
*/
public static final int OTHER_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ErrorCode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ErrorCode forNumber(int value) {
switch (value) {
case 0: return INVALID_ARGUMENT;
case 1: return CONFLICT;
case 2: return UNKNOWN_TRANSACTION;
case 3: return OTHER;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ErrorCode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ErrorCode findValueByNumber(int number) {
return ErrorCode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.getDescriptor().getEnumTypes().get(0);
}
private static final ErrorCode[] VALUES = values();
public static ErrorCode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ErrorCode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode)
}
public static final int ERROR_CODE_FIELD_NUMBER = 1;
private int errorCode_;
/**
* .rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode error_code = 1;
* @return The enum numeric value on the wire for errorCode.
*/
@java.lang.Override public int getErrorCodeValue() {
return errorCode_;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode error_code = 1;
* @return The errorCode.
*/
@java.lang.Override public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode getErrorCode() {
@SuppressWarnings("deprecation")
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode result = com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode.valueOf(errorCode_);
return result == null ? com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode.UNRECOGNIZED : result;
}
public static final int MESSAGE_FIELD_NUMBER = 2;
private volatile java.lang.Object message_;
/**
* string message = 2;
* @return The message.
*/
@java.lang.Override
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
}
}
/**
* string message = 2;
* @return The bytes for message.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (errorCode_ != com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode.INVALID_ARGUMENT.getNumber()) {
output.writeEnum(1, errorCode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (errorCode_ != com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode.INVALID_ARGUMENT.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, errorCode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error)) {
return super.equals(obj);
}
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error other = (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error) obj;
if (errorCode_ != other.errorCode_) return false;
if (!getMessage()
.equals(other.getMessage())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ERROR_CODE_FIELD_NUMBER;
hash = (53 * hash) + errorCode_;
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code rpc.TwoPhaseCommitTransactionResponse.Error}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:rpc.TwoPhaseCommitTransactionResponse.Error)
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ErrorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_Error_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_Error_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.class, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.Builder.class);
}
// Construct using com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
errorCode_ = 0;
message_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_Error_descriptor;
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error getDefaultInstanceForType() {
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.getDefaultInstance();
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error build() {
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error buildPartial() {
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error result = new com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error(this);
result.errorCode_ = errorCode_;
result.message_ = message_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error) {
return mergeFrom((com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error other) {
if (other == com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.getDefaultInstance()) return this;
if (other.errorCode_ != 0) {
setErrorCodeValue(other.getErrorCodeValue());
}
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
errorCode_ = input.readEnum();
break;
} // case 8
case 18: {
message_ = input.readStringRequireUtf8();
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int errorCode_ = 0;
/**
* .rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode error_code = 1;
* @return The enum numeric value on the wire for errorCode.
*/
@java.lang.Override public int getErrorCodeValue() {
return errorCode_;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode error_code = 1;
* @param value The enum numeric value on the wire for errorCode to set.
* @return This builder for chaining.
*/
public Builder setErrorCodeValue(int value) {
errorCode_ = value;
onChanged();
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode error_code = 1;
* @return The errorCode.
*/
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode getErrorCode() {
@SuppressWarnings("deprecation")
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode result = com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode.valueOf(errorCode_);
return result == null ? com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode.UNRECOGNIZED : result;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode error_code = 1;
* @param value The errorCode to set.
* @return This builder for chaining.
*/
public Builder setErrorCode(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode value) {
if (value == null) {
throw new NullPointerException();
}
errorCode_ = value.getNumber();
onChanged();
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode error_code = 1;
* @return This builder for chaining.
*/
public Builder clearErrorCode() {
errorCode_ = 0;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
* string message = 2;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string message = 2;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string message = 2;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
return this;
}
/**
* string message = 2;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* string message = 2;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
message_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:rpc.TwoPhaseCommitTransactionResponse.Error)
}
// @@protoc_insertion_point(class_scope:rpc.TwoPhaseCommitTransactionResponse.Error)
private static final com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error();
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Error parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int responseCase_ = 0;
private java.lang.Object response_;
public enum ResponseCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
START_RESPONSE(1),
GET_RESPONSE(2),
SCAN_RESPONSE(3),
ERROR(4),
RESPONSE_NOT_SET(0);
private final int value;
private ResponseCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ResponseCase valueOf(int value) {
return forNumber(value);
}
public static ResponseCase forNumber(int value) {
switch (value) {
case 1: return START_RESPONSE;
case 2: return GET_RESPONSE;
case 3: return SCAN_RESPONSE;
case 4: return ERROR;
case 0: return RESPONSE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ResponseCase
getResponseCase() {
return ResponseCase.forNumber(
responseCase_);
}
public static final int START_RESPONSE_FIELD_NUMBER = 1;
/**
* .rpc.TwoPhaseCommitTransactionResponse.StartResponse start_response = 1;
* @return Whether the startResponse field is set.
*/
@java.lang.Override
public boolean hasStartResponse() {
return responseCase_ == 1;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.StartResponse start_response = 1;
* @return The startResponse.
*/
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse getStartResponse() {
if (responseCase_ == 1) {
return (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse) response_;
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse.getDefaultInstance();
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.StartResponse start_response = 1;
*/
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponseOrBuilder getStartResponseOrBuilder() {
if (responseCase_ == 1) {
return (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse) response_;
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse.getDefaultInstance();
}
public static final int GET_RESPONSE_FIELD_NUMBER = 2;
/**
* .rpc.TwoPhaseCommitTransactionResponse.GetResponse get_response = 2;
* @return Whether the getResponse field is set.
*/
@java.lang.Override
public boolean hasGetResponse() {
return responseCase_ == 2;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.GetResponse get_response = 2;
* @return The getResponse.
*/
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse getGetResponse() {
if (responseCase_ == 2) {
return (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse) response_;
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.getDefaultInstance();
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.GetResponse get_response = 2;
*/
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponseOrBuilder getGetResponseOrBuilder() {
if (responseCase_ == 2) {
return (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse) response_;
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.getDefaultInstance();
}
public static final int SCAN_RESPONSE_FIELD_NUMBER = 3;
/**
* .rpc.TwoPhaseCommitTransactionResponse.ScanResponse scan_response = 3;
* @return Whether the scanResponse field is set.
*/
@java.lang.Override
public boolean hasScanResponse() {
return responseCase_ == 3;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.ScanResponse scan_response = 3;
* @return The scanResponse.
*/
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse getScanResponse() {
if (responseCase_ == 3) {
return (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse) response_;
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse.getDefaultInstance();
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.ScanResponse scan_response = 3;
*/
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponseOrBuilder getScanResponseOrBuilder() {
if (responseCase_ == 3) {
return (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse) response_;
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse.getDefaultInstance();
}
public static final int ERROR_FIELD_NUMBER = 4;
/**
* .rpc.TwoPhaseCommitTransactionResponse.Error error = 4;
* @return Whether the error field is set.
*/
@java.lang.Override
public boolean hasError() {
return responseCase_ == 4;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.Error error = 4;
* @return The error.
*/
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error getError() {
if (responseCase_ == 4) {
return (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error) response_;
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.getDefaultInstance();
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.Error error = 4;
*/
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ErrorOrBuilder getErrorOrBuilder() {
if (responseCase_ == 4) {
return (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error) response_;
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (responseCase_ == 1) {
output.writeMessage(1, (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse) response_);
}
if (responseCase_ == 2) {
output.writeMessage(2, (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse) response_);
}
if (responseCase_ == 3) {
output.writeMessage(3, (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse) response_);
}
if (responseCase_ == 4) {
output.writeMessage(4, (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error) response_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (responseCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse) response_);
}
if (responseCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse) response_);
}
if (responseCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse) response_);
}
if (responseCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error) response_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.scalar.db.rpc.TwoPhaseCommitTransactionResponse)) {
return super.equals(obj);
}
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse other = (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse) obj;
if (!getResponseCase().equals(other.getResponseCase())) return false;
switch (responseCase_) {
case 1:
if (!getStartResponse()
.equals(other.getStartResponse())) return false;
break;
case 2:
if (!getGetResponse()
.equals(other.getGetResponse())) return false;
break;
case 3:
if (!getScanResponse()
.equals(other.getScanResponse())) return false;
break;
case 4:
if (!getError()
.equals(other.getError())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (responseCase_) {
case 1:
hash = (37 * hash) + START_RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getStartResponse().hashCode();
break;
case 2:
hash = (37 * hash) + GET_RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getGetResponse().hashCode();
break;
case 3:
hash = (37 * hash) + SCAN_RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getScanResponse().hashCode();
break;
case 4:
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code rpc.TwoPhaseCommitTransactionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:rpc.TwoPhaseCommitTransactionResponse)
com.scalar.db.rpc.TwoPhaseCommitTransactionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.class, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Builder.class);
}
// Construct using com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (startResponseBuilder_ != null) {
startResponseBuilder_.clear();
}
if (getResponseBuilder_ != null) {
getResponseBuilder_.clear();
}
if (scanResponseBuilder_ != null) {
scanResponseBuilder_.clear();
}
if (errorBuilder_ != null) {
errorBuilder_.clear();
}
responseCase_ = 0;
response_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_descriptor;
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse getDefaultInstanceForType() {
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.getDefaultInstance();
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse build() {
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse buildPartial() {
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse result = new com.scalar.db.rpc.TwoPhaseCommitTransactionResponse(this);
if (responseCase_ == 1) {
if (startResponseBuilder_ == null) {
result.response_ = response_;
} else {
result.response_ = startResponseBuilder_.build();
}
}
if (responseCase_ == 2) {
if (getResponseBuilder_ == null) {
result.response_ = response_;
} else {
result.response_ = getResponseBuilder_.build();
}
}
if (responseCase_ == 3) {
if (scanResponseBuilder_ == null) {
result.response_ = response_;
} else {
result.response_ = scanResponseBuilder_.build();
}
}
if (responseCase_ == 4) {
if (errorBuilder_ == null) {
result.response_ = response_;
} else {
result.response_ = errorBuilder_.build();
}
}
result.responseCase_ = responseCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.scalar.db.rpc.TwoPhaseCommitTransactionResponse) {
return mergeFrom((com.scalar.db.rpc.TwoPhaseCommitTransactionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse other) {
if (other == com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.getDefaultInstance()) return this;
switch (other.getResponseCase()) {
case START_RESPONSE: {
mergeStartResponse(other.getStartResponse());
break;
}
case GET_RESPONSE: {
mergeGetResponse(other.getGetResponse());
break;
}
case SCAN_RESPONSE: {
mergeScanResponse(other.getScanResponse());
break;
}
case ERROR: {
mergeError(other.getError());
break;
}
case RESPONSE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getStartResponseFieldBuilder().getBuilder(),
extensionRegistry);
responseCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getGetResponseFieldBuilder().getBuilder(),
extensionRegistry);
responseCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getScanResponseFieldBuilder().getBuilder(),
extensionRegistry);
responseCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getErrorFieldBuilder().getBuilder(),
extensionRegistry);
responseCase_ = 4;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int responseCase_ = 0;
private java.lang.Object response_;
public ResponseCase
getResponseCase() {
return ResponseCase.forNumber(
responseCase_);
}
public Builder clearResponse() {
responseCase_ = 0;
response_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse.Builder, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponseOrBuilder> startResponseBuilder_;
/**
* .rpc.TwoPhaseCommitTransactionResponse.StartResponse start_response = 1;
* @return Whether the startResponse field is set.
*/
@java.lang.Override
public boolean hasStartResponse() {
return responseCase_ == 1;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.StartResponse start_response = 1;
* @return The startResponse.
*/
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse getStartResponse() {
if (startResponseBuilder_ == null) {
if (responseCase_ == 1) {
return (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse) response_;
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse.getDefaultInstance();
} else {
if (responseCase_ == 1) {
return startResponseBuilder_.getMessage();
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse.getDefaultInstance();
}
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.StartResponse start_response = 1;
*/
public Builder setStartResponse(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse value) {
if (startResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
response_ = value;
onChanged();
} else {
startResponseBuilder_.setMessage(value);
}
responseCase_ = 1;
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.StartResponse start_response = 1;
*/
public Builder setStartResponse(
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse.Builder builderForValue) {
if (startResponseBuilder_ == null) {
response_ = builderForValue.build();
onChanged();
} else {
startResponseBuilder_.setMessage(builderForValue.build());
}
responseCase_ = 1;
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.StartResponse start_response = 1;
*/
public Builder mergeStartResponse(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse value) {
if (startResponseBuilder_ == null) {
if (responseCase_ == 1 &&
response_ != com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse.getDefaultInstance()) {
response_ = com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse.newBuilder((com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse) response_)
.mergeFrom(value).buildPartial();
} else {
response_ = value;
}
onChanged();
} else {
if (responseCase_ == 1) {
startResponseBuilder_.mergeFrom(value);
} else {
startResponseBuilder_.setMessage(value);
}
}
responseCase_ = 1;
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.StartResponse start_response = 1;
*/
public Builder clearStartResponse() {
if (startResponseBuilder_ == null) {
if (responseCase_ == 1) {
responseCase_ = 0;
response_ = null;
onChanged();
}
} else {
if (responseCase_ == 1) {
responseCase_ = 0;
response_ = null;
}
startResponseBuilder_.clear();
}
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.StartResponse start_response = 1;
*/
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse.Builder getStartResponseBuilder() {
return getStartResponseFieldBuilder().getBuilder();
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.StartResponse start_response = 1;
*/
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponseOrBuilder getStartResponseOrBuilder() {
if ((responseCase_ == 1) && (startResponseBuilder_ != null)) {
return startResponseBuilder_.getMessageOrBuilder();
} else {
if (responseCase_ == 1) {
return (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse) response_;
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse.getDefaultInstance();
}
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.StartResponse start_response = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse.Builder, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponseOrBuilder>
getStartResponseFieldBuilder() {
if (startResponseBuilder_ == null) {
if (!(responseCase_ == 1)) {
response_ = com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse.getDefaultInstance();
}
startResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse.Builder, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponseOrBuilder>(
(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse) response_,
getParentForChildren(),
isClean());
response_ = null;
}
responseCase_ = 1;
onChanged();;
return startResponseBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.Builder, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponseOrBuilder> getResponseBuilder_;
/**
* .rpc.TwoPhaseCommitTransactionResponse.GetResponse get_response = 2;
* @return Whether the getResponse field is set.
*/
@java.lang.Override
public boolean hasGetResponse() {
return responseCase_ == 2;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.GetResponse get_response = 2;
* @return The getResponse.
*/
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse getGetResponse() {
if (getResponseBuilder_ == null) {
if (responseCase_ == 2) {
return (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse) response_;
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.getDefaultInstance();
} else {
if (responseCase_ == 2) {
return getResponseBuilder_.getMessage();
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.getDefaultInstance();
}
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.GetResponse get_response = 2;
*/
public Builder setGetResponse(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse value) {
if (getResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
response_ = value;
onChanged();
} else {
getResponseBuilder_.setMessage(value);
}
responseCase_ = 2;
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.GetResponse get_response = 2;
*/
public Builder setGetResponse(
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.Builder builderForValue) {
if (getResponseBuilder_ == null) {
response_ = builderForValue.build();
onChanged();
} else {
getResponseBuilder_.setMessage(builderForValue.build());
}
responseCase_ = 2;
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.GetResponse get_response = 2;
*/
public Builder mergeGetResponse(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse value) {
if (getResponseBuilder_ == null) {
if (responseCase_ == 2 &&
response_ != com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.getDefaultInstance()) {
response_ = com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.newBuilder((com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse) response_)
.mergeFrom(value).buildPartial();
} else {
response_ = value;
}
onChanged();
} else {
if (responseCase_ == 2) {
getResponseBuilder_.mergeFrom(value);
} else {
getResponseBuilder_.setMessage(value);
}
}
responseCase_ = 2;
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.GetResponse get_response = 2;
*/
public Builder clearGetResponse() {
if (getResponseBuilder_ == null) {
if (responseCase_ == 2) {
responseCase_ = 0;
response_ = null;
onChanged();
}
} else {
if (responseCase_ == 2) {
responseCase_ = 0;
response_ = null;
}
getResponseBuilder_.clear();
}
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.GetResponse get_response = 2;
*/
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.Builder getGetResponseBuilder() {
return getGetResponseFieldBuilder().getBuilder();
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.GetResponse get_response = 2;
*/
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponseOrBuilder getGetResponseOrBuilder() {
if ((responseCase_ == 2) && (getResponseBuilder_ != null)) {
return getResponseBuilder_.getMessageOrBuilder();
} else {
if (responseCase_ == 2) {
return (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse) response_;
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.getDefaultInstance();
}
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.GetResponse get_response = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.Builder, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponseOrBuilder>
getGetResponseFieldBuilder() {
if (getResponseBuilder_ == null) {
if (!(responseCase_ == 2)) {
response_ = com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.getDefaultInstance();
}
getResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.Builder, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponseOrBuilder>(
(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse) response_,
getParentForChildren(),
isClean());
response_ = null;
}
responseCase_ = 2;
onChanged();;
return getResponseBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse.Builder, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponseOrBuilder> scanResponseBuilder_;
/**
* .rpc.TwoPhaseCommitTransactionResponse.ScanResponse scan_response = 3;
* @return Whether the scanResponse field is set.
*/
@java.lang.Override
public boolean hasScanResponse() {
return responseCase_ == 3;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.ScanResponse scan_response = 3;
* @return The scanResponse.
*/
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse getScanResponse() {
if (scanResponseBuilder_ == null) {
if (responseCase_ == 3) {
return (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse) response_;
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse.getDefaultInstance();
} else {
if (responseCase_ == 3) {
return scanResponseBuilder_.getMessage();
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse.getDefaultInstance();
}
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.ScanResponse scan_response = 3;
*/
public Builder setScanResponse(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse value) {
if (scanResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
response_ = value;
onChanged();
} else {
scanResponseBuilder_.setMessage(value);
}
responseCase_ = 3;
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.ScanResponse scan_response = 3;
*/
public Builder setScanResponse(
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse.Builder builderForValue) {
if (scanResponseBuilder_ == null) {
response_ = builderForValue.build();
onChanged();
} else {
scanResponseBuilder_.setMessage(builderForValue.build());
}
responseCase_ = 3;
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.ScanResponse scan_response = 3;
*/
public Builder mergeScanResponse(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse value) {
if (scanResponseBuilder_ == null) {
if (responseCase_ == 3 &&
response_ != com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse.getDefaultInstance()) {
response_ = com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse.newBuilder((com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse) response_)
.mergeFrom(value).buildPartial();
} else {
response_ = value;
}
onChanged();
} else {
if (responseCase_ == 3) {
scanResponseBuilder_.mergeFrom(value);
} else {
scanResponseBuilder_.setMessage(value);
}
}
responseCase_ = 3;
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.ScanResponse scan_response = 3;
*/
public Builder clearScanResponse() {
if (scanResponseBuilder_ == null) {
if (responseCase_ == 3) {
responseCase_ = 0;
response_ = null;
onChanged();
}
} else {
if (responseCase_ == 3) {
responseCase_ = 0;
response_ = null;
}
scanResponseBuilder_.clear();
}
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.ScanResponse scan_response = 3;
*/
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse.Builder getScanResponseBuilder() {
return getScanResponseFieldBuilder().getBuilder();
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.ScanResponse scan_response = 3;
*/
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponseOrBuilder getScanResponseOrBuilder() {
if ((responseCase_ == 3) && (scanResponseBuilder_ != null)) {
return scanResponseBuilder_.getMessageOrBuilder();
} else {
if (responseCase_ == 3) {
return (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse) response_;
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse.getDefaultInstance();
}
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.ScanResponse scan_response = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse.Builder, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponseOrBuilder>
getScanResponseFieldBuilder() {
if (scanResponseBuilder_ == null) {
if (!(responseCase_ == 3)) {
response_ = com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse.getDefaultInstance();
}
scanResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse.Builder, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponseOrBuilder>(
(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse) response_,
getParentForChildren(),
isClean());
response_ = null;
}
responseCase_ = 3;
onChanged();;
return scanResponseBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.Builder, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ErrorOrBuilder> errorBuilder_;
/**
* .rpc.TwoPhaseCommitTransactionResponse.Error error = 4;
* @return Whether the error field is set.
*/
@java.lang.Override
public boolean hasError() {
return responseCase_ == 4;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.Error error = 4;
* @return The error.
*/
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error getError() {
if (errorBuilder_ == null) {
if (responseCase_ == 4) {
return (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error) response_;
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.getDefaultInstance();
} else {
if (responseCase_ == 4) {
return errorBuilder_.getMessage();
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.getDefaultInstance();
}
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.Error error = 4;
*/
public Builder setError(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error value) {
if (errorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
response_ = value;
onChanged();
} else {
errorBuilder_.setMessage(value);
}
responseCase_ = 4;
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.Error error = 4;
*/
public Builder setError(
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.Builder builderForValue) {
if (errorBuilder_ == null) {
response_ = builderForValue.build();
onChanged();
} else {
errorBuilder_.setMessage(builderForValue.build());
}
responseCase_ = 4;
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.Error error = 4;
*/
public Builder mergeError(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error value) {
if (errorBuilder_ == null) {
if (responseCase_ == 4 &&
response_ != com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.getDefaultInstance()) {
response_ = com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.newBuilder((com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error) response_)
.mergeFrom(value).buildPartial();
} else {
response_ = value;
}
onChanged();
} else {
if (responseCase_ == 4) {
errorBuilder_.mergeFrom(value);
} else {
errorBuilder_.setMessage(value);
}
}
responseCase_ = 4;
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.Error error = 4;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
if (responseCase_ == 4) {
responseCase_ = 0;
response_ = null;
onChanged();
}
} else {
if (responseCase_ == 4) {
responseCase_ = 0;
response_ = null;
}
errorBuilder_.clear();
}
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.Error error = 4;
*/
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.Builder getErrorBuilder() {
return getErrorFieldBuilder().getBuilder();
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.Error error = 4;
*/
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ErrorOrBuilder getErrorOrBuilder() {
if ((responseCase_ == 4) && (errorBuilder_ != null)) {
return errorBuilder_.getMessageOrBuilder();
} else {
if (responseCase_ == 4) {
return (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error) response_;
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.getDefaultInstance();
}
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.Error error = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.Builder, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
if (!(responseCase_ == 4)) {
response_ = com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.getDefaultInstance();
}
errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.Builder, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ErrorOrBuilder>(
(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error) response_,
getParentForChildren(),
isClean());
response_ = null;
}
responseCase_ = 4;
onChanged();;
return errorBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:rpc.TwoPhaseCommitTransactionResponse)
}
// @@protoc_insertion_point(class_scope:rpc.TwoPhaseCommitTransactionResponse)
private static final com.scalar.db.rpc.TwoPhaseCommitTransactionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.scalar.db.rpc.TwoPhaseCommitTransactionResponse();
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TwoPhaseCommitTransactionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy