// Generated by the protocol buffer compiler. DO NOT EDIT! // source: edu/brown/hstore/hstoreservice.proto package edu.brown.hstore; public final class Hstoreservice { private Hstoreservice() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public enum Status implements com.google.protobuf.ProtocolMessageEnum { OK(0, 0), ABORT_USER(1, 1), ABORT_GRACEFUL(2, 2), ABORT_UNEXPECTED(3, 3), ABORT_CONNECTION_LOST(4, 4), ABORT_MISPREDICT(5, 5), ABORT_RESTART(6, 6), ABORT_REJECT(7, 7), ABORT_EVICTEDACCESS(8, 8), ABORT_SPECULATIVE(9, 9), ; public final int getNumber() { return value; } public static Status valueOf(int value) { switch (value) { case 0: return OK; case 1: return ABORT_USER; case 2: return ABORT_GRACEFUL; case 3: return ABORT_UNEXPECTED; case 4: return ABORT_CONNECTION_LOST; case 5: return ABORT_MISPREDICT; case 6: return ABORT_RESTART; case 7: return ABORT_REJECT; case 8: return ABORT_EVICTEDACCESS; case 9: return ABORT_SPECULATIVE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<Status> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Status>() { public Status findValueByNumber(int number) { return Status.valueOf(number) ; } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.getDescriptor().getEnumTypes().get(0); } private static final Status[] VALUES = { OK, ABORT_USER, ABORT_GRACEFUL, ABORT_UNEXPECTED, ABORT_CONNECTION_LOST, ABORT_MISPREDICT, ABORT_RESTART, ABORT_REJECT, ABORT_EVICTEDACCESS, ABORT_SPECULATIVE, }; public static Status valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private Status(int index, int value) { this.index = index; this.value = value; } static { edu.brown.hstore.Hstoreservice.getDescriptor(); } // @@protoc_insertion_point(enum_scope:edu.brown.hstore.Status) } public static final class WorkFragment extends com.google.protobuf.GeneratedMessage { // Use WorkFragment.newBuilder() to construct. private WorkFragment() { initFields(); } private WorkFragment(boolean noInit) {} private static final WorkFragment defaultInstance; public static WorkFragment getDefaultInstance() { return defaultInstance; } public WorkFragment getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_WorkFragment_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_WorkFragment_fieldAccessorTable; } // required int32 partition_id = 1; public static final int PARTITION_ID_FIELD_NUMBER = 1; private boolean hasPartitionId; private int partitionId_ = 0; public boolean hasPartitionId() { return hasPartitionId; } public int getPartitionId() { return partitionId_; } // repeated int32 fragment_id = 2 [packed = true]; public static final int FRAGMENT_ID_FIELD_NUMBER = 2; private java.util.List<java.lang.Integer> fragmentId_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getFragmentIdList() { return fragmentId_; } public int getFragmentIdCount() { return fragmentId_.size(); } public int getFragmentId(int index) { return fragmentId_.get(index); } private int fragmentIdMemoizedSerializedSize = -1; // repeated int32 input_dep_id = 3 [packed = true]; public static final int INPUT_DEP_ID_FIELD_NUMBER = 3; private java.util.List<java.lang.Integer> inputDepId_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getInputDepIdList() { return inputDepId_; } public int getInputDepIdCount() { return inputDepId_.size(); } public int getInputDepId(int index) { return inputDepId_.get(index); } private int inputDepIdMemoizedSerializedSize = -1; // repeated int32 output_dep_id = 4 [packed = true]; public static final int OUTPUT_DEP_ID_FIELD_NUMBER = 4; private java.util.List<java.lang.Integer> outputDepId_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getOutputDepIdList() { return outputDepId_; } public int getOutputDepIdCount() { return outputDepId_.size(); } public int getOutputDepId(int index) { return outputDepId_.get(index); } private int outputDepIdMemoizedSerializedSize = -1; // repeated int32 param_index = 5 [packed = true]; public static final int PARAM_INDEX_FIELD_NUMBER = 5; private java.util.List<java.lang.Integer> paramIndex_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getParamIndexList() { return paramIndex_; } public int getParamIndexCount() { return paramIndex_.size(); } public int getParamIndex(int index) { return paramIndex_.get(index); } private int paramIndexMemoizedSerializedSize = -1; // repeated int32 stmt_counter = 6 [packed = true]; public static final int STMT_COUNTER_FIELD_NUMBER = 6; private java.util.List<java.lang.Integer> stmtCounter_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getStmtCounterList() { return stmtCounter_; } public int getStmtCounterCount() { return stmtCounter_.size(); } public int getStmtCounter(int index) { return stmtCounter_.get(index); } private int stmtCounterMemoizedSerializedSize = -1; // repeated int32 stmt_index = 7 [packed = true]; public static final int STMT_INDEX_FIELD_NUMBER = 7; private java.util.List<java.lang.Integer> stmtIndex_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getStmtIndexList() { return stmtIndex_; } public int getStmtIndexCount() { return stmtIndex_.size(); } public int getStmtIndex(int index) { return stmtIndex_.get(index); } private int stmtIndexMemoizedSerializedSize = -1; // repeated bool stmt_ignore = 8 [packed = true]; public static final int STMT_IGNORE_FIELD_NUMBER = 8; private java.util.List<java.lang.Boolean> stmtIgnore_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Boolean> getStmtIgnoreList() { return stmtIgnore_; } public int getStmtIgnoreCount() { return stmtIgnore_.size(); } public boolean getStmtIgnore(int index) { return stmtIgnore_.get(index); } private int stmtIgnoreMemoizedSerializedSize = -1; // required bool read_only = 9; public static final int READ_ONLY_FIELD_NUMBER = 9; private boolean hasReadOnly; private boolean readOnly_ = false; public boolean hasReadOnly() { return hasReadOnly; } public boolean getReadOnly() { return readOnly_; } // optional bool needs_input = 10 [default = false]; public static final int NEEDS_INPUT_FIELD_NUMBER = 10; private boolean hasNeedsInput; private boolean needsInput_ = false; public boolean hasNeedsInput() { return hasNeedsInput; } public boolean getNeedsInput() { return needsInput_; } // optional bool last_fragment = 11 [default = false]; public static final int LAST_FRAGMENT_FIELD_NUMBER = 11; private boolean hasLastFragment; private boolean lastFragment_ = false; public boolean hasLastFragment() { return hasLastFragment; } public boolean getLastFragment() { return lastFragment_; } // optional bool prefetch = 12 [default = false]; public static final int PREFETCH_FIELD_NUMBER = 12; private boolean hasPrefetch; private boolean prefetch_ = false; public boolean hasPrefetch() { return hasPrefetch; } public boolean getPrefetch() { return prefetch_; } // optional bool force = 13 [default = false]; public static final int FORCE_FIELD_NUMBER = 13; private boolean hasForce; private boolean force_ = false; public boolean hasForce() { return hasForce; } public boolean getForce() { return force_; } // optional .edu.brown.hstore.QueryEstimate future_statements = 14; public static final int FUTURE_STATEMENTS_FIELD_NUMBER = 14; private boolean hasFutureStatements; private edu.brown.hstore.Hstoreservice.QueryEstimate futureStatements_; public boolean hasFutureStatements() { return hasFutureStatements; } public edu.brown.hstore.Hstoreservice.QueryEstimate getFutureStatements() { return futureStatements_; } private void initFields() { futureStatements_ = edu.brown.hstore.Hstoreservice.QueryEstimate.getDefaultInstance(); } public final boolean isInitialized() { if (!hasPartitionId) return false; if (!hasReadOnly) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasPartitionId()) { output.writeInt32(1, getPartitionId()); } if (getFragmentIdList().size() > 0) { output.writeRawVarint32(18); output.writeRawVarint32(fragmentIdMemoizedSerializedSize); } for (int element : getFragmentIdList()) { output.writeInt32NoTag(element); } if (getInputDepIdList().size() > 0) { output.writeRawVarint32(26); output.writeRawVarint32(inputDepIdMemoizedSerializedSize); } for (int element : getInputDepIdList()) { output.writeInt32NoTag(element); } if (getOutputDepIdList().size() > 0) { output.writeRawVarint32(34); output.writeRawVarint32(outputDepIdMemoizedSerializedSize); } for (int element : getOutputDepIdList()) { output.writeInt32NoTag(element); } if (getParamIndexList().size() > 0) { output.writeRawVarint32(42); output.writeRawVarint32(paramIndexMemoizedSerializedSize); } for (int element : getParamIndexList()) { output.writeInt32NoTag(element); } if (getStmtCounterList().size() > 0) { output.writeRawVarint32(50); output.writeRawVarint32(stmtCounterMemoizedSerializedSize); } for (int element : getStmtCounterList()) { output.writeInt32NoTag(element); } if (getStmtIndexList().size() > 0) { output.writeRawVarint32(58); output.writeRawVarint32(stmtIndexMemoizedSerializedSize); } for (int element : getStmtIndexList()) { output.writeInt32NoTag(element); } if (getStmtIgnoreList().size() > 0) { output.writeRawVarint32(66); output.writeRawVarint32(stmtIgnoreMemoizedSerializedSize); } for (boolean element : getStmtIgnoreList()) { output.writeBoolNoTag(element); } if (hasReadOnly()) { output.writeBool(9, getReadOnly()); } if (hasNeedsInput()) { output.writeBool(10, getNeedsInput()); } if (hasLastFragment()) { output.writeBool(11, getLastFragment()); } if (hasPrefetch()) { output.writeBool(12, getPrefetch()); } if (hasForce()) { output.writeBool(13, getForce()); } if (hasFutureStatements()) { output.writeMessage(14, getFutureStatements()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasPartitionId()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, getPartitionId()); } { int dataSize = 0; for (int element : getFragmentIdList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getFragmentIdList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } fragmentIdMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int element : getInputDepIdList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getInputDepIdList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } inputDepIdMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int element : getOutputDepIdList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getOutputDepIdList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } outputDepIdMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int element : getParamIndexList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getParamIndexList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } paramIndexMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int element : getStmtCounterList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getStmtCounterList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } stmtCounterMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int element : getStmtIndexList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getStmtIndexList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } stmtIndexMemoizedSerializedSize = dataSize; } { int dataSize = 0; dataSize = 1 * getStmtIgnoreList().size(); size += dataSize; if (!getStmtIgnoreList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } stmtIgnoreMemoizedSerializedSize = dataSize; } if (hasReadOnly()) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, getReadOnly()); } if (hasNeedsInput()) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, getNeedsInput()); } if (hasLastFragment()) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, getLastFragment()); } if (hasPrefetch()) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, getPrefetch()); } if (hasForce()) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(13, getForce()); } if (hasFutureStatements()) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getFutureStatements()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.WorkFragment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.WorkFragment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.WorkFragment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.WorkFragment parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.WorkFragment parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.WorkFragment parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.WorkFragment parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.WorkFragment parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.WorkFragment parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.WorkFragment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.WorkFragment prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.WorkFragment result; // Construct using edu.brown.hstore.Hstoreservice.WorkFragment.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.WorkFragment(); return builder; } protected edu.brown.hstore.Hstoreservice.WorkFragment internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.WorkFragment(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.WorkFragment.getDescriptor(); } public edu.brown.hstore.Hstoreservice.WorkFragment getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.WorkFragment.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.WorkFragment build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.WorkFragment buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.WorkFragment buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } if (result.fragmentId_ != java.util.Collections.EMPTY_LIST) { result.fragmentId_ = java.util.Collections.unmodifiableList(result.fragmentId_); } if (result.inputDepId_ != java.util.Collections.EMPTY_LIST) { result.inputDepId_ = java.util.Collections.unmodifiableList(result.inputDepId_); } if (result.outputDepId_ != java.util.Collections.EMPTY_LIST) { result.outputDepId_ = java.util.Collections.unmodifiableList(result.outputDepId_); } if (result.paramIndex_ != java.util.Collections.EMPTY_LIST) { result.paramIndex_ = java.util.Collections.unmodifiableList(result.paramIndex_); } if (result.stmtCounter_ != java.util.Collections.EMPTY_LIST) { result.stmtCounter_ = java.util.Collections.unmodifiableList(result.stmtCounter_); } if (result.stmtIndex_ != java.util.Collections.EMPTY_LIST) { result.stmtIndex_ = java.util.Collections.unmodifiableList(result.stmtIndex_); } if (result.stmtIgnore_ != java.util.Collections.EMPTY_LIST) { result.stmtIgnore_ = java.util.Collections.unmodifiableList(result.stmtIgnore_); } edu.brown.hstore.Hstoreservice.WorkFragment returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.WorkFragment) { return mergeFrom((edu.brown.hstore.Hstoreservice.WorkFragment)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.WorkFragment other) { if (other == edu.brown.hstore.Hstoreservice.WorkFragment.getDefaultInstance()) return this; if (other.hasPartitionId()) { setPartitionId(other.getPartitionId()); } if (!other.fragmentId_.isEmpty()) { if (result.fragmentId_.isEmpty()) { result.fragmentId_ = new java.util.ArrayList<java.lang.Integer>(); } result.fragmentId_.addAll(other.fragmentId_); } if (!other.inputDepId_.isEmpty()) { if (result.inputDepId_.isEmpty()) { result.inputDepId_ = new java.util.ArrayList<java.lang.Integer>(); } result.inputDepId_.addAll(other.inputDepId_); } if (!other.outputDepId_.isEmpty()) { if (result.outputDepId_.isEmpty()) { result.outputDepId_ = new java.util.ArrayList<java.lang.Integer>(); } result.outputDepId_.addAll(other.outputDepId_); } if (!other.paramIndex_.isEmpty()) { if (result.paramIndex_.isEmpty()) { result.paramIndex_ = new java.util.ArrayList<java.lang.Integer>(); } result.paramIndex_.addAll(other.paramIndex_); } if (!other.stmtCounter_.isEmpty()) { if (result.stmtCounter_.isEmpty()) { result.stmtCounter_ = new java.util.ArrayList<java.lang.Integer>(); } result.stmtCounter_.addAll(other.stmtCounter_); } if (!other.stmtIndex_.isEmpty()) { if (result.stmtIndex_.isEmpty()) { result.stmtIndex_ = new java.util.ArrayList<java.lang.Integer>(); } result.stmtIndex_.addAll(other.stmtIndex_); } if (!other.stmtIgnore_.isEmpty()) { if (result.stmtIgnore_.isEmpty()) { result.stmtIgnore_ = new java.util.ArrayList<java.lang.Boolean>(); } result.stmtIgnore_.addAll(other.stmtIgnore_); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } if (other.hasNeedsInput()) { setNeedsInput(other.getNeedsInput()); } if (other.hasLastFragment()) { setLastFragment(other.getLastFragment()); } if (other.hasPrefetch()) { setPrefetch(other.getPrefetch()); } if (other.hasForce()) { setForce(other.getForce()); } if (other.hasFutureStatements()) { mergeFutureStatements(other.getFutureStatements()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setPartitionId(input.readInt32()); break; } case 16: { addFragmentId(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addFragmentId(input.readInt32()); } input.popLimit(limit); break; } case 24: { addInputDepId(input.readInt32()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addInputDepId(input.readInt32()); } input.popLimit(limit); break; } case 32: { addOutputDepId(input.readInt32()); break; } case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addOutputDepId(input.readInt32()); } input.popLimit(limit); break; } case 40: { addParamIndex(input.readInt32()); break; } case 42: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addParamIndex(input.readInt32()); } input.popLimit(limit); break; } case 48: { addStmtCounter(input.readInt32()); break; } case 50: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addStmtCounter(input.readInt32()); } input.popLimit(limit); break; } case 56: { addStmtIndex(input.readInt32()); break; } case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addStmtIndex(input.readInt32()); } input.popLimit(limit); break; } case 64: { addStmtIgnore(input.readBool()); break; } case 66: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addStmtIgnore(input.readBool()); } input.popLimit(limit); break; } case 72: { setReadOnly(input.readBool()); break; } case 80: { setNeedsInput(input.readBool()); break; } case 88: { setLastFragment(input.readBool()); break; } case 96: { setPrefetch(input.readBool()); break; } case 104: { setForce(input.readBool()); break; } case 114: { edu.brown.hstore.Hstoreservice.QueryEstimate.Builder subBuilder = edu.brown.hstore.Hstoreservice.QueryEstimate.newBuilder(); if (hasFutureStatements()) { subBuilder.mergeFrom(getFutureStatements()); } input.readMessage(subBuilder, extensionRegistry); setFutureStatements(subBuilder.buildPartial()); break; } } } } // required int32 partition_id = 1; public boolean hasPartitionId() { return result.hasPartitionId(); } public int getPartitionId() { return result.getPartitionId(); } public Builder setPartitionId(int value) { result.hasPartitionId = true; result.partitionId_ = value; return this; } public Builder clearPartitionId() { result.hasPartitionId = false; result.partitionId_ = 0; return this; } // repeated int32 fragment_id = 2 [packed = true]; public java.util.List<java.lang.Integer> getFragmentIdList() { return java.util.Collections.unmodifiableList(result.fragmentId_); } public int getFragmentIdCount() { return result.getFragmentIdCount(); } public int getFragmentId(int index) { return result.getFragmentId(index); } public Builder setFragmentId(int index, int value) { result.fragmentId_.set(index, value); return this; } public Builder addFragmentId(int value) { if (result.fragmentId_.isEmpty()) { result.fragmentId_ = new java.util.ArrayList<java.lang.Integer>(); } result.fragmentId_.add(value); return this; } public Builder addAllFragmentId( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.fragmentId_.isEmpty()) { result.fragmentId_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.fragmentId_); return this; } public Builder clearFragmentId() { result.fragmentId_ = java.util.Collections.emptyList(); return this; } // repeated int32 input_dep_id = 3 [packed = true]; public java.util.List<java.lang.Integer> getInputDepIdList() { return java.util.Collections.unmodifiableList(result.inputDepId_); } public int getInputDepIdCount() { return result.getInputDepIdCount(); } public int getInputDepId(int index) { return result.getInputDepId(index); } public Builder setInputDepId(int index, int value) { result.inputDepId_.set(index, value); return this; } public Builder addInputDepId(int value) { if (result.inputDepId_.isEmpty()) { result.inputDepId_ = new java.util.ArrayList<java.lang.Integer>(); } result.inputDepId_.add(value); return this; } public Builder addAllInputDepId( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.inputDepId_.isEmpty()) { result.inputDepId_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.inputDepId_); return this; } public Builder clearInputDepId() { result.inputDepId_ = java.util.Collections.emptyList(); return this; } // repeated int32 output_dep_id = 4 [packed = true]; public java.util.List<java.lang.Integer> getOutputDepIdList() { return java.util.Collections.unmodifiableList(result.outputDepId_); } public int getOutputDepIdCount() { return result.getOutputDepIdCount(); } public int getOutputDepId(int index) { return result.getOutputDepId(index); } public Builder setOutputDepId(int index, int value) { result.outputDepId_.set(index, value); return this; } public Builder addOutputDepId(int value) { if (result.outputDepId_.isEmpty()) { result.outputDepId_ = new java.util.ArrayList<java.lang.Integer>(); } result.outputDepId_.add(value); return this; } public Builder addAllOutputDepId( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.outputDepId_.isEmpty()) { result.outputDepId_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.outputDepId_); return this; } public Builder clearOutputDepId() { result.outputDepId_ = java.util.Collections.emptyList(); return this; } // repeated int32 param_index = 5 [packed = true]; public java.util.List<java.lang.Integer> getParamIndexList() { return java.util.Collections.unmodifiableList(result.paramIndex_); } public int getParamIndexCount() { return result.getParamIndexCount(); } public int getParamIndex(int index) { return result.getParamIndex(index); } public Builder setParamIndex(int index, int value) { result.paramIndex_.set(index, value); return this; } public Builder addParamIndex(int value) { if (result.paramIndex_.isEmpty()) { result.paramIndex_ = new java.util.ArrayList<java.lang.Integer>(); } result.paramIndex_.add(value); return this; } public Builder addAllParamIndex( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.paramIndex_.isEmpty()) { result.paramIndex_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.paramIndex_); return this; } public Builder clearParamIndex() { result.paramIndex_ = java.util.Collections.emptyList(); return this; } // repeated int32 stmt_counter = 6 [packed = true]; public java.util.List<java.lang.Integer> getStmtCounterList() { return java.util.Collections.unmodifiableList(result.stmtCounter_); } public int getStmtCounterCount() { return result.getStmtCounterCount(); } public int getStmtCounter(int index) { return result.getStmtCounter(index); } public Builder setStmtCounter(int index, int value) { result.stmtCounter_.set(index, value); return this; } public Builder addStmtCounter(int value) { if (result.stmtCounter_.isEmpty()) { result.stmtCounter_ = new java.util.ArrayList<java.lang.Integer>(); } result.stmtCounter_.add(value); return this; } public Builder addAllStmtCounter( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.stmtCounter_.isEmpty()) { result.stmtCounter_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.stmtCounter_); return this; } public Builder clearStmtCounter() { result.stmtCounter_ = java.util.Collections.emptyList(); return this; } // repeated int32 stmt_index = 7 [packed = true]; public java.util.List<java.lang.Integer> getStmtIndexList() { return java.util.Collections.unmodifiableList(result.stmtIndex_); } public int getStmtIndexCount() { return result.getStmtIndexCount(); } public int getStmtIndex(int index) { return result.getStmtIndex(index); } public Builder setStmtIndex(int index, int value) { result.stmtIndex_.set(index, value); return this; } public Builder addStmtIndex(int value) { if (result.stmtIndex_.isEmpty()) { result.stmtIndex_ = new java.util.ArrayList<java.lang.Integer>(); } result.stmtIndex_.add(value); return this; } public Builder addAllStmtIndex( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.stmtIndex_.isEmpty()) { result.stmtIndex_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.stmtIndex_); return this; } public Builder clearStmtIndex() { result.stmtIndex_ = java.util.Collections.emptyList(); return this; } // repeated bool stmt_ignore = 8 [packed = true]; public java.util.List<java.lang.Boolean> getStmtIgnoreList() { return java.util.Collections.unmodifiableList(result.stmtIgnore_); } public int getStmtIgnoreCount() { return result.getStmtIgnoreCount(); } public boolean getStmtIgnore(int index) { return result.getStmtIgnore(index); } public Builder setStmtIgnore(int index, boolean value) { result.stmtIgnore_.set(index, value); return this; } public Builder addStmtIgnore(boolean value) { if (result.stmtIgnore_.isEmpty()) { result.stmtIgnore_ = new java.util.ArrayList<java.lang.Boolean>(); } result.stmtIgnore_.add(value); return this; } public Builder addAllStmtIgnore( java.lang.Iterable<? extends java.lang.Boolean> values) { if (result.stmtIgnore_.isEmpty()) { result.stmtIgnore_ = new java.util.ArrayList<java.lang.Boolean>(); } super.addAll(values, result.stmtIgnore_); return this; } public Builder clearStmtIgnore() { result.stmtIgnore_ = java.util.Collections.emptyList(); return this; } // required bool read_only = 9; public boolean hasReadOnly() { return result.hasReadOnly(); } public boolean getReadOnly() { return result.getReadOnly(); } public Builder setReadOnly(boolean value) { result.hasReadOnly = true; result.readOnly_ = value; return this; } public Builder clearReadOnly() { result.hasReadOnly = false; result.readOnly_ = false; return this; } // optional bool needs_input = 10 [default = false]; public boolean hasNeedsInput() { return result.hasNeedsInput(); } public boolean getNeedsInput() { return result.getNeedsInput(); } public Builder setNeedsInput(boolean value) { result.hasNeedsInput = true; result.needsInput_ = value; return this; } public Builder clearNeedsInput() { result.hasNeedsInput = false; result.needsInput_ = false; return this; } // optional bool last_fragment = 11 [default = false]; public boolean hasLastFragment() { return result.hasLastFragment(); } public boolean getLastFragment() { return result.getLastFragment(); } public Builder setLastFragment(boolean value) { result.hasLastFragment = true; result.lastFragment_ = value; return this; } public Builder clearLastFragment() { result.hasLastFragment = false; result.lastFragment_ = false; return this; } // optional bool prefetch = 12 [default = false]; public boolean hasPrefetch() { return result.hasPrefetch(); } public boolean getPrefetch() { return result.getPrefetch(); } public Builder setPrefetch(boolean value) { result.hasPrefetch = true; result.prefetch_ = value; return this; } public Builder clearPrefetch() { result.hasPrefetch = false; result.prefetch_ = false; return this; } // optional bool force = 13 [default = false]; public boolean hasForce() { return result.hasForce(); } public boolean getForce() { return result.getForce(); } public Builder setForce(boolean value) { result.hasForce = true; result.force_ = value; return this; } public Builder clearForce() { result.hasForce = false; result.force_ = false; return this; } // optional .edu.brown.hstore.QueryEstimate future_statements = 14; public boolean hasFutureStatements() { return result.hasFutureStatements(); } public edu.brown.hstore.Hstoreservice.QueryEstimate getFutureStatements() { return result.getFutureStatements(); } public Builder setFutureStatements(edu.brown.hstore.Hstoreservice.QueryEstimate value) { if (value == null) { throw new NullPointerException(); } result.hasFutureStatements = true; result.futureStatements_ = value; return this; } public Builder setFutureStatements(edu.brown.hstore.Hstoreservice.QueryEstimate.Builder builderForValue) { result.hasFutureStatements = true; result.futureStatements_ = builderForValue.build(); return this; } public Builder mergeFutureStatements(edu.brown.hstore.Hstoreservice.QueryEstimate value) { if (result.hasFutureStatements() && result.futureStatements_ != edu.brown.hstore.Hstoreservice.QueryEstimate.getDefaultInstance()) { result.futureStatements_ = edu.brown.hstore.Hstoreservice.QueryEstimate.newBuilder(result.futureStatements_).mergeFrom(value).buildPartial(); } else { result.futureStatements_ = value; } result.hasFutureStatements = true; return this; } public Builder clearFutureStatements() { result.hasFutureStatements = false; result.futureStatements_ = edu.brown.hstore.Hstoreservice.QueryEstimate.getDefaultInstance(); return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.WorkFragment) } static { defaultInstance = new WorkFragment(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.WorkFragment) } public static final class WorkResult extends com.google.protobuf.GeneratedMessage { // Use WorkResult.newBuilder() to construct. private WorkResult() { initFields(); } private WorkResult(boolean noInit) {} private static final WorkResult defaultInstance; public static WorkResult getDefaultInstance() { return defaultInstance; } public WorkResult getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_WorkResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_WorkResult_fieldAccessorTable; } // required int32 partition_id = 1; public static final int PARTITION_ID_FIELD_NUMBER = 1; private boolean hasPartitionId; private int partitionId_ = 0; public boolean hasPartitionId() { return hasPartitionId; } public int getPartitionId() { return partitionId_; } // repeated int32 dep_id = 2 [packed = true]; public static final int DEP_ID_FIELD_NUMBER = 2; private java.util.List<java.lang.Integer> depId_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getDepIdList() { return depId_; } public int getDepIdCount() { return depId_.size(); } public int getDepId(int index) { return depId_.get(index); } private int depIdMemoizedSerializedSize = -1; // repeated bytes dep_data = 3; public static final int DEP_DATA_FIELD_NUMBER = 3; private java.util.List<com.google.protobuf.ByteString> depData_ = java.util.Collections.emptyList(); public java.util.List<com.google.protobuf.ByteString> getDepDataList() { return depData_; } public int getDepDataCount() { return depData_.size(); } public com.google.protobuf.ByteString getDepData(int index) { return depData_.get(index); } // required .edu.brown.hstore.Status status = 4; public static final int STATUS_FIELD_NUMBER = 4; private boolean hasStatus; private edu.brown.hstore.Hstoreservice.Status status_; public boolean hasStatus() { return hasStatus; } public edu.brown.hstore.Hstoreservice.Status getStatus() { return status_; } // optional bytes error = 5; public static final int ERROR_FIELD_NUMBER = 5; private boolean hasError; private com.google.protobuf.ByteString error_ = com.google.protobuf.ByteString.EMPTY; public boolean hasError() { return hasError; } public com.google.protobuf.ByteString getError() { return error_; } private void initFields() { status_ = edu.brown.hstore.Hstoreservice.Status.OK; } public final boolean isInitialized() { if (!hasPartitionId) return false; if (!hasStatus) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasPartitionId()) { output.writeInt32(1, getPartitionId()); } if (getDepIdList().size() > 0) { output.writeRawVarint32(18); output.writeRawVarint32(depIdMemoizedSerializedSize); } for (int element : getDepIdList()) { output.writeInt32NoTag(element); } for (com.google.protobuf.ByteString element : getDepDataList()) { output.writeBytes(3, element); } if (hasStatus()) { output.writeEnum(4, getStatus().getNumber()); } if (hasError()) { output.writeBytes(5, getError()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasPartitionId()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, getPartitionId()); } { int dataSize = 0; for (int element : getDepIdList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getDepIdList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } depIdMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (com.google.protobuf.ByteString element : getDepDataList()) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(element); } size += dataSize; size += 1 * getDepDataList().size(); } if (hasStatus()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, getStatus().getNumber()); } if (hasError()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getError()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.WorkResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.WorkResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.WorkResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.WorkResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.WorkResult parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.WorkResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.WorkResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.WorkResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.WorkResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.WorkResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.WorkResult prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.WorkResult result; // Construct using edu.brown.hstore.Hstoreservice.WorkResult.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.WorkResult(); return builder; } protected edu.brown.hstore.Hstoreservice.WorkResult internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.WorkResult(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.WorkResult.getDescriptor(); } public edu.brown.hstore.Hstoreservice.WorkResult getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.WorkResult.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.WorkResult build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.WorkResult buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.WorkResult buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } if (result.depId_ != java.util.Collections.EMPTY_LIST) { result.depId_ = java.util.Collections.unmodifiableList(result.depId_); } if (result.depData_ != java.util.Collections.EMPTY_LIST) { result.depData_ = java.util.Collections.unmodifiableList(result.depData_); } edu.brown.hstore.Hstoreservice.WorkResult returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.WorkResult) { return mergeFrom((edu.brown.hstore.Hstoreservice.WorkResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.WorkResult other) { if (other == edu.brown.hstore.Hstoreservice.WorkResult.getDefaultInstance()) return this; if (other.hasPartitionId()) { setPartitionId(other.getPartitionId()); } if (!other.depId_.isEmpty()) { if (result.depId_.isEmpty()) { result.depId_ = new java.util.ArrayList<java.lang.Integer>(); } result.depId_.addAll(other.depId_); } if (!other.depData_.isEmpty()) { if (result.depData_.isEmpty()) { result.depData_ = new java.util.ArrayList<com.google.protobuf.ByteString>(); } result.depData_.addAll(other.depData_); } if (other.hasStatus()) { setStatus(other.getStatus()); } if (other.hasError()) { setError(other.getError()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setPartitionId(input.readInt32()); break; } case 16: { addDepId(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addDepId(input.readInt32()); } input.popLimit(limit); break; } case 26: { addDepData(input.readBytes()); break; } case 32: { int rawValue = input.readEnum(); edu.brown.hstore.Hstoreservice.Status value = edu.brown.hstore.Hstoreservice.Status.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(4, rawValue); } else { setStatus(value); } break; } case 42: { setError(input.readBytes()); break; } } } } // required int32 partition_id = 1; public boolean hasPartitionId() { return result.hasPartitionId(); } public int getPartitionId() { return result.getPartitionId(); } public Builder setPartitionId(int value) { result.hasPartitionId = true; result.partitionId_ = value; return this; } public Builder clearPartitionId() { result.hasPartitionId = false; result.partitionId_ = 0; return this; } // repeated int32 dep_id = 2 [packed = true]; public java.util.List<java.lang.Integer> getDepIdList() { return java.util.Collections.unmodifiableList(result.depId_); } public int getDepIdCount() { return result.getDepIdCount(); } public int getDepId(int index) { return result.getDepId(index); } public Builder setDepId(int index, int value) { result.depId_.set(index, value); return this; } public Builder addDepId(int value) { if (result.depId_.isEmpty()) { result.depId_ = new java.util.ArrayList<java.lang.Integer>(); } result.depId_.add(value); return this; } public Builder addAllDepId( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.depId_.isEmpty()) { result.depId_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.depId_); return this; } public Builder clearDepId() { result.depId_ = java.util.Collections.emptyList(); return this; } // repeated bytes dep_data = 3; public java.util.List<com.google.protobuf.ByteString> getDepDataList() { return java.util.Collections.unmodifiableList(result.depData_); } public int getDepDataCount() { return result.getDepDataCount(); } public com.google.protobuf.ByteString getDepData(int index) { return result.getDepData(index); } public Builder setDepData(int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } result.depData_.set(index, value); return this; } public Builder addDepData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } if (result.depData_.isEmpty()) { result.depData_ = new java.util.ArrayList<com.google.protobuf.ByteString>(); } result.depData_.add(value); return this; } public Builder addAllDepData( java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { if (result.depData_.isEmpty()) { result.depData_ = new java.util.ArrayList<com.google.protobuf.ByteString>(); } super.addAll(values, result.depData_); return this; } public Builder clearDepData() { result.depData_ = java.util.Collections.emptyList(); return this; } // required .edu.brown.hstore.Status status = 4; public boolean hasStatus() { return result.hasStatus(); } public edu.brown.hstore.Hstoreservice.Status getStatus() { return result.getStatus(); } public Builder setStatus(edu.brown.hstore.Hstoreservice.Status value) { if (value == null) { throw new NullPointerException(); } result.hasStatus = true; result.status_ = value; return this; } public Builder clearStatus() { result.hasStatus = false; result.status_ = edu.brown.hstore.Hstoreservice.Status.OK; return this; } // optional bytes error = 5; public boolean hasError() { return result.hasError(); } public com.google.protobuf.ByteString getError() { return result.getError(); } public Builder setError(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } result.hasError = true; result.error_ = value; return this; } public Builder clearError() { result.hasError = false; result.error_ = getDefaultInstance().getError(); return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.WorkResult) } static { defaultInstance = new WorkResult(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.WorkResult) } public static final class QueryEstimate extends com.google.protobuf.GeneratedMessage { // Use QueryEstimate.newBuilder() to construct. private QueryEstimate() { initFields(); } private QueryEstimate(boolean noInit) {} private static final QueryEstimate defaultInstance; public static QueryEstimate getDefaultInstance() { return defaultInstance; } public QueryEstimate getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_QueryEstimate_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_QueryEstimate_fieldAccessorTable; } // repeated int32 stmt_ids = 1 [packed = true]; public static final int STMT_IDS_FIELD_NUMBER = 1; private java.util.List<java.lang.Integer> stmtIds_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getStmtIdsList() { return stmtIds_; } public int getStmtIdsCount() { return stmtIds_.size(); } public int getStmtIds(int index) { return stmtIds_.get(index); } private int stmtIdsMemoizedSerializedSize = -1; // repeated int32 stmt_counters = 2 [packed = true]; public static final int STMT_COUNTERS_FIELD_NUMBER = 2; private java.util.List<java.lang.Integer> stmtCounters_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getStmtCountersList() { return stmtCounters_; } public int getStmtCountersCount() { return stmtCounters_.size(); } public int getStmtCounters(int index) { return stmtCounters_.get(index); } private int stmtCountersMemoizedSerializedSize = -1; // optional int32 time_estimate = 3; public static final int TIME_ESTIMATE_FIELD_NUMBER = 3; private boolean hasTimeEstimate; private int timeEstimate_ = 0; public boolean hasTimeEstimate() { return hasTimeEstimate; } public int getTimeEstimate() { return timeEstimate_; } private void initFields() { } public final boolean isInitialized() { return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getStmtIdsList().size() > 0) { output.writeRawVarint32(10); output.writeRawVarint32(stmtIdsMemoizedSerializedSize); } for (int element : getStmtIdsList()) { output.writeInt32NoTag(element); } if (getStmtCountersList().size() > 0) { output.writeRawVarint32(18); output.writeRawVarint32(stmtCountersMemoizedSerializedSize); } for (int element : getStmtCountersList()) { output.writeInt32NoTag(element); } if (hasTimeEstimate()) { output.writeInt32(3, getTimeEstimate()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int element : getStmtIdsList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getStmtIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } stmtIdsMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int element : getStmtCountersList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getStmtCountersList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } stmtCountersMemoizedSerializedSize = dataSize; } if (hasTimeEstimate()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, getTimeEstimate()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.QueryEstimate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.QueryEstimate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.QueryEstimate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.QueryEstimate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.QueryEstimate parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.QueryEstimate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.QueryEstimate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.QueryEstimate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.QueryEstimate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.QueryEstimate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.QueryEstimate prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.QueryEstimate result; // Construct using edu.brown.hstore.Hstoreservice.QueryEstimate.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.QueryEstimate(); return builder; } protected edu.brown.hstore.Hstoreservice.QueryEstimate internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.QueryEstimate(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.QueryEstimate.getDescriptor(); } public edu.brown.hstore.Hstoreservice.QueryEstimate getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.QueryEstimate.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.QueryEstimate build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.QueryEstimate buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.QueryEstimate buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } if (result.stmtIds_ != java.util.Collections.EMPTY_LIST) { result.stmtIds_ = java.util.Collections.unmodifiableList(result.stmtIds_); } if (result.stmtCounters_ != java.util.Collections.EMPTY_LIST) { result.stmtCounters_ = java.util.Collections.unmodifiableList(result.stmtCounters_); } edu.brown.hstore.Hstoreservice.QueryEstimate returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.QueryEstimate) { return mergeFrom((edu.brown.hstore.Hstoreservice.QueryEstimate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.QueryEstimate other) { if (other == edu.brown.hstore.Hstoreservice.QueryEstimate.getDefaultInstance()) return this; if (!other.stmtIds_.isEmpty()) { if (result.stmtIds_.isEmpty()) { result.stmtIds_ = new java.util.ArrayList<java.lang.Integer>(); } result.stmtIds_.addAll(other.stmtIds_); } if (!other.stmtCounters_.isEmpty()) { if (result.stmtCounters_.isEmpty()) { result.stmtCounters_ = new java.util.ArrayList<java.lang.Integer>(); } result.stmtCounters_.addAll(other.stmtCounters_); } if (other.hasTimeEstimate()) { setTimeEstimate(other.getTimeEstimate()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { addStmtIds(input.readInt32()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addStmtIds(input.readInt32()); } input.popLimit(limit); break; } case 16: { addStmtCounters(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addStmtCounters(input.readInt32()); } input.popLimit(limit); break; } case 24: { setTimeEstimate(input.readInt32()); break; } } } } // repeated int32 stmt_ids = 1 [packed = true]; public java.util.List<java.lang.Integer> getStmtIdsList() { return java.util.Collections.unmodifiableList(result.stmtIds_); } public int getStmtIdsCount() { return result.getStmtIdsCount(); } public int getStmtIds(int index) { return result.getStmtIds(index); } public Builder setStmtIds(int index, int value) { result.stmtIds_.set(index, value); return this; } public Builder addStmtIds(int value) { if (result.stmtIds_.isEmpty()) { result.stmtIds_ = new java.util.ArrayList<java.lang.Integer>(); } result.stmtIds_.add(value); return this; } public Builder addAllStmtIds( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.stmtIds_.isEmpty()) { result.stmtIds_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.stmtIds_); return this; } public Builder clearStmtIds() { result.stmtIds_ = java.util.Collections.emptyList(); return this; } // repeated int32 stmt_counters = 2 [packed = true]; public java.util.List<java.lang.Integer> getStmtCountersList() { return java.util.Collections.unmodifiableList(result.stmtCounters_); } public int getStmtCountersCount() { return result.getStmtCountersCount(); } public int getStmtCounters(int index) { return result.getStmtCounters(index); } public Builder setStmtCounters(int index, int value) { result.stmtCounters_.set(index, value); return this; } public Builder addStmtCounters(int value) { if (result.stmtCounters_.isEmpty()) { result.stmtCounters_ = new java.util.ArrayList<java.lang.Integer>(); } result.stmtCounters_.add(value); return this; } public Builder addAllStmtCounters( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.stmtCounters_.isEmpty()) { result.stmtCounters_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.stmtCounters_); return this; } public Builder clearStmtCounters() { result.stmtCounters_ = java.util.Collections.emptyList(); return this; } // optional int32 time_estimate = 3; public boolean hasTimeEstimate() { return result.hasTimeEstimate(); } public int getTimeEstimate() { return result.getTimeEstimate(); } public Builder setTimeEstimate(int value) { result.hasTimeEstimate = true; result.timeEstimate_ = value; return this; } public Builder clearTimeEstimate() { result.hasTimeEstimate = false; result.timeEstimate_ = 0; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.QueryEstimate) } static { defaultInstance = new QueryEstimate(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.QueryEstimate) } public static final class TransactionInitRequest extends com.google.protobuf.GeneratedMessage { // Use TransactionInitRequest.newBuilder() to construct. private TransactionInitRequest() { initFields(); } private TransactionInitRequest(boolean noInit) {} private static final TransactionInitRequest defaultInstance; public static TransactionInitRequest getDefaultInstance() { return defaultInstance; } public TransactionInitRequest getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionInitRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionInitRequest_fieldAccessorTable; } // optional int64 last_transaction_id = 1; public static final int LAST_TRANSACTION_ID_FIELD_NUMBER = 1; private boolean hasLastTransactionId; private long lastTransactionId_ = 0L; public boolean hasLastTransactionId() { return hasLastTransactionId; } public long getLastTransactionId() { return lastTransactionId_; } // required int64 transaction_id = 2; public static final int TRANSACTION_ID_FIELD_NUMBER = 2; private boolean hasTransactionId; private long transactionId_ = 0L; public boolean hasTransactionId() { return hasTransactionId; } public long getTransactionId() { return transactionId_; } // required int32 base_partition = 3; public static final int BASE_PARTITION_FIELD_NUMBER = 3; private boolean hasBasePartition; private int basePartition_ = 0; public boolean hasBasePartition() { return hasBasePartition; } public int getBasePartition() { return basePartition_; } // required int32 procedure_id = 4; public static final int PROCEDURE_ID_FIELD_NUMBER = 4; private boolean hasProcedureId; private int procedureId_ = 0; public boolean hasProcedureId() { return hasProcedureId; } public int getProcedureId() { return procedureId_; } // repeated int32 partitions = 5 [packed = true]; public static final int PARTITIONS_FIELD_NUMBER = 5; private java.util.List<java.lang.Integer> partitions_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getPartitionsList() { return partitions_; } public int getPartitionsCount() { return partitions_.size(); } public int getPartitions(int index) { return partitions_.get(index); } private int partitionsMemoizedSerializedSize = -1; // optional bytes proc_params = 6; public static final int PROC_PARAMS_FIELD_NUMBER = 6; private boolean hasProcParams; private com.google.protobuf.ByteString procParams_ = com.google.protobuf.ByteString.EMPTY; public boolean hasProcParams() { return hasProcParams; } public com.google.protobuf.ByteString getProcParams() { return procParams_; } // repeated .edu.brown.hstore.WorkFragment prefetch_fragments = 7; public static final int PREFETCH_FRAGMENTS_FIELD_NUMBER = 7; private java.util.List<edu.brown.hstore.Hstoreservice.WorkFragment> prefetchFragments_ = java.util.Collections.emptyList(); public java.util.List<edu.brown.hstore.Hstoreservice.WorkFragment> getPrefetchFragmentsList() { return prefetchFragments_; } public int getPrefetchFragmentsCount() { return prefetchFragments_.size(); } public edu.brown.hstore.Hstoreservice.WorkFragment getPrefetchFragments(int index) { return prefetchFragments_.get(index); } // repeated bytes prefetch_params = 8; public static final int PREFETCH_PARAMS_FIELD_NUMBER = 8; private java.util.List<com.google.protobuf.ByteString> prefetchParams_ = java.util.Collections.emptyList(); public java.util.List<com.google.protobuf.ByteString> getPrefetchParamsList() { return prefetchParams_; } public int getPrefetchParamsCount() { return prefetchParams_.size(); } public com.google.protobuf.ByteString getPrefetchParams(int index) { return prefetchParams_.get(index); } private void initFields() { } public final boolean isInitialized() { if (!hasTransactionId) return false; if (!hasBasePartition) return false; if (!hasProcedureId) return false; for (edu.brown.hstore.Hstoreservice.WorkFragment element : getPrefetchFragmentsList()) { if (!element.isInitialized()) return false; } return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasLastTransactionId()) { output.writeInt64(1, getLastTransactionId()); } if (hasTransactionId()) { output.writeInt64(2, getTransactionId()); } if (hasBasePartition()) { output.writeInt32(3, getBasePartition()); } if (hasProcedureId()) { output.writeInt32(4, getProcedureId()); } if (getPartitionsList().size() > 0) { output.writeRawVarint32(42); output.writeRawVarint32(partitionsMemoizedSerializedSize); } for (int element : getPartitionsList()) { output.writeInt32NoTag(element); } if (hasProcParams()) { output.writeBytes(6, getProcParams()); } for (edu.brown.hstore.Hstoreservice.WorkFragment element : getPrefetchFragmentsList()) { output.writeMessage(7, element); } for (com.google.protobuf.ByteString element : getPrefetchParamsList()) { output.writeBytes(8, element); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasLastTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, getLastTransactionId()); } if (hasTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, getTransactionId()); } if (hasBasePartition()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, getBasePartition()); } if (hasProcedureId()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, getProcedureId()); } { int dataSize = 0; for (int element : getPartitionsList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getPartitionsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } partitionsMemoizedSerializedSize = dataSize; } if (hasProcParams()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getProcParams()); } for (edu.brown.hstore.Hstoreservice.WorkFragment element : getPrefetchFragmentsList()) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, element); } { int dataSize = 0; for (com.google.protobuf.ByteString element : getPrefetchParamsList()) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(element); } size += dataSize; size += 1 * getPrefetchParamsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.TransactionInitRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionInitRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionInitRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionInitRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionInitRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionInitRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionInitRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionInitRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionInitRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionInitRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.TransactionInitRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.TransactionInitRequest result; // Construct using edu.brown.hstore.Hstoreservice.TransactionInitRequest.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.TransactionInitRequest(); return builder; } protected edu.brown.hstore.Hstoreservice.TransactionInitRequest internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.TransactionInitRequest(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.TransactionInitRequest.getDescriptor(); } public edu.brown.hstore.Hstoreservice.TransactionInitRequest getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.TransactionInitRequest.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.TransactionInitRequest build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.TransactionInitRequest buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.TransactionInitRequest buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } if (result.partitions_ != java.util.Collections.EMPTY_LIST) { result.partitions_ = java.util.Collections.unmodifiableList(result.partitions_); } if (result.prefetchFragments_ != java.util.Collections.EMPTY_LIST) { result.prefetchFragments_ = java.util.Collections.unmodifiableList(result.prefetchFragments_); } if (result.prefetchParams_ != java.util.Collections.EMPTY_LIST) { result.prefetchParams_ = java.util.Collections.unmodifiableList(result.prefetchParams_); } edu.brown.hstore.Hstoreservice.TransactionInitRequest returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.TransactionInitRequest) { return mergeFrom((edu.brown.hstore.Hstoreservice.TransactionInitRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.TransactionInitRequest other) { if (other == edu.brown.hstore.Hstoreservice.TransactionInitRequest.getDefaultInstance()) return this; if (other.hasLastTransactionId()) { setLastTransactionId(other.getLastTransactionId()); } if (other.hasTransactionId()) { setTransactionId(other.getTransactionId()); } if (other.hasBasePartition()) { setBasePartition(other.getBasePartition()); } if (other.hasProcedureId()) { setProcedureId(other.getProcedureId()); } if (!other.partitions_.isEmpty()) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } result.partitions_.addAll(other.partitions_); } if (other.hasProcParams()) { setProcParams(other.getProcParams()); } if (!other.prefetchFragments_.isEmpty()) { if (result.prefetchFragments_.isEmpty()) { result.prefetchFragments_ = new java.util.ArrayList<edu.brown.hstore.Hstoreservice.WorkFragment>(); } result.prefetchFragments_.addAll(other.prefetchFragments_); } if (!other.prefetchParams_.isEmpty()) { if (result.prefetchParams_.isEmpty()) { result.prefetchParams_ = new java.util.ArrayList<com.google.protobuf.ByteString>(); } result.prefetchParams_.addAll(other.prefetchParams_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setLastTransactionId(input.readInt64()); break; } case 16: { setTransactionId(input.readInt64()); break; } case 24: { setBasePartition(input.readInt32()); break; } case 32: { setProcedureId(input.readInt32()); break; } case 40: { addPartitions(input.readInt32()); break; } case 42: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addPartitions(input.readInt32()); } input.popLimit(limit); break; } case 50: { setProcParams(input.readBytes()); break; } case 58: { edu.brown.hstore.Hstoreservice.WorkFragment.Builder subBuilder = edu.brown.hstore.Hstoreservice.WorkFragment.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addPrefetchFragments(subBuilder.buildPartial()); break; } case 66: { addPrefetchParams(input.readBytes()); break; } } } } // optional int64 last_transaction_id = 1; public boolean hasLastTransactionId() { return result.hasLastTransactionId(); } public long getLastTransactionId() { return result.getLastTransactionId(); } public Builder setLastTransactionId(long value) { result.hasLastTransactionId = true; result.lastTransactionId_ = value; return this; } public Builder clearLastTransactionId() { result.hasLastTransactionId = false; result.lastTransactionId_ = 0L; return this; } // required int64 transaction_id = 2; public boolean hasTransactionId() { return result.hasTransactionId(); } public long getTransactionId() { return result.getTransactionId(); } public Builder setTransactionId(long value) { result.hasTransactionId = true; result.transactionId_ = value; return this; } public Builder clearTransactionId() { result.hasTransactionId = false; result.transactionId_ = 0L; return this; } // required int32 base_partition = 3; public boolean hasBasePartition() { return result.hasBasePartition(); } public int getBasePartition() { return result.getBasePartition(); } public Builder setBasePartition(int value) { result.hasBasePartition = true; result.basePartition_ = value; return this; } public Builder clearBasePartition() { result.hasBasePartition = false; result.basePartition_ = 0; return this; } // required int32 procedure_id = 4; public boolean hasProcedureId() { return result.hasProcedureId(); } public int getProcedureId() { return result.getProcedureId(); } public Builder setProcedureId(int value) { result.hasProcedureId = true; result.procedureId_ = value; return this; } public Builder clearProcedureId() { result.hasProcedureId = false; result.procedureId_ = 0; return this; } // repeated int32 partitions = 5 [packed = true]; public java.util.List<java.lang.Integer> getPartitionsList() { return java.util.Collections.unmodifiableList(result.partitions_); } public int getPartitionsCount() { return result.getPartitionsCount(); } public int getPartitions(int index) { return result.getPartitions(index); } public Builder setPartitions(int index, int value) { result.partitions_.set(index, value); return this; } public Builder addPartitions(int value) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } result.partitions_.add(value); return this; } public Builder addAllPartitions( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.partitions_); return this; } public Builder clearPartitions() { result.partitions_ = java.util.Collections.emptyList(); return this; } // optional bytes proc_params = 6; public boolean hasProcParams() { return result.hasProcParams(); } public com.google.protobuf.ByteString getProcParams() { return result.getProcParams(); } public Builder setProcParams(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } result.hasProcParams = true; result.procParams_ = value; return this; } public Builder clearProcParams() { result.hasProcParams = false; result.procParams_ = getDefaultInstance().getProcParams(); return this; } // repeated .edu.brown.hstore.WorkFragment prefetch_fragments = 7; public java.util.List<edu.brown.hstore.Hstoreservice.WorkFragment> getPrefetchFragmentsList() { return java.util.Collections.unmodifiableList(result.prefetchFragments_); } public int getPrefetchFragmentsCount() { return result.getPrefetchFragmentsCount(); } public edu.brown.hstore.Hstoreservice.WorkFragment getPrefetchFragments(int index) { return result.getPrefetchFragments(index); } public Builder setPrefetchFragments(int index, edu.brown.hstore.Hstoreservice.WorkFragment value) { if (value == null) { throw new NullPointerException(); } result.prefetchFragments_.set(index, value); return this; } public Builder setPrefetchFragments(int index, edu.brown.hstore.Hstoreservice.WorkFragment.Builder builderForValue) { result.prefetchFragments_.set(index, builderForValue.build()); return this; } public Builder addPrefetchFragments(edu.brown.hstore.Hstoreservice.WorkFragment value) { if (value == null) { throw new NullPointerException(); } if (result.prefetchFragments_.isEmpty()) { result.prefetchFragments_ = new java.util.ArrayList<edu.brown.hstore.Hstoreservice.WorkFragment>(); } result.prefetchFragments_.add(value); return this; } public Builder addPrefetchFragments(edu.brown.hstore.Hstoreservice.WorkFragment.Builder builderForValue) { if (result.prefetchFragments_.isEmpty()) { result.prefetchFragments_ = new java.util.ArrayList<edu.brown.hstore.Hstoreservice.WorkFragment>(); } result.prefetchFragments_.add(builderForValue.build()); return this; } public Builder addAllPrefetchFragments( java.lang.Iterable<? extends edu.brown.hstore.Hstoreservice.WorkFragment> values) { if (result.prefetchFragments_.isEmpty()) { result.prefetchFragments_ = new java.util.ArrayList<edu.brown.hstore.Hstoreservice.WorkFragment>(); } super.addAll(values, result.prefetchFragments_); return this; } public Builder clearPrefetchFragments() { result.prefetchFragments_ = java.util.Collections.emptyList(); return this; } // repeated bytes prefetch_params = 8; public java.util.List<com.google.protobuf.ByteString> getPrefetchParamsList() { return java.util.Collections.unmodifiableList(result.prefetchParams_); } public int getPrefetchParamsCount() { return result.getPrefetchParamsCount(); } public com.google.protobuf.ByteString getPrefetchParams(int index) { return result.getPrefetchParams(index); } public Builder setPrefetchParams(int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } result.prefetchParams_.set(index, value); return this; } public Builder addPrefetchParams(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } if (result.prefetchParams_.isEmpty()) { result.prefetchParams_ = new java.util.ArrayList<com.google.protobuf.ByteString>(); } result.prefetchParams_.add(value); return this; } public Builder addAllPrefetchParams( java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { if (result.prefetchParams_.isEmpty()) { result.prefetchParams_ = new java.util.ArrayList<com.google.protobuf.ByteString>(); } super.addAll(values, result.prefetchParams_); return this; } public Builder clearPrefetchParams() { result.prefetchParams_ = java.util.Collections.emptyList(); return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.TransactionInitRequest) } static { defaultInstance = new TransactionInitRequest(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.TransactionInitRequest) } public static final class TransactionInitResponse extends com.google.protobuf.GeneratedMessage { // Use TransactionInitResponse.newBuilder() to construct. private TransactionInitResponse() { initFields(); } private TransactionInitResponse(boolean noInit) {} private static final TransactionInitResponse defaultInstance; public static TransactionInitResponse getDefaultInstance() { return defaultInstance; } public TransactionInitResponse getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionInitResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionInitResponse_fieldAccessorTable; } // required int64 transaction_id = 1; public static final int TRANSACTION_ID_FIELD_NUMBER = 1; private boolean hasTransactionId; private long transactionId_ = 0L; public boolean hasTransactionId() { return hasTransactionId; } public long getTransactionId() { return transactionId_; } // repeated int32 partitions = 2 [packed = true]; public static final int PARTITIONS_FIELD_NUMBER = 2; private java.util.List<java.lang.Integer> partitions_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getPartitionsList() { return partitions_; } public int getPartitionsCount() { return partitions_.size(); } public int getPartitions(int index) { return partitions_.get(index); } private int partitionsMemoizedSerializedSize = -1; // required .edu.brown.hstore.Status status = 3; public static final int STATUS_FIELD_NUMBER = 3; private boolean hasStatus; private edu.brown.hstore.Hstoreservice.Status status_; public boolean hasStatus() { return hasStatus; } public edu.brown.hstore.Hstoreservice.Status getStatus() { return status_; } // optional int32 reject_partition = 4; public static final int REJECT_PARTITION_FIELD_NUMBER = 4; private boolean hasRejectPartition; private int rejectPartition_ = 0; public boolean hasRejectPartition() { return hasRejectPartition; } public int getRejectPartition() { return rejectPartition_; } // optional int64 reject_transaction_id = 5; public static final int REJECT_TRANSACTION_ID_FIELD_NUMBER = 5; private boolean hasRejectTransactionId; private long rejectTransactionId_ = 0L; public boolean hasRejectTransactionId() { return hasRejectTransactionId; } public long getRejectTransactionId() { return rejectTransactionId_; } private void initFields() { status_ = edu.brown.hstore.Hstoreservice.Status.OK; } public final boolean isInitialized() { if (!hasTransactionId) return false; if (!hasStatus) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasTransactionId()) { output.writeInt64(1, getTransactionId()); } if (getPartitionsList().size() > 0) { output.writeRawVarint32(18); output.writeRawVarint32(partitionsMemoizedSerializedSize); } for (int element : getPartitionsList()) { output.writeInt32NoTag(element); } if (hasStatus()) { output.writeEnum(3, getStatus().getNumber()); } if (hasRejectPartition()) { output.writeInt32(4, getRejectPartition()); } if (hasRejectTransactionId()) { output.writeInt64(5, getRejectTransactionId()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, getTransactionId()); } { int dataSize = 0; for (int element : getPartitionsList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getPartitionsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } partitionsMemoizedSerializedSize = dataSize; } if (hasStatus()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, getStatus().getNumber()); } if (hasRejectPartition()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, getRejectPartition()); } if (hasRejectTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, getRejectTransactionId()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.TransactionInitResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionInitResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionInitResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionInitResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionInitResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionInitResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionInitResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionInitResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionInitResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionInitResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.TransactionInitResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.TransactionInitResponse result; // Construct using edu.brown.hstore.Hstoreservice.TransactionInitResponse.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.TransactionInitResponse(); return builder; } protected edu.brown.hstore.Hstoreservice.TransactionInitResponse internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.TransactionInitResponse(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.TransactionInitResponse.getDescriptor(); } public edu.brown.hstore.Hstoreservice.TransactionInitResponse getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.TransactionInitResponse.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.TransactionInitResponse build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.TransactionInitResponse buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.TransactionInitResponse buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } if (result.partitions_ != java.util.Collections.EMPTY_LIST) { result.partitions_ = java.util.Collections.unmodifiableList(result.partitions_); } edu.brown.hstore.Hstoreservice.TransactionInitResponse returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.TransactionInitResponse) { return mergeFrom((edu.brown.hstore.Hstoreservice.TransactionInitResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.TransactionInitResponse other) { if (other == edu.brown.hstore.Hstoreservice.TransactionInitResponse.getDefaultInstance()) return this; if (other.hasTransactionId()) { setTransactionId(other.getTransactionId()); } if (!other.partitions_.isEmpty()) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } result.partitions_.addAll(other.partitions_); } if (other.hasStatus()) { setStatus(other.getStatus()); } if (other.hasRejectPartition()) { setRejectPartition(other.getRejectPartition()); } if (other.hasRejectTransactionId()) { setRejectTransactionId(other.getRejectTransactionId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setTransactionId(input.readInt64()); break; } case 16: { addPartitions(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addPartitions(input.readInt32()); } input.popLimit(limit); break; } case 24: { int rawValue = input.readEnum(); edu.brown.hstore.Hstoreservice.Status value = edu.brown.hstore.Hstoreservice.Status.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { setStatus(value); } break; } case 32: { setRejectPartition(input.readInt32()); break; } case 40: { setRejectTransactionId(input.readInt64()); break; } } } } // required int64 transaction_id = 1; public boolean hasTransactionId() { return result.hasTransactionId(); } public long getTransactionId() { return result.getTransactionId(); } public Builder setTransactionId(long value) { result.hasTransactionId = true; result.transactionId_ = value; return this; } public Builder clearTransactionId() { result.hasTransactionId = false; result.transactionId_ = 0L; return this; } // repeated int32 partitions = 2 [packed = true]; public java.util.List<java.lang.Integer> getPartitionsList() { return java.util.Collections.unmodifiableList(result.partitions_); } public int getPartitionsCount() { return result.getPartitionsCount(); } public int getPartitions(int index) { return result.getPartitions(index); } public Builder setPartitions(int index, int value) { result.partitions_.set(index, value); return this; } public Builder addPartitions(int value) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } result.partitions_.add(value); return this; } public Builder addAllPartitions( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.partitions_); return this; } public Builder clearPartitions() { result.partitions_ = java.util.Collections.emptyList(); return this; } // required .edu.brown.hstore.Status status = 3; public boolean hasStatus() { return result.hasStatus(); } public edu.brown.hstore.Hstoreservice.Status getStatus() { return result.getStatus(); } public Builder setStatus(edu.brown.hstore.Hstoreservice.Status value) { if (value == null) { throw new NullPointerException(); } result.hasStatus = true; result.status_ = value; return this; } public Builder clearStatus() { result.hasStatus = false; result.status_ = edu.brown.hstore.Hstoreservice.Status.OK; return this; } // optional int32 reject_partition = 4; public boolean hasRejectPartition() { return result.hasRejectPartition(); } public int getRejectPartition() { return result.getRejectPartition(); } public Builder setRejectPartition(int value) { result.hasRejectPartition = true; result.rejectPartition_ = value; return this; } public Builder clearRejectPartition() { result.hasRejectPartition = false; result.rejectPartition_ = 0; return this; } // optional int64 reject_transaction_id = 5; public boolean hasRejectTransactionId() { return result.hasRejectTransactionId(); } public long getRejectTransactionId() { return result.getRejectTransactionId(); } public Builder setRejectTransactionId(long value) { result.hasRejectTransactionId = true; result.rejectTransactionId_ = value; return this; } public Builder clearRejectTransactionId() { result.hasRejectTransactionId = false; result.rejectTransactionId_ = 0L; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.TransactionInitResponse) } static { defaultInstance = new TransactionInitResponse(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.TransactionInitResponse) } public static final class TransactionWorkRequest extends com.google.protobuf.GeneratedMessage { // Use TransactionWorkRequest.newBuilder() to construct. private TransactionWorkRequest() { initFields(); } private TransactionWorkRequest(boolean noInit) {} private static final TransactionWorkRequest defaultInstance; public static TransactionWorkRequest getDefaultInstance() { return defaultInstance; } public TransactionWorkRequest getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionWorkRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionWorkRequest_fieldAccessorTable; } // optional int64 last_transaction_id = 1; public static final int LAST_TRANSACTION_ID_FIELD_NUMBER = 1; private boolean hasLastTransactionId; private long lastTransactionId_ = 0L; public boolean hasLastTransactionId() { return hasLastTransactionId; } public long getLastTransactionId() { return lastTransactionId_; } // required int64 transaction_id = 2; public static final int TRANSACTION_ID_FIELD_NUMBER = 2; private boolean hasTransactionId; private long transactionId_ = 0L; public boolean hasTransactionId() { return hasTransactionId; } public long getTransactionId() { return transactionId_; } // required int32 source_partition = 3; public static final int SOURCE_PARTITION_FIELD_NUMBER = 3; private boolean hasSourcePartition; private int sourcePartition_ = 0; public boolean hasSourcePartition() { return hasSourcePartition; } public int getSourcePartition() { return sourcePartition_; } // repeated .edu.brown.hstore.WorkFragment fragments = 4; public static final int FRAGMENTS_FIELD_NUMBER = 4; private java.util.List<edu.brown.hstore.Hstoreservice.WorkFragment> fragments_ = java.util.Collections.emptyList(); public java.util.List<edu.brown.hstore.Hstoreservice.WorkFragment> getFragmentsList() { return fragments_; } public int getFragmentsCount() { return fragments_.size(); } public edu.brown.hstore.Hstoreservice.WorkFragment getFragments(int index) { return fragments_.get(index); } // required int32 procedure_id = 5; public static final int PROCEDURE_ID_FIELD_NUMBER = 5; private boolean hasProcedureId; private int procedureId_ = 0; public boolean hasProcedureId() { return hasProcedureId; } public int getProcedureId() { return procedureId_; } // repeated bytes params = 6; public static final int PARAMS_FIELD_NUMBER = 6; private java.util.List<com.google.protobuf.ByteString> params_ = java.util.Collections.emptyList(); public java.util.List<com.google.protobuf.ByteString> getParamsList() { return params_; } public int getParamsCount() { return params_.size(); } public com.google.protobuf.ByteString getParams(int index) { return params_.get(index); } // repeated int32 attached_dep_id = 7 [packed = true]; public static final int ATTACHED_DEP_ID_FIELD_NUMBER = 7; private java.util.List<java.lang.Integer> attachedDepId_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getAttachedDepIdList() { return attachedDepId_; } public int getAttachedDepIdCount() { return attachedDepId_.size(); } public int getAttachedDepId(int index) { return attachedDepId_.get(index); } private int attachedDepIdMemoizedSerializedSize = -1; // repeated bytes attached_data = 8; public static final int ATTACHED_DATA_FIELD_NUMBER = 8; private java.util.List<com.google.protobuf.ByteString> attachedData_ = java.util.Collections.emptyList(); public java.util.List<com.google.protobuf.ByteString> getAttachedDataList() { return attachedData_; } public int getAttachedDataCount() { return attachedData_.size(); } public com.google.protobuf.ByteString getAttachedData(int index) { return attachedData_.get(index); } // repeated int32 done_partition = 9 [packed = true]; public static final int DONE_PARTITION_FIELD_NUMBER = 9; private java.util.List<java.lang.Integer> donePartition_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getDonePartitionList() { return donePartition_; } public int getDonePartitionCount() { return donePartition_.size(); } public int getDonePartition(int index) { return donePartition_.get(index); } private int donePartitionMemoizedSerializedSize = -1; // optional bytes proc_params = 10; public static final int PROC_PARAMS_FIELD_NUMBER = 10; private boolean hasProcParams; private com.google.protobuf.ByteString procParams_ = com.google.protobuf.ByteString.EMPTY; public boolean hasProcParams() { return hasProcParams; } public com.google.protobuf.ByteString getProcParams() { return procParams_; } private void initFields() { } public final boolean isInitialized() { if (!hasTransactionId) return false; if (!hasSourcePartition) return false; if (!hasProcedureId) return false; for (edu.brown.hstore.Hstoreservice.WorkFragment element : getFragmentsList()) { if (!element.isInitialized()) return false; } return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasLastTransactionId()) { output.writeInt64(1, getLastTransactionId()); } if (hasTransactionId()) { output.writeInt64(2, getTransactionId()); } if (hasSourcePartition()) { output.writeInt32(3, getSourcePartition()); } for (edu.brown.hstore.Hstoreservice.WorkFragment element : getFragmentsList()) { output.writeMessage(4, element); } if (hasProcedureId()) { output.writeInt32(5, getProcedureId()); } for (com.google.protobuf.ByteString element : getParamsList()) { output.writeBytes(6, element); } if (getAttachedDepIdList().size() > 0) { output.writeRawVarint32(58); output.writeRawVarint32(attachedDepIdMemoizedSerializedSize); } for (int element : getAttachedDepIdList()) { output.writeInt32NoTag(element); } for (com.google.protobuf.ByteString element : getAttachedDataList()) { output.writeBytes(8, element); } if (getDonePartitionList().size() > 0) { output.writeRawVarint32(74); output.writeRawVarint32(donePartitionMemoizedSerializedSize); } for (int element : getDonePartitionList()) { output.writeInt32NoTag(element); } if (hasProcParams()) { output.writeBytes(10, getProcParams()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasLastTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, getLastTransactionId()); } if (hasTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, getTransactionId()); } if (hasSourcePartition()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, getSourcePartition()); } for (edu.brown.hstore.Hstoreservice.WorkFragment element : getFragmentsList()) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, element); } if (hasProcedureId()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, getProcedureId()); } { int dataSize = 0; for (com.google.protobuf.ByteString element : getParamsList()) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(element); } size += dataSize; size += 1 * getParamsList().size(); } { int dataSize = 0; for (int element : getAttachedDepIdList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getAttachedDepIdList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } attachedDepIdMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (com.google.protobuf.ByteString element : getAttachedDataList()) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(element); } size += dataSize; size += 1 * getAttachedDataList().size(); } { int dataSize = 0; for (int element : getDonePartitionList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getDonePartitionList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } donePartitionMemoizedSerializedSize = dataSize; } if (hasProcParams()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, getProcParams()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.TransactionWorkRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionWorkRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionWorkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionWorkRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionWorkRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionWorkRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionWorkRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionWorkRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionWorkRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionWorkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.TransactionWorkRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.TransactionWorkRequest result; // Construct using edu.brown.hstore.Hstoreservice.TransactionWorkRequest.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.TransactionWorkRequest(); return builder; } protected edu.brown.hstore.Hstoreservice.TransactionWorkRequest internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.TransactionWorkRequest(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.TransactionWorkRequest.getDescriptor(); } public edu.brown.hstore.Hstoreservice.TransactionWorkRequest getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.TransactionWorkRequest.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.TransactionWorkRequest build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.TransactionWorkRequest buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.TransactionWorkRequest buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } if (result.fragments_ != java.util.Collections.EMPTY_LIST) { result.fragments_ = java.util.Collections.unmodifiableList(result.fragments_); } if (result.params_ != java.util.Collections.EMPTY_LIST) { result.params_ = java.util.Collections.unmodifiableList(result.params_); } if (result.attachedDepId_ != java.util.Collections.EMPTY_LIST) { result.attachedDepId_ = java.util.Collections.unmodifiableList(result.attachedDepId_); } if (result.attachedData_ != java.util.Collections.EMPTY_LIST) { result.attachedData_ = java.util.Collections.unmodifiableList(result.attachedData_); } if (result.donePartition_ != java.util.Collections.EMPTY_LIST) { result.donePartition_ = java.util.Collections.unmodifiableList(result.donePartition_); } edu.brown.hstore.Hstoreservice.TransactionWorkRequest returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.TransactionWorkRequest) { return mergeFrom((edu.brown.hstore.Hstoreservice.TransactionWorkRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.TransactionWorkRequest other) { if (other == edu.brown.hstore.Hstoreservice.TransactionWorkRequest.getDefaultInstance()) return this; if (other.hasLastTransactionId()) { setLastTransactionId(other.getLastTransactionId()); } if (other.hasTransactionId()) { setTransactionId(other.getTransactionId()); } if (other.hasSourcePartition()) { setSourcePartition(other.getSourcePartition()); } if (!other.fragments_.isEmpty()) { if (result.fragments_.isEmpty()) { result.fragments_ = new java.util.ArrayList<edu.brown.hstore.Hstoreservice.WorkFragment>(); } result.fragments_.addAll(other.fragments_); } if (other.hasProcedureId()) { setProcedureId(other.getProcedureId()); } if (!other.params_.isEmpty()) { if (result.params_.isEmpty()) { result.params_ = new java.util.ArrayList<com.google.protobuf.ByteString>(); } result.params_.addAll(other.params_); } if (!other.attachedDepId_.isEmpty()) { if (result.attachedDepId_.isEmpty()) { result.attachedDepId_ = new java.util.ArrayList<java.lang.Integer>(); } result.attachedDepId_.addAll(other.attachedDepId_); } if (!other.attachedData_.isEmpty()) { if (result.attachedData_.isEmpty()) { result.attachedData_ = new java.util.ArrayList<com.google.protobuf.ByteString>(); } result.attachedData_.addAll(other.attachedData_); } if (!other.donePartition_.isEmpty()) { if (result.donePartition_.isEmpty()) { result.donePartition_ = new java.util.ArrayList<java.lang.Integer>(); } result.donePartition_.addAll(other.donePartition_); } if (other.hasProcParams()) { setProcParams(other.getProcParams()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setLastTransactionId(input.readInt64()); break; } case 16: { setTransactionId(input.readInt64()); break; } case 24: { setSourcePartition(input.readInt32()); break; } case 34: { edu.brown.hstore.Hstoreservice.WorkFragment.Builder subBuilder = edu.brown.hstore.Hstoreservice.WorkFragment.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addFragments(subBuilder.buildPartial()); break; } case 40: { setProcedureId(input.readInt32()); break; } case 50: { addParams(input.readBytes()); break; } case 56: { addAttachedDepId(input.readInt32()); break; } case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addAttachedDepId(input.readInt32()); } input.popLimit(limit); break; } case 66: { addAttachedData(input.readBytes()); break; } case 72: { addDonePartition(input.readInt32()); break; } case 74: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addDonePartition(input.readInt32()); } input.popLimit(limit); break; } case 82: { setProcParams(input.readBytes()); break; } } } } // optional int64 last_transaction_id = 1; public boolean hasLastTransactionId() { return result.hasLastTransactionId(); } public long getLastTransactionId() { return result.getLastTransactionId(); } public Builder setLastTransactionId(long value) { result.hasLastTransactionId = true; result.lastTransactionId_ = value; return this; } public Builder clearLastTransactionId() { result.hasLastTransactionId = false; result.lastTransactionId_ = 0L; return this; } // required int64 transaction_id = 2; public boolean hasTransactionId() { return result.hasTransactionId(); } public long getTransactionId() { return result.getTransactionId(); } public Builder setTransactionId(long value) { result.hasTransactionId = true; result.transactionId_ = value; return this; } public Builder clearTransactionId() { result.hasTransactionId = false; result.transactionId_ = 0L; return this; } // required int32 source_partition = 3; public boolean hasSourcePartition() { return result.hasSourcePartition(); } public int getSourcePartition() { return result.getSourcePartition(); } public Builder setSourcePartition(int value) { result.hasSourcePartition = true; result.sourcePartition_ = value; return this; } public Builder clearSourcePartition() { result.hasSourcePartition = false; result.sourcePartition_ = 0; return this; } // repeated .edu.brown.hstore.WorkFragment fragments = 4; public java.util.List<edu.brown.hstore.Hstoreservice.WorkFragment> getFragmentsList() { return java.util.Collections.unmodifiableList(result.fragments_); } public int getFragmentsCount() { return result.getFragmentsCount(); } public edu.brown.hstore.Hstoreservice.WorkFragment getFragments(int index) { return result.getFragments(index); } public Builder setFragments(int index, edu.brown.hstore.Hstoreservice.WorkFragment value) { if (value == null) { throw new NullPointerException(); } result.fragments_.set(index, value); return this; } public Builder setFragments(int index, edu.brown.hstore.Hstoreservice.WorkFragment.Builder builderForValue) { result.fragments_.set(index, builderForValue.build()); return this; } public Builder addFragments(edu.brown.hstore.Hstoreservice.WorkFragment value) { if (value == null) { throw new NullPointerException(); } if (result.fragments_.isEmpty()) { result.fragments_ = new java.util.ArrayList<edu.brown.hstore.Hstoreservice.WorkFragment>(); } result.fragments_.add(value); return this; } public Builder addFragments(edu.brown.hstore.Hstoreservice.WorkFragment.Builder builderForValue) { if (result.fragments_.isEmpty()) { result.fragments_ = new java.util.ArrayList<edu.brown.hstore.Hstoreservice.WorkFragment>(); } result.fragments_.add(builderForValue.build()); return this; } public Builder addAllFragments( java.lang.Iterable<? extends edu.brown.hstore.Hstoreservice.WorkFragment> values) { if (result.fragments_.isEmpty()) { result.fragments_ = new java.util.ArrayList<edu.brown.hstore.Hstoreservice.WorkFragment>(); } super.addAll(values, result.fragments_); return this; } public Builder clearFragments() { result.fragments_ = java.util.Collections.emptyList(); return this; } // required int32 procedure_id = 5; public boolean hasProcedureId() { return result.hasProcedureId(); } public int getProcedureId() { return result.getProcedureId(); } public Builder setProcedureId(int value) { result.hasProcedureId = true; result.procedureId_ = value; return this; } public Builder clearProcedureId() { result.hasProcedureId = false; result.procedureId_ = 0; return this; } // repeated bytes params = 6; public java.util.List<com.google.protobuf.ByteString> getParamsList() { return java.util.Collections.unmodifiableList(result.params_); } public int getParamsCount() { return result.getParamsCount(); } public com.google.protobuf.ByteString getParams(int index) { return result.getParams(index); } public Builder setParams(int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } result.params_.set(index, value); return this; } public Builder addParams(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } if (result.params_.isEmpty()) { result.params_ = new java.util.ArrayList<com.google.protobuf.ByteString>(); } result.params_.add(value); return this; } public Builder addAllParams( java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { if (result.params_.isEmpty()) { result.params_ = new java.util.ArrayList<com.google.protobuf.ByteString>(); } super.addAll(values, result.params_); return this; } public Builder clearParams() { result.params_ = java.util.Collections.emptyList(); return this; } // repeated int32 attached_dep_id = 7 [packed = true]; public java.util.List<java.lang.Integer> getAttachedDepIdList() { return java.util.Collections.unmodifiableList(result.attachedDepId_); } public int getAttachedDepIdCount() { return result.getAttachedDepIdCount(); } public int getAttachedDepId(int index) { return result.getAttachedDepId(index); } public Builder setAttachedDepId(int index, int value) { result.attachedDepId_.set(index, value); return this; } public Builder addAttachedDepId(int value) { if (result.attachedDepId_.isEmpty()) { result.attachedDepId_ = new java.util.ArrayList<java.lang.Integer>(); } result.attachedDepId_.add(value); return this; } public Builder addAllAttachedDepId( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.attachedDepId_.isEmpty()) { result.attachedDepId_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.attachedDepId_); return this; } public Builder clearAttachedDepId() { result.attachedDepId_ = java.util.Collections.emptyList(); return this; } // repeated bytes attached_data = 8; public java.util.List<com.google.protobuf.ByteString> getAttachedDataList() { return java.util.Collections.unmodifiableList(result.attachedData_); } public int getAttachedDataCount() { return result.getAttachedDataCount(); } public com.google.protobuf.ByteString getAttachedData(int index) { return result.getAttachedData(index); } public Builder setAttachedData(int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } result.attachedData_.set(index, value); return this; } public Builder addAttachedData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } if (result.attachedData_.isEmpty()) { result.attachedData_ = new java.util.ArrayList<com.google.protobuf.ByteString>(); } result.attachedData_.add(value); return this; } public Builder addAllAttachedData( java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { if (result.attachedData_.isEmpty()) { result.attachedData_ = new java.util.ArrayList<com.google.protobuf.ByteString>(); } super.addAll(values, result.attachedData_); return this; } public Builder clearAttachedData() { result.attachedData_ = java.util.Collections.emptyList(); return this; } // repeated int32 done_partition = 9 [packed = true]; public java.util.List<java.lang.Integer> getDonePartitionList() { return java.util.Collections.unmodifiableList(result.donePartition_); } public int getDonePartitionCount() { return result.getDonePartitionCount(); } public int getDonePartition(int index) { return result.getDonePartition(index); } public Builder setDonePartition(int index, int value) { result.donePartition_.set(index, value); return this; } public Builder addDonePartition(int value) { if (result.donePartition_.isEmpty()) { result.donePartition_ = new java.util.ArrayList<java.lang.Integer>(); } result.donePartition_.add(value); return this; } public Builder addAllDonePartition( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.donePartition_.isEmpty()) { result.donePartition_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.donePartition_); return this; } public Builder clearDonePartition() { result.donePartition_ = java.util.Collections.emptyList(); return this; } // optional bytes proc_params = 10; public boolean hasProcParams() { return result.hasProcParams(); } public com.google.protobuf.ByteString getProcParams() { return result.getProcParams(); } public Builder setProcParams(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } result.hasProcParams = true; result.procParams_ = value; return this; } public Builder clearProcParams() { result.hasProcParams = false; result.procParams_ = getDefaultInstance().getProcParams(); return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.TransactionWorkRequest) } static { defaultInstance = new TransactionWorkRequest(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.TransactionWorkRequest) } public static final class TransactionWorkResponse extends com.google.protobuf.GeneratedMessage { // Use TransactionWorkResponse.newBuilder() to construct. private TransactionWorkResponse() { initFields(); } private TransactionWorkResponse(boolean noInit) {} private static final TransactionWorkResponse defaultInstance; public static TransactionWorkResponse getDefaultInstance() { return defaultInstance; } public TransactionWorkResponse getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionWorkResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionWorkResponse_fieldAccessorTable; } // required int64 transaction_id = 1; public static final int TRANSACTION_ID_FIELD_NUMBER = 1; private boolean hasTransactionId; private long transactionId_ = 0L; public boolean hasTransactionId() { return hasTransactionId; } public long getTransactionId() { return transactionId_; } // repeated .edu.brown.hstore.WorkResult results = 2; public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List<edu.brown.hstore.Hstoreservice.WorkResult> results_ = java.util.Collections.emptyList(); public java.util.List<edu.brown.hstore.Hstoreservice.WorkResult> getResultsList() { return results_; } public int getResultsCount() { return results_.size(); } public edu.brown.hstore.Hstoreservice.WorkResult getResults(int index) { return results_.get(index); } // required .edu.brown.hstore.Status status = 3; public static final int STATUS_FIELD_NUMBER = 3; private boolean hasStatus; private edu.brown.hstore.Hstoreservice.Status status_; public boolean hasStatus() { return hasStatus; } public edu.brown.hstore.Hstoreservice.Status getStatus() { return status_; } private void initFields() { status_ = edu.brown.hstore.Hstoreservice.Status.OK; } public final boolean isInitialized() { if (!hasTransactionId) return false; if (!hasStatus) return false; for (edu.brown.hstore.Hstoreservice.WorkResult element : getResultsList()) { if (!element.isInitialized()) return false; } return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasTransactionId()) { output.writeInt64(1, getTransactionId()); } for (edu.brown.hstore.Hstoreservice.WorkResult element : getResultsList()) { output.writeMessage(2, element); } if (hasStatus()) { output.writeEnum(3, getStatus().getNumber()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, getTransactionId()); } for (edu.brown.hstore.Hstoreservice.WorkResult element : getResultsList()) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, element); } if (hasStatus()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, getStatus().getNumber()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.TransactionWorkResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionWorkResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionWorkResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionWorkResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionWorkResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionWorkResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionWorkResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionWorkResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionWorkResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionWorkResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.TransactionWorkResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.TransactionWorkResponse result; // Construct using edu.brown.hstore.Hstoreservice.TransactionWorkResponse.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.TransactionWorkResponse(); return builder; } protected edu.brown.hstore.Hstoreservice.TransactionWorkResponse internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.TransactionWorkResponse(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.TransactionWorkResponse.getDescriptor(); } public edu.brown.hstore.Hstoreservice.TransactionWorkResponse getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.TransactionWorkResponse.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.TransactionWorkResponse build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.TransactionWorkResponse buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.TransactionWorkResponse buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } if (result.results_ != java.util.Collections.EMPTY_LIST) { result.results_ = java.util.Collections.unmodifiableList(result.results_); } edu.brown.hstore.Hstoreservice.TransactionWorkResponse returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.TransactionWorkResponse) { return mergeFrom((edu.brown.hstore.Hstoreservice.TransactionWorkResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.TransactionWorkResponse other) { if (other == edu.brown.hstore.Hstoreservice.TransactionWorkResponse.getDefaultInstance()) return this; if (other.hasTransactionId()) { setTransactionId(other.getTransactionId()); } if (!other.results_.isEmpty()) { if (result.results_.isEmpty()) { result.results_ = new java.util.ArrayList<edu.brown.hstore.Hstoreservice.WorkResult>(); } result.results_.addAll(other.results_); } if (other.hasStatus()) { setStatus(other.getStatus()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setTransactionId(input.readInt64()); break; } case 18: { edu.brown.hstore.Hstoreservice.WorkResult.Builder subBuilder = edu.brown.hstore.Hstoreservice.WorkResult.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addResults(subBuilder.buildPartial()); break; } case 24: { int rawValue = input.readEnum(); edu.brown.hstore.Hstoreservice.Status value = edu.brown.hstore.Hstoreservice.Status.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { setStatus(value); } break; } } } } // required int64 transaction_id = 1; public boolean hasTransactionId() { return result.hasTransactionId(); } public long getTransactionId() { return result.getTransactionId(); } public Builder setTransactionId(long value) { result.hasTransactionId = true; result.transactionId_ = value; return this; } public Builder clearTransactionId() { result.hasTransactionId = false; result.transactionId_ = 0L; return this; } // repeated .edu.brown.hstore.WorkResult results = 2; public java.util.List<edu.brown.hstore.Hstoreservice.WorkResult> getResultsList() { return java.util.Collections.unmodifiableList(result.results_); } public int getResultsCount() { return result.getResultsCount(); } public edu.brown.hstore.Hstoreservice.WorkResult getResults(int index) { return result.getResults(index); } public Builder setResults(int index, edu.brown.hstore.Hstoreservice.WorkResult value) { if (value == null) { throw new NullPointerException(); } result.results_.set(index, value); return this; } public Builder setResults(int index, edu.brown.hstore.Hstoreservice.WorkResult.Builder builderForValue) { result.results_.set(index, builderForValue.build()); return this; } public Builder addResults(edu.brown.hstore.Hstoreservice.WorkResult value) { if (value == null) { throw new NullPointerException(); } if (result.results_.isEmpty()) { result.results_ = new java.util.ArrayList<edu.brown.hstore.Hstoreservice.WorkResult>(); } result.results_.add(value); return this; } public Builder addResults(edu.brown.hstore.Hstoreservice.WorkResult.Builder builderForValue) { if (result.results_.isEmpty()) { result.results_ = new java.util.ArrayList<edu.brown.hstore.Hstoreservice.WorkResult>(); } result.results_.add(builderForValue.build()); return this; } public Builder addAllResults( java.lang.Iterable<? extends edu.brown.hstore.Hstoreservice.WorkResult> values) { if (result.results_.isEmpty()) { result.results_ = new java.util.ArrayList<edu.brown.hstore.Hstoreservice.WorkResult>(); } super.addAll(values, result.results_); return this; } public Builder clearResults() { result.results_ = java.util.Collections.emptyList(); return this; } // required .edu.brown.hstore.Status status = 3; public boolean hasStatus() { return result.hasStatus(); } public edu.brown.hstore.Hstoreservice.Status getStatus() { return result.getStatus(); } public Builder setStatus(edu.brown.hstore.Hstoreservice.Status value) { if (value == null) { throw new NullPointerException(); } result.hasStatus = true; result.status_ = value; return this; } public Builder clearStatus() { result.hasStatus = false; result.status_ = edu.brown.hstore.Hstoreservice.Status.OK; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.TransactionWorkResponse) } static { defaultInstance = new TransactionWorkResponse(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.TransactionWorkResponse) } public static final class TransactionPrefetchResult extends com.google.protobuf.GeneratedMessage { // Use TransactionPrefetchResult.newBuilder() to construct. private TransactionPrefetchResult() { initFields(); } private TransactionPrefetchResult(boolean noInit) {} private static final TransactionPrefetchResult defaultInstance; public static TransactionPrefetchResult getDefaultInstance() { return defaultInstance; } public TransactionPrefetchResult getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionPrefetchResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionPrefetchResult_fieldAccessorTable; } // optional int64 last_transaction_id = 1; public static final int LAST_TRANSACTION_ID_FIELD_NUMBER = 1; private boolean hasLastTransactionId; private long lastTransactionId_ = 0L; public boolean hasLastTransactionId() { return hasLastTransactionId; } public long getLastTransactionId() { return lastTransactionId_; } // required int64 transaction_id = 2; public static final int TRANSACTION_ID_FIELD_NUMBER = 2; private boolean hasTransactionId; private long transactionId_ = 0L; public boolean hasTransactionId() { return hasTransactionId; } public long getTransactionId() { return transactionId_; } // required int32 source_partition = 3; public static final int SOURCE_PARTITION_FIELD_NUMBER = 3; private boolean hasSourcePartition; private int sourcePartition_ = 0; public boolean hasSourcePartition() { return hasSourcePartition; } public int getSourcePartition() { return sourcePartition_; } // required .edu.brown.hstore.WorkResult result = 4; public static final int RESULT_FIELD_NUMBER = 4; private boolean hasResult; private edu.brown.hstore.Hstoreservice.WorkResult result_; public boolean hasResult() { return hasResult; } public edu.brown.hstore.Hstoreservice.WorkResult getResult() { return result_; } // required .edu.brown.hstore.Status status = 5; public static final int STATUS_FIELD_NUMBER = 5; private boolean hasStatus; private edu.brown.hstore.Hstoreservice.Status status_; public boolean hasStatus() { return hasStatus; } public edu.brown.hstore.Hstoreservice.Status getStatus() { return status_; } // repeated int32 stmt_counter = 6 [packed = true]; public static final int STMT_COUNTER_FIELD_NUMBER = 6; private java.util.List<java.lang.Integer> stmtCounter_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getStmtCounterList() { return stmtCounter_; } public int getStmtCounterCount() { return stmtCounter_.size(); } public int getStmtCounter(int index) { return stmtCounter_.get(index); } private int stmtCounterMemoizedSerializedSize = -1; // repeated int32 fragment_id = 7 [packed = true]; public static final int FRAGMENT_ID_FIELD_NUMBER = 7; private java.util.List<java.lang.Integer> fragmentId_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getFragmentIdList() { return fragmentId_; } public int getFragmentIdCount() { return fragmentId_.size(); } public int getFragmentId(int index) { return fragmentId_.get(index); } private int fragmentIdMemoizedSerializedSize = -1; // repeated int32 param_hash = 8 [packed = true]; public static final int PARAM_HASH_FIELD_NUMBER = 8; private java.util.List<java.lang.Integer> paramHash_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getParamHashList() { return paramHash_; } public int getParamHashCount() { return paramHash_.size(); } public int getParamHash(int index) { return paramHash_.get(index); } private int paramHashMemoizedSerializedSize = -1; private void initFields() { result_ = edu.brown.hstore.Hstoreservice.WorkResult.getDefaultInstance(); status_ = edu.brown.hstore.Hstoreservice.Status.OK; } public final boolean isInitialized() { if (!hasTransactionId) return false; if (!hasSourcePartition) return false; if (!hasResult) return false; if (!hasStatus) return false; if (!getResult().isInitialized()) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasLastTransactionId()) { output.writeInt64(1, getLastTransactionId()); } if (hasTransactionId()) { output.writeInt64(2, getTransactionId()); } if (hasSourcePartition()) { output.writeInt32(3, getSourcePartition()); } if (hasResult()) { output.writeMessage(4, getResult()); } if (hasStatus()) { output.writeEnum(5, getStatus().getNumber()); } if (getStmtCounterList().size() > 0) { output.writeRawVarint32(50); output.writeRawVarint32(stmtCounterMemoizedSerializedSize); } for (int element : getStmtCounterList()) { output.writeInt32NoTag(element); } if (getFragmentIdList().size() > 0) { output.writeRawVarint32(58); output.writeRawVarint32(fragmentIdMemoizedSerializedSize); } for (int element : getFragmentIdList()) { output.writeInt32NoTag(element); } if (getParamHashList().size() > 0) { output.writeRawVarint32(66); output.writeRawVarint32(paramHashMemoizedSerializedSize); } for (int element : getParamHashList()) { output.writeInt32NoTag(element); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasLastTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, getLastTransactionId()); } if (hasTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, getTransactionId()); } if (hasSourcePartition()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, getSourcePartition()); } if (hasResult()) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getResult()); } if (hasStatus()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, getStatus().getNumber()); } { int dataSize = 0; for (int element : getStmtCounterList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getStmtCounterList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } stmtCounterMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int element : getFragmentIdList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getFragmentIdList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } fragmentIdMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int element : getParamHashList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getParamHashList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } paramHashMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.TransactionPrefetchResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrefetchResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrefetchResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrefetchResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrefetchResult parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrefetchResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrefetchResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionPrefetchResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionPrefetchResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrefetchResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.TransactionPrefetchResult prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.TransactionPrefetchResult result; // Construct using edu.brown.hstore.Hstoreservice.TransactionPrefetchResult.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.TransactionPrefetchResult(); return builder; } protected edu.brown.hstore.Hstoreservice.TransactionPrefetchResult internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.TransactionPrefetchResult(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.TransactionPrefetchResult.getDescriptor(); } public edu.brown.hstore.Hstoreservice.TransactionPrefetchResult getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.TransactionPrefetchResult.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.TransactionPrefetchResult build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.TransactionPrefetchResult buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.TransactionPrefetchResult buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } if (result.stmtCounter_ != java.util.Collections.EMPTY_LIST) { result.stmtCounter_ = java.util.Collections.unmodifiableList(result.stmtCounter_); } if (result.fragmentId_ != java.util.Collections.EMPTY_LIST) { result.fragmentId_ = java.util.Collections.unmodifiableList(result.fragmentId_); } if (result.paramHash_ != java.util.Collections.EMPTY_LIST) { result.paramHash_ = java.util.Collections.unmodifiableList(result.paramHash_); } edu.brown.hstore.Hstoreservice.TransactionPrefetchResult returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.TransactionPrefetchResult) { return mergeFrom((edu.brown.hstore.Hstoreservice.TransactionPrefetchResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.TransactionPrefetchResult other) { if (other == edu.brown.hstore.Hstoreservice.TransactionPrefetchResult.getDefaultInstance()) return this; if (other.hasLastTransactionId()) { setLastTransactionId(other.getLastTransactionId()); } if (other.hasTransactionId()) { setTransactionId(other.getTransactionId()); } if (other.hasSourcePartition()) { setSourcePartition(other.getSourcePartition()); } if (other.hasResult()) { mergeResult(other.getResult()); } if (other.hasStatus()) { setStatus(other.getStatus()); } if (!other.stmtCounter_.isEmpty()) { if (result.stmtCounter_.isEmpty()) { result.stmtCounter_ = new java.util.ArrayList<java.lang.Integer>(); } result.stmtCounter_.addAll(other.stmtCounter_); } if (!other.fragmentId_.isEmpty()) { if (result.fragmentId_.isEmpty()) { result.fragmentId_ = new java.util.ArrayList<java.lang.Integer>(); } result.fragmentId_.addAll(other.fragmentId_); } if (!other.paramHash_.isEmpty()) { if (result.paramHash_.isEmpty()) { result.paramHash_ = new java.util.ArrayList<java.lang.Integer>(); } result.paramHash_.addAll(other.paramHash_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setLastTransactionId(input.readInt64()); break; } case 16: { setTransactionId(input.readInt64()); break; } case 24: { setSourcePartition(input.readInt32()); break; } case 34: { edu.brown.hstore.Hstoreservice.WorkResult.Builder subBuilder = edu.brown.hstore.Hstoreservice.WorkResult.newBuilder(); if (hasResult()) { subBuilder.mergeFrom(getResult()); } input.readMessage(subBuilder, extensionRegistry); setResult(subBuilder.buildPartial()); break; } case 40: { int rawValue = input.readEnum(); edu.brown.hstore.Hstoreservice.Status value = edu.brown.hstore.Hstoreservice.Status.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(5, rawValue); } else { setStatus(value); } break; } case 48: { addStmtCounter(input.readInt32()); break; } case 50: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addStmtCounter(input.readInt32()); } input.popLimit(limit); break; } case 56: { addFragmentId(input.readInt32()); break; } case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addFragmentId(input.readInt32()); } input.popLimit(limit); break; } case 64: { addParamHash(input.readInt32()); break; } case 66: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addParamHash(input.readInt32()); } input.popLimit(limit); break; } } } } // optional int64 last_transaction_id = 1; public boolean hasLastTransactionId() { return result.hasLastTransactionId(); } public long getLastTransactionId() { return result.getLastTransactionId(); } public Builder setLastTransactionId(long value) { result.hasLastTransactionId = true; result.lastTransactionId_ = value; return this; } public Builder clearLastTransactionId() { result.hasLastTransactionId = false; result.lastTransactionId_ = 0L; return this; } // required int64 transaction_id = 2; public boolean hasTransactionId() { return result.hasTransactionId(); } public long getTransactionId() { return result.getTransactionId(); } public Builder setTransactionId(long value) { result.hasTransactionId = true; result.transactionId_ = value; return this; } public Builder clearTransactionId() { result.hasTransactionId = false; result.transactionId_ = 0L; return this; } // required int32 source_partition = 3; public boolean hasSourcePartition() { return result.hasSourcePartition(); } public int getSourcePartition() { return result.getSourcePartition(); } public Builder setSourcePartition(int value) { result.hasSourcePartition = true; result.sourcePartition_ = value; return this; } public Builder clearSourcePartition() { result.hasSourcePartition = false; result.sourcePartition_ = 0; return this; } // required .edu.brown.hstore.WorkResult result = 4; public boolean hasResult() { return result.hasResult(); } public edu.brown.hstore.Hstoreservice.WorkResult getResult() { return result.getResult(); } public Builder setResult(edu.brown.hstore.Hstoreservice.WorkResult value) { if (value == null) { throw new NullPointerException(); } result.hasResult = true; result.result_ = value; return this; } public Builder setResult(edu.brown.hstore.Hstoreservice.WorkResult.Builder builderForValue) { result.hasResult = true; result.result_ = builderForValue.build(); return this; } public Builder mergeResult(edu.brown.hstore.Hstoreservice.WorkResult value) { if (result.hasResult() && result.result_ != edu.brown.hstore.Hstoreservice.WorkResult.getDefaultInstance()) { result.result_ = edu.brown.hstore.Hstoreservice.WorkResult.newBuilder(result.result_).mergeFrom(value).buildPartial(); } else { result.result_ = value; } result.hasResult = true; return this; } public Builder clearResult() { result.hasResult = false; result.result_ = edu.brown.hstore.Hstoreservice.WorkResult.getDefaultInstance(); return this; } // required .edu.brown.hstore.Status status = 5; public boolean hasStatus() { return result.hasStatus(); } public edu.brown.hstore.Hstoreservice.Status getStatus() { return result.getStatus(); } public Builder setStatus(edu.brown.hstore.Hstoreservice.Status value) { if (value == null) { throw new NullPointerException(); } result.hasStatus = true; result.status_ = value; return this; } public Builder clearStatus() { result.hasStatus = false; result.status_ = edu.brown.hstore.Hstoreservice.Status.OK; return this; } // repeated int32 stmt_counter = 6 [packed = true]; public java.util.List<java.lang.Integer> getStmtCounterList() { return java.util.Collections.unmodifiableList(result.stmtCounter_); } public int getStmtCounterCount() { return result.getStmtCounterCount(); } public int getStmtCounter(int index) { return result.getStmtCounter(index); } public Builder setStmtCounter(int index, int value) { result.stmtCounter_.set(index, value); return this; } public Builder addStmtCounter(int value) { if (result.stmtCounter_.isEmpty()) { result.stmtCounter_ = new java.util.ArrayList<java.lang.Integer>(); } result.stmtCounter_.add(value); return this; } public Builder addAllStmtCounter( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.stmtCounter_.isEmpty()) { result.stmtCounter_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.stmtCounter_); return this; } public Builder clearStmtCounter() { result.stmtCounter_ = java.util.Collections.emptyList(); return this; } // repeated int32 fragment_id = 7 [packed = true]; public java.util.List<java.lang.Integer> getFragmentIdList() { return java.util.Collections.unmodifiableList(result.fragmentId_); } public int getFragmentIdCount() { return result.getFragmentIdCount(); } public int getFragmentId(int index) { return result.getFragmentId(index); } public Builder setFragmentId(int index, int value) { result.fragmentId_.set(index, value); return this; } public Builder addFragmentId(int value) { if (result.fragmentId_.isEmpty()) { result.fragmentId_ = new java.util.ArrayList<java.lang.Integer>(); } result.fragmentId_.add(value); return this; } public Builder addAllFragmentId( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.fragmentId_.isEmpty()) { result.fragmentId_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.fragmentId_); return this; } public Builder clearFragmentId() { result.fragmentId_ = java.util.Collections.emptyList(); return this; } // repeated int32 param_hash = 8 [packed = true]; public java.util.List<java.lang.Integer> getParamHashList() { return java.util.Collections.unmodifiableList(result.paramHash_); } public int getParamHashCount() { return result.getParamHashCount(); } public int getParamHash(int index) { return result.getParamHash(index); } public Builder setParamHash(int index, int value) { result.paramHash_.set(index, value); return this; } public Builder addParamHash(int value) { if (result.paramHash_.isEmpty()) { result.paramHash_ = new java.util.ArrayList<java.lang.Integer>(); } result.paramHash_.add(value); return this; } public Builder addAllParamHash( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.paramHash_.isEmpty()) { result.paramHash_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.paramHash_); return this; } public Builder clearParamHash() { result.paramHash_ = java.util.Collections.emptyList(); return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.TransactionPrefetchResult) } static { defaultInstance = new TransactionPrefetchResult(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.TransactionPrefetchResult) } public static final class TransactionPrefetchAcknowledgement extends com.google.protobuf.GeneratedMessage { // Use TransactionPrefetchAcknowledgement.newBuilder() to construct. private TransactionPrefetchAcknowledgement() { initFields(); } private TransactionPrefetchAcknowledgement(boolean noInit) {} private static final TransactionPrefetchAcknowledgement defaultInstance; public static TransactionPrefetchAcknowledgement getDefaultInstance() { return defaultInstance; } public TransactionPrefetchAcknowledgement getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionPrefetchAcknowledgement_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionPrefetchAcknowledgement_fieldAccessorTable; } // required int64 transaction_id = 1; public static final int TRANSACTION_ID_FIELD_NUMBER = 1; private boolean hasTransactionId; private long transactionId_ = 0L; public boolean hasTransactionId() { return hasTransactionId; } public long getTransactionId() { return transactionId_; } // required int32 target_partition = 2; public static final int TARGET_PARTITION_FIELD_NUMBER = 2; private boolean hasTargetPartition; private int targetPartition_ = 0; public boolean hasTargetPartition() { return hasTargetPartition; } public int getTargetPartition() { return targetPartition_; } private void initFields() { } public final boolean isInitialized() { if (!hasTransactionId) return false; if (!hasTargetPartition) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasTransactionId()) { output.writeInt64(1, getTransactionId()); } if (hasTargetPartition()) { output.writeInt32(2, getTargetPartition()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, getTransactionId()); } if (hasTargetPartition()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, getTargetPartition()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement result; // Construct using edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement(); return builder; } protected edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement.getDescriptor(); } public edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement) { return mergeFrom((edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement other) { if (other == edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement.getDefaultInstance()) return this; if (other.hasTransactionId()) { setTransactionId(other.getTransactionId()); } if (other.hasTargetPartition()) { setTargetPartition(other.getTargetPartition()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setTransactionId(input.readInt64()); break; } case 16: { setTargetPartition(input.readInt32()); break; } } } } // required int64 transaction_id = 1; public boolean hasTransactionId() { return result.hasTransactionId(); } public long getTransactionId() { return result.getTransactionId(); } public Builder setTransactionId(long value) { result.hasTransactionId = true; result.transactionId_ = value; return this; } public Builder clearTransactionId() { result.hasTransactionId = false; result.transactionId_ = 0L; return this; } // required int32 target_partition = 2; public boolean hasTargetPartition() { return result.hasTargetPartition(); } public int getTargetPartition() { return result.getTargetPartition(); } public Builder setTargetPartition(int value) { result.hasTargetPartition = true; result.targetPartition_ = value; return this; } public Builder clearTargetPartition() { result.hasTargetPartition = false; result.targetPartition_ = 0; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.TransactionPrefetchAcknowledgement) } static { defaultInstance = new TransactionPrefetchAcknowledgement(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.TransactionPrefetchAcknowledgement) } public static final class TransactionMapRequest extends com.google.protobuf.GeneratedMessage { // Use TransactionMapRequest.newBuilder() to construct. private TransactionMapRequest() { initFields(); } private TransactionMapRequest(boolean noInit) {} private static final TransactionMapRequest defaultInstance; public static TransactionMapRequest getDefaultInstance() { return defaultInstance; } public TransactionMapRequest getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionMapRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionMapRequest_fieldAccessorTable; } // optional int64 last_transaction_id = 1; public static final int LAST_TRANSACTION_ID_FIELD_NUMBER = 1; private boolean hasLastTransactionId; private long lastTransactionId_ = 0L; public boolean hasLastTransactionId() { return hasLastTransactionId; } public long getLastTransactionId() { return lastTransactionId_; } // required int64 transaction_id = 2; public static final int TRANSACTION_ID_FIELD_NUMBER = 2; private boolean hasTransactionId; private long transactionId_ = 0L; public boolean hasTransactionId() { return hasTransactionId; } public long getTransactionId() { return transactionId_; } // required int64 client_handle = 3; public static final int CLIENT_HANDLE_FIELD_NUMBER = 3; private boolean hasClientHandle; private long clientHandle_ = 0L; public boolean hasClientHandle() { return hasClientHandle; } public long getClientHandle() { return clientHandle_; } // required int32 base_partition = 4; public static final int BASE_PARTITION_FIELD_NUMBER = 4; private boolean hasBasePartition; private int basePartition_ = 0; public boolean hasBasePartition() { return hasBasePartition; } public int getBasePartition() { return basePartition_; } // required int32 procedure_id = 5; public static final int PROCEDURE_ID_FIELD_NUMBER = 5; private boolean hasProcedureId; private int procedureId_ = 0; public boolean hasProcedureId() { return hasProcedureId; } public int getProcedureId() { return procedureId_; } // required bytes params = 6; public static final int PARAMS_FIELD_NUMBER = 6; private boolean hasParams; private com.google.protobuf.ByteString params_ = com.google.protobuf.ByteString.EMPTY; public boolean hasParams() { return hasParams; } public com.google.protobuf.ByteString getParams() { return params_; } private void initFields() { } public final boolean isInitialized() { if (!hasTransactionId) return false; if (!hasClientHandle) return false; if (!hasBasePartition) return false; if (!hasProcedureId) return false; if (!hasParams) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasLastTransactionId()) { output.writeInt64(1, getLastTransactionId()); } if (hasTransactionId()) { output.writeInt64(2, getTransactionId()); } if (hasClientHandle()) { output.writeInt64(3, getClientHandle()); } if (hasBasePartition()) { output.writeInt32(4, getBasePartition()); } if (hasProcedureId()) { output.writeInt32(5, getProcedureId()); } if (hasParams()) { output.writeBytes(6, getParams()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasLastTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, getLastTransactionId()); } if (hasTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, getTransactionId()); } if (hasClientHandle()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, getClientHandle()); } if (hasBasePartition()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, getBasePartition()); } if (hasProcedureId()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, getProcedureId()); } if (hasParams()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getParams()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.TransactionMapRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionMapRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionMapRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionMapRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionMapRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionMapRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionMapRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionMapRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionMapRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionMapRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.TransactionMapRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.TransactionMapRequest result; // Construct using edu.brown.hstore.Hstoreservice.TransactionMapRequest.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.TransactionMapRequest(); return builder; } protected edu.brown.hstore.Hstoreservice.TransactionMapRequest internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.TransactionMapRequest(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.TransactionMapRequest.getDescriptor(); } public edu.brown.hstore.Hstoreservice.TransactionMapRequest getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.TransactionMapRequest.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.TransactionMapRequest build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.TransactionMapRequest buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.TransactionMapRequest buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } edu.brown.hstore.Hstoreservice.TransactionMapRequest returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.TransactionMapRequest) { return mergeFrom((edu.brown.hstore.Hstoreservice.TransactionMapRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.TransactionMapRequest other) { if (other == edu.brown.hstore.Hstoreservice.TransactionMapRequest.getDefaultInstance()) return this; if (other.hasLastTransactionId()) { setLastTransactionId(other.getLastTransactionId()); } if (other.hasTransactionId()) { setTransactionId(other.getTransactionId()); } if (other.hasClientHandle()) { setClientHandle(other.getClientHandle()); } if (other.hasBasePartition()) { setBasePartition(other.getBasePartition()); } if (other.hasProcedureId()) { setProcedureId(other.getProcedureId()); } if (other.hasParams()) { setParams(other.getParams()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setLastTransactionId(input.readInt64()); break; } case 16: { setTransactionId(input.readInt64()); break; } case 24: { setClientHandle(input.readInt64()); break; } case 32: { setBasePartition(input.readInt32()); break; } case 40: { setProcedureId(input.readInt32()); break; } case 50: { setParams(input.readBytes()); break; } } } } // optional int64 last_transaction_id = 1; public boolean hasLastTransactionId() { return result.hasLastTransactionId(); } public long getLastTransactionId() { return result.getLastTransactionId(); } public Builder setLastTransactionId(long value) { result.hasLastTransactionId = true; result.lastTransactionId_ = value; return this; } public Builder clearLastTransactionId() { result.hasLastTransactionId = false; result.lastTransactionId_ = 0L; return this; } // required int64 transaction_id = 2; public boolean hasTransactionId() { return result.hasTransactionId(); } public long getTransactionId() { return result.getTransactionId(); } public Builder setTransactionId(long value) { result.hasTransactionId = true; result.transactionId_ = value; return this; } public Builder clearTransactionId() { result.hasTransactionId = false; result.transactionId_ = 0L; return this; } // required int64 client_handle = 3; public boolean hasClientHandle() { return result.hasClientHandle(); } public long getClientHandle() { return result.getClientHandle(); } public Builder setClientHandle(long value) { result.hasClientHandle = true; result.clientHandle_ = value; return this; } public Builder clearClientHandle() { result.hasClientHandle = false; result.clientHandle_ = 0L; return this; } // required int32 base_partition = 4; public boolean hasBasePartition() { return result.hasBasePartition(); } public int getBasePartition() { return result.getBasePartition(); } public Builder setBasePartition(int value) { result.hasBasePartition = true; result.basePartition_ = value; return this; } public Builder clearBasePartition() { result.hasBasePartition = false; result.basePartition_ = 0; return this; } // required int32 procedure_id = 5; public boolean hasProcedureId() { return result.hasProcedureId(); } public int getProcedureId() { return result.getProcedureId(); } public Builder setProcedureId(int value) { result.hasProcedureId = true; result.procedureId_ = value; return this; } public Builder clearProcedureId() { result.hasProcedureId = false; result.procedureId_ = 0; return this; } // required bytes params = 6; public boolean hasParams() { return result.hasParams(); } public com.google.protobuf.ByteString getParams() { return result.getParams(); } public Builder setParams(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } result.hasParams = true; result.params_ = value; return this; } public Builder clearParams() { result.hasParams = false; result.params_ = getDefaultInstance().getParams(); return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.TransactionMapRequest) } static { defaultInstance = new TransactionMapRequest(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.TransactionMapRequest) } public static final class TransactionMapResponse extends com.google.protobuf.GeneratedMessage { // Use TransactionMapResponse.newBuilder() to construct. private TransactionMapResponse() { initFields(); } private TransactionMapResponse(boolean noInit) {} private static final TransactionMapResponse defaultInstance; public static TransactionMapResponse getDefaultInstance() { return defaultInstance; } public TransactionMapResponse getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionMapResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionMapResponse_fieldAccessorTable; } // required int64 transaction_id = 1; public static final int TRANSACTION_ID_FIELD_NUMBER = 1; private boolean hasTransactionId; private long transactionId_ = 0L; public boolean hasTransactionId() { return hasTransactionId; } public long getTransactionId() { return transactionId_; } // repeated int32 partitions = 2 [packed = true]; public static final int PARTITIONS_FIELD_NUMBER = 2; private java.util.List<java.lang.Integer> partitions_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getPartitionsList() { return partitions_; } public int getPartitionsCount() { return partitions_.size(); } public int getPartitions(int index) { return partitions_.get(index); } private int partitionsMemoizedSerializedSize = -1; // required .edu.brown.hstore.Status status = 3; public static final int STATUS_FIELD_NUMBER = 3; private boolean hasStatus; private edu.brown.hstore.Hstoreservice.Status status_; public boolean hasStatus() { return hasStatus; } public edu.brown.hstore.Hstoreservice.Status getStatus() { return status_; } private void initFields() { status_ = edu.brown.hstore.Hstoreservice.Status.OK; } public final boolean isInitialized() { if (!hasTransactionId) return false; if (!hasStatus) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasTransactionId()) { output.writeInt64(1, getTransactionId()); } if (getPartitionsList().size() > 0) { output.writeRawVarint32(18); output.writeRawVarint32(partitionsMemoizedSerializedSize); } for (int element : getPartitionsList()) { output.writeInt32NoTag(element); } if (hasStatus()) { output.writeEnum(3, getStatus().getNumber()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, getTransactionId()); } { int dataSize = 0; for (int element : getPartitionsList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getPartitionsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } partitionsMemoizedSerializedSize = dataSize; } if (hasStatus()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, getStatus().getNumber()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.TransactionMapResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionMapResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionMapResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionMapResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionMapResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionMapResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionMapResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionMapResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionMapResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionMapResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.TransactionMapResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.TransactionMapResponse result; // Construct using edu.brown.hstore.Hstoreservice.TransactionMapResponse.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.TransactionMapResponse(); return builder; } protected edu.brown.hstore.Hstoreservice.TransactionMapResponse internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.TransactionMapResponse(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.TransactionMapResponse.getDescriptor(); } public edu.brown.hstore.Hstoreservice.TransactionMapResponse getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.TransactionMapResponse.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.TransactionMapResponse build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.TransactionMapResponse buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.TransactionMapResponse buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } if (result.partitions_ != java.util.Collections.EMPTY_LIST) { result.partitions_ = java.util.Collections.unmodifiableList(result.partitions_); } edu.brown.hstore.Hstoreservice.TransactionMapResponse returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.TransactionMapResponse) { return mergeFrom((edu.brown.hstore.Hstoreservice.TransactionMapResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.TransactionMapResponse other) { if (other == edu.brown.hstore.Hstoreservice.TransactionMapResponse.getDefaultInstance()) return this; if (other.hasTransactionId()) { setTransactionId(other.getTransactionId()); } if (!other.partitions_.isEmpty()) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } result.partitions_.addAll(other.partitions_); } if (other.hasStatus()) { setStatus(other.getStatus()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setTransactionId(input.readInt64()); break; } case 16: { addPartitions(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addPartitions(input.readInt32()); } input.popLimit(limit); break; } case 24: { int rawValue = input.readEnum(); edu.brown.hstore.Hstoreservice.Status value = edu.brown.hstore.Hstoreservice.Status.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { setStatus(value); } break; } } } } // required int64 transaction_id = 1; public boolean hasTransactionId() { return result.hasTransactionId(); } public long getTransactionId() { return result.getTransactionId(); } public Builder setTransactionId(long value) { result.hasTransactionId = true; result.transactionId_ = value; return this; } public Builder clearTransactionId() { result.hasTransactionId = false; result.transactionId_ = 0L; return this; } // repeated int32 partitions = 2 [packed = true]; public java.util.List<java.lang.Integer> getPartitionsList() { return java.util.Collections.unmodifiableList(result.partitions_); } public int getPartitionsCount() { return result.getPartitionsCount(); } public int getPartitions(int index) { return result.getPartitions(index); } public Builder setPartitions(int index, int value) { result.partitions_.set(index, value); return this; } public Builder addPartitions(int value) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } result.partitions_.add(value); return this; } public Builder addAllPartitions( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.partitions_); return this; } public Builder clearPartitions() { result.partitions_ = java.util.Collections.emptyList(); return this; } // required .edu.brown.hstore.Status status = 3; public boolean hasStatus() { return result.hasStatus(); } public edu.brown.hstore.Hstoreservice.Status getStatus() { return result.getStatus(); } public Builder setStatus(edu.brown.hstore.Hstoreservice.Status value) { if (value == null) { throw new NullPointerException(); } result.hasStatus = true; result.status_ = value; return this; } public Builder clearStatus() { result.hasStatus = false; result.status_ = edu.brown.hstore.Hstoreservice.Status.OK; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.TransactionMapResponse) } static { defaultInstance = new TransactionMapResponse(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.TransactionMapResponse) } public static final class TransactionReduceRequest extends com.google.protobuf.GeneratedMessage { // Use TransactionReduceRequest.newBuilder() to construct. private TransactionReduceRequest() { initFields(); } private TransactionReduceRequest(boolean noInit) {} private static final TransactionReduceRequest defaultInstance; public static TransactionReduceRequest getDefaultInstance() { return defaultInstance; } public TransactionReduceRequest getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionReduceRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionReduceRequest_fieldAccessorTable; } // required int64 transaction_id = 1; public static final int TRANSACTION_ID_FIELD_NUMBER = 1; private boolean hasTransactionId; private long transactionId_ = 0L; public boolean hasTransactionId() { return hasTransactionId; } public long getTransactionId() { return transactionId_; } private void initFields() { } public final boolean isInitialized() { if (!hasTransactionId) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasTransactionId()) { output.writeInt64(1, getTransactionId()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, getTransactionId()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.TransactionReduceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionReduceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionReduceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionReduceRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionReduceRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionReduceRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionReduceRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionReduceRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionReduceRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionReduceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.TransactionReduceRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.TransactionReduceRequest result; // Construct using edu.brown.hstore.Hstoreservice.TransactionReduceRequest.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.TransactionReduceRequest(); return builder; } protected edu.brown.hstore.Hstoreservice.TransactionReduceRequest internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.TransactionReduceRequest(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.TransactionReduceRequest.getDescriptor(); } public edu.brown.hstore.Hstoreservice.TransactionReduceRequest getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.TransactionReduceRequest.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.TransactionReduceRequest build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.TransactionReduceRequest buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.TransactionReduceRequest buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } edu.brown.hstore.Hstoreservice.TransactionReduceRequest returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.TransactionReduceRequest) { return mergeFrom((edu.brown.hstore.Hstoreservice.TransactionReduceRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.TransactionReduceRequest other) { if (other == edu.brown.hstore.Hstoreservice.TransactionReduceRequest.getDefaultInstance()) return this; if (other.hasTransactionId()) { setTransactionId(other.getTransactionId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setTransactionId(input.readInt64()); break; } } } } // required int64 transaction_id = 1; public boolean hasTransactionId() { return result.hasTransactionId(); } public long getTransactionId() { return result.getTransactionId(); } public Builder setTransactionId(long value) { result.hasTransactionId = true; result.transactionId_ = value; return this; } public Builder clearTransactionId() { result.hasTransactionId = false; result.transactionId_ = 0L; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.TransactionReduceRequest) } static { defaultInstance = new TransactionReduceRequest(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.TransactionReduceRequest) } public static final class TransactionReduceResponse extends com.google.protobuf.GeneratedMessage { // Use TransactionReduceResponse.newBuilder() to construct. private TransactionReduceResponse() { initFields(); } private TransactionReduceResponse(boolean noInit) {} private static final TransactionReduceResponse defaultInstance; public static TransactionReduceResponse getDefaultInstance() { return defaultInstance; } public TransactionReduceResponse getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionReduceResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionReduceResponse_fieldAccessorTable; } public static final class ReduceResult extends com.google.protobuf.GeneratedMessage { // Use ReduceResult.newBuilder() to construct. private ReduceResult() { initFields(); } private ReduceResult(boolean noInit) {} private static final ReduceResult defaultInstance; public static ReduceResult getDefaultInstance() { return defaultInstance; } public ReduceResult getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionReduceResponse_ReduceResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionReduceResponse_ReduceResult_fieldAccessorTable; } // required int32 partition_id = 1; public static final int PARTITION_ID_FIELD_NUMBER = 1; private boolean hasPartitionId; private int partitionId_ = 0; public boolean hasPartitionId() { return hasPartitionId; } public int getPartitionId() { return partitionId_; } // required bytes data = 2; public static final int DATA_FIELD_NUMBER = 2; private boolean hasData; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; public boolean hasData() { return hasData; } public com.google.protobuf.ByteString getData() { return data_; } // required .edu.brown.hstore.Status status = 3; public static final int STATUS_FIELD_NUMBER = 3; private boolean hasStatus; private edu.brown.hstore.Hstoreservice.Status status_; public boolean hasStatus() { return hasStatus; } public edu.brown.hstore.Hstoreservice.Status getStatus() { return status_; } // optional bool error = 4 [default = false]; public static final int ERROR_FIELD_NUMBER = 4; private boolean hasError; private boolean error_ = false; public boolean hasError() { return hasError; } public boolean getError() { return error_; } private void initFields() { status_ = edu.brown.hstore.Hstoreservice.Status.OK; } public final boolean isInitialized() { if (!hasPartitionId) return false; if (!hasData) return false; if (!hasStatus) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasPartitionId()) { output.writeInt32(1, getPartitionId()); } if (hasData()) { output.writeBytes(2, getData()); } if (hasStatus()) { output.writeEnum(3, getStatus().getNumber()); } if (hasError()) { output.writeBool(4, getError()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasPartitionId()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, getPartitionId()); } if (hasData()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getData()); } if (hasStatus()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, getStatus().getNumber()); } if (hasError()) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, getError()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult result; // Construct using edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult(); return builder; } protected edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult.getDescriptor(); } public edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult) { return mergeFrom((edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult other) { if (other == edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult.getDefaultInstance()) return this; if (other.hasPartitionId()) { setPartitionId(other.getPartitionId()); } if (other.hasData()) { setData(other.getData()); } if (other.hasStatus()) { setStatus(other.getStatus()); } if (other.hasError()) { setError(other.getError()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setPartitionId(input.readInt32()); break; } case 18: { setData(input.readBytes()); break; } case 24: { int rawValue = input.readEnum(); edu.brown.hstore.Hstoreservice.Status value = edu.brown.hstore.Hstoreservice.Status.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { setStatus(value); } break; } case 32: { setError(input.readBool()); break; } } } } // required int32 partition_id = 1; public boolean hasPartitionId() { return result.hasPartitionId(); } public int getPartitionId() { return result.getPartitionId(); } public Builder setPartitionId(int value) { result.hasPartitionId = true; result.partitionId_ = value; return this; } public Builder clearPartitionId() { result.hasPartitionId = false; result.partitionId_ = 0; return this; } // required bytes data = 2; public boolean hasData() { return result.hasData(); } public com.google.protobuf.ByteString getData() { return result.getData(); } public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } result.hasData = true; result.data_ = value; return this; } public Builder clearData() { result.hasData = false; result.data_ = getDefaultInstance().getData(); return this; } // required .edu.brown.hstore.Status status = 3; public boolean hasStatus() { return result.hasStatus(); } public edu.brown.hstore.Hstoreservice.Status getStatus() { return result.getStatus(); } public Builder setStatus(edu.brown.hstore.Hstoreservice.Status value) { if (value == null) { throw new NullPointerException(); } result.hasStatus = true; result.status_ = value; return this; } public Builder clearStatus() { result.hasStatus = false; result.status_ = edu.brown.hstore.Hstoreservice.Status.OK; return this; } // optional bool error = 4 [default = false]; public boolean hasError() { return result.hasError(); } public boolean getError() { return result.getError(); } public Builder setError(boolean value) { result.hasError = true; result.error_ = value; return this; } public Builder clearError() { result.hasError = false; result.error_ = false; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.TransactionReduceResponse.ReduceResult) } static { defaultInstance = new ReduceResult(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.TransactionReduceResponse.ReduceResult) } // required int64 transaction_id = 1; public static final int TRANSACTION_ID_FIELD_NUMBER = 1; private boolean hasTransactionId; private long transactionId_ = 0L; public boolean hasTransactionId() { return hasTransactionId; } public long getTransactionId() { return transactionId_; } // repeated .edu.brown.hstore.TransactionReduceResponse.ReduceResult results = 2; public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List<edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult> results_ = java.util.Collections.emptyList(); public java.util.List<edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult> getResultsList() { return results_; } public int getResultsCount() { return results_.size(); } public edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult getResults(int index) { return results_.get(index); } // required .edu.brown.hstore.Status status = 3; public static final int STATUS_FIELD_NUMBER = 3; private boolean hasStatus; private edu.brown.hstore.Hstoreservice.Status status_; public boolean hasStatus() { return hasStatus; } public edu.brown.hstore.Hstoreservice.Status getStatus() { return status_; } private void initFields() { status_ = edu.brown.hstore.Hstoreservice.Status.OK; } public final boolean isInitialized() { if (!hasTransactionId) return false; if (!hasStatus) return false; for (edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult element : getResultsList()) { if (!element.isInitialized()) return false; } return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasTransactionId()) { output.writeInt64(1, getTransactionId()); } for (edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult element : getResultsList()) { output.writeMessage(2, element); } if (hasStatus()) { output.writeEnum(3, getStatus().getNumber()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, getTransactionId()); } for (edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult element : getResultsList()) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, element); } if (hasStatus()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, getStatus().getNumber()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.TransactionReduceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionReduceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionReduceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionReduceResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionReduceResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionReduceResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionReduceResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionReduceResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionReduceResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionReduceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.TransactionReduceResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.TransactionReduceResponse result; // Construct using edu.brown.hstore.Hstoreservice.TransactionReduceResponse.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.TransactionReduceResponse(); return builder; } protected edu.brown.hstore.Hstoreservice.TransactionReduceResponse internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.TransactionReduceResponse(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.TransactionReduceResponse.getDescriptor(); } public edu.brown.hstore.Hstoreservice.TransactionReduceResponse getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.TransactionReduceResponse.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.TransactionReduceResponse build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.TransactionReduceResponse buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.TransactionReduceResponse buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } if (result.results_ != java.util.Collections.EMPTY_LIST) { result.results_ = java.util.Collections.unmodifiableList(result.results_); } edu.brown.hstore.Hstoreservice.TransactionReduceResponse returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.TransactionReduceResponse) { return mergeFrom((edu.brown.hstore.Hstoreservice.TransactionReduceResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.TransactionReduceResponse other) { if (other == edu.brown.hstore.Hstoreservice.TransactionReduceResponse.getDefaultInstance()) return this; if (other.hasTransactionId()) { setTransactionId(other.getTransactionId()); } if (!other.results_.isEmpty()) { if (result.results_.isEmpty()) { result.results_ = new java.util.ArrayList<edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult>(); } result.results_.addAll(other.results_); } if (other.hasStatus()) { setStatus(other.getStatus()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setTransactionId(input.readInt64()); break; } case 18: { edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult.Builder subBuilder = edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addResults(subBuilder.buildPartial()); break; } case 24: { int rawValue = input.readEnum(); edu.brown.hstore.Hstoreservice.Status value = edu.brown.hstore.Hstoreservice.Status.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { setStatus(value); } break; } } } } // required int64 transaction_id = 1; public boolean hasTransactionId() { return result.hasTransactionId(); } public long getTransactionId() { return result.getTransactionId(); } public Builder setTransactionId(long value) { result.hasTransactionId = true; result.transactionId_ = value; return this; } public Builder clearTransactionId() { result.hasTransactionId = false; result.transactionId_ = 0L; return this; } // repeated .edu.brown.hstore.TransactionReduceResponse.ReduceResult results = 2; public java.util.List<edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult> getResultsList() { return java.util.Collections.unmodifiableList(result.results_); } public int getResultsCount() { return result.getResultsCount(); } public edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult getResults(int index) { return result.getResults(index); } public Builder setResults(int index, edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult value) { if (value == null) { throw new NullPointerException(); } result.results_.set(index, value); return this; } public Builder setResults(int index, edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult.Builder builderForValue) { result.results_.set(index, builderForValue.build()); return this; } public Builder addResults(edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult value) { if (value == null) { throw new NullPointerException(); } if (result.results_.isEmpty()) { result.results_ = new java.util.ArrayList<edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult>(); } result.results_.add(value); return this; } public Builder addResults(edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult.Builder builderForValue) { if (result.results_.isEmpty()) { result.results_ = new java.util.ArrayList<edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult>(); } result.results_.add(builderForValue.build()); return this; } public Builder addAllResults( java.lang.Iterable<? extends edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult> values) { if (result.results_.isEmpty()) { result.results_ = new java.util.ArrayList<edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult>(); } super.addAll(values, result.results_); return this; } public Builder clearResults() { result.results_ = java.util.Collections.emptyList(); return this; } // required .edu.brown.hstore.Status status = 3; public boolean hasStatus() { return result.hasStatus(); } public edu.brown.hstore.Hstoreservice.Status getStatus() { return result.getStatus(); } public Builder setStatus(edu.brown.hstore.Hstoreservice.Status value) { if (value == null) { throw new NullPointerException(); } result.hasStatus = true; result.status_ = value; return this; } public Builder clearStatus() { result.hasStatus = false; result.status_ = edu.brown.hstore.Hstoreservice.Status.OK; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.TransactionReduceResponse) } static { defaultInstance = new TransactionReduceResponse(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.TransactionReduceResponse) } public static final class TransactionPrepareRequest extends com.google.protobuf.GeneratedMessage { // Use TransactionPrepareRequest.newBuilder() to construct. private TransactionPrepareRequest() { initFields(); } private TransactionPrepareRequest(boolean noInit) {} private static final TransactionPrepareRequest defaultInstance; public static TransactionPrepareRequest getDefaultInstance() { return defaultInstance; } public TransactionPrepareRequest getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionPrepareRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionPrepareRequest_fieldAccessorTable; } // required int64 transaction_id = 1; public static final int TRANSACTION_ID_FIELD_NUMBER = 1; private boolean hasTransactionId; private long transactionId_ = 0L; public boolean hasTransactionId() { return hasTransactionId; } public long getTransactionId() { return transactionId_; } // repeated int32 partitions = 2 [packed = true]; public static final int PARTITIONS_FIELD_NUMBER = 2; private java.util.List<java.lang.Integer> partitions_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getPartitionsList() { return partitions_; } public int getPartitionsCount() { return partitions_.size(); } public int getPartitions(int index) { return partitions_.get(index); } private int partitionsMemoizedSerializedSize = -1; private void initFields() { } public final boolean isInitialized() { if (!hasTransactionId) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasTransactionId()) { output.writeInt64(1, getTransactionId()); } if (getPartitionsList().size() > 0) { output.writeRawVarint32(18); output.writeRawVarint32(partitionsMemoizedSerializedSize); } for (int element : getPartitionsList()) { output.writeInt32NoTag(element); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, getTransactionId()); } { int dataSize = 0; for (int element : getPartitionsList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getPartitionsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } partitionsMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.TransactionPrepareRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrepareRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrepareRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrepareRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrepareRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrepareRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrepareRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionPrepareRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionPrepareRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrepareRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.TransactionPrepareRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.TransactionPrepareRequest result; // Construct using edu.brown.hstore.Hstoreservice.TransactionPrepareRequest.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.TransactionPrepareRequest(); return builder; } protected edu.brown.hstore.Hstoreservice.TransactionPrepareRequest internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.TransactionPrepareRequest(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.TransactionPrepareRequest.getDescriptor(); } public edu.brown.hstore.Hstoreservice.TransactionPrepareRequest getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.TransactionPrepareRequest.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.TransactionPrepareRequest build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.TransactionPrepareRequest buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.TransactionPrepareRequest buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } if (result.partitions_ != java.util.Collections.EMPTY_LIST) { result.partitions_ = java.util.Collections.unmodifiableList(result.partitions_); } edu.brown.hstore.Hstoreservice.TransactionPrepareRequest returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.TransactionPrepareRequest) { return mergeFrom((edu.brown.hstore.Hstoreservice.TransactionPrepareRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.TransactionPrepareRequest other) { if (other == edu.brown.hstore.Hstoreservice.TransactionPrepareRequest.getDefaultInstance()) return this; if (other.hasTransactionId()) { setTransactionId(other.getTransactionId()); } if (!other.partitions_.isEmpty()) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } result.partitions_.addAll(other.partitions_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setTransactionId(input.readInt64()); break; } case 16: { addPartitions(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addPartitions(input.readInt32()); } input.popLimit(limit); break; } } } } // required int64 transaction_id = 1; public boolean hasTransactionId() { return result.hasTransactionId(); } public long getTransactionId() { return result.getTransactionId(); } public Builder setTransactionId(long value) { result.hasTransactionId = true; result.transactionId_ = value; return this; } public Builder clearTransactionId() { result.hasTransactionId = false; result.transactionId_ = 0L; return this; } // repeated int32 partitions = 2 [packed = true]; public java.util.List<java.lang.Integer> getPartitionsList() { return java.util.Collections.unmodifiableList(result.partitions_); } public int getPartitionsCount() { return result.getPartitionsCount(); } public int getPartitions(int index) { return result.getPartitions(index); } public Builder setPartitions(int index, int value) { result.partitions_.set(index, value); return this; } public Builder addPartitions(int value) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } result.partitions_.add(value); return this; } public Builder addAllPartitions( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.partitions_); return this; } public Builder clearPartitions() { result.partitions_ = java.util.Collections.emptyList(); return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.TransactionPrepareRequest) } static { defaultInstance = new TransactionPrepareRequest(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.TransactionPrepareRequest) } public static final class TransactionPrepareResponse extends com.google.protobuf.GeneratedMessage { // Use TransactionPrepareResponse.newBuilder() to construct. private TransactionPrepareResponse() { initFields(); } private TransactionPrepareResponse(boolean noInit) {} private static final TransactionPrepareResponse defaultInstance; public static TransactionPrepareResponse getDefaultInstance() { return defaultInstance; } public TransactionPrepareResponse getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionPrepareResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionPrepareResponse_fieldAccessorTable; } // required int64 transaction_id = 1; public static final int TRANSACTION_ID_FIELD_NUMBER = 1; private boolean hasTransactionId; private long transactionId_ = 0L; public boolean hasTransactionId() { return hasTransactionId; } public long getTransactionId() { return transactionId_; } // repeated int32 partitions = 2 [packed = true]; public static final int PARTITIONS_FIELD_NUMBER = 2; private java.util.List<java.lang.Integer> partitions_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getPartitionsList() { return partitions_; } public int getPartitionsCount() { return partitions_.size(); } public int getPartitions(int index) { return partitions_.get(index); } private int partitionsMemoizedSerializedSize = -1; // required .edu.brown.hstore.Status status = 3; public static final int STATUS_FIELD_NUMBER = 3; private boolean hasStatus; private edu.brown.hstore.Hstoreservice.Status status_; public boolean hasStatus() { return hasStatus; } public edu.brown.hstore.Hstoreservice.Status getStatus() { return status_; } private void initFields() { status_ = edu.brown.hstore.Hstoreservice.Status.OK; } public final boolean isInitialized() { if (!hasTransactionId) return false; if (!hasStatus) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasTransactionId()) { output.writeInt64(1, getTransactionId()); } if (getPartitionsList().size() > 0) { output.writeRawVarint32(18); output.writeRawVarint32(partitionsMemoizedSerializedSize); } for (int element : getPartitionsList()) { output.writeInt32NoTag(element); } if (hasStatus()) { output.writeEnum(3, getStatus().getNumber()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, getTransactionId()); } { int dataSize = 0; for (int element : getPartitionsList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getPartitionsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } partitionsMemoizedSerializedSize = dataSize; } if (hasStatus()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, getStatus().getNumber()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.TransactionPrepareResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrepareResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrepareResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrepareResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrepareResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrepareResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrepareResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionPrepareResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionPrepareResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionPrepareResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.TransactionPrepareResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.TransactionPrepareResponse result; // Construct using edu.brown.hstore.Hstoreservice.TransactionPrepareResponse.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.TransactionPrepareResponse(); return builder; } protected edu.brown.hstore.Hstoreservice.TransactionPrepareResponse internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.TransactionPrepareResponse(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.TransactionPrepareResponse.getDescriptor(); } public edu.brown.hstore.Hstoreservice.TransactionPrepareResponse getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.TransactionPrepareResponse.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.TransactionPrepareResponse build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.TransactionPrepareResponse buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.TransactionPrepareResponse buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } if (result.partitions_ != java.util.Collections.EMPTY_LIST) { result.partitions_ = java.util.Collections.unmodifiableList(result.partitions_); } edu.brown.hstore.Hstoreservice.TransactionPrepareResponse returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.TransactionPrepareResponse) { return mergeFrom((edu.brown.hstore.Hstoreservice.TransactionPrepareResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.TransactionPrepareResponse other) { if (other == edu.brown.hstore.Hstoreservice.TransactionPrepareResponse.getDefaultInstance()) return this; if (other.hasTransactionId()) { setTransactionId(other.getTransactionId()); } if (!other.partitions_.isEmpty()) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } result.partitions_.addAll(other.partitions_); } if (other.hasStatus()) { setStatus(other.getStatus()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setTransactionId(input.readInt64()); break; } case 16: { addPartitions(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addPartitions(input.readInt32()); } input.popLimit(limit); break; } case 24: { int rawValue = input.readEnum(); edu.brown.hstore.Hstoreservice.Status value = edu.brown.hstore.Hstoreservice.Status.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { setStatus(value); } break; } } } } // required int64 transaction_id = 1; public boolean hasTransactionId() { return result.hasTransactionId(); } public long getTransactionId() { return result.getTransactionId(); } public Builder setTransactionId(long value) { result.hasTransactionId = true; result.transactionId_ = value; return this; } public Builder clearTransactionId() { result.hasTransactionId = false; result.transactionId_ = 0L; return this; } // repeated int32 partitions = 2 [packed = true]; public java.util.List<java.lang.Integer> getPartitionsList() { return java.util.Collections.unmodifiableList(result.partitions_); } public int getPartitionsCount() { return result.getPartitionsCount(); } public int getPartitions(int index) { return result.getPartitions(index); } public Builder setPartitions(int index, int value) { result.partitions_.set(index, value); return this; } public Builder addPartitions(int value) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } result.partitions_.add(value); return this; } public Builder addAllPartitions( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.partitions_); return this; } public Builder clearPartitions() { result.partitions_ = java.util.Collections.emptyList(); return this; } // required .edu.brown.hstore.Status status = 3; public boolean hasStatus() { return result.hasStatus(); } public edu.brown.hstore.Hstoreservice.Status getStatus() { return result.getStatus(); } public Builder setStatus(edu.brown.hstore.Hstoreservice.Status value) { if (value == null) { throw new NullPointerException(); } result.hasStatus = true; result.status_ = value; return this; } public Builder clearStatus() { result.hasStatus = false; result.status_ = edu.brown.hstore.Hstoreservice.Status.OK; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.TransactionPrepareResponse) } static { defaultInstance = new TransactionPrepareResponse(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.TransactionPrepareResponse) } public static final class TransactionFinishRequest extends com.google.protobuf.GeneratedMessage { // Use TransactionFinishRequest.newBuilder() to construct. private TransactionFinishRequest() { initFields(); } private TransactionFinishRequest(boolean noInit) {} private static final TransactionFinishRequest defaultInstance; public static TransactionFinishRequest getDefaultInstance() { return defaultInstance; } public TransactionFinishRequest getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionFinishRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionFinishRequest_fieldAccessorTable; } // required int64 transaction_id = 1; public static final int TRANSACTION_ID_FIELD_NUMBER = 1; private boolean hasTransactionId; private long transactionId_ = 0L; public boolean hasTransactionId() { return hasTransactionId; } public long getTransactionId() { return transactionId_; } // repeated int32 partitions = 2 [packed = true]; public static final int PARTITIONS_FIELD_NUMBER = 2; private java.util.List<java.lang.Integer> partitions_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getPartitionsList() { return partitions_; } public int getPartitionsCount() { return partitions_.size(); } public int getPartitions(int index) { return partitions_.get(index); } private int partitionsMemoizedSerializedSize = -1; // required .edu.brown.hstore.Status status = 3; public static final int STATUS_FIELD_NUMBER = 3; private boolean hasStatus; private edu.brown.hstore.Hstoreservice.Status status_; public boolean hasStatus() { return hasStatus; } public edu.brown.hstore.Hstoreservice.Status getStatus() { return status_; } private void initFields() { status_ = edu.brown.hstore.Hstoreservice.Status.OK; } public final boolean isInitialized() { if (!hasTransactionId) return false; if (!hasStatus) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasTransactionId()) { output.writeInt64(1, getTransactionId()); } if (getPartitionsList().size() > 0) { output.writeRawVarint32(18); output.writeRawVarint32(partitionsMemoizedSerializedSize); } for (int element : getPartitionsList()) { output.writeInt32NoTag(element); } if (hasStatus()) { output.writeEnum(3, getStatus().getNumber()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, getTransactionId()); } { int dataSize = 0; for (int element : getPartitionsList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getPartitionsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } partitionsMemoizedSerializedSize = dataSize; } if (hasStatus()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, getStatus().getNumber()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.TransactionFinishRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionFinishRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionFinishRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionFinishRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionFinishRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionFinishRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionFinishRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionFinishRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionFinishRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionFinishRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.TransactionFinishRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.TransactionFinishRequest result; // Construct using edu.brown.hstore.Hstoreservice.TransactionFinishRequest.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.TransactionFinishRequest(); return builder; } protected edu.brown.hstore.Hstoreservice.TransactionFinishRequest internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.TransactionFinishRequest(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.TransactionFinishRequest.getDescriptor(); } public edu.brown.hstore.Hstoreservice.TransactionFinishRequest getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.TransactionFinishRequest.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.TransactionFinishRequest build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.TransactionFinishRequest buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.TransactionFinishRequest buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } if (result.partitions_ != java.util.Collections.EMPTY_LIST) { result.partitions_ = java.util.Collections.unmodifiableList(result.partitions_); } edu.brown.hstore.Hstoreservice.TransactionFinishRequest returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.TransactionFinishRequest) { return mergeFrom((edu.brown.hstore.Hstoreservice.TransactionFinishRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.TransactionFinishRequest other) { if (other == edu.brown.hstore.Hstoreservice.TransactionFinishRequest.getDefaultInstance()) return this; if (other.hasTransactionId()) { setTransactionId(other.getTransactionId()); } if (!other.partitions_.isEmpty()) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } result.partitions_.addAll(other.partitions_); } if (other.hasStatus()) { setStatus(other.getStatus()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setTransactionId(input.readInt64()); break; } case 16: { addPartitions(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addPartitions(input.readInt32()); } input.popLimit(limit); break; } case 24: { int rawValue = input.readEnum(); edu.brown.hstore.Hstoreservice.Status value = edu.brown.hstore.Hstoreservice.Status.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { setStatus(value); } break; } } } } // required int64 transaction_id = 1; public boolean hasTransactionId() { return result.hasTransactionId(); } public long getTransactionId() { return result.getTransactionId(); } public Builder setTransactionId(long value) { result.hasTransactionId = true; result.transactionId_ = value; return this; } public Builder clearTransactionId() { result.hasTransactionId = false; result.transactionId_ = 0L; return this; } // repeated int32 partitions = 2 [packed = true]; public java.util.List<java.lang.Integer> getPartitionsList() { return java.util.Collections.unmodifiableList(result.partitions_); } public int getPartitionsCount() { return result.getPartitionsCount(); } public int getPartitions(int index) { return result.getPartitions(index); } public Builder setPartitions(int index, int value) { result.partitions_.set(index, value); return this; } public Builder addPartitions(int value) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } result.partitions_.add(value); return this; } public Builder addAllPartitions( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.partitions_); return this; } public Builder clearPartitions() { result.partitions_ = java.util.Collections.emptyList(); return this; } // required .edu.brown.hstore.Status status = 3; public boolean hasStatus() { return result.hasStatus(); } public edu.brown.hstore.Hstoreservice.Status getStatus() { return result.getStatus(); } public Builder setStatus(edu.brown.hstore.Hstoreservice.Status value) { if (value == null) { throw new NullPointerException(); } result.hasStatus = true; result.status_ = value; return this; } public Builder clearStatus() { result.hasStatus = false; result.status_ = edu.brown.hstore.Hstoreservice.Status.OK; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.TransactionFinishRequest) } static { defaultInstance = new TransactionFinishRequest(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.TransactionFinishRequest) } public static final class TransactionFinishResponse extends com.google.protobuf.GeneratedMessage { // Use TransactionFinishResponse.newBuilder() to construct. private TransactionFinishResponse() { initFields(); } private TransactionFinishResponse(boolean noInit) {} private static final TransactionFinishResponse defaultInstance; public static TransactionFinishResponse getDefaultInstance() { return defaultInstance; } public TransactionFinishResponse getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionFinishResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionFinishResponse_fieldAccessorTable; } // required int64 transaction_id = 1; public static final int TRANSACTION_ID_FIELD_NUMBER = 1; private boolean hasTransactionId; private long transactionId_ = 0L; public boolean hasTransactionId() { return hasTransactionId; } public long getTransactionId() { return transactionId_; } // repeated int32 partitions = 2 [packed = true]; public static final int PARTITIONS_FIELD_NUMBER = 2; private java.util.List<java.lang.Integer> partitions_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getPartitionsList() { return partitions_; } public int getPartitionsCount() { return partitions_.size(); } public int getPartitions(int index) { return partitions_.get(index); } private int partitionsMemoizedSerializedSize = -1; private void initFields() { } public final boolean isInitialized() { if (!hasTransactionId) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasTransactionId()) { output.writeInt64(1, getTransactionId()); } if (getPartitionsList().size() > 0) { output.writeRawVarint32(18); output.writeRawVarint32(partitionsMemoizedSerializedSize); } for (int element : getPartitionsList()) { output.writeInt32NoTag(element); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, getTransactionId()); } { int dataSize = 0; for (int element : getPartitionsList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getPartitionsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } partitionsMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.TransactionFinishResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionFinishResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionFinishResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionFinishResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionFinishResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionFinishResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionFinishResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionFinishResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionFinishResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionFinishResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.TransactionFinishResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.TransactionFinishResponse result; // Construct using edu.brown.hstore.Hstoreservice.TransactionFinishResponse.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.TransactionFinishResponse(); return builder; } protected edu.brown.hstore.Hstoreservice.TransactionFinishResponse internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.TransactionFinishResponse(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.TransactionFinishResponse.getDescriptor(); } public edu.brown.hstore.Hstoreservice.TransactionFinishResponse getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.TransactionFinishResponse.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.TransactionFinishResponse build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.TransactionFinishResponse buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.TransactionFinishResponse buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } if (result.partitions_ != java.util.Collections.EMPTY_LIST) { result.partitions_ = java.util.Collections.unmodifiableList(result.partitions_); } edu.brown.hstore.Hstoreservice.TransactionFinishResponse returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.TransactionFinishResponse) { return mergeFrom((edu.brown.hstore.Hstoreservice.TransactionFinishResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.TransactionFinishResponse other) { if (other == edu.brown.hstore.Hstoreservice.TransactionFinishResponse.getDefaultInstance()) return this; if (other.hasTransactionId()) { setTransactionId(other.getTransactionId()); } if (!other.partitions_.isEmpty()) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } result.partitions_.addAll(other.partitions_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setTransactionId(input.readInt64()); break; } case 16: { addPartitions(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addPartitions(input.readInt32()); } input.popLimit(limit); break; } } } } // required int64 transaction_id = 1; public boolean hasTransactionId() { return result.hasTransactionId(); } public long getTransactionId() { return result.getTransactionId(); } public Builder setTransactionId(long value) { result.hasTransactionId = true; result.transactionId_ = value; return this; } public Builder clearTransactionId() { result.hasTransactionId = false; result.transactionId_ = 0L; return this; } // repeated int32 partitions = 2 [packed = true]; public java.util.List<java.lang.Integer> getPartitionsList() { return java.util.Collections.unmodifiableList(result.partitions_); } public int getPartitionsCount() { return result.getPartitionsCount(); } public int getPartitions(int index) { return result.getPartitions(index); } public Builder setPartitions(int index, int value) { result.partitions_.set(index, value); return this; } public Builder addPartitions(int value) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } result.partitions_.add(value); return this; } public Builder addAllPartitions( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.partitions_); return this; } public Builder clearPartitions() { result.partitions_ = java.util.Collections.emptyList(); return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.TransactionFinishResponse) } static { defaultInstance = new TransactionFinishResponse(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.TransactionFinishResponse) } public static final class TransactionRedirectRequest extends com.google.protobuf.GeneratedMessage { // Use TransactionRedirectRequest.newBuilder() to construct. private TransactionRedirectRequest() { initFields(); } private TransactionRedirectRequest(boolean noInit) {} private static final TransactionRedirectRequest defaultInstance; public static TransactionRedirectRequest getDefaultInstance() { return defaultInstance; } public TransactionRedirectRequest getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionRedirectRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionRedirectRequest_fieldAccessorTable; } // required int32 sender_site = 1; public static final int SENDER_SITE_FIELD_NUMBER = 1; private boolean hasSenderSite; private int senderSite_ = 0; public boolean hasSenderSite() { return hasSenderSite; } public int getSenderSite() { return senderSite_; } // required bytes work = 2; public static final int WORK_FIELD_NUMBER = 2; private boolean hasWork; private com.google.protobuf.ByteString work_ = com.google.protobuf.ByteString.EMPTY; public boolean hasWork() { return hasWork; } public com.google.protobuf.ByteString getWork() { return work_; } // optional int64 orig_txn_id = 3; public static final int ORIG_TXN_ID_FIELD_NUMBER = 3; private boolean hasOrigTxnId; private long origTxnId_ = 0L; public boolean hasOrigTxnId() { return hasOrigTxnId; } public long getOrigTxnId() { return origTxnId_; } private void initFields() { } public final boolean isInitialized() { if (!hasSenderSite) return false; if (!hasWork) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasSenderSite()) { output.writeInt32(1, getSenderSite()); } if (hasWork()) { output.writeBytes(2, getWork()); } if (hasOrigTxnId()) { output.writeInt64(3, getOrigTxnId()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasSenderSite()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, getSenderSite()); } if (hasWork()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getWork()); } if (hasOrigTxnId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, getOrigTxnId()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.TransactionRedirectRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionRedirectRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionRedirectRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionRedirectRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionRedirectRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionRedirectRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionRedirectRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionRedirectRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionRedirectRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionRedirectRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.TransactionRedirectRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.TransactionRedirectRequest result; // Construct using edu.brown.hstore.Hstoreservice.TransactionRedirectRequest.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.TransactionRedirectRequest(); return builder; } protected edu.brown.hstore.Hstoreservice.TransactionRedirectRequest internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.TransactionRedirectRequest(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.TransactionRedirectRequest.getDescriptor(); } public edu.brown.hstore.Hstoreservice.TransactionRedirectRequest getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.TransactionRedirectRequest.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.TransactionRedirectRequest build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.TransactionRedirectRequest buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.TransactionRedirectRequest buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } edu.brown.hstore.Hstoreservice.TransactionRedirectRequest returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.TransactionRedirectRequest) { return mergeFrom((edu.brown.hstore.Hstoreservice.TransactionRedirectRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.TransactionRedirectRequest other) { if (other == edu.brown.hstore.Hstoreservice.TransactionRedirectRequest.getDefaultInstance()) return this; if (other.hasSenderSite()) { setSenderSite(other.getSenderSite()); } if (other.hasWork()) { setWork(other.getWork()); } if (other.hasOrigTxnId()) { setOrigTxnId(other.getOrigTxnId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setSenderSite(input.readInt32()); break; } case 18: { setWork(input.readBytes()); break; } case 24: { setOrigTxnId(input.readInt64()); break; } } } } // required int32 sender_site = 1; public boolean hasSenderSite() { return result.hasSenderSite(); } public int getSenderSite() { return result.getSenderSite(); } public Builder setSenderSite(int value) { result.hasSenderSite = true; result.senderSite_ = value; return this; } public Builder clearSenderSite() { result.hasSenderSite = false; result.senderSite_ = 0; return this; } // required bytes work = 2; public boolean hasWork() { return result.hasWork(); } public com.google.protobuf.ByteString getWork() { return result.getWork(); } public Builder setWork(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } result.hasWork = true; result.work_ = value; return this; } public Builder clearWork() { result.hasWork = false; result.work_ = getDefaultInstance().getWork(); return this; } // optional int64 orig_txn_id = 3; public boolean hasOrigTxnId() { return result.hasOrigTxnId(); } public long getOrigTxnId() { return result.getOrigTxnId(); } public Builder setOrigTxnId(long value) { result.hasOrigTxnId = true; result.origTxnId_ = value; return this; } public Builder clearOrigTxnId() { result.hasOrigTxnId = false; result.origTxnId_ = 0L; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.TransactionRedirectRequest) } static { defaultInstance = new TransactionRedirectRequest(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.TransactionRedirectRequest) } public static final class TransactionRedirectResponse extends com.google.protobuf.GeneratedMessage { // Use TransactionRedirectResponse.newBuilder() to construct. private TransactionRedirectResponse() { initFields(); } private TransactionRedirectResponse(boolean noInit) {} private static final TransactionRedirectResponse defaultInstance; public static TransactionRedirectResponse getDefaultInstance() { return defaultInstance; } public TransactionRedirectResponse getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionRedirectResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionRedirectResponse_fieldAccessorTable; } // required int32 sender_site = 1; public static final int SENDER_SITE_FIELD_NUMBER = 1; private boolean hasSenderSite; private int senderSite_ = 0; public boolean hasSenderSite() { return hasSenderSite; } public int getSenderSite() { return senderSite_; } // required bytes output = 2; public static final int OUTPUT_FIELD_NUMBER = 2; private boolean hasOutput; private com.google.protobuf.ByteString output_ = com.google.protobuf.ByteString.EMPTY; public boolean hasOutput() { return hasOutput; } public com.google.protobuf.ByteString getOutput() { return output_; } private void initFields() { } public final boolean isInitialized() { if (!hasSenderSite) return false; if (!hasOutput) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasSenderSite()) { output.writeInt32(1, getSenderSite()); } if (hasOutput()) { output.writeBytes(2, getOutput()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasSenderSite()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, getSenderSite()); } if (hasOutput()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getOutput()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.TransactionRedirectResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionRedirectResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionRedirectResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionRedirectResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionRedirectResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionRedirectResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionRedirectResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionRedirectResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionRedirectResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionRedirectResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.TransactionRedirectResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.TransactionRedirectResponse result; // Construct using edu.brown.hstore.Hstoreservice.TransactionRedirectResponse.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.TransactionRedirectResponse(); return builder; } protected edu.brown.hstore.Hstoreservice.TransactionRedirectResponse internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.TransactionRedirectResponse(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.TransactionRedirectResponse.getDescriptor(); } public edu.brown.hstore.Hstoreservice.TransactionRedirectResponse getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.TransactionRedirectResponse.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.TransactionRedirectResponse build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.TransactionRedirectResponse buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.TransactionRedirectResponse buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } edu.brown.hstore.Hstoreservice.TransactionRedirectResponse returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.TransactionRedirectResponse) { return mergeFrom((edu.brown.hstore.Hstoreservice.TransactionRedirectResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.TransactionRedirectResponse other) { if (other == edu.brown.hstore.Hstoreservice.TransactionRedirectResponse.getDefaultInstance()) return this; if (other.hasSenderSite()) { setSenderSite(other.getSenderSite()); } if (other.hasOutput()) { setOutput(other.getOutput()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setSenderSite(input.readInt32()); break; } case 18: { setOutput(input.readBytes()); break; } } } } // required int32 sender_site = 1; public boolean hasSenderSite() { return result.hasSenderSite(); } public int getSenderSite() { return result.getSenderSite(); } public Builder setSenderSite(int value) { result.hasSenderSite = true; result.senderSite_ = value; return this; } public Builder clearSenderSite() { result.hasSenderSite = false; result.senderSite_ = 0; return this; } // required bytes output = 2; public boolean hasOutput() { return result.hasOutput(); } public com.google.protobuf.ByteString getOutput() { return result.getOutput(); } public Builder setOutput(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } result.hasOutput = true; result.output_ = value; return this; } public Builder clearOutput() { result.hasOutput = false; result.output_ = getDefaultInstance().getOutput(); return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.TransactionRedirectResponse) } static { defaultInstance = new TransactionRedirectResponse(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.TransactionRedirectResponse) } public static final class TransactionDebugRequest extends com.google.protobuf.GeneratedMessage { // Use TransactionDebugRequest.newBuilder() to construct. private TransactionDebugRequest() { initFields(); } private TransactionDebugRequest(boolean noInit) {} private static final TransactionDebugRequest defaultInstance; public static TransactionDebugRequest getDefaultInstance() { return defaultInstance; } public TransactionDebugRequest getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionDebugRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionDebugRequest_fieldAccessorTable; } // required int32 sender_site = 1; public static final int SENDER_SITE_FIELD_NUMBER = 1; private boolean hasSenderSite; private int senderSite_ = 0; public boolean hasSenderSite() { return hasSenderSite; } public int getSenderSite() { return senderSite_; } // required int64 transaction_id = 2; public static final int TRANSACTION_ID_FIELD_NUMBER = 2; private boolean hasTransactionId; private long transactionId_ = 0L; public boolean hasTransactionId() { return hasTransactionId; } public long getTransactionId() { return transactionId_; } private void initFields() { } public final boolean isInitialized() { if (!hasSenderSite) return false; if (!hasTransactionId) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasSenderSite()) { output.writeInt32(1, getSenderSite()); } if (hasTransactionId()) { output.writeInt64(2, getTransactionId()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasSenderSite()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, getSenderSite()); } if (hasTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, getTransactionId()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.TransactionDebugRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionDebugRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionDebugRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionDebugRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionDebugRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionDebugRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionDebugRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionDebugRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionDebugRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionDebugRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.TransactionDebugRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.TransactionDebugRequest result; // Construct using edu.brown.hstore.Hstoreservice.TransactionDebugRequest.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.TransactionDebugRequest(); return builder; } protected edu.brown.hstore.Hstoreservice.TransactionDebugRequest internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.TransactionDebugRequest(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.TransactionDebugRequest.getDescriptor(); } public edu.brown.hstore.Hstoreservice.TransactionDebugRequest getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.TransactionDebugRequest.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.TransactionDebugRequest build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.TransactionDebugRequest buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.TransactionDebugRequest buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } edu.brown.hstore.Hstoreservice.TransactionDebugRequest returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.TransactionDebugRequest) { return mergeFrom((edu.brown.hstore.Hstoreservice.TransactionDebugRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.TransactionDebugRequest other) { if (other == edu.brown.hstore.Hstoreservice.TransactionDebugRequest.getDefaultInstance()) return this; if (other.hasSenderSite()) { setSenderSite(other.getSenderSite()); } if (other.hasTransactionId()) { setTransactionId(other.getTransactionId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setSenderSite(input.readInt32()); break; } case 16: { setTransactionId(input.readInt64()); break; } } } } // required int32 sender_site = 1; public boolean hasSenderSite() { return result.hasSenderSite(); } public int getSenderSite() { return result.getSenderSite(); } public Builder setSenderSite(int value) { result.hasSenderSite = true; result.senderSite_ = value; return this; } public Builder clearSenderSite() { result.hasSenderSite = false; result.senderSite_ = 0; return this; } // required int64 transaction_id = 2; public boolean hasTransactionId() { return result.hasTransactionId(); } public long getTransactionId() { return result.getTransactionId(); } public Builder setTransactionId(long value) { result.hasTransactionId = true; result.transactionId_ = value; return this; } public Builder clearTransactionId() { result.hasTransactionId = false; result.transactionId_ = 0L; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.TransactionDebugRequest) } static { defaultInstance = new TransactionDebugRequest(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.TransactionDebugRequest) } public static final class TransactionDebugResponse extends com.google.protobuf.GeneratedMessage { // Use TransactionDebugResponse.newBuilder() to construct. private TransactionDebugResponse() { initFields(); } private TransactionDebugResponse(boolean noInit) {} private static final TransactionDebugResponse defaultInstance; public static TransactionDebugResponse getDefaultInstance() { return defaultInstance; } public TransactionDebugResponse getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionDebugResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TransactionDebugResponse_fieldAccessorTable; } // required int32 sender_site = 1; public static final int SENDER_SITE_FIELD_NUMBER = 1; private boolean hasSenderSite; private int senderSite_ = 0; public boolean hasSenderSite() { return hasSenderSite; } public int getSenderSite() { return senderSite_; } // required .edu.brown.hstore.Status status = 2; public static final int STATUS_FIELD_NUMBER = 2; private boolean hasStatus; private edu.brown.hstore.Hstoreservice.Status status_; public boolean hasStatus() { return hasStatus; } public edu.brown.hstore.Hstoreservice.Status getStatus() { return status_; } // required string debug = 3; public static final int DEBUG_FIELD_NUMBER = 3; private boolean hasDebug; private java.lang.String debug_ = ""; public boolean hasDebug() { return hasDebug; } public java.lang.String getDebug() { return debug_; } private void initFields() { status_ = edu.brown.hstore.Hstoreservice.Status.OK; } public final boolean isInitialized() { if (!hasSenderSite) return false; if (!hasStatus) return false; if (!hasDebug) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasSenderSite()) { output.writeInt32(1, getSenderSite()); } if (hasStatus()) { output.writeEnum(2, getStatus().getNumber()); } if (hasDebug()) { output.writeString(3, getDebug()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasSenderSite()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, getSenderSite()); } if (hasStatus()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, getStatus().getNumber()); } if (hasDebug()) { size += com.google.protobuf.CodedOutputStream .computeStringSize(3, getDebug()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.TransactionDebugResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionDebugResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionDebugResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionDebugResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionDebugResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionDebugResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionDebugResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionDebugResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TransactionDebugResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TransactionDebugResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.TransactionDebugResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.TransactionDebugResponse result; // Construct using edu.brown.hstore.Hstoreservice.TransactionDebugResponse.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.TransactionDebugResponse(); return builder; } protected edu.brown.hstore.Hstoreservice.TransactionDebugResponse internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.TransactionDebugResponse(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.TransactionDebugResponse.getDescriptor(); } public edu.brown.hstore.Hstoreservice.TransactionDebugResponse getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.TransactionDebugResponse.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.TransactionDebugResponse build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.TransactionDebugResponse buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.TransactionDebugResponse buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } edu.brown.hstore.Hstoreservice.TransactionDebugResponse returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.TransactionDebugResponse) { return mergeFrom((edu.brown.hstore.Hstoreservice.TransactionDebugResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.TransactionDebugResponse other) { if (other == edu.brown.hstore.Hstoreservice.TransactionDebugResponse.getDefaultInstance()) return this; if (other.hasSenderSite()) { setSenderSite(other.getSenderSite()); } if (other.hasStatus()) { setStatus(other.getStatus()); } if (other.hasDebug()) { setDebug(other.getDebug()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setSenderSite(input.readInt32()); break; } case 16: { int rawValue = input.readEnum(); edu.brown.hstore.Hstoreservice.Status value = edu.brown.hstore.Hstoreservice.Status.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { setStatus(value); } break; } case 26: { setDebug(input.readString()); break; } } } } // required int32 sender_site = 1; public boolean hasSenderSite() { return result.hasSenderSite(); } public int getSenderSite() { return result.getSenderSite(); } public Builder setSenderSite(int value) { result.hasSenderSite = true; result.senderSite_ = value; return this; } public Builder clearSenderSite() { result.hasSenderSite = false; result.senderSite_ = 0; return this; } // required .edu.brown.hstore.Status status = 2; public boolean hasStatus() { return result.hasStatus(); } public edu.brown.hstore.Hstoreservice.Status getStatus() { return result.getStatus(); } public Builder setStatus(edu.brown.hstore.Hstoreservice.Status value) { if (value == null) { throw new NullPointerException(); } result.hasStatus = true; result.status_ = value; return this; } public Builder clearStatus() { result.hasStatus = false; result.status_ = edu.brown.hstore.Hstoreservice.Status.OK; return this; } // required string debug = 3; public boolean hasDebug() { return result.hasDebug(); } public java.lang.String getDebug() { return result.getDebug(); } public Builder setDebug(java.lang.String value) { if (value == null) { throw new NullPointerException(); } result.hasDebug = true; result.debug_ = value; return this; } public Builder clearDebug() { result.hasDebug = false; result.debug_ = getDefaultInstance().getDebug(); return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.TransactionDebugResponse) } static { defaultInstance = new TransactionDebugResponse(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.TransactionDebugResponse) } public static final class SendDataRequest extends com.google.protobuf.GeneratedMessage { // Use SendDataRequest.newBuilder() to construct. private SendDataRequest() { initFields(); } private SendDataRequest(boolean noInit) {} private static final SendDataRequest defaultInstance; public static SendDataRequest getDefaultInstance() { return defaultInstance; } public SendDataRequest getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_SendDataRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_SendDataRequest_fieldAccessorTable; } // required int64 transaction_id = 1; public static final int TRANSACTION_ID_FIELD_NUMBER = 1; private boolean hasTransactionId; private long transactionId_ = 0L; public boolean hasTransactionId() { return hasTransactionId; } public long getTransactionId() { return transactionId_; } // required int32 sender_site = 2; public static final int SENDER_SITE_FIELD_NUMBER = 2; private boolean hasSenderSite; private int senderSite_ = 0; public boolean hasSenderSite() { return hasSenderSite; } public int getSenderSite() { return senderSite_; } // repeated int32 dep_id = 3 [packed = true]; public static final int DEP_ID_FIELD_NUMBER = 3; private java.util.List<java.lang.Integer> depId_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getDepIdList() { return depId_; } public int getDepIdCount() { return depId_.size(); } public int getDepId(int index) { return depId_.get(index); } private int depIdMemoizedSerializedSize = -1; // repeated bytes data = 4; public static final int DATA_FIELD_NUMBER = 4; private java.util.List<com.google.protobuf.ByteString> data_ = java.util.Collections.emptyList(); public java.util.List<com.google.protobuf.ByteString> getDataList() { return data_; } public int getDataCount() { return data_.size(); } public com.google.protobuf.ByteString getData(int index) { return data_.get(index); } private void initFields() { } public final boolean isInitialized() { if (!hasTransactionId) return false; if (!hasSenderSite) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasTransactionId()) { output.writeInt64(1, getTransactionId()); } if (hasSenderSite()) { output.writeInt32(2, getSenderSite()); } if (getDepIdList().size() > 0) { output.writeRawVarint32(26); output.writeRawVarint32(depIdMemoizedSerializedSize); } for (int element : getDepIdList()) { output.writeInt32NoTag(element); } for (com.google.protobuf.ByteString element : getDataList()) { output.writeBytes(4, element); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, getTransactionId()); } if (hasSenderSite()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, getSenderSite()); } { int dataSize = 0; for (int element : getDepIdList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getDepIdList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } depIdMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (com.google.protobuf.ByteString element : getDataList()) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(element); } size += dataSize; size += 1 * getDataList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.SendDataRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.SendDataRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.SendDataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.SendDataRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.SendDataRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.SendDataRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.SendDataRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.SendDataRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.SendDataRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.SendDataRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.SendDataRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.SendDataRequest result; // Construct using edu.brown.hstore.Hstoreservice.SendDataRequest.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.SendDataRequest(); return builder; } protected edu.brown.hstore.Hstoreservice.SendDataRequest internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.SendDataRequest(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.SendDataRequest.getDescriptor(); } public edu.brown.hstore.Hstoreservice.SendDataRequest getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.SendDataRequest.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.SendDataRequest build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.SendDataRequest buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.SendDataRequest buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } if (result.depId_ != java.util.Collections.EMPTY_LIST) { result.depId_ = java.util.Collections.unmodifiableList(result.depId_); } if (result.data_ != java.util.Collections.EMPTY_LIST) { result.data_ = java.util.Collections.unmodifiableList(result.data_); } edu.brown.hstore.Hstoreservice.SendDataRequest returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.SendDataRequest) { return mergeFrom((edu.brown.hstore.Hstoreservice.SendDataRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.SendDataRequest other) { if (other == edu.brown.hstore.Hstoreservice.SendDataRequest.getDefaultInstance()) return this; if (other.hasTransactionId()) { setTransactionId(other.getTransactionId()); } if (other.hasSenderSite()) { setSenderSite(other.getSenderSite()); } if (!other.depId_.isEmpty()) { if (result.depId_.isEmpty()) { result.depId_ = new java.util.ArrayList<java.lang.Integer>(); } result.depId_.addAll(other.depId_); } if (!other.data_.isEmpty()) { if (result.data_.isEmpty()) { result.data_ = new java.util.ArrayList<com.google.protobuf.ByteString>(); } result.data_.addAll(other.data_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setTransactionId(input.readInt64()); break; } case 16: { setSenderSite(input.readInt32()); break; } case 24: { addDepId(input.readInt32()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addDepId(input.readInt32()); } input.popLimit(limit); break; } case 34: { addData(input.readBytes()); break; } } } } // required int64 transaction_id = 1; public boolean hasTransactionId() { return result.hasTransactionId(); } public long getTransactionId() { return result.getTransactionId(); } public Builder setTransactionId(long value) { result.hasTransactionId = true; result.transactionId_ = value; return this; } public Builder clearTransactionId() { result.hasTransactionId = false; result.transactionId_ = 0L; return this; } // required int32 sender_site = 2; public boolean hasSenderSite() { return result.hasSenderSite(); } public int getSenderSite() { return result.getSenderSite(); } public Builder setSenderSite(int value) { result.hasSenderSite = true; result.senderSite_ = value; return this; } public Builder clearSenderSite() { result.hasSenderSite = false; result.senderSite_ = 0; return this; } // repeated int32 dep_id = 3 [packed = true]; public java.util.List<java.lang.Integer> getDepIdList() { return java.util.Collections.unmodifiableList(result.depId_); } public int getDepIdCount() { return result.getDepIdCount(); } public int getDepId(int index) { return result.getDepId(index); } public Builder setDepId(int index, int value) { result.depId_.set(index, value); return this; } public Builder addDepId(int value) { if (result.depId_.isEmpty()) { result.depId_ = new java.util.ArrayList<java.lang.Integer>(); } result.depId_.add(value); return this; } public Builder addAllDepId( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.depId_.isEmpty()) { result.depId_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.depId_); return this; } public Builder clearDepId() { result.depId_ = java.util.Collections.emptyList(); return this; } // repeated bytes data = 4; public java.util.List<com.google.protobuf.ByteString> getDataList() { return java.util.Collections.unmodifiableList(result.data_); } public int getDataCount() { return result.getDataCount(); } public com.google.protobuf.ByteString getData(int index) { return result.getData(index); } public Builder setData(int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } result.data_.set(index, value); return this; } public Builder addData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } if (result.data_.isEmpty()) { result.data_ = new java.util.ArrayList<com.google.protobuf.ByteString>(); } result.data_.add(value); return this; } public Builder addAllData( java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { if (result.data_.isEmpty()) { result.data_ = new java.util.ArrayList<com.google.protobuf.ByteString>(); } super.addAll(values, result.data_); return this; } public Builder clearData() { result.data_ = java.util.Collections.emptyList(); return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.SendDataRequest) } static { defaultInstance = new SendDataRequest(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.SendDataRequest) } public static final class SendDataResponse extends com.google.protobuf.GeneratedMessage { // Use SendDataResponse.newBuilder() to construct. private SendDataResponse() { initFields(); } private SendDataResponse(boolean noInit) {} private static final SendDataResponse defaultInstance; public static SendDataResponse getDefaultInstance() { return defaultInstance; } public SendDataResponse getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_SendDataResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_SendDataResponse_fieldAccessorTable; } // required int64 transaction_id = 1; public static final int TRANSACTION_ID_FIELD_NUMBER = 1; private boolean hasTransactionId; private long transactionId_ = 0L; public boolean hasTransactionId() { return hasTransactionId; } public long getTransactionId() { return transactionId_; } // repeated int32 partitions = 2 [packed = true]; public static final int PARTITIONS_FIELD_NUMBER = 2; private java.util.List<java.lang.Integer> partitions_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getPartitionsList() { return partitions_; } public int getPartitionsCount() { return partitions_.size(); } public int getPartitions(int index) { return partitions_.get(index); } private int partitionsMemoizedSerializedSize = -1; // required int32 sender_site = 3; public static final int SENDER_SITE_FIELD_NUMBER = 3; private boolean hasSenderSite; private int senderSite_ = 0; public boolean hasSenderSite() { return hasSenderSite; } public int getSenderSite() { return senderSite_; } // required .edu.brown.hstore.Status status = 4; public static final int STATUS_FIELD_NUMBER = 4; private boolean hasStatus; private edu.brown.hstore.Hstoreservice.Status status_; public boolean hasStatus() { return hasStatus; } public edu.brown.hstore.Hstoreservice.Status getStatus() { return status_; } private void initFields() { status_ = edu.brown.hstore.Hstoreservice.Status.OK; } public final boolean isInitialized() { if (!hasTransactionId) return false; if (!hasSenderSite) return false; if (!hasStatus) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasTransactionId()) { output.writeInt64(1, getTransactionId()); } if (getPartitionsList().size() > 0) { output.writeRawVarint32(18); output.writeRawVarint32(partitionsMemoizedSerializedSize); } for (int element : getPartitionsList()) { output.writeInt32NoTag(element); } if (hasSenderSite()) { output.writeInt32(3, getSenderSite()); } if (hasStatus()) { output.writeEnum(4, getStatus().getNumber()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, getTransactionId()); } { int dataSize = 0; for (int element : getPartitionsList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getPartitionsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } partitionsMemoizedSerializedSize = dataSize; } if (hasSenderSite()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, getSenderSite()); } if (hasStatus()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, getStatus().getNumber()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.SendDataResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.SendDataResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.SendDataResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.SendDataResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.SendDataResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.SendDataResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.SendDataResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.SendDataResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.SendDataResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.SendDataResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.SendDataResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.SendDataResponse result; // Construct using edu.brown.hstore.Hstoreservice.SendDataResponse.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.SendDataResponse(); return builder; } protected edu.brown.hstore.Hstoreservice.SendDataResponse internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.SendDataResponse(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.SendDataResponse.getDescriptor(); } public edu.brown.hstore.Hstoreservice.SendDataResponse getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.SendDataResponse.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.SendDataResponse build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.SendDataResponse buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.SendDataResponse buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } if (result.partitions_ != java.util.Collections.EMPTY_LIST) { result.partitions_ = java.util.Collections.unmodifiableList(result.partitions_); } edu.brown.hstore.Hstoreservice.SendDataResponse returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.SendDataResponse) { return mergeFrom((edu.brown.hstore.Hstoreservice.SendDataResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.SendDataResponse other) { if (other == edu.brown.hstore.Hstoreservice.SendDataResponse.getDefaultInstance()) return this; if (other.hasTransactionId()) { setTransactionId(other.getTransactionId()); } if (!other.partitions_.isEmpty()) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } result.partitions_.addAll(other.partitions_); } if (other.hasSenderSite()) { setSenderSite(other.getSenderSite()); } if (other.hasStatus()) { setStatus(other.getStatus()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setTransactionId(input.readInt64()); break; } case 16: { addPartitions(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addPartitions(input.readInt32()); } input.popLimit(limit); break; } case 24: { setSenderSite(input.readInt32()); break; } case 32: { int rawValue = input.readEnum(); edu.brown.hstore.Hstoreservice.Status value = edu.brown.hstore.Hstoreservice.Status.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(4, rawValue); } else { setStatus(value); } break; } } } } // required int64 transaction_id = 1; public boolean hasTransactionId() { return result.hasTransactionId(); } public long getTransactionId() { return result.getTransactionId(); } public Builder setTransactionId(long value) { result.hasTransactionId = true; result.transactionId_ = value; return this; } public Builder clearTransactionId() { result.hasTransactionId = false; result.transactionId_ = 0L; return this; } // repeated int32 partitions = 2 [packed = true]; public java.util.List<java.lang.Integer> getPartitionsList() { return java.util.Collections.unmodifiableList(result.partitions_); } public int getPartitionsCount() { return result.getPartitionsCount(); } public int getPartitions(int index) { return result.getPartitions(index); } public Builder setPartitions(int index, int value) { result.partitions_.set(index, value); return this; } public Builder addPartitions(int value) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } result.partitions_.add(value); return this; } public Builder addAllPartitions( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.partitions_.isEmpty()) { result.partitions_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.partitions_); return this; } public Builder clearPartitions() { result.partitions_ = java.util.Collections.emptyList(); return this; } // required int32 sender_site = 3; public boolean hasSenderSite() { return result.hasSenderSite(); } public int getSenderSite() { return result.getSenderSite(); } public Builder setSenderSite(int value) { result.hasSenderSite = true; result.senderSite_ = value; return this; } public Builder clearSenderSite() { result.hasSenderSite = false; result.senderSite_ = 0; return this; } // required .edu.brown.hstore.Status status = 4; public boolean hasStatus() { return result.hasStatus(); } public edu.brown.hstore.Hstoreservice.Status getStatus() { return result.getStatus(); } public Builder setStatus(edu.brown.hstore.Hstoreservice.Status value) { if (value == null) { throw new NullPointerException(); } result.hasStatus = true; result.status_ = value; return this; } public Builder clearStatus() { result.hasStatus = false; result.status_ = edu.brown.hstore.Hstoreservice.Status.OK; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.SendDataResponse) } static { defaultInstance = new SendDataResponse(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.SendDataResponse) } public static final class InitializeRequest extends com.google.protobuf.GeneratedMessage { // Use InitializeRequest.newBuilder() to construct. private InitializeRequest() { initFields(); } private InitializeRequest(boolean noInit) {} private static final InitializeRequest defaultInstance; public static InitializeRequest getDefaultInstance() { return defaultInstance; } public InitializeRequest getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_InitializeRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_InitializeRequest_fieldAccessorTable; } // required int32 sender_site = 1; public static final int SENDER_SITE_FIELD_NUMBER = 1; private boolean hasSenderSite; private int senderSite_ = 0; public boolean hasSenderSite() { return hasSenderSite; } public int getSenderSite() { return senderSite_; } // required int64 instance_id = 2; public static final int INSTANCE_ID_FIELD_NUMBER = 2; private boolean hasInstanceId; private long instanceId_ = 0L; public boolean hasInstanceId() { return hasInstanceId; } public long getInstanceId() { return instanceId_; } private void initFields() { } public final boolean isInitialized() { if (!hasSenderSite) return false; if (!hasInstanceId) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasSenderSite()) { output.writeInt32(1, getSenderSite()); } if (hasInstanceId()) { output.writeInt64(2, getInstanceId()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasSenderSite()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, getSenderSite()); } if (hasInstanceId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, getInstanceId()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.InitializeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.InitializeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.InitializeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.InitializeRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.InitializeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.InitializeRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.InitializeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.InitializeRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.InitializeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.InitializeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.InitializeRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.InitializeRequest result; // Construct using edu.brown.hstore.Hstoreservice.InitializeRequest.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.InitializeRequest(); return builder; } protected edu.brown.hstore.Hstoreservice.InitializeRequest internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.InitializeRequest(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.InitializeRequest.getDescriptor(); } public edu.brown.hstore.Hstoreservice.InitializeRequest getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.InitializeRequest.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.InitializeRequest build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.InitializeRequest buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.InitializeRequest buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } edu.brown.hstore.Hstoreservice.InitializeRequest returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.InitializeRequest) { return mergeFrom((edu.brown.hstore.Hstoreservice.InitializeRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.InitializeRequest other) { if (other == edu.brown.hstore.Hstoreservice.InitializeRequest.getDefaultInstance()) return this; if (other.hasSenderSite()) { setSenderSite(other.getSenderSite()); } if (other.hasInstanceId()) { setInstanceId(other.getInstanceId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setSenderSite(input.readInt32()); break; } case 16: { setInstanceId(input.readInt64()); break; } } } } // required int32 sender_site = 1; public boolean hasSenderSite() { return result.hasSenderSite(); } public int getSenderSite() { return result.getSenderSite(); } public Builder setSenderSite(int value) { result.hasSenderSite = true; result.senderSite_ = value; return this; } public Builder clearSenderSite() { result.hasSenderSite = false; result.senderSite_ = 0; return this; } // required int64 instance_id = 2; public boolean hasInstanceId() { return result.hasInstanceId(); } public long getInstanceId() { return result.getInstanceId(); } public Builder setInstanceId(long value) { result.hasInstanceId = true; result.instanceId_ = value; return this; } public Builder clearInstanceId() { result.hasInstanceId = false; result.instanceId_ = 0L; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.InitializeRequest) } static { defaultInstance = new InitializeRequest(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.InitializeRequest) } public static final class InitializeResponse extends com.google.protobuf.GeneratedMessage { // Use InitializeResponse.newBuilder() to construct. private InitializeResponse() { initFields(); } private InitializeResponse(boolean noInit) {} private static final InitializeResponse defaultInstance; public static InitializeResponse getDefaultInstance() { return defaultInstance; } public InitializeResponse getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_InitializeResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_InitializeResponse_fieldAccessorTable; } // required int32 sender_site = 1; public static final int SENDER_SITE_FIELD_NUMBER = 1; private boolean hasSenderSite; private int senderSite_ = 0; public boolean hasSenderSite() { return hasSenderSite; } public int getSenderSite() { return senderSite_; } // required .edu.brown.hstore.Status status = 2; public static final int STATUS_FIELD_NUMBER = 2; private boolean hasStatus; private edu.brown.hstore.Hstoreservice.Status status_; public boolean hasStatus() { return hasStatus; } public edu.brown.hstore.Hstoreservice.Status getStatus() { return status_; } private void initFields() { status_ = edu.brown.hstore.Hstoreservice.Status.OK; } public final boolean isInitialized() { if (!hasSenderSite) return false; if (!hasStatus) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasSenderSite()) { output.writeInt32(1, getSenderSite()); } if (hasStatus()) { output.writeEnum(2, getStatus().getNumber()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasSenderSite()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, getSenderSite()); } if (hasStatus()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, getStatus().getNumber()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.InitializeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.InitializeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.InitializeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.InitializeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.InitializeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.InitializeResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.InitializeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.InitializeResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.InitializeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.InitializeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.InitializeResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.InitializeResponse result; // Construct using edu.brown.hstore.Hstoreservice.InitializeResponse.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.InitializeResponse(); return builder; } protected edu.brown.hstore.Hstoreservice.InitializeResponse internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.InitializeResponse(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.InitializeResponse.getDescriptor(); } public edu.brown.hstore.Hstoreservice.InitializeResponse getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.InitializeResponse.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.InitializeResponse build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.InitializeResponse buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.InitializeResponse buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } edu.brown.hstore.Hstoreservice.InitializeResponse returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.InitializeResponse) { return mergeFrom((edu.brown.hstore.Hstoreservice.InitializeResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.InitializeResponse other) { if (other == edu.brown.hstore.Hstoreservice.InitializeResponse.getDefaultInstance()) return this; if (other.hasSenderSite()) { setSenderSite(other.getSenderSite()); } if (other.hasStatus()) { setStatus(other.getStatus()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setSenderSite(input.readInt32()); break; } case 16: { int rawValue = input.readEnum(); edu.brown.hstore.Hstoreservice.Status value = edu.brown.hstore.Hstoreservice.Status.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { setStatus(value); } break; } } } } // required int32 sender_site = 1; public boolean hasSenderSite() { return result.hasSenderSite(); } public int getSenderSite() { return result.getSenderSite(); } public Builder setSenderSite(int value) { result.hasSenderSite = true; result.senderSite_ = value; return this; } public Builder clearSenderSite() { result.hasSenderSite = false; result.senderSite_ = 0; return this; } // required .edu.brown.hstore.Status status = 2; public boolean hasStatus() { return result.hasStatus(); } public edu.brown.hstore.Hstoreservice.Status getStatus() { return result.getStatus(); } public Builder setStatus(edu.brown.hstore.Hstoreservice.Status value) { if (value == null) { throw new NullPointerException(); } result.hasStatus = true; result.status_ = value; return this; } public Builder clearStatus() { result.hasStatus = false; result.status_ = edu.brown.hstore.Hstoreservice.Status.OK; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.InitializeResponse) } static { defaultInstance = new InitializeResponse(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.InitializeResponse) } public static final class ShutdownPrepareRequest extends com.google.protobuf.GeneratedMessage { // Use ShutdownPrepareRequest.newBuilder() to construct. private ShutdownPrepareRequest() { initFields(); } private ShutdownPrepareRequest(boolean noInit) {} private static final ShutdownPrepareRequest defaultInstance; public static ShutdownPrepareRequest getDefaultInstance() { return defaultInstance; } public ShutdownPrepareRequest getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_ShutdownPrepareRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_ShutdownPrepareRequest_fieldAccessorTable; } // required int32 sender_site = 1; public static final int SENDER_SITE_FIELD_NUMBER = 1; private boolean hasSenderSite; private int senderSite_ = 0; public boolean hasSenderSite() { return hasSenderSite; } public int getSenderSite() { return senderSite_; } // optional bytes error = 2; public static final int ERROR_FIELD_NUMBER = 2; private boolean hasError; private com.google.protobuf.ByteString error_ = com.google.protobuf.ByteString.EMPTY; public boolean hasError() { return hasError; } public com.google.protobuf.ByteString getError() { return error_; } private void initFields() { } public final boolean isInitialized() { if (!hasSenderSite) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasSenderSite()) { output.writeInt32(1, getSenderSite()); } if (hasError()) { output.writeBytes(2, getError()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasSenderSite()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, getSenderSite()); } if (hasError()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getError()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest result; // Construct using edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest(); return builder; } protected edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest.getDescriptor(); } public edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest) { return mergeFrom((edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest other) { if (other == edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest.getDefaultInstance()) return this; if (other.hasSenderSite()) { setSenderSite(other.getSenderSite()); } if (other.hasError()) { setError(other.getError()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setSenderSite(input.readInt32()); break; } case 18: { setError(input.readBytes()); break; } } } } // required int32 sender_site = 1; public boolean hasSenderSite() { return result.hasSenderSite(); } public int getSenderSite() { return result.getSenderSite(); } public Builder setSenderSite(int value) { result.hasSenderSite = true; result.senderSite_ = value; return this; } public Builder clearSenderSite() { result.hasSenderSite = false; result.senderSite_ = 0; return this; } // optional bytes error = 2; public boolean hasError() { return result.hasError(); } public com.google.protobuf.ByteString getError() { return result.getError(); } public Builder setError(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } result.hasError = true; result.error_ = value; return this; } public Builder clearError() { result.hasError = false; result.error_ = getDefaultInstance().getError(); return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.ShutdownPrepareRequest) } static { defaultInstance = new ShutdownPrepareRequest(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.ShutdownPrepareRequest) } public static final class ShutdownPrepareResponse extends com.google.protobuf.GeneratedMessage { // Use ShutdownPrepareResponse.newBuilder() to construct. private ShutdownPrepareResponse() { initFields(); } private ShutdownPrepareResponse(boolean noInit) {} private static final ShutdownPrepareResponse defaultInstance; public static ShutdownPrepareResponse getDefaultInstance() { return defaultInstance; } public ShutdownPrepareResponse getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_ShutdownPrepareResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_ShutdownPrepareResponse_fieldAccessorTable; } // required int32 sender_site = 1; public static final int SENDER_SITE_FIELD_NUMBER = 1; private boolean hasSenderSite; private int senderSite_ = 0; public boolean hasSenderSite() { return hasSenderSite; } public int getSenderSite() { return senderSite_; } private void initFields() { } public final boolean isInitialized() { if (!hasSenderSite) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasSenderSite()) { output.writeInt32(1, getSenderSite()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasSenderSite()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, getSenderSite()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse result; // Construct using edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse(); return builder; } protected edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse.getDescriptor(); } public edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse) { return mergeFrom((edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse other) { if (other == edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse.getDefaultInstance()) return this; if (other.hasSenderSite()) { setSenderSite(other.getSenderSite()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setSenderSite(input.readInt32()); break; } } } } // required int32 sender_site = 1; public boolean hasSenderSite() { return result.hasSenderSite(); } public int getSenderSite() { return result.getSenderSite(); } public Builder setSenderSite(int value) { result.hasSenderSite = true; result.senderSite_ = value; return this; } public Builder clearSenderSite() { result.hasSenderSite = false; result.senderSite_ = 0; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.ShutdownPrepareResponse) } static { defaultInstance = new ShutdownPrepareResponse(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.ShutdownPrepareResponse) } public static final class ShutdownRequest extends com.google.protobuf.GeneratedMessage { // Use ShutdownRequest.newBuilder() to construct. private ShutdownRequest() { initFields(); } private ShutdownRequest(boolean noInit) {} private static final ShutdownRequest defaultInstance; public static ShutdownRequest getDefaultInstance() { return defaultInstance; } public ShutdownRequest getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_ShutdownRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_ShutdownRequest_fieldAccessorTable; } // required int32 sender_site = 1; public static final int SENDER_SITE_FIELD_NUMBER = 1; private boolean hasSenderSite; private int senderSite_ = 0; public boolean hasSenderSite() { return hasSenderSite; } public int getSenderSite() { return senderSite_; } // required int32 exit_status = 2; public static final int EXIT_STATUS_FIELD_NUMBER = 2; private boolean hasExitStatus; private int exitStatus_ = 0; public boolean hasExitStatus() { return hasExitStatus; } public int getExitStatus() { return exitStatus_; } private void initFields() { } public final boolean isInitialized() { if (!hasSenderSite) return false; if (!hasExitStatus) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasSenderSite()) { output.writeInt32(1, getSenderSite()); } if (hasExitStatus()) { output.writeInt32(2, getExitStatus()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasSenderSite()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, getSenderSite()); } if (hasExitStatus()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, getExitStatus()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.ShutdownRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.ShutdownRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.ShutdownRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.ShutdownRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.ShutdownRequest result; // Construct using edu.brown.hstore.Hstoreservice.ShutdownRequest.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.ShutdownRequest(); return builder; } protected edu.brown.hstore.Hstoreservice.ShutdownRequest internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.ShutdownRequest(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.ShutdownRequest.getDescriptor(); } public edu.brown.hstore.Hstoreservice.ShutdownRequest getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.ShutdownRequest.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.ShutdownRequest build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.ShutdownRequest buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.ShutdownRequest buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } edu.brown.hstore.Hstoreservice.ShutdownRequest returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.ShutdownRequest) { return mergeFrom((edu.brown.hstore.Hstoreservice.ShutdownRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.ShutdownRequest other) { if (other == edu.brown.hstore.Hstoreservice.ShutdownRequest.getDefaultInstance()) return this; if (other.hasSenderSite()) { setSenderSite(other.getSenderSite()); } if (other.hasExitStatus()) { setExitStatus(other.getExitStatus()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setSenderSite(input.readInt32()); break; } case 16: { setExitStatus(input.readInt32()); break; } } } } // required int32 sender_site = 1; public boolean hasSenderSite() { return result.hasSenderSite(); } public int getSenderSite() { return result.getSenderSite(); } public Builder setSenderSite(int value) { result.hasSenderSite = true; result.senderSite_ = value; return this; } public Builder clearSenderSite() { result.hasSenderSite = false; result.senderSite_ = 0; return this; } // required int32 exit_status = 2; public boolean hasExitStatus() { return result.hasExitStatus(); } public int getExitStatus() { return result.getExitStatus(); } public Builder setExitStatus(int value) { result.hasExitStatus = true; result.exitStatus_ = value; return this; } public Builder clearExitStatus() { result.hasExitStatus = false; result.exitStatus_ = 0; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.ShutdownRequest) } static { defaultInstance = new ShutdownRequest(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.ShutdownRequest) } public static final class ShutdownResponse extends com.google.protobuf.GeneratedMessage { // Use ShutdownResponse.newBuilder() to construct. private ShutdownResponse() { initFields(); } private ShutdownResponse(boolean noInit) {} private static final ShutdownResponse defaultInstance; public static ShutdownResponse getDefaultInstance() { return defaultInstance; } public ShutdownResponse getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_ShutdownResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_ShutdownResponse_fieldAccessorTable; } // required int32 sender_site = 1; public static final int SENDER_SITE_FIELD_NUMBER = 1; private boolean hasSenderSite; private int senderSite_ = 0; public boolean hasSenderSite() { return hasSenderSite; } public int getSenderSite() { return senderSite_; } private void initFields() { } public final boolean isInitialized() { if (!hasSenderSite) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasSenderSite()) { output.writeInt32(1, getSenderSite()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasSenderSite()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, getSenderSite()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.ShutdownResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.ShutdownResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.ShutdownResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.ShutdownResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.ShutdownResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.ShutdownResponse result; // Construct using edu.brown.hstore.Hstoreservice.ShutdownResponse.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.ShutdownResponse(); return builder; } protected edu.brown.hstore.Hstoreservice.ShutdownResponse internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.ShutdownResponse(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.ShutdownResponse.getDescriptor(); } public edu.brown.hstore.Hstoreservice.ShutdownResponse getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.ShutdownResponse.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.ShutdownResponse build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.ShutdownResponse buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.ShutdownResponse buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } edu.brown.hstore.Hstoreservice.ShutdownResponse returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.ShutdownResponse) { return mergeFrom((edu.brown.hstore.Hstoreservice.ShutdownResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.ShutdownResponse other) { if (other == edu.brown.hstore.Hstoreservice.ShutdownResponse.getDefaultInstance()) return this; if (other.hasSenderSite()) { setSenderSite(other.getSenderSite()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setSenderSite(input.readInt32()); break; } } } } // required int32 sender_site = 1; public boolean hasSenderSite() { return result.hasSenderSite(); } public int getSenderSite() { return result.getSenderSite(); } public Builder setSenderSite(int value) { result.hasSenderSite = true; result.senderSite_ = value; return this; } public Builder clearSenderSite() { result.hasSenderSite = false; result.senderSite_ = 0; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.ShutdownResponse) } static { defaultInstance = new ShutdownResponse(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.ShutdownResponse) } public static final class HeartbeatRequest extends com.google.protobuf.GeneratedMessage { // Use HeartbeatRequest.newBuilder() to construct. private HeartbeatRequest() { initFields(); } private HeartbeatRequest(boolean noInit) {} private static final HeartbeatRequest defaultInstance; public static HeartbeatRequest getDefaultInstance() { return defaultInstance; } public HeartbeatRequest getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_HeartbeatRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_HeartbeatRequest_fieldAccessorTable; } // required int32 sender_site = 1; public static final int SENDER_SITE_FIELD_NUMBER = 1; private boolean hasSenderSite; private int senderSite_ = 0; public boolean hasSenderSite() { return hasSenderSite; } public int getSenderSite() { return senderSite_; } // required int64 last_transaction_id = 2; public static final int LAST_TRANSACTION_ID_FIELD_NUMBER = 2; private boolean hasLastTransactionId; private long lastTransactionId_ = 0L; public boolean hasLastTransactionId() { return hasLastTransactionId; } public long getLastTransactionId() { return lastTransactionId_; } private void initFields() { } public final boolean isInitialized() { if (!hasSenderSite) return false; if (!hasLastTransactionId) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasSenderSite()) { output.writeInt32(1, getSenderSite()); } if (hasLastTransactionId()) { output.writeInt64(2, getLastTransactionId()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasSenderSite()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, getSenderSite()); } if (hasLastTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, getLastTransactionId()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.HeartbeatRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.HeartbeatRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.HeartbeatRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.HeartbeatRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.HeartbeatRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.HeartbeatRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.HeartbeatRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.HeartbeatRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.HeartbeatRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.HeartbeatRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.HeartbeatRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.HeartbeatRequest result; // Construct using edu.brown.hstore.Hstoreservice.HeartbeatRequest.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.HeartbeatRequest(); return builder; } protected edu.brown.hstore.Hstoreservice.HeartbeatRequest internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.HeartbeatRequest(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.HeartbeatRequest.getDescriptor(); } public edu.brown.hstore.Hstoreservice.HeartbeatRequest getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.HeartbeatRequest.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.HeartbeatRequest build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.HeartbeatRequest buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.HeartbeatRequest buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } edu.brown.hstore.Hstoreservice.HeartbeatRequest returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.HeartbeatRequest) { return mergeFrom((edu.brown.hstore.Hstoreservice.HeartbeatRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.HeartbeatRequest other) { if (other == edu.brown.hstore.Hstoreservice.HeartbeatRequest.getDefaultInstance()) return this; if (other.hasSenderSite()) { setSenderSite(other.getSenderSite()); } if (other.hasLastTransactionId()) { setLastTransactionId(other.getLastTransactionId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setSenderSite(input.readInt32()); break; } case 16: { setLastTransactionId(input.readInt64()); break; } } } } // required int32 sender_site = 1; public boolean hasSenderSite() { return result.hasSenderSite(); } public int getSenderSite() { return result.getSenderSite(); } public Builder setSenderSite(int value) { result.hasSenderSite = true; result.senderSite_ = value; return this; } public Builder clearSenderSite() { result.hasSenderSite = false; result.senderSite_ = 0; return this; } // required int64 last_transaction_id = 2; public boolean hasLastTransactionId() { return result.hasLastTransactionId(); } public long getLastTransactionId() { return result.getLastTransactionId(); } public Builder setLastTransactionId(long value) { result.hasLastTransactionId = true; result.lastTransactionId_ = value; return this; } public Builder clearLastTransactionId() { result.hasLastTransactionId = false; result.lastTransactionId_ = 0L; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.HeartbeatRequest) } static { defaultInstance = new HeartbeatRequest(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.HeartbeatRequest) } public static final class HeartbeatResponse extends com.google.protobuf.GeneratedMessage { // Use HeartbeatResponse.newBuilder() to construct. private HeartbeatResponse() { initFields(); } private HeartbeatResponse(boolean noInit) {} private static final HeartbeatResponse defaultInstance; public static HeartbeatResponse getDefaultInstance() { return defaultInstance; } public HeartbeatResponse getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_HeartbeatResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_HeartbeatResponse_fieldAccessorTable; } // required int32 sender_site = 1; public static final int SENDER_SITE_FIELD_NUMBER = 1; private boolean hasSenderSite; private int senderSite_ = 0; public boolean hasSenderSite() { return hasSenderSite; } public int getSenderSite() { return senderSite_; } // required .edu.brown.hstore.Status status = 2; public static final int STATUS_FIELD_NUMBER = 2; private boolean hasStatus; private edu.brown.hstore.Hstoreservice.Status status_; public boolean hasStatus() { return hasStatus; } public edu.brown.hstore.Hstoreservice.Status getStatus() { return status_; } private void initFields() { status_ = edu.brown.hstore.Hstoreservice.Status.OK; } public final boolean isInitialized() { if (!hasSenderSite) return false; if (!hasStatus) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasSenderSite()) { output.writeInt32(1, getSenderSite()); } if (hasStatus()) { output.writeEnum(2, getStatus().getNumber()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasSenderSite()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, getSenderSite()); } if (hasStatus()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, getStatus().getNumber()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.HeartbeatResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.HeartbeatResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.HeartbeatResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.HeartbeatResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.HeartbeatResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.HeartbeatResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.HeartbeatResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.HeartbeatResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.HeartbeatResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.HeartbeatResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.HeartbeatResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.HeartbeatResponse result; // Construct using edu.brown.hstore.Hstoreservice.HeartbeatResponse.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.HeartbeatResponse(); return builder; } protected edu.brown.hstore.Hstoreservice.HeartbeatResponse internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.HeartbeatResponse(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.HeartbeatResponse.getDescriptor(); } public edu.brown.hstore.Hstoreservice.HeartbeatResponse getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.HeartbeatResponse.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.HeartbeatResponse build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.HeartbeatResponse buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.HeartbeatResponse buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } edu.brown.hstore.Hstoreservice.HeartbeatResponse returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.HeartbeatResponse) { return mergeFrom((edu.brown.hstore.Hstoreservice.HeartbeatResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.HeartbeatResponse other) { if (other == edu.brown.hstore.Hstoreservice.HeartbeatResponse.getDefaultInstance()) return this; if (other.hasSenderSite()) { setSenderSite(other.getSenderSite()); } if (other.hasStatus()) { setStatus(other.getStatus()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setSenderSite(input.readInt32()); break; } case 16: { int rawValue = input.readEnum(); edu.brown.hstore.Hstoreservice.Status value = edu.brown.hstore.Hstoreservice.Status.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { setStatus(value); } break; } } } } // required int32 sender_site = 1; public boolean hasSenderSite() { return result.hasSenderSite(); } public int getSenderSite() { return result.getSenderSite(); } public Builder setSenderSite(int value) { result.hasSenderSite = true; result.senderSite_ = value; return this; } public Builder clearSenderSite() { result.hasSenderSite = false; result.senderSite_ = 0; return this; } // required .edu.brown.hstore.Status status = 2; public boolean hasStatus() { return result.hasStatus(); } public edu.brown.hstore.Hstoreservice.Status getStatus() { return result.getStatus(); } public Builder setStatus(edu.brown.hstore.Hstoreservice.Status value) { if (value == null) { throw new NullPointerException(); } result.hasStatus = true; result.status_ = value; return this; } public Builder clearStatus() { result.hasStatus = false; result.status_ = edu.brown.hstore.Hstoreservice.Status.OK; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.HeartbeatResponse) } static { defaultInstance = new HeartbeatResponse(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.HeartbeatResponse) } public static final class UnevictDataRequest extends com.google.protobuf.GeneratedMessage { // Use UnevictDataRequest.newBuilder() to construct. private UnevictDataRequest() { initFields(); } private UnevictDataRequest(boolean noInit) {} private static final UnevictDataRequest defaultInstance; public static UnevictDataRequest getDefaultInstance() { return defaultInstance; } public UnevictDataRequest getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_UnevictDataRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_UnevictDataRequest_fieldAccessorTable; } // required int32 sender_site = 1; public static final int SENDER_SITE_FIELD_NUMBER = 1; private boolean hasSenderSite; private int senderSite_ = 0; public boolean hasSenderSite() { return hasSenderSite; } public int getSenderSite() { return senderSite_; } // required int64 transaction_id = 2; public static final int TRANSACTION_ID_FIELD_NUMBER = 2; private boolean hasTransactionId; private long transactionId_ = 0L; public boolean hasTransactionId() { return hasTransactionId; } public long getTransactionId() { return transactionId_; } // required int32 partition_id = 3; public static final int PARTITION_ID_FIELD_NUMBER = 3; private boolean hasPartitionId; private int partitionId_ = 0; public boolean hasPartitionId() { return hasPartitionId; } public int getPartitionId() { return partitionId_; } // required int32 table_id = 4; public static final int TABLE_ID_FIELD_NUMBER = 4; private boolean hasTableId; private int tableId_ = 0; public boolean hasTableId() { return hasTableId; } public int getTableId() { return tableId_; } // repeated int32 block_ids = 5 [packed = true]; public static final int BLOCK_IDS_FIELD_NUMBER = 5; private java.util.List<java.lang.Integer> blockIds_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getBlockIdsList() { return blockIds_; } public int getBlockIdsCount() { return blockIds_.size(); } public int getBlockIds(int index) { return blockIds_.get(index); } private int blockIdsMemoizedSerializedSize = -1; // repeated int32 tuple_offsets = 6 [packed = true]; public static final int TUPLE_OFFSETS_FIELD_NUMBER = 6; private java.util.List<java.lang.Integer> tupleOffsets_ = java.util.Collections.emptyList(); public java.util.List<java.lang.Integer> getTupleOffsetsList() { return tupleOffsets_; } public int getTupleOffsetsCount() { return tupleOffsets_.size(); } public int getTupleOffsets(int index) { return tupleOffsets_.get(index); } private int tupleOffsetsMemoizedSerializedSize = -1; // required int64 new_transaction_id = 7; public static final int NEW_TRANSACTION_ID_FIELD_NUMBER = 7; private boolean hasNewTransactionId; private long newTransactionId_ = 0L; public boolean hasNewTransactionId() { return hasNewTransactionId; } public long getNewTransactionId() { return newTransactionId_; } private void initFields() { } public final boolean isInitialized() { if (!hasSenderSite) return false; if (!hasTransactionId) return false; if (!hasPartitionId) return false; if (!hasTableId) return false; if (!hasNewTransactionId) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasSenderSite()) { output.writeInt32(1, getSenderSite()); } if (hasTransactionId()) { output.writeInt64(2, getTransactionId()); } if (hasPartitionId()) { output.writeInt32(3, getPartitionId()); } if (hasTableId()) { output.writeInt32(4, getTableId()); } if (getBlockIdsList().size() > 0) { output.writeRawVarint32(42); output.writeRawVarint32(blockIdsMemoizedSerializedSize); } for (int element : getBlockIdsList()) { output.writeInt32NoTag(element); } if (getTupleOffsetsList().size() > 0) { output.writeRawVarint32(50); output.writeRawVarint32(tupleOffsetsMemoizedSerializedSize); } for (int element : getTupleOffsetsList()) { output.writeInt32NoTag(element); } if (hasNewTransactionId()) { output.writeInt64(7, getNewTransactionId()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasSenderSite()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, getSenderSite()); } if (hasTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, getTransactionId()); } if (hasPartitionId()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, getPartitionId()); } if (hasTableId()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, getTableId()); } { int dataSize = 0; for (int element : getBlockIdsList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getBlockIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } blockIdsMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int element : getTupleOffsetsList()) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(element); } size += dataSize; if (!getTupleOffsetsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } tupleOffsetsMemoizedSerializedSize = dataSize; } if (hasNewTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, getNewTransactionId()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.UnevictDataRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.UnevictDataRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.UnevictDataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.UnevictDataRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.UnevictDataRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.UnevictDataRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.UnevictDataRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.UnevictDataRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.UnevictDataRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.UnevictDataRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.UnevictDataRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.UnevictDataRequest result; // Construct using edu.brown.hstore.Hstoreservice.UnevictDataRequest.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.UnevictDataRequest(); return builder; } protected edu.brown.hstore.Hstoreservice.UnevictDataRequest internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.UnevictDataRequest(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.UnevictDataRequest.getDescriptor(); } public edu.brown.hstore.Hstoreservice.UnevictDataRequest getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.UnevictDataRequest.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.UnevictDataRequest build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.UnevictDataRequest buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.UnevictDataRequest buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } if (result.blockIds_ != java.util.Collections.EMPTY_LIST) { result.blockIds_ = java.util.Collections.unmodifiableList(result.blockIds_); } if (result.tupleOffsets_ != java.util.Collections.EMPTY_LIST) { result.tupleOffsets_ = java.util.Collections.unmodifiableList(result.tupleOffsets_); } edu.brown.hstore.Hstoreservice.UnevictDataRequest returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.UnevictDataRequest) { return mergeFrom((edu.brown.hstore.Hstoreservice.UnevictDataRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.UnevictDataRequest other) { if (other == edu.brown.hstore.Hstoreservice.UnevictDataRequest.getDefaultInstance()) return this; if (other.hasSenderSite()) { setSenderSite(other.getSenderSite()); } if (other.hasTransactionId()) { setTransactionId(other.getTransactionId()); } if (other.hasPartitionId()) { setPartitionId(other.getPartitionId()); } if (other.hasTableId()) { setTableId(other.getTableId()); } if (!other.blockIds_.isEmpty()) { if (result.blockIds_.isEmpty()) { result.blockIds_ = new java.util.ArrayList<java.lang.Integer>(); } result.blockIds_.addAll(other.blockIds_); } if (!other.tupleOffsets_.isEmpty()) { if (result.tupleOffsets_.isEmpty()) { result.tupleOffsets_ = new java.util.ArrayList<java.lang.Integer>(); } result.tupleOffsets_.addAll(other.tupleOffsets_); } if (other.hasNewTransactionId()) { setNewTransactionId(other.getNewTransactionId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setSenderSite(input.readInt32()); break; } case 16: { setTransactionId(input.readInt64()); break; } case 24: { setPartitionId(input.readInt32()); break; } case 32: { setTableId(input.readInt32()); break; } case 40: { addBlockIds(input.readInt32()); break; } case 42: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addBlockIds(input.readInt32()); } input.popLimit(limit); break; } case 48: { addTupleOffsets(input.readInt32()); break; } case 50: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addTupleOffsets(input.readInt32()); } input.popLimit(limit); break; } case 56: { setNewTransactionId(input.readInt64()); break; } } } } // required int32 sender_site = 1; public boolean hasSenderSite() { return result.hasSenderSite(); } public int getSenderSite() { return result.getSenderSite(); } public Builder setSenderSite(int value) { result.hasSenderSite = true; result.senderSite_ = value; return this; } public Builder clearSenderSite() { result.hasSenderSite = false; result.senderSite_ = 0; return this; } // required int64 transaction_id = 2; public boolean hasTransactionId() { return result.hasTransactionId(); } public long getTransactionId() { return result.getTransactionId(); } public Builder setTransactionId(long value) { result.hasTransactionId = true; result.transactionId_ = value; return this; } public Builder clearTransactionId() { result.hasTransactionId = false; result.transactionId_ = 0L; return this; } // required int32 partition_id = 3; public boolean hasPartitionId() { return result.hasPartitionId(); } public int getPartitionId() { return result.getPartitionId(); } public Builder setPartitionId(int value) { result.hasPartitionId = true; result.partitionId_ = value; return this; } public Builder clearPartitionId() { result.hasPartitionId = false; result.partitionId_ = 0; return this; } // required int32 table_id = 4; public boolean hasTableId() { return result.hasTableId(); } public int getTableId() { return result.getTableId(); } public Builder setTableId(int value) { result.hasTableId = true; result.tableId_ = value; return this; } public Builder clearTableId() { result.hasTableId = false; result.tableId_ = 0; return this; } // repeated int32 block_ids = 5 [packed = true]; public java.util.List<java.lang.Integer> getBlockIdsList() { return java.util.Collections.unmodifiableList(result.blockIds_); } public int getBlockIdsCount() { return result.getBlockIdsCount(); } public int getBlockIds(int index) { return result.getBlockIds(index); } public Builder setBlockIds(int index, int value) { result.blockIds_.set(index, value); return this; } public Builder addBlockIds(int value) { if (result.blockIds_.isEmpty()) { result.blockIds_ = new java.util.ArrayList<java.lang.Integer>(); } result.blockIds_.add(value); return this; } public Builder addAllBlockIds( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.blockIds_.isEmpty()) { result.blockIds_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.blockIds_); return this; } public Builder clearBlockIds() { result.blockIds_ = java.util.Collections.emptyList(); return this; } // repeated int32 tuple_offsets = 6 [packed = true]; public java.util.List<java.lang.Integer> getTupleOffsetsList() { return java.util.Collections.unmodifiableList(result.tupleOffsets_); } public int getTupleOffsetsCount() { return result.getTupleOffsetsCount(); } public int getTupleOffsets(int index) { return result.getTupleOffsets(index); } public Builder setTupleOffsets(int index, int value) { result.tupleOffsets_.set(index, value); return this; } public Builder addTupleOffsets(int value) { if (result.tupleOffsets_.isEmpty()) { result.tupleOffsets_ = new java.util.ArrayList<java.lang.Integer>(); } result.tupleOffsets_.add(value); return this; } public Builder addAllTupleOffsets( java.lang.Iterable<? extends java.lang.Integer> values) { if (result.tupleOffsets_.isEmpty()) { result.tupleOffsets_ = new java.util.ArrayList<java.lang.Integer>(); } super.addAll(values, result.tupleOffsets_); return this; } public Builder clearTupleOffsets() { result.tupleOffsets_ = java.util.Collections.emptyList(); return this; } // required int64 new_transaction_id = 7; public boolean hasNewTransactionId() { return result.hasNewTransactionId(); } public long getNewTransactionId() { return result.getNewTransactionId(); } public Builder setNewTransactionId(long value) { result.hasNewTransactionId = true; result.newTransactionId_ = value; return this; } public Builder clearNewTransactionId() { result.hasNewTransactionId = false; result.newTransactionId_ = 0L; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.UnevictDataRequest) } static { defaultInstance = new UnevictDataRequest(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.UnevictDataRequest) } public static final class UnevictDataResponse extends com.google.protobuf.GeneratedMessage { // Use UnevictDataResponse.newBuilder() to construct. private UnevictDataResponse() { initFields(); } private UnevictDataResponse(boolean noInit) {} private static final UnevictDataResponse defaultInstance; public static UnevictDataResponse getDefaultInstance() { return defaultInstance; } public UnevictDataResponse getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_UnevictDataResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_UnevictDataResponse_fieldAccessorTable; } // required int32 sender_site = 1; public static final int SENDER_SITE_FIELD_NUMBER = 1; private boolean hasSenderSite; private int senderSite_ = 0; public boolean hasSenderSite() { return hasSenderSite; } public int getSenderSite() { return senderSite_; } // required .edu.brown.hstore.Status status = 2; public static final int STATUS_FIELD_NUMBER = 2; private boolean hasStatus; private edu.brown.hstore.Hstoreservice.Status status_; public boolean hasStatus() { return hasStatus; } public edu.brown.hstore.Hstoreservice.Status getStatus() { return status_; } // required int64 transaction_id = 3; public static final int TRANSACTION_ID_FIELD_NUMBER = 3; private boolean hasTransactionId; private long transactionId_ = 0L; public boolean hasTransactionId() { return hasTransactionId; } public long getTransactionId() { return transactionId_; } // required int32 partition_id = 4; public static final int PARTITION_ID_FIELD_NUMBER = 4; private boolean hasPartitionId; private int partitionId_ = 0; public boolean hasPartitionId() { return hasPartitionId; } public int getPartitionId() { return partitionId_; } private void initFields() { status_ = edu.brown.hstore.Hstoreservice.Status.OK; } public final boolean isInitialized() { if (!hasSenderSite) return false; if (!hasStatus) return false; if (!hasTransactionId) return false; if (!hasPartitionId) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasSenderSite()) { output.writeInt32(1, getSenderSite()); } if (hasStatus()) { output.writeEnum(2, getStatus().getNumber()); } if (hasTransactionId()) { output.writeInt64(3, getTransactionId()); } if (hasPartitionId()) { output.writeInt32(4, getPartitionId()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasSenderSite()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, getSenderSite()); } if (hasStatus()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, getStatus().getNumber()); } if (hasTransactionId()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, getTransactionId()); } if (hasPartitionId()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, getPartitionId()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.UnevictDataResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.UnevictDataResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.UnevictDataResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.UnevictDataResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.UnevictDataResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.UnevictDataResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.UnevictDataResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.UnevictDataResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.UnevictDataResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.UnevictDataResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.UnevictDataResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.UnevictDataResponse result; // Construct using edu.brown.hstore.Hstoreservice.UnevictDataResponse.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.UnevictDataResponse(); return builder; } protected edu.brown.hstore.Hstoreservice.UnevictDataResponse internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.UnevictDataResponse(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.UnevictDataResponse.getDescriptor(); } public edu.brown.hstore.Hstoreservice.UnevictDataResponse getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.UnevictDataResponse.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.UnevictDataResponse build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.UnevictDataResponse buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.UnevictDataResponse buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } edu.brown.hstore.Hstoreservice.UnevictDataResponse returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.UnevictDataResponse) { return mergeFrom((edu.brown.hstore.Hstoreservice.UnevictDataResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.UnevictDataResponse other) { if (other == edu.brown.hstore.Hstoreservice.UnevictDataResponse.getDefaultInstance()) return this; if (other.hasSenderSite()) { setSenderSite(other.getSenderSite()); } if (other.hasStatus()) { setStatus(other.getStatus()); } if (other.hasTransactionId()) { setTransactionId(other.getTransactionId()); } if (other.hasPartitionId()) { setPartitionId(other.getPartitionId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setSenderSite(input.readInt32()); break; } case 16: { int rawValue = input.readEnum(); edu.brown.hstore.Hstoreservice.Status value = edu.brown.hstore.Hstoreservice.Status.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { setStatus(value); } break; } case 24: { setTransactionId(input.readInt64()); break; } case 32: { setPartitionId(input.readInt32()); break; } } } } // required int32 sender_site = 1; public boolean hasSenderSite() { return result.hasSenderSite(); } public int getSenderSite() { return result.getSenderSite(); } public Builder setSenderSite(int value) { result.hasSenderSite = true; result.senderSite_ = value; return this; } public Builder clearSenderSite() { result.hasSenderSite = false; result.senderSite_ = 0; return this; } // required .edu.brown.hstore.Status status = 2; public boolean hasStatus() { return result.hasStatus(); } public edu.brown.hstore.Hstoreservice.Status getStatus() { return result.getStatus(); } public Builder setStatus(edu.brown.hstore.Hstoreservice.Status value) { if (value == null) { throw new NullPointerException(); } result.hasStatus = true; result.status_ = value; return this; } public Builder clearStatus() { result.hasStatus = false; result.status_ = edu.brown.hstore.Hstoreservice.Status.OK; return this; } // required int64 transaction_id = 3; public boolean hasTransactionId() { return result.hasTransactionId(); } public long getTransactionId() { return result.getTransactionId(); } public Builder setTransactionId(long value) { result.hasTransactionId = true; result.transactionId_ = value; return this; } public Builder clearTransactionId() { result.hasTransactionId = false; result.transactionId_ = 0L; return this; } // required int32 partition_id = 4; public boolean hasPartitionId() { return result.hasPartitionId(); } public int getPartitionId() { return result.getPartitionId(); } public Builder setPartitionId(int value) { result.hasPartitionId = true; result.partitionId_ = value; return this; } public Builder clearPartitionId() { result.hasPartitionId = false; result.partitionId_ = 0; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.UnevictDataResponse) } static { defaultInstance = new UnevictDataResponse(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.UnevictDataResponse) } public static final class TimeSyncRequest extends com.google.protobuf.GeneratedMessage { // Use TimeSyncRequest.newBuilder() to construct. private TimeSyncRequest() { initFields(); } private TimeSyncRequest(boolean noInit) {} private static final TimeSyncRequest defaultInstance; public static TimeSyncRequest getDefaultInstance() { return defaultInstance; } public TimeSyncRequest getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TimeSyncRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TimeSyncRequest_fieldAccessorTable; } // required int32 sender_site = 1; public static final int SENDER_SITE_FIELD_NUMBER = 1; private boolean hasSenderSite; private int senderSite_ = 0; public boolean hasSenderSite() { return hasSenderSite; } public int getSenderSite() { return senderSite_; } // required int64 t0_s = 2; public static final int T0_S_FIELD_NUMBER = 2; private boolean hasT0S; private long t0S_ = 0L; public boolean hasT0S() { return hasT0S; } public long getT0S() { return t0S_; } private void initFields() { } public final boolean isInitialized() { if (!hasSenderSite) return false; if (!hasT0S) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasSenderSite()) { output.writeInt32(1, getSenderSite()); } if (hasT0S()) { output.writeInt64(2, getT0S()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasSenderSite()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, getSenderSite()); } if (hasT0S()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, getT0S()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.TimeSyncRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TimeSyncRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TimeSyncRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TimeSyncRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TimeSyncRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TimeSyncRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TimeSyncRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TimeSyncRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TimeSyncRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TimeSyncRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.TimeSyncRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.TimeSyncRequest result; // Construct using edu.brown.hstore.Hstoreservice.TimeSyncRequest.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.TimeSyncRequest(); return builder; } protected edu.brown.hstore.Hstoreservice.TimeSyncRequest internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.TimeSyncRequest(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.TimeSyncRequest.getDescriptor(); } public edu.brown.hstore.Hstoreservice.TimeSyncRequest getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.TimeSyncRequest.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.TimeSyncRequest build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.TimeSyncRequest buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.TimeSyncRequest buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } edu.brown.hstore.Hstoreservice.TimeSyncRequest returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.TimeSyncRequest) { return mergeFrom((edu.brown.hstore.Hstoreservice.TimeSyncRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.TimeSyncRequest other) { if (other == edu.brown.hstore.Hstoreservice.TimeSyncRequest.getDefaultInstance()) return this; if (other.hasSenderSite()) { setSenderSite(other.getSenderSite()); } if (other.hasT0S()) { setT0S(other.getT0S()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setSenderSite(input.readInt32()); break; } case 16: { setT0S(input.readInt64()); break; } } } } // required int32 sender_site = 1; public boolean hasSenderSite() { return result.hasSenderSite(); } public int getSenderSite() { return result.getSenderSite(); } public Builder setSenderSite(int value) { result.hasSenderSite = true; result.senderSite_ = value; return this; } public Builder clearSenderSite() { result.hasSenderSite = false; result.senderSite_ = 0; return this; } // required int64 t0_s = 2; public boolean hasT0S() { return result.hasT0S(); } public long getT0S() { return result.getT0S(); } public Builder setT0S(long value) { result.hasT0S = true; result.t0S_ = value; return this; } public Builder clearT0S() { result.hasT0S = false; result.t0S_ = 0L; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.TimeSyncRequest) } static { defaultInstance = new TimeSyncRequest(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.TimeSyncRequest) } public static final class TimeSyncResponse extends com.google.protobuf.GeneratedMessage { // Use TimeSyncResponse.newBuilder() to construct. private TimeSyncResponse() { initFields(); } private TimeSyncResponse(boolean noInit) {} private static final TimeSyncResponse defaultInstance; public static TimeSyncResponse getDefaultInstance() { return defaultInstance; } public TimeSyncResponse getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TimeSyncResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.brown.hstore.Hstoreservice.internal_static_edu_brown_hstore_TimeSyncResponse_fieldAccessorTable; } // required int32 sender_site = 1; public static final int SENDER_SITE_FIELD_NUMBER = 1; private boolean hasSenderSite; private int senderSite_ = 0; public boolean hasSenderSite() { return hasSenderSite; } public int getSenderSite() { return senderSite_; } // required int64 t0_s = 2; public static final int T0_S_FIELD_NUMBER = 2; private boolean hasT0S; private long t0S_ = 0L; public boolean hasT0S() { return hasT0S; } public long getT0S() { return t0S_; } // required int64 t0_r = 3; public static final int T0_R_FIELD_NUMBER = 3; private boolean hasT0R; private long t0R_ = 0L; public boolean hasT0R() { return hasT0R; } public long getT0R() { return t0R_; } // required int64 t1_s = 4; public static final int T1_S_FIELD_NUMBER = 4; private boolean hasT1S; private long t1S_ = 0L; public boolean hasT1S() { return hasT1S; } public long getT1S() { return t1S_; } private void initFields() { } public final boolean isInitialized() { if (!hasSenderSite) return false; if (!hasT0S) return false; if (!hasT0R) return false; if (!hasT1S) return false; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hasSenderSite()) { output.writeInt32(1, getSenderSite()); } if (hasT0S()) { output.writeInt64(2, getT0S()); } if (hasT0R()) { output.writeInt64(3, getT0R()); } if (hasT1S()) { output.writeInt64(4, getT1S()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (hasSenderSite()) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, getSenderSite()); } if (hasT0S()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, getT0S()); } if (hasT0R()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, getT0R()); } if (hasT1S()) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, getT1S()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } public static edu.brown.hstore.Hstoreservice.TimeSyncResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TimeSyncResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TimeSyncResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TimeSyncResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TimeSyncResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TimeSyncResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static edu.brown.hstore.Hstoreservice.TimeSyncResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TimeSyncResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static edu.brown.hstore.Hstoreservice.TimeSyncResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static edu.brown.hstore.Hstoreservice.TimeSyncResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(edu.brown.hstore.Hstoreservice.TimeSyncResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> { private edu.brown.hstore.Hstoreservice.TimeSyncResponse result; // Construct using edu.brown.hstore.Hstoreservice.TimeSyncResponse.newBuilder() private Builder() {} private static Builder create() { Builder builder = new Builder(); builder.result = new edu.brown.hstore.Hstoreservice.TimeSyncResponse(); return builder; } protected edu.brown.hstore.Hstoreservice.TimeSyncResponse internalGetResult() { return result; } public Builder clear() { if (result == null) { throw new IllegalStateException( "Cannot call clear() after build()."); } result = new edu.brown.hstore.Hstoreservice.TimeSyncResponse(); return this; } public Builder clone() { return create().mergeFrom(result); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return edu.brown.hstore.Hstoreservice.TimeSyncResponse.getDescriptor(); } public edu.brown.hstore.Hstoreservice.TimeSyncResponse getDefaultInstanceForType() { return edu.brown.hstore.Hstoreservice.TimeSyncResponse.getDefaultInstance(); } public boolean isInitialized() { return result.isInitialized(); } public edu.brown.hstore.Hstoreservice.TimeSyncResponse build() { if (result != null && !isInitialized()) { throw newUninitializedMessageException(result); } return buildPartial(); } private edu.brown.hstore.Hstoreservice.TimeSyncResponse buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { if (!isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return buildPartial(); } public edu.brown.hstore.Hstoreservice.TimeSyncResponse buildPartial() { if (result == null) { throw new IllegalStateException( "build() has already been called on this Builder."); } edu.brown.hstore.Hstoreservice.TimeSyncResponse returnMe = result; result = null; return returnMe; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.brown.hstore.Hstoreservice.TimeSyncResponse) { return mergeFrom((edu.brown.hstore.Hstoreservice.TimeSyncResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.brown.hstore.Hstoreservice.TimeSyncResponse other) { if (other == edu.brown.hstore.Hstoreservice.TimeSyncResponse.getDefaultInstance()) return this; if (other.hasSenderSite()) { setSenderSite(other.getSenderSite()); } if (other.hasT0S()) { setT0S(other.getT0S()); } if (other.hasT0R()) { setT0R(other.getT0R()); } if (other.hasT1S()) { setT1S(other.getT1S()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); return this; } break; } case 8: { setSenderSite(input.readInt32()); break; } case 16: { setT0S(input.readInt64()); break; } case 24: { setT0R(input.readInt64()); break; } case 32: { setT1S(input.readInt64()); break; } } } } // required int32 sender_site = 1; public boolean hasSenderSite() { return result.hasSenderSite(); } public int getSenderSite() { return result.getSenderSite(); } public Builder setSenderSite(int value) { result.hasSenderSite = true; result.senderSite_ = value; return this; } public Builder clearSenderSite() { result.hasSenderSite = false; result.senderSite_ = 0; return this; } // required int64 t0_s = 2; public boolean hasT0S() { return result.hasT0S(); } public long getT0S() { return result.getT0S(); } public Builder setT0S(long value) { result.hasT0S = true; result.t0S_ = value; return this; } public Builder clearT0S() { result.hasT0S = false; result.t0S_ = 0L; return this; } // required int64 t0_r = 3; public boolean hasT0R() { return result.hasT0R(); } public long getT0R() { return result.getT0R(); } public Builder setT0R(long value) { result.hasT0R = true; result.t0R_ = value; return this; } public Builder clearT0R() { result.hasT0R = false; result.t0R_ = 0L; return this; } // required int64 t1_s = 4; public boolean hasT1S() { return result.hasT1S(); } public long getT1S() { return result.getT1S(); } public Builder setT1S(long value) { result.hasT1S = true; result.t1S_ = value; return this; } public Builder clearT1S() { result.hasT1S = false; result.t1S_ = 0L; return this; } // @@protoc_insertion_point(builder_scope:edu.brown.hstore.TimeSyncResponse) } static { defaultInstance = new TimeSyncResponse(true); edu.brown.hstore.Hstoreservice.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.brown.hstore.TimeSyncResponse) } public static abstract class HStoreService implements com.google.protobuf.Service { protected HStoreService() {} public interface Interface { public abstract void transactionInit( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionInitRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionInitResponse> done); public abstract void transactionWork( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionWorkRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionWorkResponse> done); public abstract void transactionPrefetch( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionPrefetchResult request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement> done); public abstract void transactionMap( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionMapRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionMapResponse> done); public abstract void transactionReduce( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionReduceRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionReduceResponse> done); public abstract void transactionPrepare( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionPrepareRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionPrepareResponse> done); public abstract void transactionFinish( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionFinishRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionFinishResponse> done); public abstract void transactionRedirect( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionRedirectRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionRedirectResponse> done); public abstract void transactionDebug( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionDebugRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionDebugResponse> done); public abstract void sendData( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.SendDataRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.SendDataResponse> done); public abstract void initialize( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.InitializeRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.InitializeResponse> done); public abstract void shutdownPrepare( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse> done); public abstract void shutdown( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.ShutdownRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.ShutdownResponse> done); public abstract void heartbeat( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.HeartbeatRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.HeartbeatResponse> done); public abstract void unevictData( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.UnevictDataRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.UnevictDataResponse> done); public abstract void timeSync( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TimeSyncRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TimeSyncResponse> done); } public static com.google.protobuf.Service newReflectiveService( final Interface impl) { return new HStoreService() { @Override public void transactionInit( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionInitRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionInitResponse> done) { impl.transactionInit(controller, request, done); } @Override public void transactionWork( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionWorkRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionWorkResponse> done) { impl.transactionWork(controller, request, done); } @Override public void transactionPrefetch( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionPrefetchResult request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement> done) { impl.transactionPrefetch(controller, request, done); } @Override public void transactionMap( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionMapRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionMapResponse> done) { impl.transactionMap(controller, request, done); } @Override public void transactionReduce( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionReduceRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionReduceResponse> done) { impl.transactionReduce(controller, request, done); } @Override public void transactionPrepare( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionPrepareRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionPrepareResponse> done) { impl.transactionPrepare(controller, request, done); } @Override public void transactionFinish( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionFinishRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionFinishResponse> done) { impl.transactionFinish(controller, request, done); } @Override public void transactionRedirect( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionRedirectRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionRedirectResponse> done) { impl.transactionRedirect(controller, request, done); } @Override public void transactionDebug( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionDebugRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionDebugResponse> done) { impl.transactionDebug(controller, request, done); } @Override public void sendData( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.SendDataRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.SendDataResponse> done) { impl.sendData(controller, request, done); } @Override public void initialize( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.InitializeRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.InitializeResponse> done) { impl.initialize(controller, request, done); } @Override public void shutdownPrepare( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse> done) { impl.shutdownPrepare(controller, request, done); } @Override public void shutdown( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.ShutdownRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.ShutdownResponse> done) { impl.shutdown(controller, request, done); } @Override public void heartbeat( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.HeartbeatRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.HeartbeatResponse> done) { impl.heartbeat(controller, request, done); } @Override public void unevictData( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.UnevictDataRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.UnevictDataResponse> done) { impl.unevictData(controller, request, done); } @Override public void timeSync( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TimeSyncRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TimeSyncResponse> done) { impl.timeSync(controller, request, done); } }; } public static com.google.protobuf.BlockingService newReflectiveBlockingService(final BlockingInterface impl) { return new com.google.protobuf.BlockingService() { public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final com.google.protobuf.Message callBlockingMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request) throws com.google.protobuf.ServiceException { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callBlockingMethod() given method descriptor for " + "wrong service type."); } switch(method.getIndex()) { case 0: return impl.transactionInit(controller, (edu.brown.hstore.Hstoreservice.TransactionInitRequest)request); case 1: return impl.transactionWork(controller, (edu.brown.hstore.Hstoreservice.TransactionWorkRequest)request); case 2: return impl.transactionPrefetch(controller, (edu.brown.hstore.Hstoreservice.TransactionPrefetchResult)request); case 3: return impl.transactionMap(controller, (edu.brown.hstore.Hstoreservice.TransactionMapRequest)request); case 4: return impl.transactionReduce(controller, (edu.brown.hstore.Hstoreservice.TransactionReduceRequest)request); case 5: return impl.transactionPrepare(controller, (edu.brown.hstore.Hstoreservice.TransactionPrepareRequest)request); case 6: return impl.transactionFinish(controller, (edu.brown.hstore.Hstoreservice.TransactionFinishRequest)request); case 7: return impl.transactionRedirect(controller, (edu.brown.hstore.Hstoreservice.TransactionRedirectRequest)request); case 8: return impl.transactionDebug(controller, (edu.brown.hstore.Hstoreservice.TransactionDebugRequest)request); case 9: return impl.sendData(controller, (edu.brown.hstore.Hstoreservice.SendDataRequest)request); case 10: return impl.initialize(controller, (edu.brown.hstore.Hstoreservice.InitializeRequest)request); case 11: return impl.shutdownPrepare(controller, (edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest)request); case 12: return impl.shutdown(controller, (edu.brown.hstore.Hstoreservice.ShutdownRequest)request); case 13: return impl.heartbeat(controller, (edu.brown.hstore.Hstoreservice.HeartbeatRequest)request); case 14: return impl.unevictData(controller, (edu.brown.hstore.Hstoreservice.UnevictDataRequest)request); case 15: return impl.timeSync(controller, (edu.brown.hstore.Hstoreservice.TimeSyncRequest)request); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return edu.brown.hstore.Hstoreservice.TransactionInitRequest.getDefaultInstance(); case 1: return edu.brown.hstore.Hstoreservice.TransactionWorkRequest.getDefaultInstance(); case 2: return edu.brown.hstore.Hstoreservice.TransactionPrefetchResult.getDefaultInstance(); case 3: return edu.brown.hstore.Hstoreservice.TransactionMapRequest.getDefaultInstance(); case 4: return edu.brown.hstore.Hstoreservice.TransactionReduceRequest.getDefaultInstance(); case 5: return edu.brown.hstore.Hstoreservice.TransactionPrepareRequest.getDefaultInstance(); case 6: return edu.brown.hstore.Hstoreservice.TransactionFinishRequest.getDefaultInstance(); case 7: return edu.brown.hstore.Hstoreservice.TransactionRedirectRequest.getDefaultInstance(); case 8: return edu.brown.hstore.Hstoreservice.TransactionDebugRequest.getDefaultInstance(); case 9: return edu.brown.hstore.Hstoreservice.SendDataRequest.getDefaultInstance(); case 10: return edu.brown.hstore.Hstoreservice.InitializeRequest.getDefaultInstance(); case 11: return edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest.getDefaultInstance(); case 12: return edu.brown.hstore.Hstoreservice.ShutdownRequest.getDefaultInstance(); case 13: return edu.brown.hstore.Hstoreservice.HeartbeatRequest.getDefaultInstance(); case 14: return edu.brown.hstore.Hstoreservice.UnevictDataRequest.getDefaultInstance(); case 15: return edu.brown.hstore.Hstoreservice.TimeSyncRequest.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return edu.brown.hstore.Hstoreservice.TransactionInitResponse.getDefaultInstance(); case 1: return edu.brown.hstore.Hstoreservice.TransactionWorkResponse.getDefaultInstance(); case 2: return edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement.getDefaultInstance(); case 3: return edu.brown.hstore.Hstoreservice.TransactionMapResponse.getDefaultInstance(); case 4: return edu.brown.hstore.Hstoreservice.TransactionReduceResponse.getDefaultInstance(); case 5: return edu.brown.hstore.Hstoreservice.TransactionPrepareResponse.getDefaultInstance(); case 6: return edu.brown.hstore.Hstoreservice.TransactionFinishResponse.getDefaultInstance(); case 7: return edu.brown.hstore.Hstoreservice.TransactionRedirectResponse.getDefaultInstance(); case 8: return edu.brown.hstore.Hstoreservice.TransactionDebugResponse.getDefaultInstance(); case 9: return edu.brown.hstore.Hstoreservice.SendDataResponse.getDefaultInstance(); case 10: return edu.brown.hstore.Hstoreservice.InitializeResponse.getDefaultInstance(); case 11: return edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse.getDefaultInstance(); case 12: return edu.brown.hstore.Hstoreservice.ShutdownResponse.getDefaultInstance(); case 13: return edu.brown.hstore.Hstoreservice.HeartbeatResponse.getDefaultInstance(); case 14: return edu.brown.hstore.Hstoreservice.UnevictDataResponse.getDefaultInstance(); case 15: return edu.brown.hstore.Hstoreservice.TimeSyncResponse.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } }; } public abstract void transactionInit( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionInitRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionInitResponse> done); public abstract void transactionWork( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionWorkRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionWorkResponse> done); public abstract void transactionPrefetch( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionPrefetchResult request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement> done); public abstract void transactionMap( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionMapRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionMapResponse> done); public abstract void transactionReduce( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionReduceRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionReduceResponse> done); public abstract void transactionPrepare( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionPrepareRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionPrepareResponse> done); public abstract void transactionFinish( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionFinishRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionFinishResponse> done); public abstract void transactionRedirect( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionRedirectRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionRedirectResponse> done); public abstract void transactionDebug( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionDebugRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionDebugResponse> done); public abstract void sendData( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.SendDataRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.SendDataResponse> done); public abstract void initialize( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.InitializeRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.InitializeResponse> done); public abstract void shutdownPrepare( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse> done); public abstract void shutdown( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.ShutdownRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.ShutdownResponse> done); public abstract void heartbeat( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.HeartbeatRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.HeartbeatResponse> done); public abstract void unevictData( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.UnevictDataRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.UnevictDataResponse> done); public abstract void timeSync( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TimeSyncRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TimeSyncResponse> done); public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor() { return edu.brown.hstore.Hstoreservice.getDescriptor().getServices().get(0); } public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final void callMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request, com.google.protobuf.RpcCallback< com.google.protobuf.Message> done) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callMethod() given method descriptor for wrong " + "service type."); } switch(method.getIndex()) { case 0: this.transactionInit(controller, (edu.brown.hstore.Hstoreservice.TransactionInitRequest)request, com.google.protobuf.RpcUtil.<edu.brown.hstore.Hstoreservice.TransactionInitResponse>specializeCallback( done)); return; case 1: this.transactionWork(controller, (edu.brown.hstore.Hstoreservice.TransactionWorkRequest)request, com.google.protobuf.RpcUtil.<edu.brown.hstore.Hstoreservice.TransactionWorkResponse>specializeCallback( done)); return; case 2: this.transactionPrefetch(controller, (edu.brown.hstore.Hstoreservice.TransactionPrefetchResult)request, com.google.protobuf.RpcUtil.<edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement>specializeCallback( done)); return; case 3: this.transactionMap(controller, (edu.brown.hstore.Hstoreservice.TransactionMapRequest)request, com.google.protobuf.RpcUtil.<edu.brown.hstore.Hstoreservice.TransactionMapResponse>specializeCallback( done)); return; case 4: this.transactionReduce(controller, (edu.brown.hstore.Hstoreservice.TransactionReduceRequest)request, com.google.protobuf.RpcUtil.<edu.brown.hstore.Hstoreservice.TransactionReduceResponse>specializeCallback( done)); return; case 5: this.transactionPrepare(controller, (edu.brown.hstore.Hstoreservice.TransactionPrepareRequest)request, com.google.protobuf.RpcUtil.<edu.brown.hstore.Hstoreservice.TransactionPrepareResponse>specializeCallback( done)); return; case 6: this.transactionFinish(controller, (edu.brown.hstore.Hstoreservice.TransactionFinishRequest)request, com.google.protobuf.RpcUtil.<edu.brown.hstore.Hstoreservice.TransactionFinishResponse>specializeCallback( done)); return; case 7: this.transactionRedirect(controller, (edu.brown.hstore.Hstoreservice.TransactionRedirectRequest)request, com.google.protobuf.RpcUtil.<edu.brown.hstore.Hstoreservice.TransactionRedirectResponse>specializeCallback( done)); return; case 8: this.transactionDebug(controller, (edu.brown.hstore.Hstoreservice.TransactionDebugRequest)request, com.google.protobuf.RpcUtil.<edu.brown.hstore.Hstoreservice.TransactionDebugResponse>specializeCallback( done)); return; case 9: this.sendData(controller, (edu.brown.hstore.Hstoreservice.SendDataRequest)request, com.google.protobuf.RpcUtil.<edu.brown.hstore.Hstoreservice.SendDataResponse>specializeCallback( done)); return; case 10: this.initialize(controller, (edu.brown.hstore.Hstoreservice.InitializeRequest)request, com.google.protobuf.RpcUtil.<edu.brown.hstore.Hstoreservice.InitializeResponse>specializeCallback( done)); return; case 11: this.shutdownPrepare(controller, (edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest)request, com.google.protobuf.RpcUtil.<edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse>specializeCallback( done)); return; case 12: this.shutdown(controller, (edu.brown.hstore.Hstoreservice.ShutdownRequest)request, com.google.protobuf.RpcUtil.<edu.brown.hstore.Hstoreservice.ShutdownResponse>specializeCallback( done)); return; case 13: this.heartbeat(controller, (edu.brown.hstore.Hstoreservice.HeartbeatRequest)request, com.google.protobuf.RpcUtil.<edu.brown.hstore.Hstoreservice.HeartbeatResponse>specializeCallback( done)); return; case 14: this.unevictData(controller, (edu.brown.hstore.Hstoreservice.UnevictDataRequest)request, com.google.protobuf.RpcUtil.<edu.brown.hstore.Hstoreservice.UnevictDataResponse>specializeCallback( done)); return; case 15: this.timeSync(controller, (edu.brown.hstore.Hstoreservice.TimeSyncRequest)request, com.google.protobuf.RpcUtil.<edu.brown.hstore.Hstoreservice.TimeSyncResponse>specializeCallback( done)); return; default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return edu.brown.hstore.Hstoreservice.TransactionInitRequest.getDefaultInstance(); case 1: return edu.brown.hstore.Hstoreservice.TransactionWorkRequest.getDefaultInstance(); case 2: return edu.brown.hstore.Hstoreservice.TransactionPrefetchResult.getDefaultInstance(); case 3: return edu.brown.hstore.Hstoreservice.TransactionMapRequest.getDefaultInstance(); case 4: return edu.brown.hstore.Hstoreservice.TransactionReduceRequest.getDefaultInstance(); case 5: return edu.brown.hstore.Hstoreservice.TransactionPrepareRequest.getDefaultInstance(); case 6: return edu.brown.hstore.Hstoreservice.TransactionFinishRequest.getDefaultInstance(); case 7: return edu.brown.hstore.Hstoreservice.TransactionRedirectRequest.getDefaultInstance(); case 8: return edu.brown.hstore.Hstoreservice.TransactionDebugRequest.getDefaultInstance(); case 9: return edu.brown.hstore.Hstoreservice.SendDataRequest.getDefaultInstance(); case 10: return edu.brown.hstore.Hstoreservice.InitializeRequest.getDefaultInstance(); case 11: return edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest.getDefaultInstance(); case 12: return edu.brown.hstore.Hstoreservice.ShutdownRequest.getDefaultInstance(); case 13: return edu.brown.hstore.Hstoreservice.HeartbeatRequest.getDefaultInstance(); case 14: return edu.brown.hstore.Hstoreservice.UnevictDataRequest.getDefaultInstance(); case 15: return edu.brown.hstore.Hstoreservice.TimeSyncRequest.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return edu.brown.hstore.Hstoreservice.TransactionInitResponse.getDefaultInstance(); case 1: return edu.brown.hstore.Hstoreservice.TransactionWorkResponse.getDefaultInstance(); case 2: return edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement.getDefaultInstance(); case 3: return edu.brown.hstore.Hstoreservice.TransactionMapResponse.getDefaultInstance(); case 4: return edu.brown.hstore.Hstoreservice.TransactionReduceResponse.getDefaultInstance(); case 5: return edu.brown.hstore.Hstoreservice.TransactionPrepareResponse.getDefaultInstance(); case 6: return edu.brown.hstore.Hstoreservice.TransactionFinishResponse.getDefaultInstance(); case 7: return edu.brown.hstore.Hstoreservice.TransactionRedirectResponse.getDefaultInstance(); case 8: return edu.brown.hstore.Hstoreservice.TransactionDebugResponse.getDefaultInstance(); case 9: return edu.brown.hstore.Hstoreservice.SendDataResponse.getDefaultInstance(); case 10: return edu.brown.hstore.Hstoreservice.InitializeResponse.getDefaultInstance(); case 11: return edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse.getDefaultInstance(); case 12: return edu.brown.hstore.Hstoreservice.ShutdownResponse.getDefaultInstance(); case 13: return edu.brown.hstore.Hstoreservice.HeartbeatResponse.getDefaultInstance(); case 14: return edu.brown.hstore.Hstoreservice.UnevictDataResponse.getDefaultInstance(); case 15: return edu.brown.hstore.Hstoreservice.TimeSyncResponse.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public static Stub newStub( com.google.protobuf.RpcChannel channel) { return new Stub(channel); } public static final class Stub extends edu.brown.hstore.Hstoreservice.HStoreService implements Interface { private Stub(com.google.protobuf.RpcChannel channel) { this.channel = channel; } private final com.google.protobuf.RpcChannel channel; public com.google.protobuf.RpcChannel getChannel() { return channel; } public void transactionInit( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionInitRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionInitResponse> done) { channel.callMethod( getDescriptor().getMethods().get(0), controller, request, edu.brown.hstore.Hstoreservice.TransactionInitResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, edu.brown.hstore.Hstoreservice.TransactionInitResponse.class, edu.brown.hstore.Hstoreservice.TransactionInitResponse.getDefaultInstance())); } public void transactionWork( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionWorkRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionWorkResponse> done) { channel.callMethod( getDescriptor().getMethods().get(1), controller, request, edu.brown.hstore.Hstoreservice.TransactionWorkResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, edu.brown.hstore.Hstoreservice.TransactionWorkResponse.class, edu.brown.hstore.Hstoreservice.TransactionWorkResponse.getDefaultInstance())); } public void transactionPrefetch( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionPrefetchResult request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement> done) { channel.callMethod( getDescriptor().getMethods().get(2), controller, request, edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement.class, edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement.getDefaultInstance())); } public void transactionMap( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionMapRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionMapResponse> done) { channel.callMethod( getDescriptor().getMethods().get(3), controller, request, edu.brown.hstore.Hstoreservice.TransactionMapResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, edu.brown.hstore.Hstoreservice.TransactionMapResponse.class, edu.brown.hstore.Hstoreservice.TransactionMapResponse.getDefaultInstance())); } public void transactionReduce( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionReduceRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionReduceResponse> done) { channel.callMethod( getDescriptor().getMethods().get(4), controller, request, edu.brown.hstore.Hstoreservice.TransactionReduceResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, edu.brown.hstore.Hstoreservice.TransactionReduceResponse.class, edu.brown.hstore.Hstoreservice.TransactionReduceResponse.getDefaultInstance())); } public void transactionPrepare( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionPrepareRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionPrepareResponse> done) { channel.callMethod( getDescriptor().getMethods().get(5), controller, request, edu.brown.hstore.Hstoreservice.TransactionPrepareResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, edu.brown.hstore.Hstoreservice.TransactionPrepareResponse.class, edu.brown.hstore.Hstoreservice.TransactionPrepareResponse.getDefaultInstance())); } public void transactionFinish( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionFinishRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionFinishResponse> done) { channel.callMethod( getDescriptor().getMethods().get(6), controller, request, edu.brown.hstore.Hstoreservice.TransactionFinishResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, edu.brown.hstore.Hstoreservice.TransactionFinishResponse.class, edu.brown.hstore.Hstoreservice.TransactionFinishResponse.getDefaultInstance())); } public void transactionRedirect( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionRedirectRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionRedirectResponse> done) { channel.callMethod( getDescriptor().getMethods().get(7), controller, request, edu.brown.hstore.Hstoreservice.TransactionRedirectResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, edu.brown.hstore.Hstoreservice.TransactionRedirectResponse.class, edu.brown.hstore.Hstoreservice.TransactionRedirectResponse.getDefaultInstance())); } public void transactionDebug( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionDebugRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TransactionDebugResponse> done) { channel.callMethod( getDescriptor().getMethods().get(8), controller, request, edu.brown.hstore.Hstoreservice.TransactionDebugResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, edu.brown.hstore.Hstoreservice.TransactionDebugResponse.class, edu.brown.hstore.Hstoreservice.TransactionDebugResponse.getDefaultInstance())); } public void sendData( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.SendDataRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.SendDataResponse> done) { channel.callMethod( getDescriptor().getMethods().get(9), controller, request, edu.brown.hstore.Hstoreservice.SendDataResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, edu.brown.hstore.Hstoreservice.SendDataResponse.class, edu.brown.hstore.Hstoreservice.SendDataResponse.getDefaultInstance())); } public void initialize( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.InitializeRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.InitializeResponse> done) { channel.callMethod( getDescriptor().getMethods().get(10), controller, request, edu.brown.hstore.Hstoreservice.InitializeResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, edu.brown.hstore.Hstoreservice.InitializeResponse.class, edu.brown.hstore.Hstoreservice.InitializeResponse.getDefaultInstance())); } public void shutdownPrepare( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse> done) { channel.callMethod( getDescriptor().getMethods().get(11), controller, request, edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse.class, edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse.getDefaultInstance())); } public void shutdown( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.ShutdownRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.ShutdownResponse> done) { channel.callMethod( getDescriptor().getMethods().get(12), controller, request, edu.brown.hstore.Hstoreservice.ShutdownResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, edu.brown.hstore.Hstoreservice.ShutdownResponse.class, edu.brown.hstore.Hstoreservice.ShutdownResponse.getDefaultInstance())); } public void heartbeat( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.HeartbeatRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.HeartbeatResponse> done) { channel.callMethod( getDescriptor().getMethods().get(13), controller, request, edu.brown.hstore.Hstoreservice.HeartbeatResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, edu.brown.hstore.Hstoreservice.HeartbeatResponse.class, edu.brown.hstore.Hstoreservice.HeartbeatResponse.getDefaultInstance())); } public void unevictData( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.UnevictDataRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.UnevictDataResponse> done) { channel.callMethod( getDescriptor().getMethods().get(14), controller, request, edu.brown.hstore.Hstoreservice.UnevictDataResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, edu.brown.hstore.Hstoreservice.UnevictDataResponse.class, edu.brown.hstore.Hstoreservice.UnevictDataResponse.getDefaultInstance())); } public void timeSync( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TimeSyncRequest request, com.google.protobuf.RpcCallback<edu.brown.hstore.Hstoreservice.TimeSyncResponse> done) { channel.callMethod( getDescriptor().getMethods().get(15), controller, request, edu.brown.hstore.Hstoreservice.TimeSyncResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, edu.brown.hstore.Hstoreservice.TimeSyncResponse.class, edu.brown.hstore.Hstoreservice.TimeSyncResponse.getDefaultInstance())); } } public static BlockingInterface newBlockingStub( com.google.protobuf.BlockingRpcChannel channel) { return new BlockingStub(channel); } public interface BlockingInterface { public edu.brown.hstore.Hstoreservice.TransactionInitResponse transactionInit( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionInitRequest request) throws com.google.protobuf.ServiceException; public edu.brown.hstore.Hstoreservice.TransactionWorkResponse transactionWork( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionWorkRequest request) throws com.google.protobuf.ServiceException; public edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement transactionPrefetch( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionPrefetchResult request) throws com.google.protobuf.ServiceException; public edu.brown.hstore.Hstoreservice.TransactionMapResponse transactionMap( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionMapRequest request) throws com.google.protobuf.ServiceException; public edu.brown.hstore.Hstoreservice.TransactionReduceResponse transactionReduce( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionReduceRequest request) throws com.google.protobuf.ServiceException; public edu.brown.hstore.Hstoreservice.TransactionPrepareResponse transactionPrepare( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionPrepareRequest request) throws com.google.protobuf.ServiceException; public edu.brown.hstore.Hstoreservice.TransactionFinishResponse transactionFinish( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionFinishRequest request) throws com.google.protobuf.ServiceException; public edu.brown.hstore.Hstoreservice.TransactionRedirectResponse transactionRedirect( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionRedirectRequest request) throws com.google.protobuf.ServiceException; public edu.brown.hstore.Hstoreservice.TransactionDebugResponse transactionDebug( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionDebugRequest request) throws com.google.protobuf.ServiceException; public edu.brown.hstore.Hstoreservice.SendDataResponse sendData( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.SendDataRequest request) throws com.google.protobuf.ServiceException; public edu.brown.hstore.Hstoreservice.InitializeResponse initialize( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.InitializeRequest request) throws com.google.protobuf.ServiceException; public edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse shutdownPrepare( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest request) throws com.google.protobuf.ServiceException; public edu.brown.hstore.Hstoreservice.ShutdownResponse shutdown( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.ShutdownRequest request) throws com.google.protobuf.ServiceException; public edu.brown.hstore.Hstoreservice.HeartbeatResponse heartbeat( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.HeartbeatRequest request) throws com.google.protobuf.ServiceException; public edu.brown.hstore.Hstoreservice.UnevictDataResponse unevictData( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.UnevictDataRequest request) throws com.google.protobuf.ServiceException; public edu.brown.hstore.Hstoreservice.TimeSyncResponse timeSync( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TimeSyncRequest request) throws com.google.protobuf.ServiceException; } private static final class BlockingStub implements BlockingInterface { private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { this.channel = channel; } private final com.google.protobuf.BlockingRpcChannel channel; public edu.brown.hstore.Hstoreservice.TransactionInitResponse transactionInit( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionInitRequest request) throws com.google.protobuf.ServiceException { return (edu.brown.hstore.Hstoreservice.TransactionInitResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(0), controller, request, edu.brown.hstore.Hstoreservice.TransactionInitResponse.getDefaultInstance()); } public edu.brown.hstore.Hstoreservice.TransactionWorkResponse transactionWork( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionWorkRequest request) throws com.google.protobuf.ServiceException { return (edu.brown.hstore.Hstoreservice.TransactionWorkResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(1), controller, request, edu.brown.hstore.Hstoreservice.TransactionWorkResponse.getDefaultInstance()); } public edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement transactionPrefetch( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionPrefetchResult request) throws com.google.protobuf.ServiceException { return (edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement) channel.callBlockingMethod( getDescriptor().getMethods().get(2), controller, request, edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement.getDefaultInstance()); } public edu.brown.hstore.Hstoreservice.TransactionMapResponse transactionMap( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionMapRequest request) throws com.google.protobuf.ServiceException { return (edu.brown.hstore.Hstoreservice.TransactionMapResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(3), controller, request, edu.brown.hstore.Hstoreservice.TransactionMapResponse.getDefaultInstance()); } public edu.brown.hstore.Hstoreservice.TransactionReduceResponse transactionReduce( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionReduceRequest request) throws com.google.protobuf.ServiceException { return (edu.brown.hstore.Hstoreservice.TransactionReduceResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(4), controller, request, edu.brown.hstore.Hstoreservice.TransactionReduceResponse.getDefaultInstance()); } public edu.brown.hstore.Hstoreservice.TransactionPrepareResponse transactionPrepare( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionPrepareRequest request) throws com.google.protobuf.ServiceException { return (edu.brown.hstore.Hstoreservice.TransactionPrepareResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(5), controller, request, edu.brown.hstore.Hstoreservice.TransactionPrepareResponse.getDefaultInstance()); } public edu.brown.hstore.Hstoreservice.TransactionFinishResponse transactionFinish( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionFinishRequest request) throws com.google.protobuf.ServiceException { return (edu.brown.hstore.Hstoreservice.TransactionFinishResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(6), controller, request, edu.brown.hstore.Hstoreservice.TransactionFinishResponse.getDefaultInstance()); } public edu.brown.hstore.Hstoreservice.TransactionRedirectResponse transactionRedirect( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionRedirectRequest request) throws com.google.protobuf.ServiceException { return (edu.brown.hstore.Hstoreservice.TransactionRedirectResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(7), controller, request, edu.brown.hstore.Hstoreservice.TransactionRedirectResponse.getDefaultInstance()); } public edu.brown.hstore.Hstoreservice.TransactionDebugResponse transactionDebug( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TransactionDebugRequest request) throws com.google.protobuf.ServiceException { return (edu.brown.hstore.Hstoreservice.TransactionDebugResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(8), controller, request, edu.brown.hstore.Hstoreservice.TransactionDebugResponse.getDefaultInstance()); } public edu.brown.hstore.Hstoreservice.SendDataResponse sendData( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.SendDataRequest request) throws com.google.protobuf.ServiceException { return (edu.brown.hstore.Hstoreservice.SendDataResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(9), controller, request, edu.brown.hstore.Hstoreservice.SendDataResponse.getDefaultInstance()); } public edu.brown.hstore.Hstoreservice.InitializeResponse initialize( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.InitializeRequest request) throws com.google.protobuf.ServiceException { return (edu.brown.hstore.Hstoreservice.InitializeResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(10), controller, request, edu.brown.hstore.Hstoreservice.InitializeResponse.getDefaultInstance()); } public edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse shutdownPrepare( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest request) throws com.google.protobuf.ServiceException { return (edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(11), controller, request, edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse.getDefaultInstance()); } public edu.brown.hstore.Hstoreservice.ShutdownResponse shutdown( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.ShutdownRequest request) throws com.google.protobuf.ServiceException { return (edu.brown.hstore.Hstoreservice.ShutdownResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(12), controller, request, edu.brown.hstore.Hstoreservice.ShutdownResponse.getDefaultInstance()); } public edu.brown.hstore.Hstoreservice.HeartbeatResponse heartbeat( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.HeartbeatRequest request) throws com.google.protobuf.ServiceException { return (edu.brown.hstore.Hstoreservice.HeartbeatResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(13), controller, request, edu.brown.hstore.Hstoreservice.HeartbeatResponse.getDefaultInstance()); } public edu.brown.hstore.Hstoreservice.UnevictDataResponse unevictData( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.UnevictDataRequest request) throws com.google.protobuf.ServiceException { return (edu.brown.hstore.Hstoreservice.UnevictDataResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(14), controller, request, edu.brown.hstore.Hstoreservice.UnevictDataResponse.getDefaultInstance()); } public edu.brown.hstore.Hstoreservice.TimeSyncResponse timeSync( com.google.protobuf.RpcController controller, edu.brown.hstore.Hstoreservice.TimeSyncRequest request) throws com.google.protobuf.ServiceException { return (edu.brown.hstore.Hstoreservice.TimeSyncResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(15), controller, request, edu.brown.hstore.Hstoreservice.TimeSyncResponse.getDefaultInstance()); } } } private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_WorkFragment_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_WorkFragment_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_WorkResult_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_WorkResult_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_QueryEstimate_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_QueryEstimate_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_TransactionInitRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_TransactionInitRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_TransactionInitResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_TransactionInitResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_TransactionWorkRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_TransactionWorkRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_TransactionWorkResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_TransactionWorkResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_TransactionPrefetchResult_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_TransactionPrefetchResult_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_TransactionPrefetchAcknowledgement_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_TransactionPrefetchAcknowledgement_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_TransactionMapRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_TransactionMapRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_TransactionMapResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_TransactionMapResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_TransactionReduceRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_TransactionReduceRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_TransactionReduceResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_TransactionReduceResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_TransactionReduceResponse_ReduceResult_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_TransactionReduceResponse_ReduceResult_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_TransactionPrepareRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_TransactionPrepareRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_TransactionPrepareResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_TransactionPrepareResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_TransactionFinishRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_TransactionFinishRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_TransactionFinishResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_TransactionFinishResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_TransactionRedirectRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_TransactionRedirectRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_TransactionRedirectResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_TransactionRedirectResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_TransactionDebugRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_TransactionDebugRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_TransactionDebugResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_TransactionDebugResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_SendDataRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_SendDataRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_SendDataResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_SendDataResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_InitializeRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_InitializeRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_InitializeResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_InitializeResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_ShutdownPrepareRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_ShutdownPrepareRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_ShutdownPrepareResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_ShutdownPrepareResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_ShutdownRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_ShutdownRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_ShutdownResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_ShutdownResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_HeartbeatRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_HeartbeatRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_HeartbeatResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_HeartbeatResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_UnevictDataRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_UnevictDataRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_UnevictDataResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_UnevictDataResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_TimeSyncRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_TimeSyncRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_edu_brown_hstore_TimeSyncResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_brown_hstore_TimeSyncResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n$edu/brown/hstore/hstoreservice.proto\022\020" + "edu.brown.hstore\032$ca/evanjones/protorpc/" + "Protocol.proto\"\216\003\n\014WorkFragment\022\024\n\014parti" + "tion_id\030\001 \002(\005\022\027\n\013fragment_id\030\002 \003(\005B\002\020\001\022\030" + "\n\014input_dep_id\030\003 \003(\005B\002\020\001\022\031\n\routput_dep_i" + "d\030\004 \003(\005B\002\020\001\022\027\n\013param_index\030\005 \003(\005B\002\020\001\022\030\n\014" + "stmt_counter\030\006 \003(\005B\002\020\001\022\026\n\nstmt_index\030\007 \003" + "(\005B\002\020\001\022\027\n\013stmt_ignore\030\010 \003(\010B\002\020\001\022\021\n\tread_" + "only\030\t \002(\010\022\032\n\013needs_input\030\n \001(\010:\005false\022\034" + "\n\rlast_fragment\030\013 \001(\010:\005false\022\027\n\010prefetch", "\030\014 \001(\010:\005false\022\024\n\005force\030\r \001(\010:\005false\022:\n\021f" + "uture_statements\030\016 \001(\0132\037.edu.brown.hstor" + "e.QueryEstimate\"\201\001\n\nWorkResult\022\024\n\014partit" + "ion_id\030\001 \002(\005\022\022\n\006dep_id\030\002 \003(\005B\002\020\001\022\020\n\010dep_" + "data\030\003 \003(\014\022(\n\006status\030\004 \002(\0162\030.edu.brown.h" + "store.Status\022\r\n\005error\030\005 \001(\014\"W\n\rQueryEsti" + "mate\022\024\n\010stmt_ids\030\001 \003(\005B\002\020\001\022\031\n\rstmt_count" + "ers\030\002 \003(\005B\002\020\001\022\025\n\rtime_estimate\030\003 \001(\005\"\375\001\n" + "\026TransactionInitRequest\022\033\n\023last_transact" + "ion_id\030\001 \001(\003\022\026\n\016transaction_id\030\002 \002(\003\022\026\n\016", "base_partition\030\003 \002(\005\022\024\n\014procedure_id\030\004 \002" + "(\005\022\026\n\npartitions\030\005 \003(\005B\002\020\001\022\023\n\013proc_param" + "s\030\006 \001(\014\022:\n\022prefetch_fragments\030\007 \003(\0132\036.ed" + "u.brown.hstore.WorkFragment\022\027\n\017prefetch_" + "params\030\010 \003(\014\"\254\001\n\027TransactionInitResponse" + "\022\026\n\016transaction_id\030\001 \002(\003\022\026\n\npartitions\030\002" + " \003(\005B\002\020\001\022(\n\006status\030\003 \002(\0162\030.edu.brown.hst" + "ore.Status\022\030\n\020reject_partition\030\004 \001(\005\022\035\n\025" + "reject_transaction_id\030\005 \001(\003\"\245\002\n\026Transact" + "ionWorkRequest\022\033\n\023last_transaction_id\030\001 ", "\001(\003\022\026\n\016transaction_id\030\002 \002(\003\022\030\n\020source_pa" + "rtition\030\003 \002(\005\0221\n\tfragments\030\004 \003(\0132\036.edu.b" + "rown.hstore.WorkFragment\022\024\n\014procedure_id" + "\030\005 \002(\005\022\016\n\006params\030\006 \003(\014\022\033\n\017attached_dep_i" + "d\030\007 \003(\005B\002\020\001\022\025\n\rattached_data\030\010 \003(\014\022\032\n\016do" + "ne_partition\030\t \003(\005B\002\020\001\022\023\n\013proc_params\030\n " + "\001(\014\"\212\001\n\027TransactionWorkResponse\022\026\n\016trans" + "action_id\030\001 \002(\003\022-\n\007results\030\002 \003(\0132\034.edu.b" + "rown.hstore.WorkResult\022(\n\006status\030\003 \002(\0162\030" + ".edu.brown.hstore.Status\"\215\002\n\031Transaction", "PrefetchResult\022\033\n\023last_transaction_id\030\001 " + "\001(\003\022\026\n\016transaction_id\030\002 \002(\003\022\030\n\020source_pa" + "rtition\030\003 \002(\005\022,\n\006result\030\004 \002(\0132\034.edu.brow" + "n.hstore.WorkResult\022(\n\006status\030\005 \002(\0162\030.ed" + "u.brown.hstore.Status\022\030\n\014stmt_counter\030\006 " + "\003(\005B\002\020\001\022\027\n\013fragment_id\030\007 \003(\005B\002\020\001\022\026\n\npara" + "m_hash\030\010 \003(\005B\002\020\001\"V\n\"TransactionPrefetchA" + "cknowledgement\022\026\n\016transaction_id\030\001 \002(\003\022\030" + "\n\020target_partition\030\002 \002(\005\"\241\001\n\025Transaction" + "MapRequest\022\033\n\023last_transaction_id\030\001 \001(\003\022", "\026\n\016transaction_id\030\002 \002(\003\022\025\n\rclient_handle" + "\030\003 \002(\003\022\026\n\016base_partition\030\004 \002(\005\022\024\n\014proced" + "ure_id\030\005 \002(\005\022\016\n\006params\030\006 \002(\014\"r\n\026Transact" + "ionMapResponse\022\026\n\016transaction_id\030\001 \002(\003\022\026" + "\n\npartitions\030\002 \003(\005B\002\020\001\022(\n\006status\030\003 \002(\0162\030" + ".edu.brown.hstore.Status\"2\n\030TransactionR" + "educeRequest\022\026\n\016transaction_id\030\001 \002(\003\"\234\002\n" + "\031TransactionReduceResponse\022\026\n\016transactio" + "n_id\030\001 \002(\003\022I\n\007results\030\002 \003(\01328.edu.brown." + "hstore.TransactionReduceResponse.ReduceR", "esult\022(\n\006status\030\003 \002(\0162\030.edu.brown.hstore" + ".Status\032r\n\014ReduceResult\022\024\n\014partition_id\030" + "\001 \002(\005\022\014\n\004data\030\002 \002(\014\022(\n\006status\030\003 \002(\0162\030.ed" + "u.brown.hstore.Status\022\024\n\005error\030\004 \001(\010:\005fa" + "lse\"K\n\031TransactionPrepareRequest\022\026\n\016tran" + "saction_id\030\001 \002(\003\022\026\n\npartitions\030\002 \003(\005B\002\020\001" + "\"v\n\032TransactionPrepareResponse\022\026\n\016transa" + "ction_id\030\001 \002(\003\022\026\n\npartitions\030\002 \003(\005B\002\020\001\022(" + "\n\006status\030\003 \002(\0162\030.edu.brown.hstore.Status" + "\"t\n\030TransactionFinishRequest\022\026\n\016transact", "ion_id\030\001 \002(\003\022\026\n\npartitions\030\002 \003(\005B\002\020\001\022(\n\006" + "status\030\003 \002(\0162\030.edu.brown.hstore.Status\"K" + "\n\031TransactionFinishResponse\022\026\n\016transacti" + "on_id\030\001 \002(\003\022\026\n\npartitions\030\002 \003(\005B\002\020\001\"T\n\032T" + "ransactionRedirectRequest\022\023\n\013sender_site" + "\030\001 \002(\005\022\014\n\004work\030\002 \002(\014\022\023\n\013orig_txn_id\030\003 \001(" + "\003\"B\n\033TransactionRedirectResponse\022\023\n\013send" + "er_site\030\001 \002(\005\022\016\n\006output\030\002 \002(\014\"F\n\027Transac" + "tionDebugRequest\022\023\n\013sender_site\030\001 \002(\005\022\026\n" + "\016transaction_id\030\002 \002(\003\"h\n\030TransactionDebu", "gResponse\022\023\n\013sender_site\030\001 \002(\005\022(\n\006status" + "\030\002 \002(\0162\030.edu.brown.hstore.Status\022\r\n\005debu" + "g\030\003 \002(\t\"`\n\017SendDataRequest\022\026\n\016transactio" + "n_id\030\001 \002(\003\022\023\n\013sender_site\030\002 \002(\005\022\022\n\006dep_i" + "d\030\003 \003(\005B\002\020\001\022\014\n\004data\030\004 \003(\014\"\201\001\n\020SendDataRe" + "sponse\022\026\n\016transaction_id\030\001 \002(\003\022\026\n\npartit" + "ions\030\002 \003(\005B\002\020\001\022\023\n\013sender_site\030\003 \002(\005\022(\n\006s" + "tatus\030\004 \002(\0162\030.edu.brown.hstore.Status\"=\n" + "\021InitializeRequest\022\023\n\013sender_site\030\001 \002(\005\022" + "\023\n\013instance_id\030\002 \002(\003\"S\n\022InitializeRespon", "se\022\023\n\013sender_site\030\001 \002(\005\022(\n\006status\030\002 \002(\0162" + "\030.edu.brown.hstore.Status\"<\n\026ShutdownPre" + "pareRequest\022\023\n\013sender_site\030\001 \002(\005\022\r\n\005erro" + "r\030\002 \001(\014\".\n\027ShutdownPrepareResponse\022\023\n\013se" + "nder_site\030\001 \002(\005\";\n\017ShutdownRequest\022\023\n\013se" + "nder_site\030\001 \002(\005\022\023\n\013exit_status\030\002 \002(\005\"\'\n\020" + "ShutdownResponse\022\023\n\013sender_site\030\001 \002(\005\"D\n" + "\020HeartbeatRequest\022\023\n\013sender_site\030\001 \002(\005\022\033" + "\n\023last_transaction_id\030\002 \002(\003\"R\n\021Heartbeat" + "Response\022\023\n\013sender_site\030\001 \002(\005\022(\n\006status\030", "\002 \002(\0162\030.edu.brown.hstore.Status\"\267\001\n\022Unev" + "ictDataRequest\022\023\n\013sender_site\030\001 \002(\005\022\026\n\016t" + "ransaction_id\030\002 \002(\003\022\024\n\014partition_id\030\003 \002(" + "\005\022\020\n\010table_id\030\004 \002(\005\022\025\n\tblock_ids\030\005 \003(\005B\002" + "\020\001\022\031\n\rtuple_offsets\030\006 \003(\005B\002\020\001\022\032\n\022new_tra" + "nsaction_id\030\007 \002(\003\"\202\001\n\023UnevictDataRespons" + "e\022\023\n\013sender_site\030\001 \002(\005\022(\n\006status\030\002 \002(\0162\030" + ".edu.brown.hstore.Status\022\026\n\016transaction_" + "id\030\003 \002(\003\022\024\n\014partition_id\030\004 \002(\005\"4\n\017TimeSy" + "ncRequest\022\023\n\013sender_site\030\001 \002(\005\022\014\n\004t0_s\030\002", " \002(\003\"Q\n\020TimeSyncResponse\022\023\n\013sender_site\030" + "\001 \002(\005\022\014\n\004t0_s\030\002 \002(\003\022\014\n\004t0_r\030\003 \002(\003\022\014\n\004t1_" + "s\030\004 \002(\003*\320\001\n\006Status\022\006\n\002OK\020\000\022\016\n\nABORT_USER" + "\020\001\022\022\n\016ABORT_GRACEFUL\020\002\022\024\n\020ABORT_UNEXPECT" + "ED\020\003\022\031\n\025ABORT_CONNECTION_LOST\020\004\022\024\n\020ABORT" + "_MISPREDICT\020\005\022\021\n\rABORT_RESTART\020\006\022\020\n\014ABOR" + "T_REJECT\020\007\022\027\n\023ABORT_EVICTEDACCESS\020\010\022\025\n\021A" + "BORT_SPECULATIVE\020\t2\326\014\n\rHStoreService\022f\n\017" + "TransactionInit\022(.edu.brown.hstore.Trans" + "actionInitRequest\032).edu.brown.hstore.Tra", "nsactionInitResponse\022f\n\017TransactionWork\022" + "(.edu.brown.hstore.TransactionWorkReques" + "t\032).edu.brown.hstore.TransactionWorkResp" + "onse\022x\n\023TransactionPrefetch\022+.edu.brown." + "hstore.TransactionPrefetchResult\0324.edu.b" + "rown.hstore.TransactionPrefetchAcknowled" + "gement\022c\n\016TransactionMap\022\'.edu.brown.hst" + "ore.TransactionMapRequest\032(.edu.brown.hs" + "tore.TransactionMapResponse\022l\n\021Transacti" + "onReduce\022*.edu.brown.hstore.TransactionR", "educeRequest\032+.edu.brown.hstore.Transact" + "ionReduceResponse\022o\n\022TransactionPrepare\022" + "+.edu.brown.hstore.TransactionPrepareReq" + "uest\032,.edu.brown.hstore.TransactionPrepa" + "reResponse\022l\n\021TransactionFinish\022*.edu.br" + "own.hstore.TransactionFinishRequest\032+.ed" + "u.brown.hstore.TransactionFinishResponse" + "\022r\n\023TransactionRedirect\022,.edu.brown.hsto" + "re.TransactionRedirectRequest\032-.edu.brow" + "n.hstore.TransactionRedirectResponse\022i\n\020", "TransactionDebug\022).edu.brown.hstore.Tran" + "sactionDebugRequest\032*.edu.brown.hstore.T" + "ransactionDebugResponse\022Q\n\010SendData\022!.ed" + "u.brown.hstore.SendDataRequest\032\".edu.bro" + "wn.hstore.SendDataResponse\022W\n\nInitialize" + "\022#.edu.brown.hstore.InitializeRequest\032$." + "edu.brown.hstore.InitializeResponse\022f\n\017S" + "hutdownPrepare\022(.edu.brown.hstore.Shutdo" + "wnPrepareRequest\032).edu.brown.hstore.Shut" + "downPrepareResponse\022Q\n\010Shutdown\022!.edu.br", "own.hstore.ShutdownRequest\032\".edu.brown.h" + "store.ShutdownResponse\022T\n\tHeartbeat\022\".ed" + "u.brown.hstore.HeartbeatRequest\032#.edu.br" + "own.hstore.HeartbeatResponse\022Z\n\013UnevictD" + "ata\022$.edu.brown.hstore.UnevictDataReques" + "t\032%.edu.brown.hstore.UnevictDataResponse" + "\022Q\n\010TimeSync\022!.edu.brown.hstore.TimeSync" + "Request\032\".edu.brown.hstore.TimeSyncRespo" + "nse" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; internal_static_edu_brown_hstore_WorkFragment_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_edu_brown_hstore_WorkFragment_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_WorkFragment_descriptor, new java.lang.String[] { "PartitionId", "FragmentId", "InputDepId", "OutputDepId", "ParamIndex", "StmtCounter", "StmtIndex", "StmtIgnore", "ReadOnly", "NeedsInput", "LastFragment", "Prefetch", "Force", "FutureStatements", }, edu.brown.hstore.Hstoreservice.WorkFragment.class, edu.brown.hstore.Hstoreservice.WorkFragment.Builder.class); internal_static_edu_brown_hstore_WorkResult_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_edu_brown_hstore_WorkResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_WorkResult_descriptor, new java.lang.String[] { "PartitionId", "DepId", "DepData", "Status", "Error", }, edu.brown.hstore.Hstoreservice.WorkResult.class, edu.brown.hstore.Hstoreservice.WorkResult.Builder.class); internal_static_edu_brown_hstore_QueryEstimate_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_edu_brown_hstore_QueryEstimate_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_QueryEstimate_descriptor, new java.lang.String[] { "StmtIds", "StmtCounters", "TimeEstimate", }, edu.brown.hstore.Hstoreservice.QueryEstimate.class, edu.brown.hstore.Hstoreservice.QueryEstimate.Builder.class); internal_static_edu_brown_hstore_TransactionInitRequest_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_edu_brown_hstore_TransactionInitRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_TransactionInitRequest_descriptor, new java.lang.String[] { "LastTransactionId", "TransactionId", "BasePartition", "ProcedureId", "Partitions", "ProcParams", "PrefetchFragments", "PrefetchParams", }, edu.brown.hstore.Hstoreservice.TransactionInitRequest.class, edu.brown.hstore.Hstoreservice.TransactionInitRequest.Builder.class); internal_static_edu_brown_hstore_TransactionInitResponse_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_edu_brown_hstore_TransactionInitResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_TransactionInitResponse_descriptor, new java.lang.String[] { "TransactionId", "Partitions", "Status", "RejectPartition", "RejectTransactionId", }, edu.brown.hstore.Hstoreservice.TransactionInitResponse.class, edu.brown.hstore.Hstoreservice.TransactionInitResponse.Builder.class); internal_static_edu_brown_hstore_TransactionWorkRequest_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_edu_brown_hstore_TransactionWorkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_TransactionWorkRequest_descriptor, new java.lang.String[] { "LastTransactionId", "TransactionId", "SourcePartition", "Fragments", "ProcedureId", "Params", "AttachedDepId", "AttachedData", "DonePartition", "ProcParams", }, edu.brown.hstore.Hstoreservice.TransactionWorkRequest.class, edu.brown.hstore.Hstoreservice.TransactionWorkRequest.Builder.class); internal_static_edu_brown_hstore_TransactionWorkResponse_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_edu_brown_hstore_TransactionWorkResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_TransactionWorkResponse_descriptor, new java.lang.String[] { "TransactionId", "Results", "Status", }, edu.brown.hstore.Hstoreservice.TransactionWorkResponse.class, edu.brown.hstore.Hstoreservice.TransactionWorkResponse.Builder.class); internal_static_edu_brown_hstore_TransactionPrefetchResult_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_edu_brown_hstore_TransactionPrefetchResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_TransactionPrefetchResult_descriptor, new java.lang.String[] { "LastTransactionId", "TransactionId", "SourcePartition", "Result", "Status", "StmtCounter", "FragmentId", "ParamHash", }, edu.brown.hstore.Hstoreservice.TransactionPrefetchResult.class, edu.brown.hstore.Hstoreservice.TransactionPrefetchResult.Builder.class); internal_static_edu_brown_hstore_TransactionPrefetchAcknowledgement_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_edu_brown_hstore_TransactionPrefetchAcknowledgement_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_TransactionPrefetchAcknowledgement_descriptor, new java.lang.String[] { "TransactionId", "TargetPartition", }, edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement.class, edu.brown.hstore.Hstoreservice.TransactionPrefetchAcknowledgement.Builder.class); internal_static_edu_brown_hstore_TransactionMapRequest_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_edu_brown_hstore_TransactionMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_TransactionMapRequest_descriptor, new java.lang.String[] { "LastTransactionId", "TransactionId", "ClientHandle", "BasePartition", "ProcedureId", "Params", }, edu.brown.hstore.Hstoreservice.TransactionMapRequest.class, edu.brown.hstore.Hstoreservice.TransactionMapRequest.Builder.class); internal_static_edu_brown_hstore_TransactionMapResponse_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_edu_brown_hstore_TransactionMapResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_TransactionMapResponse_descriptor, new java.lang.String[] { "TransactionId", "Partitions", "Status", }, edu.brown.hstore.Hstoreservice.TransactionMapResponse.class, edu.brown.hstore.Hstoreservice.TransactionMapResponse.Builder.class); internal_static_edu_brown_hstore_TransactionReduceRequest_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_edu_brown_hstore_TransactionReduceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_TransactionReduceRequest_descriptor, new java.lang.String[] { "TransactionId", }, edu.brown.hstore.Hstoreservice.TransactionReduceRequest.class, edu.brown.hstore.Hstoreservice.TransactionReduceRequest.Builder.class); internal_static_edu_brown_hstore_TransactionReduceResponse_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_edu_brown_hstore_TransactionReduceResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_TransactionReduceResponse_descriptor, new java.lang.String[] { "TransactionId", "Results", "Status", }, edu.brown.hstore.Hstoreservice.TransactionReduceResponse.class, edu.brown.hstore.Hstoreservice.TransactionReduceResponse.Builder.class); internal_static_edu_brown_hstore_TransactionReduceResponse_ReduceResult_descriptor = internal_static_edu_brown_hstore_TransactionReduceResponse_descriptor.getNestedTypes().get(0); internal_static_edu_brown_hstore_TransactionReduceResponse_ReduceResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_TransactionReduceResponse_ReduceResult_descriptor, new java.lang.String[] { "PartitionId", "Data", "Status", "Error", }, edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult.class, edu.brown.hstore.Hstoreservice.TransactionReduceResponse.ReduceResult.Builder.class); internal_static_edu_brown_hstore_TransactionPrepareRequest_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_edu_brown_hstore_TransactionPrepareRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_TransactionPrepareRequest_descriptor, new java.lang.String[] { "TransactionId", "Partitions", }, edu.brown.hstore.Hstoreservice.TransactionPrepareRequest.class, edu.brown.hstore.Hstoreservice.TransactionPrepareRequest.Builder.class); internal_static_edu_brown_hstore_TransactionPrepareResponse_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_edu_brown_hstore_TransactionPrepareResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_TransactionPrepareResponse_descriptor, new java.lang.String[] { "TransactionId", "Partitions", "Status", }, edu.brown.hstore.Hstoreservice.TransactionPrepareResponse.class, edu.brown.hstore.Hstoreservice.TransactionPrepareResponse.Builder.class); internal_static_edu_brown_hstore_TransactionFinishRequest_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_edu_brown_hstore_TransactionFinishRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_TransactionFinishRequest_descriptor, new java.lang.String[] { "TransactionId", "Partitions", "Status", }, edu.brown.hstore.Hstoreservice.TransactionFinishRequest.class, edu.brown.hstore.Hstoreservice.TransactionFinishRequest.Builder.class); internal_static_edu_brown_hstore_TransactionFinishResponse_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_edu_brown_hstore_TransactionFinishResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_TransactionFinishResponse_descriptor, new java.lang.String[] { "TransactionId", "Partitions", }, edu.brown.hstore.Hstoreservice.TransactionFinishResponse.class, edu.brown.hstore.Hstoreservice.TransactionFinishResponse.Builder.class); internal_static_edu_brown_hstore_TransactionRedirectRequest_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_edu_brown_hstore_TransactionRedirectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_TransactionRedirectRequest_descriptor, new java.lang.String[] { "SenderSite", "Work", "OrigTxnId", }, edu.brown.hstore.Hstoreservice.TransactionRedirectRequest.class, edu.brown.hstore.Hstoreservice.TransactionRedirectRequest.Builder.class); internal_static_edu_brown_hstore_TransactionRedirectResponse_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_edu_brown_hstore_TransactionRedirectResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_TransactionRedirectResponse_descriptor, new java.lang.String[] { "SenderSite", "Output", }, edu.brown.hstore.Hstoreservice.TransactionRedirectResponse.class, edu.brown.hstore.Hstoreservice.TransactionRedirectResponse.Builder.class); internal_static_edu_brown_hstore_TransactionDebugRequest_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_edu_brown_hstore_TransactionDebugRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_TransactionDebugRequest_descriptor, new java.lang.String[] { "SenderSite", "TransactionId", }, edu.brown.hstore.Hstoreservice.TransactionDebugRequest.class, edu.brown.hstore.Hstoreservice.TransactionDebugRequest.Builder.class); internal_static_edu_brown_hstore_TransactionDebugResponse_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_edu_brown_hstore_TransactionDebugResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_TransactionDebugResponse_descriptor, new java.lang.String[] { "SenderSite", "Status", "Debug", }, edu.brown.hstore.Hstoreservice.TransactionDebugResponse.class, edu.brown.hstore.Hstoreservice.TransactionDebugResponse.Builder.class); internal_static_edu_brown_hstore_SendDataRequest_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_edu_brown_hstore_SendDataRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_SendDataRequest_descriptor, new java.lang.String[] { "TransactionId", "SenderSite", "DepId", "Data", }, edu.brown.hstore.Hstoreservice.SendDataRequest.class, edu.brown.hstore.Hstoreservice.SendDataRequest.Builder.class); internal_static_edu_brown_hstore_SendDataResponse_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_edu_brown_hstore_SendDataResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_SendDataResponse_descriptor, new java.lang.String[] { "TransactionId", "Partitions", "SenderSite", "Status", }, edu.brown.hstore.Hstoreservice.SendDataResponse.class, edu.brown.hstore.Hstoreservice.SendDataResponse.Builder.class); internal_static_edu_brown_hstore_InitializeRequest_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_edu_brown_hstore_InitializeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_InitializeRequest_descriptor, new java.lang.String[] { "SenderSite", "InstanceId", }, edu.brown.hstore.Hstoreservice.InitializeRequest.class, edu.brown.hstore.Hstoreservice.InitializeRequest.Builder.class); internal_static_edu_brown_hstore_InitializeResponse_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_edu_brown_hstore_InitializeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_InitializeResponse_descriptor, new java.lang.String[] { "SenderSite", "Status", }, edu.brown.hstore.Hstoreservice.InitializeResponse.class, edu.brown.hstore.Hstoreservice.InitializeResponse.Builder.class); internal_static_edu_brown_hstore_ShutdownPrepareRequest_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_edu_brown_hstore_ShutdownPrepareRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_ShutdownPrepareRequest_descriptor, new java.lang.String[] { "SenderSite", "Error", }, edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest.class, edu.brown.hstore.Hstoreservice.ShutdownPrepareRequest.Builder.class); internal_static_edu_brown_hstore_ShutdownPrepareResponse_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_edu_brown_hstore_ShutdownPrepareResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_ShutdownPrepareResponse_descriptor, new java.lang.String[] { "SenderSite", }, edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse.class, edu.brown.hstore.Hstoreservice.ShutdownPrepareResponse.Builder.class); internal_static_edu_brown_hstore_ShutdownRequest_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_edu_brown_hstore_ShutdownRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_ShutdownRequest_descriptor, new java.lang.String[] { "SenderSite", "ExitStatus", }, edu.brown.hstore.Hstoreservice.ShutdownRequest.class, edu.brown.hstore.Hstoreservice.ShutdownRequest.Builder.class); internal_static_edu_brown_hstore_ShutdownResponse_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_edu_brown_hstore_ShutdownResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_ShutdownResponse_descriptor, new java.lang.String[] { "SenderSite", }, edu.brown.hstore.Hstoreservice.ShutdownResponse.class, edu.brown.hstore.Hstoreservice.ShutdownResponse.Builder.class); internal_static_edu_brown_hstore_HeartbeatRequest_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_edu_brown_hstore_HeartbeatRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_HeartbeatRequest_descriptor, new java.lang.String[] { "SenderSite", "LastTransactionId", }, edu.brown.hstore.Hstoreservice.HeartbeatRequest.class, edu.brown.hstore.Hstoreservice.HeartbeatRequest.Builder.class); internal_static_edu_brown_hstore_HeartbeatResponse_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_edu_brown_hstore_HeartbeatResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_HeartbeatResponse_descriptor, new java.lang.String[] { "SenderSite", "Status", }, edu.brown.hstore.Hstoreservice.HeartbeatResponse.class, edu.brown.hstore.Hstoreservice.HeartbeatResponse.Builder.class); internal_static_edu_brown_hstore_UnevictDataRequest_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_edu_brown_hstore_UnevictDataRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_UnevictDataRequest_descriptor, new java.lang.String[] { "SenderSite", "TransactionId", "PartitionId", "TableId", "BlockIds", "TupleOffsets", "NewTransactionId", }, edu.brown.hstore.Hstoreservice.UnevictDataRequest.class, edu.brown.hstore.Hstoreservice.UnevictDataRequest.Builder.class); internal_static_edu_brown_hstore_UnevictDataResponse_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_edu_brown_hstore_UnevictDataResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_UnevictDataResponse_descriptor, new java.lang.String[] { "SenderSite", "Status", "TransactionId", "PartitionId", }, edu.brown.hstore.Hstoreservice.UnevictDataResponse.class, edu.brown.hstore.Hstoreservice.UnevictDataResponse.Builder.class); internal_static_edu_brown_hstore_TimeSyncRequest_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_edu_brown_hstore_TimeSyncRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_TimeSyncRequest_descriptor, new java.lang.String[] { "SenderSite", "T0S", }, edu.brown.hstore.Hstoreservice.TimeSyncRequest.class, edu.brown.hstore.Hstoreservice.TimeSyncRequest.Builder.class); internal_static_edu_brown_hstore_TimeSyncResponse_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_edu_brown_hstore_TimeSyncResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_brown_hstore_TimeSyncResponse_descriptor, new java.lang.String[] { "SenderSite", "T0S", "T0R", "T1S", }, edu.brown.hstore.Hstoreservice.TimeSyncResponse.class, edu.brown.hstore.Hstoreservice.TimeSyncResponse.Builder.class); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { ca.evanjones.protorpc.Protocol.getDescriptor(), }, assigner); } public static void internalForceInit() {} // @@protoc_insertion_point(outer_class_scope) }