Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
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 BeginResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:rpc.TwoPhaseCommitTransactionResponse.BeginResponse)
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.BeginResponse}
*/
public static final class BeginResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:rpc.TwoPhaseCommitTransactionResponse.BeginResponse)
BeginResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use BeginResponse.newBuilder() to construct.
private BeginResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BeginResponse() {
transactionId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BeginResponse();
}
@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_BeginResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_BeginResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse.class, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse.Builder.class);
}
public static final int TRANSACTION_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
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.BeginResponse)) {
return super.equals(obj);
}
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse other = (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse) 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.BeginResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse 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.BeginResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse 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.BeginResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse 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.BeginResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse 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.BeginResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse 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.BeginResponse 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.BeginResponse 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.BeginResponse 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.BeginResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:rpc.TwoPhaseCommitTransactionResponse.BeginResponse)
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_BeginResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_BeginResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse.class, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse.Builder.class);
}
// Construct using com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
transactionId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_BeginResponse_descriptor;
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse getDefaultInstanceForType() {
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse.getDefaultInstance();
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse build() {
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse buildPartial() {
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse result = new com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.transactionId_ = transactionId_;
}
}
@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.BeginResponse) {
return mergeFrom((com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse other) {
if (other == com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse.getDefaultInstance()) return this;
if (!other.getTransactionId().isEmpty()) {
transactionId_ = other.transactionId_;
bitField0_ |= 0x00000001;
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();
bitField0_ |= 0x00000001;
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.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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string transaction_id = 1;
* @return This builder for chaining.
*/
public Builder clearTransactionId() {
transactionId_ = getDefaultInstance().getTransactionId();
bitField0_ = (bitField0_ & ~0x00000001);
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;
bitField0_ |= 0x00000001;
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.BeginResponse)
}
// @@protoc_insertion_point(class_scope:rpc.TwoPhaseCommitTransactionResponse.BeginResponse)
private static final com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse();
}
public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BeginResponse 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.BeginResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
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;
@SuppressWarnings("serial")
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();
bitField0_ = 0;
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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.transactionId_ = transactionId_;
}
}
@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_;
bitField0_ |= 0x00000001;
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();
bitField0_ |= 0x00000001;
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.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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string transaction_id = 1;
* @return This builder for chaining.
*/
public Builder clearTransactionId() {
transactionId_ = getDefaultInstance().getTransactionId();
bitField0_ = (bitField0_ & ~0x00000001);
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;
bitField0_ |= 0x00000001;
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 result_ == null ? com.scalar.db.rpc.Result.getDefaultInstance() : result_;
}
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();
bitField0_ = 0;
result_ = null;
if (resultBuilder_ != null) {
resultBuilder_.dispose();
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 (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.result_ = resultBuilder_ == null
? result_
: resultBuilder_.build();
}
}
@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);
bitField0_ |= 0x00000001;
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 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 ((bitField0_ & 0x00000001) != 0);
}
/**
* .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;
} else {
resultBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .rpc.Result result = 1;
*/
public Builder setResult(
com.scalar.db.rpc.Result.Builder builderForValue) {
if (resultBuilder_ == null) {
result_ = builderForValue.build();
} else {
resultBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .rpc.Result result = 1;
*/
public Builder mergeResult(com.scalar.db.rpc.Result value) {
if (resultBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
result_ != null &&
result_ != com.scalar.db.rpc.Result.getDefaultInstance()) {
getResultBuilder().mergeFrom(value);
} else {
result_ = value;
}
} else {
resultBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .rpc.Result result = 1;
*/
public Builder clearResult() {
bitField0_ = (bitField0_ & ~0x00000001);
result_ = null;
if (resultBuilder_ != null) {
resultBuilder_.dispose();
resultBuilder_ = null;
}
onChanged();
return this;
}
/**
* .rpc.Result result = 1;
*/
public com.scalar.db.rpc.Result.Builder getResultBuilder() {
bitField0_ |= 0x00000001;
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 results = 1;
*/
java.util.List
getResultsList();
/**
* repeated .rpc.Result results = 1;
*/
com.scalar.db.rpc.Result getResults(int index);
/**
* repeated .rpc.Result results = 1;
*/
int getResultsCount();
/**
* repeated .rpc.Result results = 1;
*/
java.util.List extends com.scalar.db.rpc.ResultOrBuilder>
getResultsOrBuilderList();
/**
* repeated .rpc.Result results = 1;
*/
com.scalar.db.rpc.ResultOrBuilder getResultsOrBuilder(
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() {
results_ = 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 RESULTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List results_;
/**
* repeated .rpc.Result results = 1;
*/
@java.lang.Override
public java.util.List getResultsList() {
return results_;
}
/**
* repeated .rpc.Result results = 1;
*/
@java.lang.Override
public java.util.List extends com.scalar.db.rpc.ResultOrBuilder>
getResultsOrBuilderList() {
return results_;
}
/**
* repeated .rpc.Result results = 1;
*/
@java.lang.Override
public int getResultsCount() {
return results_.size();
}
/**
* repeated .rpc.Result results = 1;
*/
@java.lang.Override
public com.scalar.db.rpc.Result getResults(int index) {
return results_.get(index);
}
/**
* repeated .rpc.Result results = 1;
*/
@java.lang.Override
public com.scalar.db.rpc.ResultOrBuilder getResultsOrBuilder(
int index) {
return results_.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 < results_.size(); i++) {
output.writeMessage(1, results_.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 < results_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, results_.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 (!getResultsList()
.equals(other.getResultsList())) 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 (getResultsCount() > 0) {
hash = (37 * hash) + RESULTS_FIELD_NUMBER;
hash = (53 * hash) + getResultsList().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();
bitField0_ = 0;
if (resultsBuilder_ == null) {
results_ = java.util.Collections.emptyList();
} else {
results_ = null;
resultsBuilder_.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);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse result) {
if (resultsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
results_ = java.util.Collections.unmodifiableList(results_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.results_ = results_;
} else {
result.results_ = resultsBuilder_.build();
}
}
private void buildPartial0(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse result) {
int from_bitField0_ = bitField0_;
}
@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 (resultsBuilder_ == null) {
if (!other.results_.isEmpty()) {
if (results_.isEmpty()) {
results_ = other.results_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureResultsIsMutable();
results_.addAll(other.results_);
}
onChanged();
}
} else {
if (!other.results_.isEmpty()) {
if (resultsBuilder_.isEmpty()) {
resultsBuilder_.dispose();
resultsBuilder_ = null;
results_ = other.results_;
bitField0_ = (bitField0_ & ~0x00000001);
resultsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResultsFieldBuilder() : null;
} else {
resultsBuilder_.addAllMessages(other.results_);
}
}
}
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 (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.add(m);
} else {
resultsBuilder_.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 results_ =
java.util.Collections.emptyList();
private void ensureResultsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
results_ = new java.util.ArrayList(results_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.scalar.db.rpc.Result, com.scalar.db.rpc.Result.Builder, com.scalar.db.rpc.ResultOrBuilder> resultsBuilder_;
/**
* repeated .rpc.Result results = 1;
*/
public java.util.List getResultsList() {
if (resultsBuilder_ == null) {
return java.util.Collections.unmodifiableList(results_);
} else {
return resultsBuilder_.getMessageList();
}
}
/**
* repeated .rpc.Result results = 1;
*/
public int getResultsCount() {
if (resultsBuilder_ == null) {
return results_.size();
} else {
return resultsBuilder_.getCount();
}
}
/**
* repeated .rpc.Result results = 1;
*/
public com.scalar.db.rpc.Result getResults(int index) {
if (resultsBuilder_ == null) {
return results_.get(index);
} else {
return resultsBuilder_.getMessage(index);
}
}
/**
* repeated .rpc.Result results = 1;
*/
public Builder setResults(
int index, com.scalar.db.rpc.Result value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.set(index, value);
onChanged();
} else {
resultsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .rpc.Result results = 1;
*/
public Builder setResults(
int index, com.scalar.db.rpc.Result.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.set(index, builderForValue.build());
onChanged();
} else {
resultsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .rpc.Result results = 1;
*/
public Builder addResults(com.scalar.db.rpc.Result value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.add(value);
onChanged();
} else {
resultsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .rpc.Result results = 1;
*/
public Builder addResults(
int index, com.scalar.db.rpc.Result value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.add(index, value);
onChanged();
} else {
resultsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .rpc.Result results = 1;
*/
public Builder addResults(
com.scalar.db.rpc.Result.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.add(builderForValue.build());
onChanged();
} else {
resultsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .rpc.Result results = 1;
*/
public Builder addResults(
int index, com.scalar.db.rpc.Result.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.add(index, builderForValue.build());
onChanged();
} else {
resultsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .rpc.Result results = 1;
*/
public Builder addAllResults(
java.lang.Iterable extends com.scalar.db.rpc.Result> values) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, results_);
onChanged();
} else {
resultsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .rpc.Result results = 1;
*/
public Builder clearResults() {
if (resultsBuilder_ == null) {
results_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
resultsBuilder_.clear();
}
return this;
}
/**
* repeated .rpc.Result results = 1;
*/
public Builder removeResults(int index) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.remove(index);
onChanged();
} else {
resultsBuilder_.remove(index);
}
return this;
}
/**
* repeated .rpc.Result results = 1;
*/
public com.scalar.db.rpc.Result.Builder getResultsBuilder(
int index) {
return getResultsFieldBuilder().getBuilder(index);
}
/**
* repeated .rpc.Result results = 1;
*/
public com.scalar.db.rpc.ResultOrBuilder getResultsOrBuilder(
int index) {
if (resultsBuilder_ == null) {
return results_.get(index); } else {
return resultsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .rpc.Result results = 1;
*/
public java.util.List extends com.scalar.db.rpc.ResultOrBuilder>
getResultsOrBuilderList() {
if (resultsBuilder_ != null) {
return resultsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(results_);
}
}
/**
* repeated .rpc.Result results = 1;
*/
public com.scalar.db.rpc.Result.Builder addResultsBuilder() {
return getResultsFieldBuilder().addBuilder(
com.scalar.db.rpc.Result.getDefaultInstance());
}
/**
* repeated .rpc.Result results = 1;
*/
public com.scalar.db.rpc.Result.Builder addResultsBuilder(
int index) {
return getResultsFieldBuilder().addBuilder(
index, com.scalar.db.rpc.Result.getDefaultInstance());
}
/**
* repeated .rpc.Result results = 1;
*/
public java.util.List
getResultsBuilderList() {
return getResultsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.scalar.db.rpc.Result, com.scalar.db.rpc.Result.Builder, com.scalar.db.rpc.ResultOrBuilder>
getResultsFieldBuilder() {
if (resultsBuilder_ == null) {
resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.scalar.db.rpc.Result, com.scalar.db.rpc.Result.Builder, com.scalar.db.rpc.ResultOrBuilder>(
results_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
results_ = null;
}
return resultsBuilder_;
}
@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),
/**
* TRANSACTION_CONFLICT = 1;
*/
TRANSACTION_CONFLICT(1),
/**
* UNKNOWN_TRANSACTION_STATUS = 2;
*/
UNKNOWN_TRANSACTION_STATUS(2),
/**
* OTHER = 3;
*/
OTHER(3),
/**
* UNSATISFIED_CONDITION = 4;
*/
UNSATISFIED_CONDITION(4),
UNRECOGNIZED(-1),
;
/**
* INVALID_ARGUMENT = 0;
*/
public static final int INVALID_ARGUMENT_VALUE = 0;
/**
* TRANSACTION_CONFLICT = 1;
*/
public static final int TRANSACTION_CONFLICT_VALUE = 1;
/**
* UNKNOWN_TRANSACTION_STATUS = 2;
*/
public static final int UNKNOWN_TRANSACTION_STATUS_VALUE = 2;
/**
* OTHER = 3;
*/
public static final int OTHER_VALUE = 3;
/**
* UNSATISFIED_CONDITION = 4;
*/
public static final int UNSATISFIED_CONDITION_VALUE = 4;
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 TRANSACTION_CONFLICT;
case 2: return UNKNOWN_TRANSACTION_STATUS;
case 3: return OTHER;
case 4: return UNSATISFIED_CONDITION;
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_ = 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;
* @return The errorCode.
*/
@java.lang.Override public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode getErrorCode() {
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode result = com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode.forNumber(errorCode_);
return result == null ? com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode.UNRECOGNIZED : result;
}
public static final int MESSAGE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
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();
bitField0_ = 0;
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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.errorCode_ = errorCode_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.message_ = message_;
}
}
@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_;
bitField0_ |= 0x00000002;
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();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
message_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
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 bitField0_;
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;
bitField0_ |= 0x00000001;
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() {
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode result = com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode.forNumber(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();
}
bitField0_ |= 0x00000001;
errorCode_ = value.getNumber();
onChanged();
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.Error.ErrorCode error_code = 1;
* @return This builder for chaining.
*/
public Builder clearErrorCode() {
bitField0_ = (bitField0_ & ~0x00000001);
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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string message = 2;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
bitField0_ = (bitField0_ & ~0x00000002);
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;
bitField0_ |= 0x00000002;
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),
BEGIN_RESPONSE(5),
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 5: return BEGIN_RESPONSE;
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();
}
public static final int BEGIN_RESPONSE_FIELD_NUMBER = 5;
/**
* .rpc.TwoPhaseCommitTransactionResponse.BeginResponse begin_response = 5;
* @return Whether the beginResponse field is set.
*/
@java.lang.Override
public boolean hasBeginResponse() {
return responseCase_ == 5;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.BeginResponse begin_response = 5;
* @return The beginResponse.
*/
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse getBeginResponse() {
if (responseCase_ == 5) {
return (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse) response_;
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse.getDefaultInstance();
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.BeginResponse begin_response = 5;
*/
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponseOrBuilder getBeginResponseOrBuilder() {
if (responseCase_ == 5) {
return (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse) response_;
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse.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_);
}
if (responseCase_ == 5) {
output.writeMessage(5, (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse) 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_);
}
if (responseCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse) 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 5:
if (!getBeginResponse()
.equals(other.getBeginResponse())) 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 5:
hash = (37 * hash) + BEGIN_RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getBeginResponse().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();
bitField0_ = 0;
if (startResponseBuilder_ != null) {
startResponseBuilder_.clear();
}
if (getResponseBuilder_ != null) {
getResponseBuilder_.clear();
}
if (scanResponseBuilder_ != null) {
scanResponseBuilder_.clear();
}
if (errorBuilder_ != null) {
errorBuilder_.clear();
}
if (beginResponseBuilder_ != null) {
beginResponseBuilder_.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 (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse result) {
result.responseCase_ = responseCase_;
result.response_ = this.response_;
if (responseCase_ == 1 &&
startResponseBuilder_ != null) {
result.response_ = startResponseBuilder_.build();
}
if (responseCase_ == 2 &&
getResponseBuilder_ != null) {
result.response_ = getResponseBuilder_.build();
}
if (responseCase_ == 3 &&
scanResponseBuilder_ != null) {
result.response_ = scanResponseBuilder_.build();
}
if (responseCase_ == 4 &&
errorBuilder_ != null) {
result.response_ = errorBuilder_.build();
}
if (responseCase_ == 5 &&
beginResponseBuilder_ != null) {
result.response_ = beginResponseBuilder_.build();
}
}
@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 BEGIN_RESPONSE: {
mergeBeginResponse(other.getBeginResponse());
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
case 42: {
input.readMessage(
getBeginResponseFieldBuilder().getBuilder(),
extensionRegistry);
responseCase_ = 5;
break;
} // case 42
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 int bitField0_;
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_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse.Builder, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponseOrBuilder> beginResponseBuilder_;
/**
* .rpc.TwoPhaseCommitTransactionResponse.BeginResponse begin_response = 5;
* @return Whether the beginResponse field is set.
*/
@java.lang.Override
public boolean hasBeginResponse() {
return responseCase_ == 5;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.BeginResponse begin_response = 5;
* @return The beginResponse.
*/
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse getBeginResponse() {
if (beginResponseBuilder_ == null) {
if (responseCase_ == 5) {
return (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse) response_;
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse.getDefaultInstance();
} else {
if (responseCase_ == 5) {
return beginResponseBuilder_.getMessage();
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse.getDefaultInstance();
}
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.BeginResponse begin_response = 5;
*/
public Builder setBeginResponse(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse value) {
if (beginResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
response_ = value;
onChanged();
} else {
beginResponseBuilder_.setMessage(value);
}
responseCase_ = 5;
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.BeginResponse begin_response = 5;
*/
public Builder setBeginResponse(
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse.Builder builderForValue) {
if (beginResponseBuilder_ == null) {
response_ = builderForValue.build();
onChanged();
} else {
beginResponseBuilder_.setMessage(builderForValue.build());
}
responseCase_ = 5;
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.BeginResponse begin_response = 5;
*/
public Builder mergeBeginResponse(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse value) {
if (beginResponseBuilder_ == null) {
if (responseCase_ == 5 &&
response_ != com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse.getDefaultInstance()) {
response_ = com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse.newBuilder((com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse) response_)
.mergeFrom(value).buildPartial();
} else {
response_ = value;
}
onChanged();
} else {
if (responseCase_ == 5) {
beginResponseBuilder_.mergeFrom(value);
} else {
beginResponseBuilder_.setMessage(value);
}
}
responseCase_ = 5;
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.BeginResponse begin_response = 5;
*/
public Builder clearBeginResponse() {
if (beginResponseBuilder_ == null) {
if (responseCase_ == 5) {
responseCase_ = 0;
response_ = null;
onChanged();
}
} else {
if (responseCase_ == 5) {
responseCase_ = 0;
response_ = null;
}
beginResponseBuilder_.clear();
}
return this;
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.BeginResponse begin_response = 5;
*/
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse.Builder getBeginResponseBuilder() {
return getBeginResponseFieldBuilder().getBuilder();
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.BeginResponse begin_response = 5;
*/
@java.lang.Override
public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponseOrBuilder getBeginResponseOrBuilder() {
if ((responseCase_ == 5) && (beginResponseBuilder_ != null)) {
return beginResponseBuilder_.getMessageOrBuilder();
} else {
if (responseCase_ == 5) {
return (com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse) response_;
}
return com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse.getDefaultInstance();
}
}
/**
* .rpc.TwoPhaseCommitTransactionResponse.BeginResponse begin_response = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse.Builder, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponseOrBuilder>
getBeginResponseFieldBuilder() {
if (beginResponseBuilder_ == null) {
if (!(responseCase_ == 5)) {
response_ = com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse.getDefaultInstance();
}
beginResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse.Builder, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponseOrBuilder>(
(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse) response_,
getParentForChildren(),
isClean());
response_ = null;
}
responseCase_ = 5;
onChanged();
return beginResponseBuilder_;
}
@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;
}
}