All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scalar.db.rpc.TransactionResponse Maven / Gradle / Ivy

There is a newer version: 3.13.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: scalardb.proto

// Protobuf Java Version: 3.25.5
package com.scalar.db.rpc;

/**
 * Protobuf type {@code rpc.TransactionResponse}
 */
public final class TransactionResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:rpc.TransactionResponse)
    TransactionResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use TransactionResponse.newBuilder() to construct.
  private TransactionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private TransactionResponse() {
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new TransactionResponse();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.scalar.db.rpc.TransactionResponse.class, com.scalar.db.rpc.TransactionResponse.Builder.class);
  }

  public interface BeginResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:rpc.TransactionResponse.BeginResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string transaction_id = 1;
     * @return The transactionId.
     */
    java.lang.String getTransactionId();
    /**
     * string transaction_id = 1;
     * @return The bytes for transactionId.
     */
    com.google.protobuf.ByteString
        getTransactionIdBytes();
  }
  /**
   * Protobuf type {@code rpc.TransactionResponse.BeginResponse}
   */
  public static final class BeginResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:rpc.TransactionResponse.BeginResponse)
      BeginResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BeginResponse.newBuilder() to construct.
    private BeginResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private BeginResponse() {
      transactionId_ = "";
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new BeginResponse();
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_BeginResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_BeginResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.scalar.db.rpc.TransactionResponse.BeginResponse.class, com.scalar.db.rpc.TransactionResponse.BeginResponse.Builder.class);
    }

    public static final int TRANSACTION_ID_FIELD_NUMBER = 1;
    @SuppressWarnings("serial")
    private volatile java.lang.Object transactionId_ = "";
    /**
     * string transaction_id = 1;
     * @return The transactionId.
     */
    @java.lang.Override
    public java.lang.String getTransactionId() {
      java.lang.Object ref = transactionId_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        transactionId_ = s;
        return s;
      }
    }
    /**
     * string transaction_id = 1;
     * @return The bytes for transactionId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getTransactionIdBytes() {
      java.lang.Object ref = transactionId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        transactionId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, transactionId_);
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, transactionId_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.scalar.db.rpc.TransactionResponse.BeginResponse)) {
        return super.equals(obj);
      }
      com.scalar.db.rpc.TransactionResponse.BeginResponse other = (com.scalar.db.rpc.TransactionResponse.BeginResponse) obj;

      if (!getTransactionId()
          .equals(other.getTransactionId())) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + TRANSACTION_ID_FIELD_NUMBER;
      hash = (53 * hash) + getTransactionId().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.scalar.db.rpc.TransactionResponse.BeginResponse parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionResponse.BeginResponse parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionResponse.BeginResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionResponse.BeginResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionResponse.BeginResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionResponse.BeginResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionResponse.BeginResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionResponse.BeginResponse parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static com.scalar.db.rpc.TransactionResponse.BeginResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static com.scalar.db.rpc.TransactionResponse.BeginResponse parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionResponse.BeginResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionResponse.BeginResponse parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.scalar.db.rpc.TransactionResponse.BeginResponse prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code rpc.TransactionResponse.BeginResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:rpc.TransactionResponse.BeginResponse)
        com.scalar.db.rpc.TransactionResponse.BeginResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_BeginResponse_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_BeginResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.scalar.db.rpc.TransactionResponse.BeginResponse.class, com.scalar.db.rpc.TransactionResponse.BeginResponse.Builder.class);
      }

      // Construct using com.scalar.db.rpc.TransactionResponse.BeginResponse.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        transactionId_ = "";
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_BeginResponse_descriptor;
      }

      @java.lang.Override
      public com.scalar.db.rpc.TransactionResponse.BeginResponse getDefaultInstanceForType() {
        return com.scalar.db.rpc.TransactionResponse.BeginResponse.getDefaultInstance();
      }

      @java.lang.Override
      public com.scalar.db.rpc.TransactionResponse.BeginResponse build() {
        com.scalar.db.rpc.TransactionResponse.BeginResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.scalar.db.rpc.TransactionResponse.BeginResponse buildPartial() {
        com.scalar.db.rpc.TransactionResponse.BeginResponse result = new com.scalar.db.rpc.TransactionResponse.BeginResponse(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(com.scalar.db.rpc.TransactionResponse.BeginResponse result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.transactionId_ = transactionId_;
        }
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.scalar.db.rpc.TransactionResponse.BeginResponse) {
          return mergeFrom((com.scalar.db.rpc.TransactionResponse.BeginResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.scalar.db.rpc.TransactionResponse.BeginResponse other) {
        if (other == com.scalar.db.rpc.TransactionResponse.BeginResponse.getDefaultInstance()) return this;
        if (!other.getTransactionId().isEmpty()) {
          transactionId_ = other.transactionId_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                transactionId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private java.lang.Object transactionId_ = "";
      /**
       * string transaction_id = 1;
       * @return The transactionId.
       */
      public java.lang.String getTransactionId() {
        java.lang.Object ref = transactionId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          transactionId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string transaction_id = 1;
       * @return The bytes for transactionId.
       */
      public com.google.protobuf.ByteString
          getTransactionIdBytes() {
        java.lang.Object ref = transactionId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          transactionId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string transaction_id = 1;
       * @param value The transactionId to set.
       * @return This builder for chaining.
       */
      public Builder setTransactionId(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        transactionId_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * string transaction_id = 1;
       * @return This builder for chaining.
       */
      public Builder clearTransactionId() {
        transactionId_ = getDefaultInstance().getTransactionId();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * string transaction_id = 1;
       * @param value The bytes for transactionId to set.
       * @return This builder for chaining.
       */
      public Builder setTransactionIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        checkByteStringIsUtf8(value);
        transactionId_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:rpc.TransactionResponse.BeginResponse)
    }

    // @@protoc_insertion_point(class_scope:rpc.TransactionResponse.BeginResponse)
    private static final com.scalar.db.rpc.TransactionResponse.BeginResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.scalar.db.rpc.TransactionResponse.BeginResponse();
    }

    public static com.scalar.db.rpc.TransactionResponse.BeginResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public BeginResponse parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.scalar.db.rpc.TransactionResponse.BeginResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface StartResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:rpc.TransactionResponse.StartResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string transaction_id = 1;
     * @return The transactionId.
     */
    java.lang.String getTransactionId();
    /**
     * string transaction_id = 1;
     * @return The bytes for transactionId.
     */
    com.google.protobuf.ByteString
        getTransactionIdBytes();
  }
  /**
   * Protobuf type {@code rpc.TransactionResponse.StartResponse}
   */
  public static final class StartResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:rpc.TransactionResponse.StartResponse)
      StartResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use StartResponse.newBuilder() to construct.
    private StartResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private StartResponse() {
      transactionId_ = "";
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new StartResponse();
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_StartResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_StartResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.scalar.db.rpc.TransactionResponse.StartResponse.class, com.scalar.db.rpc.TransactionResponse.StartResponse.Builder.class);
    }

    public static final int TRANSACTION_ID_FIELD_NUMBER = 1;
    @SuppressWarnings("serial")
    private volatile java.lang.Object transactionId_ = "";
    /**
     * string transaction_id = 1;
     * @return The transactionId.
     */
    @java.lang.Override
    public java.lang.String getTransactionId() {
      java.lang.Object ref = transactionId_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        transactionId_ = s;
        return s;
      }
    }
    /**
     * string transaction_id = 1;
     * @return The bytes for transactionId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getTransactionIdBytes() {
      java.lang.Object ref = transactionId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        transactionId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, transactionId_);
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, transactionId_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.scalar.db.rpc.TransactionResponse.StartResponse)) {
        return super.equals(obj);
      }
      com.scalar.db.rpc.TransactionResponse.StartResponse other = (com.scalar.db.rpc.TransactionResponse.StartResponse) obj;

      if (!getTransactionId()
          .equals(other.getTransactionId())) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + TRANSACTION_ID_FIELD_NUMBER;
      hash = (53 * hash) + getTransactionId().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.scalar.db.rpc.TransactionResponse.StartResponse parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionResponse.StartResponse parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionResponse.StartResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionResponse.StartResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionResponse.StartResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionResponse.StartResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionResponse.StartResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionResponse.StartResponse parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static com.scalar.db.rpc.TransactionResponse.StartResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static com.scalar.db.rpc.TransactionResponse.StartResponse parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionResponse.StartResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionResponse.StartResponse parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.scalar.db.rpc.TransactionResponse.StartResponse prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code rpc.TransactionResponse.StartResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:rpc.TransactionResponse.StartResponse)
        com.scalar.db.rpc.TransactionResponse.StartResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_StartResponse_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_StartResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.scalar.db.rpc.TransactionResponse.StartResponse.class, com.scalar.db.rpc.TransactionResponse.StartResponse.Builder.class);
      }

      // Construct using com.scalar.db.rpc.TransactionResponse.StartResponse.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        transactionId_ = "";
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_StartResponse_descriptor;
      }

      @java.lang.Override
      public com.scalar.db.rpc.TransactionResponse.StartResponse getDefaultInstanceForType() {
        return com.scalar.db.rpc.TransactionResponse.StartResponse.getDefaultInstance();
      }

      @java.lang.Override
      public com.scalar.db.rpc.TransactionResponse.StartResponse build() {
        com.scalar.db.rpc.TransactionResponse.StartResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.scalar.db.rpc.TransactionResponse.StartResponse buildPartial() {
        com.scalar.db.rpc.TransactionResponse.StartResponse result = new com.scalar.db.rpc.TransactionResponse.StartResponse(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(com.scalar.db.rpc.TransactionResponse.StartResponse result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.transactionId_ = transactionId_;
        }
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.scalar.db.rpc.TransactionResponse.StartResponse) {
          return mergeFrom((com.scalar.db.rpc.TransactionResponse.StartResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.scalar.db.rpc.TransactionResponse.StartResponse other) {
        if (other == com.scalar.db.rpc.TransactionResponse.StartResponse.getDefaultInstance()) return this;
        if (!other.getTransactionId().isEmpty()) {
          transactionId_ = other.transactionId_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                transactionId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private java.lang.Object transactionId_ = "";
      /**
       * string transaction_id = 1;
       * @return The transactionId.
       */
      public java.lang.String getTransactionId() {
        java.lang.Object ref = transactionId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          transactionId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string transaction_id = 1;
       * @return The bytes for transactionId.
       */
      public com.google.protobuf.ByteString
          getTransactionIdBytes() {
        java.lang.Object ref = transactionId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          transactionId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string transaction_id = 1;
       * @param value The transactionId to set.
       * @return This builder for chaining.
       */
      public Builder setTransactionId(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        transactionId_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * string transaction_id = 1;
       * @return This builder for chaining.
       */
      public Builder clearTransactionId() {
        transactionId_ = getDefaultInstance().getTransactionId();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * string transaction_id = 1;
       * @param value The bytes for transactionId to set.
       * @return This builder for chaining.
       */
      public Builder setTransactionIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        checkByteStringIsUtf8(value);
        transactionId_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:rpc.TransactionResponse.StartResponse)
    }

    // @@protoc_insertion_point(class_scope:rpc.TransactionResponse.StartResponse)
    private static final com.scalar.db.rpc.TransactionResponse.StartResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.scalar.db.rpc.TransactionResponse.StartResponse();
    }

    public static com.scalar.db.rpc.TransactionResponse.StartResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public StartResponse parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.scalar.db.rpc.TransactionResponse.StartResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface GetResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:rpc.TransactionResponse.GetResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .rpc.Result result = 1;
     * @return Whether the result field is set.
     */
    boolean hasResult();
    /**
     * .rpc.Result result = 1;
     * @return The result.
     */
    com.scalar.db.rpc.Result getResult();
    /**
     * .rpc.Result result = 1;
     */
    com.scalar.db.rpc.ResultOrBuilder getResultOrBuilder();
  }
  /**
   * Protobuf type {@code rpc.TransactionResponse.GetResponse}
   */
  public static final class GetResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:rpc.TransactionResponse.GetResponse)
      GetResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use GetResponse.newBuilder() to construct.
    private GetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private GetResponse() {
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new GetResponse();
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_GetResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_GetResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.scalar.db.rpc.TransactionResponse.GetResponse.class, com.scalar.db.rpc.TransactionResponse.GetResponse.Builder.class);
    }

    private int bitField0_;
    public static final int RESULT_FIELD_NUMBER = 1;
    private com.scalar.db.rpc.Result result_;
    /**
     * .rpc.Result result = 1;
     * @return Whether the result field is set.
     */
    @java.lang.Override
    public boolean hasResult() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * .rpc.Result result = 1;
     * @return The result.
     */
    @java.lang.Override
    public com.scalar.db.rpc.Result getResult() {
      return result_ == null ? com.scalar.db.rpc.Result.getDefaultInstance() : result_;
    }
    /**
     * .rpc.Result result = 1;
     */
    @java.lang.Override
    public com.scalar.db.rpc.ResultOrBuilder getResultOrBuilder() {
      return result_ == null ? com.scalar.db.rpc.Result.getDefaultInstance() : result_;
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(1, getResult());
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getResult());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.scalar.db.rpc.TransactionResponse.GetResponse)) {
        return super.equals(obj);
      }
      com.scalar.db.rpc.TransactionResponse.GetResponse other = (com.scalar.db.rpc.TransactionResponse.GetResponse) obj;

      if (hasResult() != other.hasResult()) return false;
      if (hasResult()) {
        if (!getResult()
            .equals(other.getResult())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasResult()) {
        hash = (37 * hash) + RESULT_FIELD_NUMBER;
        hash = (53 * hash) + getResult().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.scalar.db.rpc.TransactionResponse.GetResponse parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionResponse.GetResponse parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionResponse.GetResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionResponse.GetResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionResponse.GetResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionResponse.GetResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionResponse.GetResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionResponse.GetResponse parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static com.scalar.db.rpc.TransactionResponse.GetResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static com.scalar.db.rpc.TransactionResponse.GetResponse parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionResponse.GetResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionResponse.GetResponse parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.scalar.db.rpc.TransactionResponse.GetResponse prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code rpc.TransactionResponse.GetResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:rpc.TransactionResponse.GetResponse)
        com.scalar.db.rpc.TransactionResponse.GetResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_GetResponse_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_GetResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.scalar.db.rpc.TransactionResponse.GetResponse.class, com.scalar.db.rpc.TransactionResponse.GetResponse.Builder.class);
      }

      // Construct using com.scalar.db.rpc.TransactionResponse.GetResponse.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getResultFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        result_ = null;
        if (resultBuilder_ != null) {
          resultBuilder_.dispose();
          resultBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_GetResponse_descriptor;
      }

      @java.lang.Override
      public com.scalar.db.rpc.TransactionResponse.GetResponse getDefaultInstanceForType() {
        return com.scalar.db.rpc.TransactionResponse.GetResponse.getDefaultInstance();
      }

      @java.lang.Override
      public com.scalar.db.rpc.TransactionResponse.GetResponse build() {
        com.scalar.db.rpc.TransactionResponse.GetResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.scalar.db.rpc.TransactionResponse.GetResponse buildPartial() {
        com.scalar.db.rpc.TransactionResponse.GetResponse result = new com.scalar.db.rpc.TransactionResponse.GetResponse(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(com.scalar.db.rpc.TransactionResponse.GetResponse result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.result_ = resultBuilder_ == null
              ? result_
              : resultBuilder_.build();
          to_bitField0_ |= 0x00000001;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.scalar.db.rpc.TransactionResponse.GetResponse) {
          return mergeFrom((com.scalar.db.rpc.TransactionResponse.GetResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.scalar.db.rpc.TransactionResponse.GetResponse other) {
        if (other == com.scalar.db.rpc.TransactionResponse.GetResponse.getDefaultInstance()) return this;
        if (other.hasResult()) {
          mergeResult(other.getResult());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                input.readMessage(
                    getResultFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private com.scalar.db.rpc.Result result_;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.scalar.db.rpc.Result, com.scalar.db.rpc.Result.Builder, com.scalar.db.rpc.ResultOrBuilder> resultBuilder_;
      /**
       * .rpc.Result result = 1;
       * @return Whether the result field is set.
       */
      public boolean hasResult() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * .rpc.Result result = 1;
       * @return The result.
       */
      public com.scalar.db.rpc.Result getResult() {
        if (resultBuilder_ == null) {
          return result_ == null ? com.scalar.db.rpc.Result.getDefaultInstance() : result_;
        } else {
          return resultBuilder_.getMessage();
        }
      }
      /**
       * .rpc.Result result = 1;
       */
      public Builder setResult(com.scalar.db.rpc.Result value) {
        if (resultBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          result_ = value;
        } else {
          resultBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * .rpc.Result result = 1;
       */
      public Builder setResult(
          com.scalar.db.rpc.Result.Builder builderForValue) {
        if (resultBuilder_ == null) {
          result_ = builderForValue.build();
        } else {
          resultBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * .rpc.Result result = 1;
       */
      public Builder mergeResult(com.scalar.db.rpc.Result value) {
        if (resultBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
            result_ != null &&
            result_ != com.scalar.db.rpc.Result.getDefaultInstance()) {
            getResultBuilder().mergeFrom(value);
          } else {
            result_ = value;
          }
        } else {
          resultBuilder_.mergeFrom(value);
        }
        if (result_ != null) {
          bitField0_ |= 0x00000001;
          onChanged();
        }
        return this;
      }
      /**
       * .rpc.Result result = 1;
       */
      public Builder clearResult() {
        bitField0_ = (bitField0_ & ~0x00000001);
        result_ = null;
        if (resultBuilder_ != null) {
          resultBuilder_.dispose();
          resultBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * .rpc.Result result = 1;
       */
      public com.scalar.db.rpc.Result.Builder getResultBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getResultFieldBuilder().getBuilder();
      }
      /**
       * .rpc.Result result = 1;
       */
      public com.scalar.db.rpc.ResultOrBuilder getResultOrBuilder() {
        if (resultBuilder_ != null) {
          return resultBuilder_.getMessageOrBuilder();
        } else {
          return result_ == null ?
              com.scalar.db.rpc.Result.getDefaultInstance() : result_;
        }
      }
      /**
       * .rpc.Result result = 1;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.scalar.db.rpc.Result, com.scalar.db.rpc.Result.Builder, com.scalar.db.rpc.ResultOrBuilder> 
          getResultFieldBuilder() {
        if (resultBuilder_ == null) {
          resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.scalar.db.rpc.Result, com.scalar.db.rpc.Result.Builder, com.scalar.db.rpc.ResultOrBuilder>(
                  getResult(),
                  getParentForChildren(),
                  isClean());
          result_ = null;
        }
        return resultBuilder_;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:rpc.TransactionResponse.GetResponse)
    }

    // @@protoc_insertion_point(class_scope:rpc.TransactionResponse.GetResponse)
    private static final com.scalar.db.rpc.TransactionResponse.GetResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.scalar.db.rpc.TransactionResponse.GetResponse();
    }

    public static com.scalar.db.rpc.TransactionResponse.GetResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public GetResponse parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.scalar.db.rpc.TransactionResponse.GetResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface ScanResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:rpc.TransactionResponse.ScanResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated .rpc.Result results = 1;
     */
    java.util.List 
        getResultsList();
    /**
     * repeated .rpc.Result results = 1;
     */
    com.scalar.db.rpc.Result getResults(int index);
    /**
     * repeated .rpc.Result results = 1;
     */
    int getResultsCount();
    /**
     * repeated .rpc.Result results = 1;
     */
    java.util.List 
        getResultsOrBuilderList();
    /**
     * repeated .rpc.Result results = 1;
     */
    com.scalar.db.rpc.ResultOrBuilder getResultsOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code rpc.TransactionResponse.ScanResponse}
   */
  public static final class ScanResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:rpc.TransactionResponse.ScanResponse)
      ScanResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use ScanResponse.newBuilder() to construct.
    private ScanResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private ScanResponse() {
      results_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new ScanResponse();
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_ScanResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_ScanResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.scalar.db.rpc.TransactionResponse.ScanResponse.class, com.scalar.db.rpc.TransactionResponse.ScanResponse.Builder.class);
    }

    public static final int RESULTS_FIELD_NUMBER = 1;
    @SuppressWarnings("serial")
    private java.util.List results_;
    /**
     * repeated .rpc.Result results = 1;
     */
    @java.lang.Override
    public java.util.List getResultsList() {
      return results_;
    }
    /**
     * repeated .rpc.Result results = 1;
     */
    @java.lang.Override
    public java.util.List 
        getResultsOrBuilderList() {
      return results_;
    }
    /**
     * repeated .rpc.Result results = 1;
     */
    @java.lang.Override
    public int getResultsCount() {
      return results_.size();
    }
    /**
     * repeated .rpc.Result results = 1;
     */
    @java.lang.Override
    public com.scalar.db.rpc.Result getResults(int index) {
      return results_.get(index);
    }
    /**
     * repeated .rpc.Result results = 1;
     */
    @java.lang.Override
    public com.scalar.db.rpc.ResultOrBuilder getResultsOrBuilder(
        int index) {
      return results_.get(index);
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      for (int i = 0; i < results_.size(); i++) {
        output.writeMessage(1, results_.get(i));
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      for (int i = 0; i < results_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, results_.get(i));
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.scalar.db.rpc.TransactionResponse.ScanResponse)) {
        return super.equals(obj);
      }
      com.scalar.db.rpc.TransactionResponse.ScanResponse other = (com.scalar.db.rpc.TransactionResponse.ScanResponse) obj;

      if (!getResultsList()
          .equals(other.getResultsList())) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getResultsCount() > 0) {
        hash = (37 * hash) + RESULTS_FIELD_NUMBER;
        hash = (53 * hash) + getResultsList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.scalar.db.rpc.TransactionResponse.ScanResponse parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionResponse.ScanResponse parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionResponse.ScanResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionResponse.ScanResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionResponse.ScanResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionResponse.ScanResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionResponse.ScanResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionResponse.ScanResponse parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static com.scalar.db.rpc.TransactionResponse.ScanResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static com.scalar.db.rpc.TransactionResponse.ScanResponse parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionResponse.ScanResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionResponse.ScanResponse parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.scalar.db.rpc.TransactionResponse.ScanResponse prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code rpc.TransactionResponse.ScanResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:rpc.TransactionResponse.ScanResponse)
        com.scalar.db.rpc.TransactionResponse.ScanResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_ScanResponse_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_ScanResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.scalar.db.rpc.TransactionResponse.ScanResponse.class, com.scalar.db.rpc.TransactionResponse.ScanResponse.Builder.class);
      }

      // Construct using com.scalar.db.rpc.TransactionResponse.ScanResponse.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        if (resultsBuilder_ == null) {
          results_ = java.util.Collections.emptyList();
        } else {
          results_ = null;
          resultsBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_ScanResponse_descriptor;
      }

      @java.lang.Override
      public com.scalar.db.rpc.TransactionResponse.ScanResponse getDefaultInstanceForType() {
        return com.scalar.db.rpc.TransactionResponse.ScanResponse.getDefaultInstance();
      }

      @java.lang.Override
      public com.scalar.db.rpc.TransactionResponse.ScanResponse build() {
        com.scalar.db.rpc.TransactionResponse.ScanResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.scalar.db.rpc.TransactionResponse.ScanResponse buildPartial() {
        com.scalar.db.rpc.TransactionResponse.ScanResponse result = new com.scalar.db.rpc.TransactionResponse.ScanResponse(this);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(com.scalar.db.rpc.TransactionResponse.ScanResponse result) {
        if (resultsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            results_ = java.util.Collections.unmodifiableList(results_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.results_ = results_;
        } else {
          result.results_ = resultsBuilder_.build();
        }
      }

      private void buildPartial0(com.scalar.db.rpc.TransactionResponse.ScanResponse result) {
        int from_bitField0_ = bitField0_;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.scalar.db.rpc.TransactionResponse.ScanResponse) {
          return mergeFrom((com.scalar.db.rpc.TransactionResponse.ScanResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.scalar.db.rpc.TransactionResponse.ScanResponse other) {
        if (other == com.scalar.db.rpc.TransactionResponse.ScanResponse.getDefaultInstance()) return this;
        if (resultsBuilder_ == null) {
          if (!other.results_.isEmpty()) {
            if (results_.isEmpty()) {
              results_ = other.results_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureResultsIsMutable();
              results_.addAll(other.results_);
            }
            onChanged();
          }
        } else {
          if (!other.results_.isEmpty()) {
            if (resultsBuilder_.isEmpty()) {
              resultsBuilder_.dispose();
              resultsBuilder_ = null;
              results_ = other.results_;
              bitField0_ = (bitField0_ & ~0x00000001);
              resultsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getResultsFieldBuilder() : null;
            } else {
              resultsBuilder_.addAllMessages(other.results_);
            }
          }
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                com.scalar.db.rpc.Result m =
                    input.readMessage(
                        com.scalar.db.rpc.Result.parser(),
                        extensionRegistry);
                if (resultsBuilder_ == null) {
                  ensureResultsIsMutable();
                  results_.add(m);
                } else {
                  resultsBuilder_.addMessage(m);
                }
                break;
              } // case 10
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private java.util.List results_ =
        java.util.Collections.emptyList();
      private void ensureResultsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          results_ = new java.util.ArrayList(results_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.scalar.db.rpc.Result, com.scalar.db.rpc.Result.Builder, com.scalar.db.rpc.ResultOrBuilder> resultsBuilder_;

      /**
       * repeated .rpc.Result results = 1;
       */
      public java.util.List getResultsList() {
        if (resultsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(results_);
        } else {
          return resultsBuilder_.getMessageList();
        }
      }
      /**
       * repeated .rpc.Result results = 1;
       */
      public int getResultsCount() {
        if (resultsBuilder_ == null) {
          return results_.size();
        } else {
          return resultsBuilder_.getCount();
        }
      }
      /**
       * repeated .rpc.Result results = 1;
       */
      public com.scalar.db.rpc.Result getResults(int index) {
        if (resultsBuilder_ == null) {
          return results_.get(index);
        } else {
          return resultsBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .rpc.Result results = 1;
       */
      public Builder setResults(
          int index, com.scalar.db.rpc.Result value) {
        if (resultsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureResultsIsMutable();
          results_.set(index, value);
          onChanged();
        } else {
          resultsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .rpc.Result results = 1;
       */
      public Builder setResults(
          int index, com.scalar.db.rpc.Result.Builder builderForValue) {
        if (resultsBuilder_ == null) {
          ensureResultsIsMutable();
          results_.set(index, builderForValue.build());
          onChanged();
        } else {
          resultsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .rpc.Result results = 1;
       */
      public Builder addResults(com.scalar.db.rpc.Result value) {
        if (resultsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureResultsIsMutable();
          results_.add(value);
          onChanged();
        } else {
          resultsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .rpc.Result results = 1;
       */
      public Builder addResults(
          int index, com.scalar.db.rpc.Result value) {
        if (resultsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureResultsIsMutable();
          results_.add(index, value);
          onChanged();
        } else {
          resultsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .rpc.Result results = 1;
       */
      public Builder addResults(
          com.scalar.db.rpc.Result.Builder builderForValue) {
        if (resultsBuilder_ == null) {
          ensureResultsIsMutable();
          results_.add(builderForValue.build());
          onChanged();
        } else {
          resultsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .rpc.Result results = 1;
       */
      public Builder addResults(
          int index, com.scalar.db.rpc.Result.Builder builderForValue) {
        if (resultsBuilder_ == null) {
          ensureResultsIsMutable();
          results_.add(index, builderForValue.build());
          onChanged();
        } else {
          resultsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .rpc.Result results = 1;
       */
      public Builder addAllResults(
          java.lang.Iterable values) {
        if (resultsBuilder_ == null) {
          ensureResultsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, results_);
          onChanged();
        } else {
          resultsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .rpc.Result results = 1;
       */
      public Builder clearResults() {
        if (resultsBuilder_ == null) {
          results_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          resultsBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .rpc.Result results = 1;
       */
      public Builder removeResults(int index) {
        if (resultsBuilder_ == null) {
          ensureResultsIsMutable();
          results_.remove(index);
          onChanged();
        } else {
          resultsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .rpc.Result results = 1;
       */
      public com.scalar.db.rpc.Result.Builder getResultsBuilder(
          int index) {
        return getResultsFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .rpc.Result results = 1;
       */
      public com.scalar.db.rpc.ResultOrBuilder getResultsOrBuilder(
          int index) {
        if (resultsBuilder_ == null) {
          return results_.get(index);  } else {
          return resultsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .rpc.Result results = 1;
       */
      public java.util.List 
           getResultsOrBuilderList() {
        if (resultsBuilder_ != null) {
          return resultsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(results_);
        }
      }
      /**
       * repeated .rpc.Result results = 1;
       */
      public com.scalar.db.rpc.Result.Builder addResultsBuilder() {
        return getResultsFieldBuilder().addBuilder(
            com.scalar.db.rpc.Result.getDefaultInstance());
      }
      /**
       * repeated .rpc.Result results = 1;
       */
      public com.scalar.db.rpc.Result.Builder addResultsBuilder(
          int index) {
        return getResultsFieldBuilder().addBuilder(
            index, com.scalar.db.rpc.Result.getDefaultInstance());
      }
      /**
       * repeated .rpc.Result results = 1;
       */
      public java.util.List 
           getResultsBuilderList() {
        return getResultsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.scalar.db.rpc.Result, com.scalar.db.rpc.Result.Builder, com.scalar.db.rpc.ResultOrBuilder> 
          getResultsFieldBuilder() {
        if (resultsBuilder_ == null) {
          resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              com.scalar.db.rpc.Result, com.scalar.db.rpc.Result.Builder, com.scalar.db.rpc.ResultOrBuilder>(
                  results_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          results_ = null;
        }
        return resultsBuilder_;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:rpc.TransactionResponse.ScanResponse)
    }

    // @@protoc_insertion_point(class_scope:rpc.TransactionResponse.ScanResponse)
    private static final com.scalar.db.rpc.TransactionResponse.ScanResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.scalar.db.rpc.TransactionResponse.ScanResponse();
    }

    public static com.scalar.db.rpc.TransactionResponse.ScanResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public ScanResponse parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.scalar.db.rpc.TransactionResponse.ScanResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface ErrorOrBuilder extends
      // @@protoc_insertion_point(interface_extends:rpc.TransactionResponse.Error)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .rpc.TransactionResponse.Error.ErrorCode error_code = 1;
     * @return The enum numeric value on the wire for errorCode.
     */
    int getErrorCodeValue();
    /**
     * .rpc.TransactionResponse.Error.ErrorCode error_code = 1;
     * @return The errorCode.
     */
    com.scalar.db.rpc.TransactionResponse.Error.ErrorCode getErrorCode();

    /**
     * string message = 2;
     * @return The message.
     */
    java.lang.String getMessage();
    /**
     * string message = 2;
     * @return The bytes for message.
     */
    com.google.protobuf.ByteString
        getMessageBytes();
  }
  /**
   * Protobuf type {@code rpc.TransactionResponse.Error}
   */
  public static final class Error extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:rpc.TransactionResponse.Error)
      ErrorOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Error.newBuilder() to construct.
    private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private Error() {
      errorCode_ = 0;
      message_ = "";
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new Error();
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_Error_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_Error_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.scalar.db.rpc.TransactionResponse.Error.class, com.scalar.db.rpc.TransactionResponse.Error.Builder.class);
    }

    /**
     * Protobuf enum {@code rpc.TransactionResponse.Error.ErrorCode}
     */
    public enum ErrorCode
        implements com.google.protobuf.ProtocolMessageEnum {
      /**
       * INVALID_ARGUMENT = 0;
       */
      INVALID_ARGUMENT(0),
      /**
       * TRANSACTION_CONFLICT = 1;
       */
      TRANSACTION_CONFLICT(1),
      /**
       * UNKNOWN_TRANSACTION_STATUS = 2;
       */
      UNKNOWN_TRANSACTION_STATUS(2),
      /**
       * OTHER = 3;
       */
      OTHER(3),
      /**
       * UNSATISFIED_CONDITION = 4;
       */
      UNSATISFIED_CONDITION(4),
      UNRECOGNIZED(-1),
      ;

      /**
       * INVALID_ARGUMENT = 0;
       */
      public static final int INVALID_ARGUMENT_VALUE = 0;
      /**
       * TRANSACTION_CONFLICT = 1;
       */
      public static final int TRANSACTION_CONFLICT_VALUE = 1;
      /**
       * UNKNOWN_TRANSACTION_STATUS = 2;
       */
      public static final int UNKNOWN_TRANSACTION_STATUS_VALUE = 2;
      /**
       * OTHER = 3;
       */
      public static final int OTHER_VALUE = 3;
      /**
       * UNSATISFIED_CONDITION = 4;
       */
      public static final int UNSATISFIED_CONDITION_VALUE = 4;


      public final int getNumber() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalArgumentException(
              "Can't get the number of an unknown enum value.");
        }
        return value;
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static ErrorCode valueOf(int value) {
        return forNumber(value);
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       */
      public static ErrorCode forNumber(int value) {
        switch (value) {
          case 0: return INVALID_ARGUMENT;
          case 1: return TRANSACTION_CONFLICT;
          case 2: return UNKNOWN_TRANSACTION_STATUS;
          case 3: return OTHER;
          case 4: return UNSATISFIED_CONDITION;
          default: return null;
        }
      }

      public static com.google.protobuf.Internal.EnumLiteMap
          internalGetValueMap() {
        return internalValueMap;
      }
      private static final com.google.protobuf.Internal.EnumLiteMap<
          ErrorCode> internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap() {
              public ErrorCode findValueByNumber(int number) {
                return ErrorCode.forNumber(number);
              }
            };

      public final com.google.protobuf.Descriptors.EnumValueDescriptor
          getValueDescriptor() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalStateException(
              "Can't get the descriptor of an unrecognized enum value.");
        }
        return getDescriptor().getValues().get(ordinal());
      }
      public final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptorForType() {
        return getDescriptor();
      }
      public static final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptor() {
        return com.scalar.db.rpc.TransactionResponse.Error.getDescriptor().getEnumTypes().get(0);
      }

      private static final ErrorCode[] VALUES = values();

      public static ErrorCode valueOf(
          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException(
            "EnumValueDescriptor is not for this type.");
        }
        if (desc.getIndex() == -1) {
          return UNRECOGNIZED;
        }
        return VALUES[desc.getIndex()];
      }

      private final int value;

      private ErrorCode(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:rpc.TransactionResponse.Error.ErrorCode)
    }

    public static final int ERROR_CODE_FIELD_NUMBER = 1;
    private int errorCode_ = 0;
    /**
     * .rpc.TransactionResponse.Error.ErrorCode error_code = 1;
     * @return The enum numeric value on the wire for errorCode.
     */
    @java.lang.Override public int getErrorCodeValue() {
      return errorCode_;
    }
    /**
     * .rpc.TransactionResponse.Error.ErrorCode error_code = 1;
     * @return The errorCode.
     */
    @java.lang.Override public com.scalar.db.rpc.TransactionResponse.Error.ErrorCode getErrorCode() {
      com.scalar.db.rpc.TransactionResponse.Error.ErrorCode result = com.scalar.db.rpc.TransactionResponse.Error.ErrorCode.forNumber(errorCode_);
      return result == null ? com.scalar.db.rpc.TransactionResponse.Error.ErrorCode.UNRECOGNIZED : result;
    }

    public static final int MESSAGE_FIELD_NUMBER = 2;
    @SuppressWarnings("serial")
    private volatile java.lang.Object message_ = "";
    /**
     * string message = 2;
     * @return The message.
     */
    @java.lang.Override
    public java.lang.String getMessage() {
      java.lang.Object ref = message_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        message_ = s;
        return s;
      }
    }
    /**
     * string message = 2;
     * @return The bytes for message.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getMessageBytes() {
      java.lang.Object ref = message_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        message_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (errorCode_ != com.scalar.db.rpc.TransactionResponse.Error.ErrorCode.INVALID_ARGUMENT.getNumber()) {
        output.writeEnum(1, errorCode_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (errorCode_ != com.scalar.db.rpc.TransactionResponse.Error.ErrorCode.INVALID_ARGUMENT.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(1, errorCode_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.scalar.db.rpc.TransactionResponse.Error)) {
        return super.equals(obj);
      }
      com.scalar.db.rpc.TransactionResponse.Error other = (com.scalar.db.rpc.TransactionResponse.Error) obj;

      if (errorCode_ != other.errorCode_) return false;
      if (!getMessage()
          .equals(other.getMessage())) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + ERROR_CODE_FIELD_NUMBER;
      hash = (53 * hash) + errorCode_;
      hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
      hash = (53 * hash) + getMessage().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.scalar.db.rpc.TransactionResponse.Error parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionResponse.Error parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionResponse.Error parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionResponse.Error parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionResponse.Error parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionResponse.Error parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionResponse.Error parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionResponse.Error parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static com.scalar.db.rpc.TransactionResponse.Error parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static com.scalar.db.rpc.TransactionResponse.Error parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionResponse.Error parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionResponse.Error parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.scalar.db.rpc.TransactionResponse.Error prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code rpc.TransactionResponse.Error}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:rpc.TransactionResponse.Error)
        com.scalar.db.rpc.TransactionResponse.ErrorOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_Error_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_Error_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.scalar.db.rpc.TransactionResponse.Error.class, com.scalar.db.rpc.TransactionResponse.Error.Builder.class);
      }

      // Construct using com.scalar.db.rpc.TransactionResponse.Error.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        errorCode_ = 0;
        message_ = "";
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_Error_descriptor;
      }

      @java.lang.Override
      public com.scalar.db.rpc.TransactionResponse.Error getDefaultInstanceForType() {
        return com.scalar.db.rpc.TransactionResponse.Error.getDefaultInstance();
      }

      @java.lang.Override
      public com.scalar.db.rpc.TransactionResponse.Error build() {
        com.scalar.db.rpc.TransactionResponse.Error result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.scalar.db.rpc.TransactionResponse.Error buildPartial() {
        com.scalar.db.rpc.TransactionResponse.Error result = new com.scalar.db.rpc.TransactionResponse.Error(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(com.scalar.db.rpc.TransactionResponse.Error result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.errorCode_ = errorCode_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.message_ = message_;
        }
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.scalar.db.rpc.TransactionResponse.Error) {
          return mergeFrom((com.scalar.db.rpc.TransactionResponse.Error)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.scalar.db.rpc.TransactionResponse.Error other) {
        if (other == com.scalar.db.rpc.TransactionResponse.Error.getDefaultInstance()) return this;
        if (other.errorCode_ != 0) {
          setErrorCodeValue(other.getErrorCodeValue());
        }
        if (!other.getMessage().isEmpty()) {
          message_ = other.message_;
          bitField0_ |= 0x00000002;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8: {
                errorCode_ = input.readEnum();
                bitField0_ |= 0x00000001;
                break;
              } // case 8
              case 18: {
                message_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private int errorCode_ = 0;
      /**
       * .rpc.TransactionResponse.Error.ErrorCode error_code = 1;
       * @return The enum numeric value on the wire for errorCode.
       */
      @java.lang.Override public int getErrorCodeValue() {
        return errorCode_;
      }
      /**
       * .rpc.TransactionResponse.Error.ErrorCode error_code = 1;
       * @param value The enum numeric value on the wire for errorCode to set.
       * @return This builder for chaining.
       */
      public Builder setErrorCodeValue(int value) {
        errorCode_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * .rpc.TransactionResponse.Error.ErrorCode error_code = 1;
       * @return The errorCode.
       */
      @java.lang.Override
      public com.scalar.db.rpc.TransactionResponse.Error.ErrorCode getErrorCode() {
        com.scalar.db.rpc.TransactionResponse.Error.ErrorCode result = com.scalar.db.rpc.TransactionResponse.Error.ErrorCode.forNumber(errorCode_);
        return result == null ? com.scalar.db.rpc.TransactionResponse.Error.ErrorCode.UNRECOGNIZED : result;
      }
      /**
       * .rpc.TransactionResponse.Error.ErrorCode error_code = 1;
       * @param value The errorCode to set.
       * @return This builder for chaining.
       */
      public Builder setErrorCode(com.scalar.db.rpc.TransactionResponse.Error.ErrorCode value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000001;
        errorCode_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * .rpc.TransactionResponse.Error.ErrorCode error_code = 1;
       * @return This builder for chaining.
       */
      public Builder clearErrorCode() {
        bitField0_ = (bitField0_ & ~0x00000001);
        errorCode_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object message_ = "";
      /**
       * string message = 2;
       * @return The message.
       */
      public java.lang.String getMessage() {
        java.lang.Object ref = message_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          message_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string message = 2;
       * @return The bytes for message.
       */
      public com.google.protobuf.ByteString
          getMessageBytes() {
        java.lang.Object ref = message_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          message_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string message = 2;
       * @param value The message to set.
       * @return This builder for chaining.
       */
      public Builder setMessage(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        message_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * string message = 2;
       * @return This builder for chaining.
       */
      public Builder clearMessage() {
        message_ = getDefaultInstance().getMessage();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }
      /**
       * string message = 2;
       * @param value The bytes for message to set.
       * @return This builder for chaining.
       */
      public Builder setMessageBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        checkByteStringIsUtf8(value);
        message_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:rpc.TransactionResponse.Error)
    }

    // @@protoc_insertion_point(class_scope:rpc.TransactionResponse.Error)
    private static final com.scalar.db.rpc.TransactionResponse.Error DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.scalar.db.rpc.TransactionResponse.Error();
    }

    public static com.scalar.db.rpc.TransactionResponse.Error getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public Error parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.scalar.db.rpc.TransactionResponse.Error getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private int responseCase_ = 0;
  @SuppressWarnings("serial")
  private java.lang.Object response_;
  public enum ResponseCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    START_RESPONSE(1),
    GET_RESPONSE(2),
    SCAN_RESPONSE(3),
    ERROR(4),
    BEGIN_RESPONSE(5),
    RESPONSE_NOT_SET(0);
    private final int value;
    private ResponseCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ResponseCase valueOf(int value) {
      return forNumber(value);
    }

    public static ResponseCase forNumber(int value) {
      switch (value) {
        case 1: return START_RESPONSE;
        case 2: return GET_RESPONSE;
        case 3: return SCAN_RESPONSE;
        case 4: return ERROR;
        case 5: return BEGIN_RESPONSE;
        case 0: return RESPONSE_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public ResponseCase
  getResponseCase() {
    return ResponseCase.forNumber(
        responseCase_);
  }

  public static final int START_RESPONSE_FIELD_NUMBER = 1;
  /**
   * .rpc.TransactionResponse.StartResponse start_response = 1;
   * @return Whether the startResponse field is set.
   */
  @java.lang.Override
  public boolean hasStartResponse() {
    return responseCase_ == 1;
  }
  /**
   * .rpc.TransactionResponse.StartResponse start_response = 1;
   * @return The startResponse.
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionResponse.StartResponse getStartResponse() {
    if (responseCase_ == 1) {
       return (com.scalar.db.rpc.TransactionResponse.StartResponse) response_;
    }
    return com.scalar.db.rpc.TransactionResponse.StartResponse.getDefaultInstance();
  }
  /**
   * .rpc.TransactionResponse.StartResponse start_response = 1;
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionResponse.StartResponseOrBuilder getStartResponseOrBuilder() {
    if (responseCase_ == 1) {
       return (com.scalar.db.rpc.TransactionResponse.StartResponse) response_;
    }
    return com.scalar.db.rpc.TransactionResponse.StartResponse.getDefaultInstance();
  }

  public static final int GET_RESPONSE_FIELD_NUMBER = 2;
  /**
   * .rpc.TransactionResponse.GetResponse get_response = 2;
   * @return Whether the getResponse field is set.
   */
  @java.lang.Override
  public boolean hasGetResponse() {
    return responseCase_ == 2;
  }
  /**
   * .rpc.TransactionResponse.GetResponse get_response = 2;
   * @return The getResponse.
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionResponse.GetResponse getGetResponse() {
    if (responseCase_ == 2) {
       return (com.scalar.db.rpc.TransactionResponse.GetResponse) response_;
    }
    return com.scalar.db.rpc.TransactionResponse.GetResponse.getDefaultInstance();
  }
  /**
   * .rpc.TransactionResponse.GetResponse get_response = 2;
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionResponse.GetResponseOrBuilder getGetResponseOrBuilder() {
    if (responseCase_ == 2) {
       return (com.scalar.db.rpc.TransactionResponse.GetResponse) response_;
    }
    return com.scalar.db.rpc.TransactionResponse.GetResponse.getDefaultInstance();
  }

  public static final int SCAN_RESPONSE_FIELD_NUMBER = 3;
  /**
   * .rpc.TransactionResponse.ScanResponse scan_response = 3;
   * @return Whether the scanResponse field is set.
   */
  @java.lang.Override
  public boolean hasScanResponse() {
    return responseCase_ == 3;
  }
  /**
   * .rpc.TransactionResponse.ScanResponse scan_response = 3;
   * @return The scanResponse.
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionResponse.ScanResponse getScanResponse() {
    if (responseCase_ == 3) {
       return (com.scalar.db.rpc.TransactionResponse.ScanResponse) response_;
    }
    return com.scalar.db.rpc.TransactionResponse.ScanResponse.getDefaultInstance();
  }
  /**
   * .rpc.TransactionResponse.ScanResponse scan_response = 3;
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionResponse.ScanResponseOrBuilder getScanResponseOrBuilder() {
    if (responseCase_ == 3) {
       return (com.scalar.db.rpc.TransactionResponse.ScanResponse) response_;
    }
    return com.scalar.db.rpc.TransactionResponse.ScanResponse.getDefaultInstance();
  }

  public static final int ERROR_FIELD_NUMBER = 4;
  /**
   * .rpc.TransactionResponse.Error error = 4;
   * @return Whether the error field is set.
   */
  @java.lang.Override
  public boolean hasError() {
    return responseCase_ == 4;
  }
  /**
   * .rpc.TransactionResponse.Error error = 4;
   * @return The error.
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionResponse.Error getError() {
    if (responseCase_ == 4) {
       return (com.scalar.db.rpc.TransactionResponse.Error) response_;
    }
    return com.scalar.db.rpc.TransactionResponse.Error.getDefaultInstance();
  }
  /**
   * .rpc.TransactionResponse.Error error = 4;
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionResponse.ErrorOrBuilder getErrorOrBuilder() {
    if (responseCase_ == 4) {
       return (com.scalar.db.rpc.TransactionResponse.Error) response_;
    }
    return com.scalar.db.rpc.TransactionResponse.Error.getDefaultInstance();
  }

  public static final int BEGIN_RESPONSE_FIELD_NUMBER = 5;
  /**
   * .rpc.TransactionResponse.BeginResponse begin_response = 5;
   * @return Whether the beginResponse field is set.
   */
  @java.lang.Override
  public boolean hasBeginResponse() {
    return responseCase_ == 5;
  }
  /**
   * .rpc.TransactionResponse.BeginResponse begin_response = 5;
   * @return The beginResponse.
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionResponse.BeginResponse getBeginResponse() {
    if (responseCase_ == 5) {
       return (com.scalar.db.rpc.TransactionResponse.BeginResponse) response_;
    }
    return com.scalar.db.rpc.TransactionResponse.BeginResponse.getDefaultInstance();
  }
  /**
   * .rpc.TransactionResponse.BeginResponse begin_response = 5;
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionResponse.BeginResponseOrBuilder getBeginResponseOrBuilder() {
    if (responseCase_ == 5) {
       return (com.scalar.db.rpc.TransactionResponse.BeginResponse) response_;
    }
    return com.scalar.db.rpc.TransactionResponse.BeginResponse.getDefaultInstance();
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (responseCase_ == 1) {
      output.writeMessage(1, (com.scalar.db.rpc.TransactionResponse.StartResponse) response_);
    }
    if (responseCase_ == 2) {
      output.writeMessage(2, (com.scalar.db.rpc.TransactionResponse.GetResponse) response_);
    }
    if (responseCase_ == 3) {
      output.writeMessage(3, (com.scalar.db.rpc.TransactionResponse.ScanResponse) response_);
    }
    if (responseCase_ == 4) {
      output.writeMessage(4, (com.scalar.db.rpc.TransactionResponse.Error) response_);
    }
    if (responseCase_ == 5) {
      output.writeMessage(5, (com.scalar.db.rpc.TransactionResponse.BeginResponse) response_);
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (responseCase_ == 1) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, (com.scalar.db.rpc.TransactionResponse.StartResponse) response_);
    }
    if (responseCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (com.scalar.db.rpc.TransactionResponse.GetResponse) response_);
    }
    if (responseCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, (com.scalar.db.rpc.TransactionResponse.ScanResponse) response_);
    }
    if (responseCase_ == 4) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, (com.scalar.db.rpc.TransactionResponse.Error) response_);
    }
    if (responseCase_ == 5) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, (com.scalar.db.rpc.TransactionResponse.BeginResponse) response_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.scalar.db.rpc.TransactionResponse)) {
      return super.equals(obj);
    }
    com.scalar.db.rpc.TransactionResponse other = (com.scalar.db.rpc.TransactionResponse) obj;

    if (!getResponseCase().equals(other.getResponseCase())) return false;
    switch (responseCase_) {
      case 1:
        if (!getStartResponse()
            .equals(other.getStartResponse())) return false;
        break;
      case 2:
        if (!getGetResponse()
            .equals(other.getGetResponse())) return false;
        break;
      case 3:
        if (!getScanResponse()
            .equals(other.getScanResponse())) return false;
        break;
      case 4:
        if (!getError()
            .equals(other.getError())) return false;
        break;
      case 5:
        if (!getBeginResponse()
            .equals(other.getBeginResponse())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    switch (responseCase_) {
      case 1:
        hash = (37 * hash) + START_RESPONSE_FIELD_NUMBER;
        hash = (53 * hash) + getStartResponse().hashCode();
        break;
      case 2:
        hash = (37 * hash) + GET_RESPONSE_FIELD_NUMBER;
        hash = (53 * hash) + getGetResponse().hashCode();
        break;
      case 3:
        hash = (37 * hash) + SCAN_RESPONSE_FIELD_NUMBER;
        hash = (53 * hash) + getScanResponse().hashCode();
        break;
      case 4:
        hash = (37 * hash) + ERROR_FIELD_NUMBER;
        hash = (53 * hash) + getError().hashCode();
        break;
      case 5:
        hash = (37 * hash) + BEGIN_RESPONSE_FIELD_NUMBER;
        hash = (53 * hash) + getBeginResponse().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.scalar.db.rpc.TransactionResponse parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.scalar.db.rpc.TransactionResponse parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.scalar.db.rpc.TransactionResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.scalar.db.rpc.TransactionResponse parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.scalar.db.rpc.TransactionResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.scalar.db.rpc.TransactionResponse parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.scalar.db.rpc.TransactionResponse parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.scalar.db.rpc.TransactionResponse parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public static com.scalar.db.rpc.TransactionResponse parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static com.scalar.db.rpc.TransactionResponse parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.scalar.db.rpc.TransactionResponse parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.scalar.db.rpc.TransactionResponse parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.scalar.db.rpc.TransactionResponse prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code rpc.TransactionResponse}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:rpc.TransactionResponse)
      com.scalar.db.rpc.TransactionResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.scalar.db.rpc.TransactionResponse.class, com.scalar.db.rpc.TransactionResponse.Builder.class);
    }

    // Construct using com.scalar.db.rpc.TransactionResponse.newBuilder()
    private Builder() {

    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      if (startResponseBuilder_ != null) {
        startResponseBuilder_.clear();
      }
      if (getResponseBuilder_ != null) {
        getResponseBuilder_.clear();
      }
      if (scanResponseBuilder_ != null) {
        scanResponseBuilder_.clear();
      }
      if (errorBuilder_ != null) {
        errorBuilder_.clear();
      }
      if (beginResponseBuilder_ != null) {
        beginResponseBuilder_.clear();
      }
      responseCase_ = 0;
      response_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_descriptor;
    }

    @java.lang.Override
    public com.scalar.db.rpc.TransactionResponse getDefaultInstanceForType() {
      return com.scalar.db.rpc.TransactionResponse.getDefaultInstance();
    }

    @java.lang.Override
    public com.scalar.db.rpc.TransactionResponse build() {
      com.scalar.db.rpc.TransactionResponse result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.scalar.db.rpc.TransactionResponse buildPartial() {
      com.scalar.db.rpc.TransactionResponse result = new com.scalar.db.rpc.TransactionResponse(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      buildPartialOneofs(result);
      onBuilt();
      return result;
    }

    private void buildPartial0(com.scalar.db.rpc.TransactionResponse result) {
      int from_bitField0_ = bitField0_;
    }

    private void buildPartialOneofs(com.scalar.db.rpc.TransactionResponse result) {
      result.responseCase_ = responseCase_;
      result.response_ = this.response_;
      if (responseCase_ == 1 &&
          startResponseBuilder_ != null) {
        result.response_ = startResponseBuilder_.build();
      }
      if (responseCase_ == 2 &&
          getResponseBuilder_ != null) {
        result.response_ = getResponseBuilder_.build();
      }
      if (responseCase_ == 3 &&
          scanResponseBuilder_ != null) {
        result.response_ = scanResponseBuilder_.build();
      }
      if (responseCase_ == 4 &&
          errorBuilder_ != null) {
        result.response_ = errorBuilder_.build();
      }
      if (responseCase_ == 5 &&
          beginResponseBuilder_ != null) {
        result.response_ = beginResponseBuilder_.build();
      }
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.scalar.db.rpc.TransactionResponse) {
        return mergeFrom((com.scalar.db.rpc.TransactionResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.scalar.db.rpc.TransactionResponse other) {
      if (other == com.scalar.db.rpc.TransactionResponse.getDefaultInstance()) return this;
      switch (other.getResponseCase()) {
        case START_RESPONSE: {
          mergeStartResponse(other.getStartResponse());
          break;
        }
        case GET_RESPONSE: {
          mergeGetResponse(other.getGetResponse());
          break;
        }
        case SCAN_RESPONSE: {
          mergeScanResponse(other.getScanResponse());
          break;
        }
        case ERROR: {
          mergeError(other.getError());
          break;
        }
        case BEGIN_RESPONSE: {
          mergeBeginResponse(other.getBeginResponse());
          break;
        }
        case RESPONSE_NOT_SET: {
          break;
        }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              input.readMessage(
                  getStartResponseFieldBuilder().getBuilder(),
                  extensionRegistry);
              responseCase_ = 1;
              break;
            } // case 10
            case 18: {
              input.readMessage(
                  getGetResponseFieldBuilder().getBuilder(),
                  extensionRegistry);
              responseCase_ = 2;
              break;
            } // case 18
            case 26: {
              input.readMessage(
                  getScanResponseFieldBuilder().getBuilder(),
                  extensionRegistry);
              responseCase_ = 3;
              break;
            } // case 26
            case 34: {
              input.readMessage(
                  getErrorFieldBuilder().getBuilder(),
                  extensionRegistry);
              responseCase_ = 4;
              break;
            } // case 34
            case 42: {
              input.readMessage(
                  getBeginResponseFieldBuilder().getBuilder(),
                  extensionRegistry);
              responseCase_ = 5;
              break;
            } // case 42
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int responseCase_ = 0;
    private java.lang.Object response_;
    public ResponseCase
        getResponseCase() {
      return ResponseCase.forNumber(
          responseCase_);
    }

    public Builder clearResponse() {
      responseCase_ = 0;
      response_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionResponse.StartResponse, com.scalar.db.rpc.TransactionResponse.StartResponse.Builder, com.scalar.db.rpc.TransactionResponse.StartResponseOrBuilder> startResponseBuilder_;
    /**
     * .rpc.TransactionResponse.StartResponse start_response = 1;
     * @return Whether the startResponse field is set.
     */
    @java.lang.Override
    public boolean hasStartResponse() {
      return responseCase_ == 1;
    }
    /**
     * .rpc.TransactionResponse.StartResponse start_response = 1;
     * @return The startResponse.
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionResponse.StartResponse getStartResponse() {
      if (startResponseBuilder_ == null) {
        if (responseCase_ == 1) {
          return (com.scalar.db.rpc.TransactionResponse.StartResponse) response_;
        }
        return com.scalar.db.rpc.TransactionResponse.StartResponse.getDefaultInstance();
      } else {
        if (responseCase_ == 1) {
          return startResponseBuilder_.getMessage();
        }
        return com.scalar.db.rpc.TransactionResponse.StartResponse.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionResponse.StartResponse start_response = 1;
     */
    public Builder setStartResponse(com.scalar.db.rpc.TransactionResponse.StartResponse value) {
      if (startResponseBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        response_ = value;
        onChanged();
      } else {
        startResponseBuilder_.setMessage(value);
      }
      responseCase_ = 1;
      return this;
    }
    /**
     * .rpc.TransactionResponse.StartResponse start_response = 1;
     */
    public Builder setStartResponse(
        com.scalar.db.rpc.TransactionResponse.StartResponse.Builder builderForValue) {
      if (startResponseBuilder_ == null) {
        response_ = builderForValue.build();
        onChanged();
      } else {
        startResponseBuilder_.setMessage(builderForValue.build());
      }
      responseCase_ = 1;
      return this;
    }
    /**
     * .rpc.TransactionResponse.StartResponse start_response = 1;
     */
    public Builder mergeStartResponse(com.scalar.db.rpc.TransactionResponse.StartResponse value) {
      if (startResponseBuilder_ == null) {
        if (responseCase_ == 1 &&
            response_ != com.scalar.db.rpc.TransactionResponse.StartResponse.getDefaultInstance()) {
          response_ = com.scalar.db.rpc.TransactionResponse.StartResponse.newBuilder((com.scalar.db.rpc.TransactionResponse.StartResponse) response_)
              .mergeFrom(value).buildPartial();
        } else {
          response_ = value;
        }
        onChanged();
      } else {
        if (responseCase_ == 1) {
          startResponseBuilder_.mergeFrom(value);
        } else {
          startResponseBuilder_.setMessage(value);
        }
      }
      responseCase_ = 1;
      return this;
    }
    /**
     * .rpc.TransactionResponse.StartResponse start_response = 1;
     */
    public Builder clearStartResponse() {
      if (startResponseBuilder_ == null) {
        if (responseCase_ == 1) {
          responseCase_ = 0;
          response_ = null;
          onChanged();
        }
      } else {
        if (responseCase_ == 1) {
          responseCase_ = 0;
          response_ = null;
        }
        startResponseBuilder_.clear();
      }
      return this;
    }
    /**
     * .rpc.TransactionResponse.StartResponse start_response = 1;
     */
    public com.scalar.db.rpc.TransactionResponse.StartResponse.Builder getStartResponseBuilder() {
      return getStartResponseFieldBuilder().getBuilder();
    }
    /**
     * .rpc.TransactionResponse.StartResponse start_response = 1;
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionResponse.StartResponseOrBuilder getStartResponseOrBuilder() {
      if ((responseCase_ == 1) && (startResponseBuilder_ != null)) {
        return startResponseBuilder_.getMessageOrBuilder();
      } else {
        if (responseCase_ == 1) {
          return (com.scalar.db.rpc.TransactionResponse.StartResponse) response_;
        }
        return com.scalar.db.rpc.TransactionResponse.StartResponse.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionResponse.StartResponse start_response = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionResponse.StartResponse, com.scalar.db.rpc.TransactionResponse.StartResponse.Builder, com.scalar.db.rpc.TransactionResponse.StartResponseOrBuilder> 
        getStartResponseFieldBuilder() {
      if (startResponseBuilder_ == null) {
        if (!(responseCase_ == 1)) {
          response_ = com.scalar.db.rpc.TransactionResponse.StartResponse.getDefaultInstance();
        }
        startResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.scalar.db.rpc.TransactionResponse.StartResponse, com.scalar.db.rpc.TransactionResponse.StartResponse.Builder, com.scalar.db.rpc.TransactionResponse.StartResponseOrBuilder>(
                (com.scalar.db.rpc.TransactionResponse.StartResponse) response_,
                getParentForChildren(),
                isClean());
        response_ = null;
      }
      responseCase_ = 1;
      onChanged();
      return startResponseBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionResponse.GetResponse, com.scalar.db.rpc.TransactionResponse.GetResponse.Builder, com.scalar.db.rpc.TransactionResponse.GetResponseOrBuilder> getResponseBuilder_;
    /**
     * .rpc.TransactionResponse.GetResponse get_response = 2;
     * @return Whether the getResponse field is set.
     */
    @java.lang.Override
    public boolean hasGetResponse() {
      return responseCase_ == 2;
    }
    /**
     * .rpc.TransactionResponse.GetResponse get_response = 2;
     * @return The getResponse.
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionResponse.GetResponse getGetResponse() {
      if (getResponseBuilder_ == null) {
        if (responseCase_ == 2) {
          return (com.scalar.db.rpc.TransactionResponse.GetResponse) response_;
        }
        return com.scalar.db.rpc.TransactionResponse.GetResponse.getDefaultInstance();
      } else {
        if (responseCase_ == 2) {
          return getResponseBuilder_.getMessage();
        }
        return com.scalar.db.rpc.TransactionResponse.GetResponse.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionResponse.GetResponse get_response = 2;
     */
    public Builder setGetResponse(com.scalar.db.rpc.TransactionResponse.GetResponse value) {
      if (getResponseBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        response_ = value;
        onChanged();
      } else {
        getResponseBuilder_.setMessage(value);
      }
      responseCase_ = 2;
      return this;
    }
    /**
     * .rpc.TransactionResponse.GetResponse get_response = 2;
     */
    public Builder setGetResponse(
        com.scalar.db.rpc.TransactionResponse.GetResponse.Builder builderForValue) {
      if (getResponseBuilder_ == null) {
        response_ = builderForValue.build();
        onChanged();
      } else {
        getResponseBuilder_.setMessage(builderForValue.build());
      }
      responseCase_ = 2;
      return this;
    }
    /**
     * .rpc.TransactionResponse.GetResponse get_response = 2;
     */
    public Builder mergeGetResponse(com.scalar.db.rpc.TransactionResponse.GetResponse value) {
      if (getResponseBuilder_ == null) {
        if (responseCase_ == 2 &&
            response_ != com.scalar.db.rpc.TransactionResponse.GetResponse.getDefaultInstance()) {
          response_ = com.scalar.db.rpc.TransactionResponse.GetResponse.newBuilder((com.scalar.db.rpc.TransactionResponse.GetResponse) response_)
              .mergeFrom(value).buildPartial();
        } else {
          response_ = value;
        }
        onChanged();
      } else {
        if (responseCase_ == 2) {
          getResponseBuilder_.mergeFrom(value);
        } else {
          getResponseBuilder_.setMessage(value);
        }
      }
      responseCase_ = 2;
      return this;
    }
    /**
     * .rpc.TransactionResponse.GetResponse get_response = 2;
     */
    public Builder clearGetResponse() {
      if (getResponseBuilder_ == null) {
        if (responseCase_ == 2) {
          responseCase_ = 0;
          response_ = null;
          onChanged();
        }
      } else {
        if (responseCase_ == 2) {
          responseCase_ = 0;
          response_ = null;
        }
        getResponseBuilder_.clear();
      }
      return this;
    }
    /**
     * .rpc.TransactionResponse.GetResponse get_response = 2;
     */
    public com.scalar.db.rpc.TransactionResponse.GetResponse.Builder getGetResponseBuilder() {
      return getGetResponseFieldBuilder().getBuilder();
    }
    /**
     * .rpc.TransactionResponse.GetResponse get_response = 2;
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionResponse.GetResponseOrBuilder getGetResponseOrBuilder() {
      if ((responseCase_ == 2) && (getResponseBuilder_ != null)) {
        return getResponseBuilder_.getMessageOrBuilder();
      } else {
        if (responseCase_ == 2) {
          return (com.scalar.db.rpc.TransactionResponse.GetResponse) response_;
        }
        return com.scalar.db.rpc.TransactionResponse.GetResponse.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionResponse.GetResponse get_response = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionResponse.GetResponse, com.scalar.db.rpc.TransactionResponse.GetResponse.Builder, com.scalar.db.rpc.TransactionResponse.GetResponseOrBuilder> 
        getGetResponseFieldBuilder() {
      if (getResponseBuilder_ == null) {
        if (!(responseCase_ == 2)) {
          response_ = com.scalar.db.rpc.TransactionResponse.GetResponse.getDefaultInstance();
        }
        getResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.scalar.db.rpc.TransactionResponse.GetResponse, com.scalar.db.rpc.TransactionResponse.GetResponse.Builder, com.scalar.db.rpc.TransactionResponse.GetResponseOrBuilder>(
                (com.scalar.db.rpc.TransactionResponse.GetResponse) response_,
                getParentForChildren(),
                isClean());
        response_ = null;
      }
      responseCase_ = 2;
      onChanged();
      return getResponseBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionResponse.ScanResponse, com.scalar.db.rpc.TransactionResponse.ScanResponse.Builder, com.scalar.db.rpc.TransactionResponse.ScanResponseOrBuilder> scanResponseBuilder_;
    /**
     * .rpc.TransactionResponse.ScanResponse scan_response = 3;
     * @return Whether the scanResponse field is set.
     */
    @java.lang.Override
    public boolean hasScanResponse() {
      return responseCase_ == 3;
    }
    /**
     * .rpc.TransactionResponse.ScanResponse scan_response = 3;
     * @return The scanResponse.
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionResponse.ScanResponse getScanResponse() {
      if (scanResponseBuilder_ == null) {
        if (responseCase_ == 3) {
          return (com.scalar.db.rpc.TransactionResponse.ScanResponse) response_;
        }
        return com.scalar.db.rpc.TransactionResponse.ScanResponse.getDefaultInstance();
      } else {
        if (responseCase_ == 3) {
          return scanResponseBuilder_.getMessage();
        }
        return com.scalar.db.rpc.TransactionResponse.ScanResponse.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionResponse.ScanResponse scan_response = 3;
     */
    public Builder setScanResponse(com.scalar.db.rpc.TransactionResponse.ScanResponse value) {
      if (scanResponseBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        response_ = value;
        onChanged();
      } else {
        scanResponseBuilder_.setMessage(value);
      }
      responseCase_ = 3;
      return this;
    }
    /**
     * .rpc.TransactionResponse.ScanResponse scan_response = 3;
     */
    public Builder setScanResponse(
        com.scalar.db.rpc.TransactionResponse.ScanResponse.Builder builderForValue) {
      if (scanResponseBuilder_ == null) {
        response_ = builderForValue.build();
        onChanged();
      } else {
        scanResponseBuilder_.setMessage(builderForValue.build());
      }
      responseCase_ = 3;
      return this;
    }
    /**
     * .rpc.TransactionResponse.ScanResponse scan_response = 3;
     */
    public Builder mergeScanResponse(com.scalar.db.rpc.TransactionResponse.ScanResponse value) {
      if (scanResponseBuilder_ == null) {
        if (responseCase_ == 3 &&
            response_ != com.scalar.db.rpc.TransactionResponse.ScanResponse.getDefaultInstance()) {
          response_ = com.scalar.db.rpc.TransactionResponse.ScanResponse.newBuilder((com.scalar.db.rpc.TransactionResponse.ScanResponse) response_)
              .mergeFrom(value).buildPartial();
        } else {
          response_ = value;
        }
        onChanged();
      } else {
        if (responseCase_ == 3) {
          scanResponseBuilder_.mergeFrom(value);
        } else {
          scanResponseBuilder_.setMessage(value);
        }
      }
      responseCase_ = 3;
      return this;
    }
    /**
     * .rpc.TransactionResponse.ScanResponse scan_response = 3;
     */
    public Builder clearScanResponse() {
      if (scanResponseBuilder_ == null) {
        if (responseCase_ == 3) {
          responseCase_ = 0;
          response_ = null;
          onChanged();
        }
      } else {
        if (responseCase_ == 3) {
          responseCase_ = 0;
          response_ = null;
        }
        scanResponseBuilder_.clear();
      }
      return this;
    }
    /**
     * .rpc.TransactionResponse.ScanResponse scan_response = 3;
     */
    public com.scalar.db.rpc.TransactionResponse.ScanResponse.Builder getScanResponseBuilder() {
      return getScanResponseFieldBuilder().getBuilder();
    }
    /**
     * .rpc.TransactionResponse.ScanResponse scan_response = 3;
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionResponse.ScanResponseOrBuilder getScanResponseOrBuilder() {
      if ((responseCase_ == 3) && (scanResponseBuilder_ != null)) {
        return scanResponseBuilder_.getMessageOrBuilder();
      } else {
        if (responseCase_ == 3) {
          return (com.scalar.db.rpc.TransactionResponse.ScanResponse) response_;
        }
        return com.scalar.db.rpc.TransactionResponse.ScanResponse.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionResponse.ScanResponse scan_response = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionResponse.ScanResponse, com.scalar.db.rpc.TransactionResponse.ScanResponse.Builder, com.scalar.db.rpc.TransactionResponse.ScanResponseOrBuilder> 
        getScanResponseFieldBuilder() {
      if (scanResponseBuilder_ == null) {
        if (!(responseCase_ == 3)) {
          response_ = com.scalar.db.rpc.TransactionResponse.ScanResponse.getDefaultInstance();
        }
        scanResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.scalar.db.rpc.TransactionResponse.ScanResponse, com.scalar.db.rpc.TransactionResponse.ScanResponse.Builder, com.scalar.db.rpc.TransactionResponse.ScanResponseOrBuilder>(
                (com.scalar.db.rpc.TransactionResponse.ScanResponse) response_,
                getParentForChildren(),
                isClean());
        response_ = null;
      }
      responseCase_ = 3;
      onChanged();
      return scanResponseBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionResponse.Error, com.scalar.db.rpc.TransactionResponse.Error.Builder, com.scalar.db.rpc.TransactionResponse.ErrorOrBuilder> errorBuilder_;
    /**
     * .rpc.TransactionResponse.Error error = 4;
     * @return Whether the error field is set.
     */
    @java.lang.Override
    public boolean hasError() {
      return responseCase_ == 4;
    }
    /**
     * .rpc.TransactionResponse.Error error = 4;
     * @return The error.
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionResponse.Error getError() {
      if (errorBuilder_ == null) {
        if (responseCase_ == 4) {
          return (com.scalar.db.rpc.TransactionResponse.Error) response_;
        }
        return com.scalar.db.rpc.TransactionResponse.Error.getDefaultInstance();
      } else {
        if (responseCase_ == 4) {
          return errorBuilder_.getMessage();
        }
        return com.scalar.db.rpc.TransactionResponse.Error.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionResponse.Error error = 4;
     */
    public Builder setError(com.scalar.db.rpc.TransactionResponse.Error value) {
      if (errorBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        response_ = value;
        onChanged();
      } else {
        errorBuilder_.setMessage(value);
      }
      responseCase_ = 4;
      return this;
    }
    /**
     * .rpc.TransactionResponse.Error error = 4;
     */
    public Builder setError(
        com.scalar.db.rpc.TransactionResponse.Error.Builder builderForValue) {
      if (errorBuilder_ == null) {
        response_ = builderForValue.build();
        onChanged();
      } else {
        errorBuilder_.setMessage(builderForValue.build());
      }
      responseCase_ = 4;
      return this;
    }
    /**
     * .rpc.TransactionResponse.Error error = 4;
     */
    public Builder mergeError(com.scalar.db.rpc.TransactionResponse.Error value) {
      if (errorBuilder_ == null) {
        if (responseCase_ == 4 &&
            response_ != com.scalar.db.rpc.TransactionResponse.Error.getDefaultInstance()) {
          response_ = com.scalar.db.rpc.TransactionResponse.Error.newBuilder((com.scalar.db.rpc.TransactionResponse.Error) response_)
              .mergeFrom(value).buildPartial();
        } else {
          response_ = value;
        }
        onChanged();
      } else {
        if (responseCase_ == 4) {
          errorBuilder_.mergeFrom(value);
        } else {
          errorBuilder_.setMessage(value);
        }
      }
      responseCase_ = 4;
      return this;
    }
    /**
     * .rpc.TransactionResponse.Error error = 4;
     */
    public Builder clearError() {
      if (errorBuilder_ == null) {
        if (responseCase_ == 4) {
          responseCase_ = 0;
          response_ = null;
          onChanged();
        }
      } else {
        if (responseCase_ == 4) {
          responseCase_ = 0;
          response_ = null;
        }
        errorBuilder_.clear();
      }
      return this;
    }
    /**
     * .rpc.TransactionResponse.Error error = 4;
     */
    public com.scalar.db.rpc.TransactionResponse.Error.Builder getErrorBuilder() {
      return getErrorFieldBuilder().getBuilder();
    }
    /**
     * .rpc.TransactionResponse.Error error = 4;
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionResponse.ErrorOrBuilder getErrorOrBuilder() {
      if ((responseCase_ == 4) && (errorBuilder_ != null)) {
        return errorBuilder_.getMessageOrBuilder();
      } else {
        if (responseCase_ == 4) {
          return (com.scalar.db.rpc.TransactionResponse.Error) response_;
        }
        return com.scalar.db.rpc.TransactionResponse.Error.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionResponse.Error error = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionResponse.Error, com.scalar.db.rpc.TransactionResponse.Error.Builder, com.scalar.db.rpc.TransactionResponse.ErrorOrBuilder> 
        getErrorFieldBuilder() {
      if (errorBuilder_ == null) {
        if (!(responseCase_ == 4)) {
          response_ = com.scalar.db.rpc.TransactionResponse.Error.getDefaultInstance();
        }
        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.scalar.db.rpc.TransactionResponse.Error, com.scalar.db.rpc.TransactionResponse.Error.Builder, com.scalar.db.rpc.TransactionResponse.ErrorOrBuilder>(
                (com.scalar.db.rpc.TransactionResponse.Error) response_,
                getParentForChildren(),
                isClean());
        response_ = null;
      }
      responseCase_ = 4;
      onChanged();
      return errorBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionResponse.BeginResponse, com.scalar.db.rpc.TransactionResponse.BeginResponse.Builder, com.scalar.db.rpc.TransactionResponse.BeginResponseOrBuilder> beginResponseBuilder_;
    /**
     * .rpc.TransactionResponse.BeginResponse begin_response = 5;
     * @return Whether the beginResponse field is set.
     */
    @java.lang.Override
    public boolean hasBeginResponse() {
      return responseCase_ == 5;
    }
    /**
     * .rpc.TransactionResponse.BeginResponse begin_response = 5;
     * @return The beginResponse.
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionResponse.BeginResponse getBeginResponse() {
      if (beginResponseBuilder_ == null) {
        if (responseCase_ == 5) {
          return (com.scalar.db.rpc.TransactionResponse.BeginResponse) response_;
        }
        return com.scalar.db.rpc.TransactionResponse.BeginResponse.getDefaultInstance();
      } else {
        if (responseCase_ == 5) {
          return beginResponseBuilder_.getMessage();
        }
        return com.scalar.db.rpc.TransactionResponse.BeginResponse.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionResponse.BeginResponse begin_response = 5;
     */
    public Builder setBeginResponse(com.scalar.db.rpc.TransactionResponse.BeginResponse value) {
      if (beginResponseBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        response_ = value;
        onChanged();
      } else {
        beginResponseBuilder_.setMessage(value);
      }
      responseCase_ = 5;
      return this;
    }
    /**
     * .rpc.TransactionResponse.BeginResponse begin_response = 5;
     */
    public Builder setBeginResponse(
        com.scalar.db.rpc.TransactionResponse.BeginResponse.Builder builderForValue) {
      if (beginResponseBuilder_ == null) {
        response_ = builderForValue.build();
        onChanged();
      } else {
        beginResponseBuilder_.setMessage(builderForValue.build());
      }
      responseCase_ = 5;
      return this;
    }
    /**
     * .rpc.TransactionResponse.BeginResponse begin_response = 5;
     */
    public Builder mergeBeginResponse(com.scalar.db.rpc.TransactionResponse.BeginResponse value) {
      if (beginResponseBuilder_ == null) {
        if (responseCase_ == 5 &&
            response_ != com.scalar.db.rpc.TransactionResponse.BeginResponse.getDefaultInstance()) {
          response_ = com.scalar.db.rpc.TransactionResponse.BeginResponse.newBuilder((com.scalar.db.rpc.TransactionResponse.BeginResponse) response_)
              .mergeFrom(value).buildPartial();
        } else {
          response_ = value;
        }
        onChanged();
      } else {
        if (responseCase_ == 5) {
          beginResponseBuilder_.mergeFrom(value);
        } else {
          beginResponseBuilder_.setMessage(value);
        }
      }
      responseCase_ = 5;
      return this;
    }
    /**
     * .rpc.TransactionResponse.BeginResponse begin_response = 5;
     */
    public Builder clearBeginResponse() {
      if (beginResponseBuilder_ == null) {
        if (responseCase_ == 5) {
          responseCase_ = 0;
          response_ = null;
          onChanged();
        }
      } else {
        if (responseCase_ == 5) {
          responseCase_ = 0;
          response_ = null;
        }
        beginResponseBuilder_.clear();
      }
      return this;
    }
    /**
     * .rpc.TransactionResponse.BeginResponse begin_response = 5;
     */
    public com.scalar.db.rpc.TransactionResponse.BeginResponse.Builder getBeginResponseBuilder() {
      return getBeginResponseFieldBuilder().getBuilder();
    }
    /**
     * .rpc.TransactionResponse.BeginResponse begin_response = 5;
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionResponse.BeginResponseOrBuilder getBeginResponseOrBuilder() {
      if ((responseCase_ == 5) && (beginResponseBuilder_ != null)) {
        return beginResponseBuilder_.getMessageOrBuilder();
      } else {
        if (responseCase_ == 5) {
          return (com.scalar.db.rpc.TransactionResponse.BeginResponse) response_;
        }
        return com.scalar.db.rpc.TransactionResponse.BeginResponse.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionResponse.BeginResponse begin_response = 5;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionResponse.BeginResponse, com.scalar.db.rpc.TransactionResponse.BeginResponse.Builder, com.scalar.db.rpc.TransactionResponse.BeginResponseOrBuilder> 
        getBeginResponseFieldBuilder() {
      if (beginResponseBuilder_ == null) {
        if (!(responseCase_ == 5)) {
          response_ = com.scalar.db.rpc.TransactionResponse.BeginResponse.getDefaultInstance();
        }
        beginResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.scalar.db.rpc.TransactionResponse.BeginResponse, com.scalar.db.rpc.TransactionResponse.BeginResponse.Builder, com.scalar.db.rpc.TransactionResponse.BeginResponseOrBuilder>(
                (com.scalar.db.rpc.TransactionResponse.BeginResponse) response_,
                getParentForChildren(),
                isClean());
        response_ = null;
      }
      responseCase_ = 5;
      onChanged();
      return beginResponseBuilder_;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:rpc.TransactionResponse)
  }

  // @@protoc_insertion_point(class_scope:rpc.TransactionResponse)
  private static final com.scalar.db.rpc.TransactionResponse DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.scalar.db.rpc.TransactionResponse();
  }

  public static com.scalar.db.rpc.TransactionResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public TransactionResponse parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

  public static com.google.protobuf.Parser parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.scalar.db.rpc.TransactionResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy