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

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

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: scalardb.proto

package com.scalar.db.rpc;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_descriptor;
  }

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

  public interface BeginRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:rpc.TransactionRequest.BeginRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional string transaction_id = 1;
     * @return Whether the transactionId field is set.
     */
    boolean hasTransactionId();
    /**
     * optional string transaction_id = 1;
     * @return The transactionId.
     */
    java.lang.String getTransactionId();
    /**
     * optional string transaction_id = 1;
     * @return The bytes for transactionId.
     */
    com.google.protobuf.ByteString
        getTransactionIdBytes();
  }
  /**
   * Protobuf type {@code rpc.TransactionRequest.BeginRequest}
   */
  public static final class BeginRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:rpc.TransactionRequest.BeginRequest)
      BeginRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BeginRequest.newBuilder() to construct.
    private BeginRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private BeginRequest() {
      transactionId_ = "";
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_BeginRequest_descriptor;
    }

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

    private int bitField0_;
    public static final int TRANSACTION_ID_FIELD_NUMBER = 1;
    @SuppressWarnings("serial")
    private volatile java.lang.Object transactionId_ = "";
    /**
     * optional string transaction_id = 1;
     * @return Whether the transactionId field is set.
     */
    @java.lang.Override
    public boolean hasTransactionId() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional 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;
      }
    }
    /**
     * optional 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 (((bitField0_ & 0x00000001) != 0)) {
        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 (((bitField0_ & 0x00000001) != 0)) {
        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.TransactionRequest.BeginRequest)) {
        return super.equals(obj);
      }
      com.scalar.db.rpc.TransactionRequest.BeginRequest other = (com.scalar.db.rpc.TransactionRequest.BeginRequest) obj;

      if (hasTransactionId() != other.hasTransactionId()) return false;
      if (hasTransactionId()) {
        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();
      if (hasTransactionId()) {
        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.TransactionRequest.BeginRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.BeginRequest 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.TransactionRequest.BeginRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.BeginRequest 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.TransactionRequest.BeginRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.BeginRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionRequest.BeginRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.BeginRequest 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.TransactionRequest.BeginRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.BeginRequest 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.TransactionRequest.BeginRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.BeginRequest 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.TransactionRequest.BeginRequest 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.TransactionRequest.BeginRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:rpc.TransactionRequest.BeginRequest)
        com.scalar.db.rpc.TransactionRequest.BeginRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_BeginRequest_descriptor;
      }

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

      // Construct using com.scalar.db.rpc.TransactionRequest.BeginRequest.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_TransactionRequest_BeginRequest_descriptor;
      }

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

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

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

      private void buildPartial0(com.scalar.db.rpc.TransactionRequest.BeginRequest result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.transactionId_ = transactionId_;
          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.TransactionRequest.BeginRequest) {
          return mergeFrom((com.scalar.db.rpc.TransactionRequest.BeginRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.scalar.db.rpc.TransactionRequest.BeginRequest other) {
        if (other == com.scalar.db.rpc.TransactionRequest.BeginRequest.getDefaultInstance()) return this;
        if (other.hasTransactionId()) {
          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_ = "";
      /**
       * optional string transaction_id = 1;
       * @return Whether the transactionId field is set.
       */
      public boolean hasTransactionId() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * optional 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;
        }
      }
      /**
       * optional 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;
        }
      }
      /**
       * optional 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;
      }
      /**
       * optional string transaction_id = 1;
       * @return This builder for chaining.
       */
      public Builder clearTransactionId() {
        transactionId_ = getDefaultInstance().getTransactionId();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * optional 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.TransactionRequest.BeginRequest)
    }

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

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

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public BeginRequest 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.TransactionRequest.BeginRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface StartRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:rpc.TransactionRequest.StartRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional string transaction_id = 1;
     * @return Whether the transactionId field is set.
     */
    boolean hasTransactionId();
    /**
     * optional string transaction_id = 1;
     * @return The transactionId.
     */
    java.lang.String getTransactionId();
    /**
     * optional string transaction_id = 1;
     * @return The bytes for transactionId.
     */
    com.google.protobuf.ByteString
        getTransactionIdBytes();
  }
  /**
   * Protobuf type {@code rpc.TransactionRequest.StartRequest}
   */
  public static final class StartRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:rpc.TransactionRequest.StartRequest)
      StartRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use StartRequest.newBuilder() to construct.
    private StartRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private StartRequest() {
      transactionId_ = "";
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_StartRequest_descriptor;
    }

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

    private int bitField0_;
    public static final int TRANSACTION_ID_FIELD_NUMBER = 1;
    @SuppressWarnings("serial")
    private volatile java.lang.Object transactionId_ = "";
    /**
     * optional string transaction_id = 1;
     * @return Whether the transactionId field is set.
     */
    @java.lang.Override
    public boolean hasTransactionId() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional 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;
      }
    }
    /**
     * optional 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 (((bitField0_ & 0x00000001) != 0)) {
        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 (((bitField0_ & 0x00000001) != 0)) {
        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.TransactionRequest.StartRequest)) {
        return super.equals(obj);
      }
      com.scalar.db.rpc.TransactionRequest.StartRequest other = (com.scalar.db.rpc.TransactionRequest.StartRequest) obj;

      if (hasTransactionId() != other.hasTransactionId()) return false;
      if (hasTransactionId()) {
        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();
      if (hasTransactionId()) {
        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.TransactionRequest.StartRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.StartRequest 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.TransactionRequest.StartRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.StartRequest 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.TransactionRequest.StartRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.StartRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionRequest.StartRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.StartRequest 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.TransactionRequest.StartRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.StartRequest 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.TransactionRequest.StartRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.StartRequest 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.TransactionRequest.StartRequest 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.TransactionRequest.StartRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:rpc.TransactionRequest.StartRequest)
        com.scalar.db.rpc.TransactionRequest.StartRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_StartRequest_descriptor;
      }

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

      // Construct using com.scalar.db.rpc.TransactionRequest.StartRequest.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_TransactionRequest_StartRequest_descriptor;
      }

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

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

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

      private void buildPartial0(com.scalar.db.rpc.TransactionRequest.StartRequest result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.transactionId_ = transactionId_;
          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.TransactionRequest.StartRequest) {
          return mergeFrom((com.scalar.db.rpc.TransactionRequest.StartRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.scalar.db.rpc.TransactionRequest.StartRequest other) {
        if (other == com.scalar.db.rpc.TransactionRequest.StartRequest.getDefaultInstance()) return this;
        if (other.hasTransactionId()) {
          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_ = "";
      /**
       * optional string transaction_id = 1;
       * @return Whether the transactionId field is set.
       */
      public boolean hasTransactionId() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * optional 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;
        }
      }
      /**
       * optional 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;
        }
      }
      /**
       * optional 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;
      }
      /**
       * optional string transaction_id = 1;
       * @return This builder for chaining.
       */
      public Builder clearTransactionId() {
        transactionId_ = getDefaultInstance().getTransactionId();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * optional 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.TransactionRequest.StartRequest)
    }

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

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

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public StartRequest 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.TransactionRequest.StartRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface GetRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:rpc.TransactionRequest.GetRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .rpc.Get get = 2;
     * @return Whether the get field is set.
     */
    boolean hasGet();
    /**
     * .rpc.Get get = 2;
     * @return The get.
     */
    com.scalar.db.rpc.Get getGet();
    /**
     * .rpc.Get get = 2;
     */
    com.scalar.db.rpc.GetOrBuilder getGetOrBuilder();
  }
  /**
   * Protobuf type {@code rpc.TransactionRequest.GetRequest}
   */
  public static final class GetRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:rpc.TransactionRequest.GetRequest)
      GetRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use GetRequest.newBuilder() to construct.
    private GetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private GetRequest() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_GetRequest_descriptor;
    }

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

    public static final int GET_FIELD_NUMBER = 2;
    private com.scalar.db.rpc.Get get_;
    /**
     * .rpc.Get get = 2;
     * @return Whether the get field is set.
     */
    @java.lang.Override
    public boolean hasGet() {
      return get_ != null;
    }
    /**
     * .rpc.Get get = 2;
     * @return The get.
     */
    @java.lang.Override
    public com.scalar.db.rpc.Get getGet() {
      return get_ == null ? com.scalar.db.rpc.Get.getDefaultInstance() : get_;
    }
    /**
     * .rpc.Get get = 2;
     */
    @java.lang.Override
    public com.scalar.db.rpc.GetOrBuilder getGetOrBuilder() {
      return get_ == null ? com.scalar.db.rpc.Get.getDefaultInstance() : get_;
    }

    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 (get_ != null) {
        output.writeMessage(2, getGet());
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (get_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getGet());
      }
      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.TransactionRequest.GetRequest)) {
        return super.equals(obj);
      }
      com.scalar.db.rpc.TransactionRequest.GetRequest other = (com.scalar.db.rpc.TransactionRequest.GetRequest) obj;

      if (hasGet() != other.hasGet()) return false;
      if (hasGet()) {
        if (!getGet()
            .equals(other.getGet())) 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 (hasGet()) {
        hash = (37 * hash) + GET_FIELD_NUMBER;
        hash = (53 * hash) + getGet().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.scalar.db.rpc.TransactionRequest.GetRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.GetRequest 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.TransactionRequest.GetRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.GetRequest 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.TransactionRequest.GetRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.GetRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionRequest.GetRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.GetRequest 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.TransactionRequest.GetRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.GetRequest 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.TransactionRequest.GetRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.GetRequest 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.TransactionRequest.GetRequest 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.TransactionRequest.GetRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:rpc.TransactionRequest.GetRequest)
        com.scalar.db.rpc.TransactionRequest.GetRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_GetRequest_descriptor;
      }

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

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

      }

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

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        get_ = null;
        if (getBuilder_ != null) {
          getBuilder_.dispose();
          getBuilder_ = null;
        }
        return this;
      }

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

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

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

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

      private void buildPartial0(com.scalar.db.rpc.TransactionRequest.GetRequest result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.get_ = getBuilder_ == null
              ? get_
              : getBuilder_.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.TransactionRequest.GetRequest) {
          return mergeFrom((com.scalar.db.rpc.TransactionRequest.GetRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.scalar.db.rpc.TransactionRequest.GetRequest other) {
        if (other == com.scalar.db.rpc.TransactionRequest.GetRequest.getDefaultInstance()) return this;
        if (other.hasGet()) {
          mergeGet(other.getGet());
        }
        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 18: {
                input.readMessage(
                    getGetFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000001;
                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 com.scalar.db.rpc.Get get_;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.scalar.db.rpc.Get, com.scalar.db.rpc.Get.Builder, com.scalar.db.rpc.GetOrBuilder> getBuilder_;
      /**
       * .rpc.Get get = 2;
       * @return Whether the get field is set.
       */
      public boolean hasGet() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * .rpc.Get get = 2;
       * @return The get.
       */
      public com.scalar.db.rpc.Get getGet() {
        if (getBuilder_ == null) {
          return get_ == null ? com.scalar.db.rpc.Get.getDefaultInstance() : get_;
        } else {
          return getBuilder_.getMessage();
        }
      }
      /**
       * .rpc.Get get = 2;
       */
      public Builder setGet(com.scalar.db.rpc.Get value) {
        if (getBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          get_ = value;
        } else {
          getBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * .rpc.Get get = 2;
       */
      public Builder setGet(
          com.scalar.db.rpc.Get.Builder builderForValue) {
        if (getBuilder_ == null) {
          get_ = builderForValue.build();
        } else {
          getBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * .rpc.Get get = 2;
       */
      public Builder mergeGet(com.scalar.db.rpc.Get value) {
        if (getBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
            get_ != null &&
            get_ != com.scalar.db.rpc.Get.getDefaultInstance()) {
            getGetBuilder().mergeFrom(value);
          } else {
            get_ = value;
          }
        } else {
          getBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * .rpc.Get get = 2;
       */
      public Builder clearGet() {
        bitField0_ = (bitField0_ & ~0x00000001);
        get_ = null;
        if (getBuilder_ != null) {
          getBuilder_.dispose();
          getBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * .rpc.Get get = 2;
       */
      public com.scalar.db.rpc.Get.Builder getGetBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getGetFieldBuilder().getBuilder();
      }
      /**
       * .rpc.Get get = 2;
       */
      public com.scalar.db.rpc.GetOrBuilder getGetOrBuilder() {
        if (getBuilder_ != null) {
          return getBuilder_.getMessageOrBuilder();
        } else {
          return get_ == null ?
              com.scalar.db.rpc.Get.getDefaultInstance() : get_;
        }
      }
      /**
       * .rpc.Get get = 2;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.scalar.db.rpc.Get, com.scalar.db.rpc.Get.Builder, com.scalar.db.rpc.GetOrBuilder> 
          getGetFieldBuilder() {
        if (getBuilder_ == null) {
          getBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.scalar.db.rpc.Get, com.scalar.db.rpc.Get.Builder, com.scalar.db.rpc.GetOrBuilder>(
                  getGet(),
                  getParentForChildren(),
                  isClean());
          get_ = null;
        }
        return getBuilder_;
      }
      @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.TransactionRequest.GetRequest)
    }

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

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

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public GetRequest 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.TransactionRequest.GetRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface ScanRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:rpc.TransactionRequest.ScanRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .rpc.Scan scan = 2;
     * @return Whether the scan field is set.
     */
    boolean hasScan();
    /**
     * .rpc.Scan scan = 2;
     * @return The scan.
     */
    com.scalar.db.rpc.Scan getScan();
    /**
     * .rpc.Scan scan = 2;
     */
    com.scalar.db.rpc.ScanOrBuilder getScanOrBuilder();
  }
  /**
   * Protobuf type {@code rpc.TransactionRequest.ScanRequest}
   */
  public static final class ScanRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:rpc.TransactionRequest.ScanRequest)
      ScanRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use ScanRequest.newBuilder() to construct.
    private ScanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private ScanRequest() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_ScanRequest_descriptor;
    }

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

    public static final int SCAN_FIELD_NUMBER = 2;
    private com.scalar.db.rpc.Scan scan_;
    /**
     * .rpc.Scan scan = 2;
     * @return Whether the scan field is set.
     */
    @java.lang.Override
    public boolean hasScan() {
      return scan_ != null;
    }
    /**
     * .rpc.Scan scan = 2;
     * @return The scan.
     */
    @java.lang.Override
    public com.scalar.db.rpc.Scan getScan() {
      return scan_ == null ? com.scalar.db.rpc.Scan.getDefaultInstance() : scan_;
    }
    /**
     * .rpc.Scan scan = 2;
     */
    @java.lang.Override
    public com.scalar.db.rpc.ScanOrBuilder getScanOrBuilder() {
      return scan_ == null ? com.scalar.db.rpc.Scan.getDefaultInstance() : scan_;
    }

    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 (scan_ != null) {
        output.writeMessage(2, getScan());
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (scan_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getScan());
      }
      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.TransactionRequest.ScanRequest)) {
        return super.equals(obj);
      }
      com.scalar.db.rpc.TransactionRequest.ScanRequest other = (com.scalar.db.rpc.TransactionRequest.ScanRequest) obj;

      if (hasScan() != other.hasScan()) return false;
      if (hasScan()) {
        if (!getScan()
            .equals(other.getScan())) 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 (hasScan()) {
        hash = (37 * hash) + SCAN_FIELD_NUMBER;
        hash = (53 * hash) + getScan().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.scalar.db.rpc.TransactionRequest.ScanRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.ScanRequest 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.TransactionRequest.ScanRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.ScanRequest 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.TransactionRequest.ScanRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.ScanRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionRequest.ScanRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.ScanRequest 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.TransactionRequest.ScanRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.ScanRequest 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.TransactionRequest.ScanRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.ScanRequest 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.TransactionRequest.ScanRequest 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.TransactionRequest.ScanRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:rpc.TransactionRequest.ScanRequest)
        com.scalar.db.rpc.TransactionRequest.ScanRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_ScanRequest_descriptor;
      }

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

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

      }

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

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        scan_ = null;
        if (scanBuilder_ != null) {
          scanBuilder_.dispose();
          scanBuilder_ = null;
        }
        return this;
      }

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

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

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

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

      private void buildPartial0(com.scalar.db.rpc.TransactionRequest.ScanRequest result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.scan_ = scanBuilder_ == null
              ? scan_
              : scanBuilder_.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.TransactionRequest.ScanRequest) {
          return mergeFrom((com.scalar.db.rpc.TransactionRequest.ScanRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.scalar.db.rpc.TransactionRequest.ScanRequest other) {
        if (other == com.scalar.db.rpc.TransactionRequest.ScanRequest.getDefaultInstance()) return this;
        if (other.hasScan()) {
          mergeScan(other.getScan());
        }
        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 18: {
                input.readMessage(
                    getScanFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000001;
                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 com.scalar.db.rpc.Scan scan_;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.scalar.db.rpc.Scan, com.scalar.db.rpc.Scan.Builder, com.scalar.db.rpc.ScanOrBuilder> scanBuilder_;
      /**
       * .rpc.Scan scan = 2;
       * @return Whether the scan field is set.
       */
      public boolean hasScan() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * .rpc.Scan scan = 2;
       * @return The scan.
       */
      public com.scalar.db.rpc.Scan getScan() {
        if (scanBuilder_ == null) {
          return scan_ == null ? com.scalar.db.rpc.Scan.getDefaultInstance() : scan_;
        } else {
          return scanBuilder_.getMessage();
        }
      }
      /**
       * .rpc.Scan scan = 2;
       */
      public Builder setScan(com.scalar.db.rpc.Scan value) {
        if (scanBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          scan_ = value;
        } else {
          scanBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * .rpc.Scan scan = 2;
       */
      public Builder setScan(
          com.scalar.db.rpc.Scan.Builder builderForValue) {
        if (scanBuilder_ == null) {
          scan_ = builderForValue.build();
        } else {
          scanBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * .rpc.Scan scan = 2;
       */
      public Builder mergeScan(com.scalar.db.rpc.Scan value) {
        if (scanBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
            scan_ != null &&
            scan_ != com.scalar.db.rpc.Scan.getDefaultInstance()) {
            getScanBuilder().mergeFrom(value);
          } else {
            scan_ = value;
          }
        } else {
          scanBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * .rpc.Scan scan = 2;
       */
      public Builder clearScan() {
        bitField0_ = (bitField0_ & ~0x00000001);
        scan_ = null;
        if (scanBuilder_ != null) {
          scanBuilder_.dispose();
          scanBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * .rpc.Scan scan = 2;
       */
      public com.scalar.db.rpc.Scan.Builder getScanBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getScanFieldBuilder().getBuilder();
      }
      /**
       * .rpc.Scan scan = 2;
       */
      public com.scalar.db.rpc.ScanOrBuilder getScanOrBuilder() {
        if (scanBuilder_ != null) {
          return scanBuilder_.getMessageOrBuilder();
        } else {
          return scan_ == null ?
              com.scalar.db.rpc.Scan.getDefaultInstance() : scan_;
        }
      }
      /**
       * .rpc.Scan scan = 2;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.scalar.db.rpc.Scan, com.scalar.db.rpc.Scan.Builder, com.scalar.db.rpc.ScanOrBuilder> 
          getScanFieldBuilder() {
        if (scanBuilder_ == null) {
          scanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.scalar.db.rpc.Scan, com.scalar.db.rpc.Scan.Builder, com.scalar.db.rpc.ScanOrBuilder>(
                  getScan(),
                  getParentForChildren(),
                  isClean());
          scan_ = null;
        }
        return scanBuilder_;
      }
      @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.TransactionRequest.ScanRequest)
    }

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

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

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public ScanRequest 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.TransactionRequest.ScanRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface MutateRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:rpc.TransactionRequest.MutateRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated .rpc.Mutation mutations = 2;
     */
    java.util.List 
        getMutationsList();
    /**
     * repeated .rpc.Mutation mutations = 2;
     */
    com.scalar.db.rpc.Mutation getMutations(int index);
    /**
     * repeated .rpc.Mutation mutations = 2;
     */
    int getMutationsCount();
    /**
     * repeated .rpc.Mutation mutations = 2;
     */
    java.util.List 
        getMutationsOrBuilderList();
    /**
     * repeated .rpc.Mutation mutations = 2;
     */
    com.scalar.db.rpc.MutationOrBuilder getMutationsOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code rpc.TransactionRequest.MutateRequest}
   */
  public static final class MutateRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:rpc.TransactionRequest.MutateRequest)
      MutateRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use MutateRequest.newBuilder() to construct.
    private MutateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private MutateRequest() {
      mutations_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_MutateRequest_descriptor;
    }

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

    public static final int MUTATIONS_FIELD_NUMBER = 2;
    @SuppressWarnings("serial")
    private java.util.List mutations_;
    /**
     * repeated .rpc.Mutation mutations = 2;
     */
    @java.lang.Override
    public java.util.List getMutationsList() {
      return mutations_;
    }
    /**
     * repeated .rpc.Mutation mutations = 2;
     */
    @java.lang.Override
    public java.util.List 
        getMutationsOrBuilderList() {
      return mutations_;
    }
    /**
     * repeated .rpc.Mutation mutations = 2;
     */
    @java.lang.Override
    public int getMutationsCount() {
      return mutations_.size();
    }
    /**
     * repeated .rpc.Mutation mutations = 2;
     */
    @java.lang.Override
    public com.scalar.db.rpc.Mutation getMutations(int index) {
      return mutations_.get(index);
    }
    /**
     * repeated .rpc.Mutation mutations = 2;
     */
    @java.lang.Override
    public com.scalar.db.rpc.MutationOrBuilder getMutationsOrBuilder(
        int index) {
      return mutations_.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 < mutations_.size(); i++) {
        output.writeMessage(2, mutations_.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 < mutations_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, mutations_.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.TransactionRequest.MutateRequest)) {
        return super.equals(obj);
      }
      com.scalar.db.rpc.TransactionRequest.MutateRequest other = (com.scalar.db.rpc.TransactionRequest.MutateRequest) obj;

      if (!getMutationsList()
          .equals(other.getMutationsList())) 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 (getMutationsCount() > 0) {
        hash = (37 * hash) + MUTATIONS_FIELD_NUMBER;
        hash = (53 * hash) + getMutationsList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.scalar.db.rpc.TransactionRequest.MutateRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.MutateRequest 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.TransactionRequest.MutateRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.MutateRequest 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.TransactionRequest.MutateRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.MutateRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionRequest.MutateRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.MutateRequest 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.TransactionRequest.MutateRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.MutateRequest 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.TransactionRequest.MutateRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.MutateRequest 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.TransactionRequest.MutateRequest 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.TransactionRequest.MutateRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:rpc.TransactionRequest.MutateRequest)
        com.scalar.db.rpc.TransactionRequest.MutateRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_MutateRequest_descriptor;
      }

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

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

      }

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

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        if (mutationsBuilder_ == null) {
          mutations_ = java.util.Collections.emptyList();
        } else {
          mutations_ = null;
          mutationsBuilder_.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_TransactionRequest_MutateRequest_descriptor;
      }

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

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

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

      private void buildPartialRepeatedFields(com.scalar.db.rpc.TransactionRequest.MutateRequest result) {
        if (mutationsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            mutations_ = java.util.Collections.unmodifiableList(mutations_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.mutations_ = mutations_;
        } else {
          result.mutations_ = mutationsBuilder_.build();
        }
      }

      private void buildPartial0(com.scalar.db.rpc.TransactionRequest.MutateRequest 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.TransactionRequest.MutateRequest) {
          return mergeFrom((com.scalar.db.rpc.TransactionRequest.MutateRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.scalar.db.rpc.TransactionRequest.MutateRequest other) {
        if (other == com.scalar.db.rpc.TransactionRequest.MutateRequest.getDefaultInstance()) return this;
        if (mutationsBuilder_ == null) {
          if (!other.mutations_.isEmpty()) {
            if (mutations_.isEmpty()) {
              mutations_ = other.mutations_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureMutationsIsMutable();
              mutations_.addAll(other.mutations_);
            }
            onChanged();
          }
        } else {
          if (!other.mutations_.isEmpty()) {
            if (mutationsBuilder_.isEmpty()) {
              mutationsBuilder_.dispose();
              mutationsBuilder_ = null;
              mutations_ = other.mutations_;
              bitField0_ = (bitField0_ & ~0x00000001);
              mutationsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getMutationsFieldBuilder() : null;
            } else {
              mutationsBuilder_.addAllMessages(other.mutations_);
            }
          }
        }
        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 18: {
                com.scalar.db.rpc.Mutation m =
                    input.readMessage(
                        com.scalar.db.rpc.Mutation.parser(),
                        extensionRegistry);
                if (mutationsBuilder_ == null) {
                  ensureMutationsIsMutable();
                  mutations_.add(m);
                } else {
                  mutationsBuilder_.addMessage(m);
                }
                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 java.util.List mutations_ =
        java.util.Collections.emptyList();
      private void ensureMutationsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          mutations_ = new java.util.ArrayList(mutations_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.scalar.db.rpc.Mutation, com.scalar.db.rpc.Mutation.Builder, com.scalar.db.rpc.MutationOrBuilder> mutationsBuilder_;

      /**
       * repeated .rpc.Mutation mutations = 2;
       */
      public java.util.List getMutationsList() {
        if (mutationsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(mutations_);
        } else {
          return mutationsBuilder_.getMessageList();
        }
      }
      /**
       * repeated .rpc.Mutation mutations = 2;
       */
      public int getMutationsCount() {
        if (mutationsBuilder_ == null) {
          return mutations_.size();
        } else {
          return mutationsBuilder_.getCount();
        }
      }
      /**
       * repeated .rpc.Mutation mutations = 2;
       */
      public com.scalar.db.rpc.Mutation getMutations(int index) {
        if (mutationsBuilder_ == null) {
          return mutations_.get(index);
        } else {
          return mutationsBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .rpc.Mutation mutations = 2;
       */
      public Builder setMutations(
          int index, com.scalar.db.rpc.Mutation value) {
        if (mutationsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMutationsIsMutable();
          mutations_.set(index, value);
          onChanged();
        } else {
          mutationsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .rpc.Mutation mutations = 2;
       */
      public Builder setMutations(
          int index, com.scalar.db.rpc.Mutation.Builder builderForValue) {
        if (mutationsBuilder_ == null) {
          ensureMutationsIsMutable();
          mutations_.set(index, builderForValue.build());
          onChanged();
        } else {
          mutationsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .rpc.Mutation mutations = 2;
       */
      public Builder addMutations(com.scalar.db.rpc.Mutation value) {
        if (mutationsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMutationsIsMutable();
          mutations_.add(value);
          onChanged();
        } else {
          mutationsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .rpc.Mutation mutations = 2;
       */
      public Builder addMutations(
          int index, com.scalar.db.rpc.Mutation value) {
        if (mutationsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMutationsIsMutable();
          mutations_.add(index, value);
          onChanged();
        } else {
          mutationsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .rpc.Mutation mutations = 2;
       */
      public Builder addMutations(
          com.scalar.db.rpc.Mutation.Builder builderForValue) {
        if (mutationsBuilder_ == null) {
          ensureMutationsIsMutable();
          mutations_.add(builderForValue.build());
          onChanged();
        } else {
          mutationsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .rpc.Mutation mutations = 2;
       */
      public Builder addMutations(
          int index, com.scalar.db.rpc.Mutation.Builder builderForValue) {
        if (mutationsBuilder_ == null) {
          ensureMutationsIsMutable();
          mutations_.add(index, builderForValue.build());
          onChanged();
        } else {
          mutationsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .rpc.Mutation mutations = 2;
       */
      public Builder addAllMutations(
          java.lang.Iterable values) {
        if (mutationsBuilder_ == null) {
          ensureMutationsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, mutations_);
          onChanged();
        } else {
          mutationsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .rpc.Mutation mutations = 2;
       */
      public Builder clearMutations() {
        if (mutationsBuilder_ == null) {
          mutations_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          mutationsBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .rpc.Mutation mutations = 2;
       */
      public Builder removeMutations(int index) {
        if (mutationsBuilder_ == null) {
          ensureMutationsIsMutable();
          mutations_.remove(index);
          onChanged();
        } else {
          mutationsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .rpc.Mutation mutations = 2;
       */
      public com.scalar.db.rpc.Mutation.Builder getMutationsBuilder(
          int index) {
        return getMutationsFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .rpc.Mutation mutations = 2;
       */
      public com.scalar.db.rpc.MutationOrBuilder getMutationsOrBuilder(
          int index) {
        if (mutationsBuilder_ == null) {
          return mutations_.get(index);  } else {
          return mutationsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .rpc.Mutation mutations = 2;
       */
      public java.util.List 
           getMutationsOrBuilderList() {
        if (mutationsBuilder_ != null) {
          return mutationsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(mutations_);
        }
      }
      /**
       * repeated .rpc.Mutation mutations = 2;
       */
      public com.scalar.db.rpc.Mutation.Builder addMutationsBuilder() {
        return getMutationsFieldBuilder().addBuilder(
            com.scalar.db.rpc.Mutation.getDefaultInstance());
      }
      /**
       * repeated .rpc.Mutation mutations = 2;
       */
      public com.scalar.db.rpc.Mutation.Builder addMutationsBuilder(
          int index) {
        return getMutationsFieldBuilder().addBuilder(
            index, com.scalar.db.rpc.Mutation.getDefaultInstance());
      }
      /**
       * repeated .rpc.Mutation mutations = 2;
       */
      public java.util.List 
           getMutationsBuilderList() {
        return getMutationsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.scalar.db.rpc.Mutation, com.scalar.db.rpc.Mutation.Builder, com.scalar.db.rpc.MutationOrBuilder> 
          getMutationsFieldBuilder() {
        if (mutationsBuilder_ == null) {
          mutationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              com.scalar.db.rpc.Mutation, com.scalar.db.rpc.Mutation.Builder, com.scalar.db.rpc.MutationOrBuilder>(
                  mutations_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          mutations_ = null;
        }
        return mutationsBuilder_;
      }
      @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.TransactionRequest.MutateRequest)
    }

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

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

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public MutateRequest 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.TransactionRequest.MutateRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_CommitRequest_descriptor;
    }

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

    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 {
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      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.TransactionRequest.CommitRequest)) {
        return super.equals(obj);
      }
      com.scalar.db.rpc.TransactionRequest.CommitRequest other = (com.scalar.db.rpc.TransactionRequest.CommitRequest) obj;

      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 = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.scalar.db.rpc.TransactionRequest.CommitRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.CommitRequest 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.TransactionRequest.CommitRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.CommitRequest 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.TransactionRequest.CommitRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.CommitRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionRequest.CommitRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.CommitRequest 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.TransactionRequest.CommitRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.CommitRequest 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.TransactionRequest.CommitRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.CommitRequest 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.TransactionRequest.CommitRequest 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.TransactionRequest.CommitRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:rpc.TransactionRequest.CommitRequest)
        com.scalar.db.rpc.TransactionRequest.CommitRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_CommitRequest_descriptor;
      }

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

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

      }

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

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        return this;
      }

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

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

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

      @java.lang.Override
      public com.scalar.db.rpc.TransactionRequest.CommitRequest buildPartial() {
        com.scalar.db.rpc.TransactionRequest.CommitRequest result = new com.scalar.db.rpc.TransactionRequest.CommitRequest(this);
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(com.scalar.db.rpc.TransactionRequest.CommitRequest other) {
        if (other == com.scalar.db.rpc.TransactionRequest.CommitRequest.getDefaultInstance()) return this;
        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;
              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;
      }
      @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.TransactionRequest.CommitRequest)
    }

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

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

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public CommitRequest 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.TransactionRequest.CommitRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_RollbackRequest_descriptor;
    }

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

    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 {
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      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.TransactionRequest.RollbackRequest)) {
        return super.equals(obj);
      }
      com.scalar.db.rpc.TransactionRequest.RollbackRequest other = (com.scalar.db.rpc.TransactionRequest.RollbackRequest) obj;

      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 = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.scalar.db.rpc.TransactionRequest.RollbackRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.RollbackRequest 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.TransactionRequest.RollbackRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.RollbackRequest 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.TransactionRequest.RollbackRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.RollbackRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionRequest.RollbackRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.RollbackRequest 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.TransactionRequest.RollbackRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.RollbackRequest 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.TransactionRequest.RollbackRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.RollbackRequest 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.TransactionRequest.RollbackRequest 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.TransactionRequest.RollbackRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:rpc.TransactionRequest.RollbackRequest)
        com.scalar.db.rpc.TransactionRequest.RollbackRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_RollbackRequest_descriptor;
      }

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

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

      }

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

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        return this;
      }

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

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

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

      @java.lang.Override
      public com.scalar.db.rpc.TransactionRequest.RollbackRequest buildPartial() {
        com.scalar.db.rpc.TransactionRequest.RollbackRequest result = new com.scalar.db.rpc.TransactionRequest.RollbackRequest(this);
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(com.scalar.db.rpc.TransactionRequest.RollbackRequest other) {
        if (other == com.scalar.db.rpc.TransactionRequest.RollbackRequest.getDefaultInstance()) return this;
        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;
              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;
      }
      @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.TransactionRequest.RollbackRequest)
    }

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

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

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public RollbackRequest 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.TransactionRequest.RollbackRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

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

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_AbortRequest_descriptor;
    }

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

    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 {
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      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.TransactionRequest.AbortRequest)) {
        return super.equals(obj);
      }
      com.scalar.db.rpc.TransactionRequest.AbortRequest other = (com.scalar.db.rpc.TransactionRequest.AbortRequest) obj;

      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 = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.scalar.db.rpc.TransactionRequest.AbortRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.AbortRequest 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.TransactionRequest.AbortRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.AbortRequest 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.TransactionRequest.AbortRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.scalar.db.rpc.TransactionRequest.AbortRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.scalar.db.rpc.TransactionRequest.AbortRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.AbortRequest 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.TransactionRequest.AbortRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.AbortRequest 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.TransactionRequest.AbortRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.scalar.db.rpc.TransactionRequest.AbortRequest 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.TransactionRequest.AbortRequest 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.TransactionRequest.AbortRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:rpc.TransactionRequest.AbortRequest)
        com.scalar.db.rpc.TransactionRequest.AbortRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_AbortRequest_descriptor;
      }

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

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

      }

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

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        return this;
      }

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

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

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

      @java.lang.Override
      public com.scalar.db.rpc.TransactionRequest.AbortRequest buildPartial() {
        com.scalar.db.rpc.TransactionRequest.AbortRequest result = new com.scalar.db.rpc.TransactionRequest.AbortRequest(this);
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(com.scalar.db.rpc.TransactionRequest.AbortRequest other) {
        if (other == com.scalar.db.rpc.TransactionRequest.AbortRequest.getDefaultInstance()) return this;
        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;
              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;
      }
      @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.TransactionRequest.AbortRequest)
    }

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

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

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public AbortRequest 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.TransactionRequest.AbortRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private int requestCase_ = 0;
  private java.lang.Object request_;
  public enum RequestCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    START_REQUEST(1),
    GET_REQUEST(2),
    SCAN_REQUEST(3),
    MUTATE_REQUEST(4),
    COMMIT_REQUEST(5),
    ABORT_REQUEST(6),
    BEGIN_REQUEST(7),
    ROLLBACK_REQUEST(8),
    REQUEST_NOT_SET(0);
    private final int value;
    private RequestCase(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 RequestCase valueOf(int value) {
      return forNumber(value);
    }

    public static RequestCase forNumber(int value) {
      switch (value) {
        case 1: return START_REQUEST;
        case 2: return GET_REQUEST;
        case 3: return SCAN_REQUEST;
        case 4: return MUTATE_REQUEST;
        case 5: return COMMIT_REQUEST;
        case 6: return ABORT_REQUEST;
        case 7: return BEGIN_REQUEST;
        case 8: return ROLLBACK_REQUEST;
        case 0: return REQUEST_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public RequestCase
  getRequestCase() {
    return RequestCase.forNumber(
        requestCase_);
  }

  public static final int START_REQUEST_FIELD_NUMBER = 1;
  /**
   * .rpc.TransactionRequest.StartRequest start_request = 1;
   * @return Whether the startRequest field is set.
   */
  @java.lang.Override
  public boolean hasStartRequest() {
    return requestCase_ == 1;
  }
  /**
   * .rpc.TransactionRequest.StartRequest start_request = 1;
   * @return The startRequest.
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionRequest.StartRequest getStartRequest() {
    if (requestCase_ == 1) {
       return (com.scalar.db.rpc.TransactionRequest.StartRequest) request_;
    }
    return com.scalar.db.rpc.TransactionRequest.StartRequest.getDefaultInstance();
  }
  /**
   * .rpc.TransactionRequest.StartRequest start_request = 1;
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionRequest.StartRequestOrBuilder getStartRequestOrBuilder() {
    if (requestCase_ == 1) {
       return (com.scalar.db.rpc.TransactionRequest.StartRequest) request_;
    }
    return com.scalar.db.rpc.TransactionRequest.StartRequest.getDefaultInstance();
  }

  public static final int GET_REQUEST_FIELD_NUMBER = 2;
  /**
   * .rpc.TransactionRequest.GetRequest get_request = 2;
   * @return Whether the getRequest field is set.
   */
  @java.lang.Override
  public boolean hasGetRequest() {
    return requestCase_ == 2;
  }
  /**
   * .rpc.TransactionRequest.GetRequest get_request = 2;
   * @return The getRequest.
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionRequest.GetRequest getGetRequest() {
    if (requestCase_ == 2) {
       return (com.scalar.db.rpc.TransactionRequest.GetRequest) request_;
    }
    return com.scalar.db.rpc.TransactionRequest.GetRequest.getDefaultInstance();
  }
  /**
   * .rpc.TransactionRequest.GetRequest get_request = 2;
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionRequest.GetRequestOrBuilder getGetRequestOrBuilder() {
    if (requestCase_ == 2) {
       return (com.scalar.db.rpc.TransactionRequest.GetRequest) request_;
    }
    return com.scalar.db.rpc.TransactionRequest.GetRequest.getDefaultInstance();
  }

  public static final int SCAN_REQUEST_FIELD_NUMBER = 3;
  /**
   * .rpc.TransactionRequest.ScanRequest scan_request = 3;
   * @return Whether the scanRequest field is set.
   */
  @java.lang.Override
  public boolean hasScanRequest() {
    return requestCase_ == 3;
  }
  /**
   * .rpc.TransactionRequest.ScanRequest scan_request = 3;
   * @return The scanRequest.
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionRequest.ScanRequest getScanRequest() {
    if (requestCase_ == 3) {
       return (com.scalar.db.rpc.TransactionRequest.ScanRequest) request_;
    }
    return com.scalar.db.rpc.TransactionRequest.ScanRequest.getDefaultInstance();
  }
  /**
   * .rpc.TransactionRequest.ScanRequest scan_request = 3;
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionRequest.ScanRequestOrBuilder getScanRequestOrBuilder() {
    if (requestCase_ == 3) {
       return (com.scalar.db.rpc.TransactionRequest.ScanRequest) request_;
    }
    return com.scalar.db.rpc.TransactionRequest.ScanRequest.getDefaultInstance();
  }

  public static final int MUTATE_REQUEST_FIELD_NUMBER = 4;
  /**
   * .rpc.TransactionRequest.MutateRequest mutate_request = 4;
   * @return Whether the mutateRequest field is set.
   */
  @java.lang.Override
  public boolean hasMutateRequest() {
    return requestCase_ == 4;
  }
  /**
   * .rpc.TransactionRequest.MutateRequest mutate_request = 4;
   * @return The mutateRequest.
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionRequest.MutateRequest getMutateRequest() {
    if (requestCase_ == 4) {
       return (com.scalar.db.rpc.TransactionRequest.MutateRequest) request_;
    }
    return com.scalar.db.rpc.TransactionRequest.MutateRequest.getDefaultInstance();
  }
  /**
   * .rpc.TransactionRequest.MutateRequest mutate_request = 4;
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionRequest.MutateRequestOrBuilder getMutateRequestOrBuilder() {
    if (requestCase_ == 4) {
       return (com.scalar.db.rpc.TransactionRequest.MutateRequest) request_;
    }
    return com.scalar.db.rpc.TransactionRequest.MutateRequest.getDefaultInstance();
  }

  public static final int COMMIT_REQUEST_FIELD_NUMBER = 5;
  /**
   * .rpc.TransactionRequest.CommitRequest commit_request = 5;
   * @return Whether the commitRequest field is set.
   */
  @java.lang.Override
  public boolean hasCommitRequest() {
    return requestCase_ == 5;
  }
  /**
   * .rpc.TransactionRequest.CommitRequest commit_request = 5;
   * @return The commitRequest.
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionRequest.CommitRequest getCommitRequest() {
    if (requestCase_ == 5) {
       return (com.scalar.db.rpc.TransactionRequest.CommitRequest) request_;
    }
    return com.scalar.db.rpc.TransactionRequest.CommitRequest.getDefaultInstance();
  }
  /**
   * .rpc.TransactionRequest.CommitRequest commit_request = 5;
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionRequest.CommitRequestOrBuilder getCommitRequestOrBuilder() {
    if (requestCase_ == 5) {
       return (com.scalar.db.rpc.TransactionRequest.CommitRequest) request_;
    }
    return com.scalar.db.rpc.TransactionRequest.CommitRequest.getDefaultInstance();
  }

  public static final int ABORT_REQUEST_FIELD_NUMBER = 6;
  /**
   * .rpc.TransactionRequest.AbortRequest abort_request = 6;
   * @return Whether the abortRequest field is set.
   */
  @java.lang.Override
  public boolean hasAbortRequest() {
    return requestCase_ == 6;
  }
  /**
   * .rpc.TransactionRequest.AbortRequest abort_request = 6;
   * @return The abortRequest.
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionRequest.AbortRequest getAbortRequest() {
    if (requestCase_ == 6) {
       return (com.scalar.db.rpc.TransactionRequest.AbortRequest) request_;
    }
    return com.scalar.db.rpc.TransactionRequest.AbortRequest.getDefaultInstance();
  }
  /**
   * .rpc.TransactionRequest.AbortRequest abort_request = 6;
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionRequest.AbortRequestOrBuilder getAbortRequestOrBuilder() {
    if (requestCase_ == 6) {
       return (com.scalar.db.rpc.TransactionRequest.AbortRequest) request_;
    }
    return com.scalar.db.rpc.TransactionRequest.AbortRequest.getDefaultInstance();
  }

  public static final int BEGIN_REQUEST_FIELD_NUMBER = 7;
  /**
   * .rpc.TransactionRequest.BeginRequest begin_request = 7;
   * @return Whether the beginRequest field is set.
   */
  @java.lang.Override
  public boolean hasBeginRequest() {
    return requestCase_ == 7;
  }
  /**
   * .rpc.TransactionRequest.BeginRequest begin_request = 7;
   * @return The beginRequest.
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionRequest.BeginRequest getBeginRequest() {
    if (requestCase_ == 7) {
       return (com.scalar.db.rpc.TransactionRequest.BeginRequest) request_;
    }
    return com.scalar.db.rpc.TransactionRequest.BeginRequest.getDefaultInstance();
  }
  /**
   * .rpc.TransactionRequest.BeginRequest begin_request = 7;
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionRequest.BeginRequestOrBuilder getBeginRequestOrBuilder() {
    if (requestCase_ == 7) {
       return (com.scalar.db.rpc.TransactionRequest.BeginRequest) request_;
    }
    return com.scalar.db.rpc.TransactionRequest.BeginRequest.getDefaultInstance();
  }

  public static final int ROLLBACK_REQUEST_FIELD_NUMBER = 8;
  /**
   * .rpc.TransactionRequest.RollbackRequest rollback_request = 8;
   * @return Whether the rollbackRequest field is set.
   */
  @java.lang.Override
  public boolean hasRollbackRequest() {
    return requestCase_ == 8;
  }
  /**
   * .rpc.TransactionRequest.RollbackRequest rollback_request = 8;
   * @return The rollbackRequest.
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionRequest.RollbackRequest getRollbackRequest() {
    if (requestCase_ == 8) {
       return (com.scalar.db.rpc.TransactionRequest.RollbackRequest) request_;
    }
    return com.scalar.db.rpc.TransactionRequest.RollbackRequest.getDefaultInstance();
  }
  /**
   * .rpc.TransactionRequest.RollbackRequest rollback_request = 8;
   */
  @java.lang.Override
  public com.scalar.db.rpc.TransactionRequest.RollbackRequestOrBuilder getRollbackRequestOrBuilder() {
    if (requestCase_ == 8) {
       return (com.scalar.db.rpc.TransactionRequest.RollbackRequest) request_;
    }
    return com.scalar.db.rpc.TransactionRequest.RollbackRequest.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 (requestCase_ == 1) {
      output.writeMessage(1, (com.scalar.db.rpc.TransactionRequest.StartRequest) request_);
    }
    if (requestCase_ == 2) {
      output.writeMessage(2, (com.scalar.db.rpc.TransactionRequest.GetRequest) request_);
    }
    if (requestCase_ == 3) {
      output.writeMessage(3, (com.scalar.db.rpc.TransactionRequest.ScanRequest) request_);
    }
    if (requestCase_ == 4) {
      output.writeMessage(4, (com.scalar.db.rpc.TransactionRequest.MutateRequest) request_);
    }
    if (requestCase_ == 5) {
      output.writeMessage(5, (com.scalar.db.rpc.TransactionRequest.CommitRequest) request_);
    }
    if (requestCase_ == 6) {
      output.writeMessage(6, (com.scalar.db.rpc.TransactionRequest.AbortRequest) request_);
    }
    if (requestCase_ == 7) {
      output.writeMessage(7, (com.scalar.db.rpc.TransactionRequest.BeginRequest) request_);
    }
    if (requestCase_ == 8) {
      output.writeMessage(8, (com.scalar.db.rpc.TransactionRequest.RollbackRequest) request_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (requestCase_ == 1) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, (com.scalar.db.rpc.TransactionRequest.StartRequest) request_);
    }
    if (requestCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (com.scalar.db.rpc.TransactionRequest.GetRequest) request_);
    }
    if (requestCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, (com.scalar.db.rpc.TransactionRequest.ScanRequest) request_);
    }
    if (requestCase_ == 4) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, (com.scalar.db.rpc.TransactionRequest.MutateRequest) request_);
    }
    if (requestCase_ == 5) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, (com.scalar.db.rpc.TransactionRequest.CommitRequest) request_);
    }
    if (requestCase_ == 6) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, (com.scalar.db.rpc.TransactionRequest.AbortRequest) request_);
    }
    if (requestCase_ == 7) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(7, (com.scalar.db.rpc.TransactionRequest.BeginRequest) request_);
    }
    if (requestCase_ == 8) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(8, (com.scalar.db.rpc.TransactionRequest.RollbackRequest) request_);
    }
    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.TransactionRequest)) {
      return super.equals(obj);
    }
    com.scalar.db.rpc.TransactionRequest other = (com.scalar.db.rpc.TransactionRequest) obj;

    if (!getRequestCase().equals(other.getRequestCase())) return false;
    switch (requestCase_) {
      case 1:
        if (!getStartRequest()
            .equals(other.getStartRequest())) return false;
        break;
      case 2:
        if (!getGetRequest()
            .equals(other.getGetRequest())) return false;
        break;
      case 3:
        if (!getScanRequest()
            .equals(other.getScanRequest())) return false;
        break;
      case 4:
        if (!getMutateRequest()
            .equals(other.getMutateRequest())) return false;
        break;
      case 5:
        if (!getCommitRequest()
            .equals(other.getCommitRequest())) return false;
        break;
      case 6:
        if (!getAbortRequest()
            .equals(other.getAbortRequest())) return false;
        break;
      case 7:
        if (!getBeginRequest()
            .equals(other.getBeginRequest())) return false;
        break;
      case 8:
        if (!getRollbackRequest()
            .equals(other.getRollbackRequest())) 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 (requestCase_) {
      case 1:
        hash = (37 * hash) + START_REQUEST_FIELD_NUMBER;
        hash = (53 * hash) + getStartRequest().hashCode();
        break;
      case 2:
        hash = (37 * hash) + GET_REQUEST_FIELD_NUMBER;
        hash = (53 * hash) + getGetRequest().hashCode();
        break;
      case 3:
        hash = (37 * hash) + SCAN_REQUEST_FIELD_NUMBER;
        hash = (53 * hash) + getScanRequest().hashCode();
        break;
      case 4:
        hash = (37 * hash) + MUTATE_REQUEST_FIELD_NUMBER;
        hash = (53 * hash) + getMutateRequest().hashCode();
        break;
      case 5:
        hash = (37 * hash) + COMMIT_REQUEST_FIELD_NUMBER;
        hash = (53 * hash) + getCommitRequest().hashCode();
        break;
      case 6:
        hash = (37 * hash) + ABORT_REQUEST_FIELD_NUMBER;
        hash = (53 * hash) + getAbortRequest().hashCode();
        break;
      case 7:
        hash = (37 * hash) + BEGIN_REQUEST_FIELD_NUMBER;
        hash = (53 * hash) + getBeginRequest().hashCode();
        break;
      case 8:
        hash = (37 * hash) + ROLLBACK_REQUEST_FIELD_NUMBER;
        hash = (53 * hash) + getRollbackRequest().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.scalar.db.rpc.TransactionRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.scalar.db.rpc.TransactionRequest 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.TransactionRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.scalar.db.rpc.TransactionRequest 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.TransactionRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.scalar.db.rpc.TransactionRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.scalar.db.rpc.TransactionRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.scalar.db.rpc.TransactionRequest 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.TransactionRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.scalar.db.rpc.TransactionRequest 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.TransactionRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.scalar.db.rpc.TransactionRequest 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.TransactionRequest 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.TransactionRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:rpc.TransactionRequest)
      com.scalar.db.rpc.TransactionRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_descriptor;
    }

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

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

    }

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

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      if (startRequestBuilder_ != null) {
        startRequestBuilder_.clear();
      }
      if (getRequestBuilder_ != null) {
        getRequestBuilder_.clear();
      }
      if (scanRequestBuilder_ != null) {
        scanRequestBuilder_.clear();
      }
      if (mutateRequestBuilder_ != null) {
        mutateRequestBuilder_.clear();
      }
      if (commitRequestBuilder_ != null) {
        commitRequestBuilder_.clear();
      }
      if (abortRequestBuilder_ != null) {
        abortRequestBuilder_.clear();
      }
      if (beginRequestBuilder_ != null) {
        beginRequestBuilder_.clear();
      }
      if (rollbackRequestBuilder_ != null) {
        rollbackRequestBuilder_.clear();
      }
      requestCase_ = 0;
      request_ = null;
      return this;
    }

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

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

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

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

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

    private void buildPartialOneofs(com.scalar.db.rpc.TransactionRequest result) {
      result.requestCase_ = requestCase_;
      result.request_ = this.request_;
      if (requestCase_ == 1 &&
          startRequestBuilder_ != null) {
        result.request_ = startRequestBuilder_.build();
      }
      if (requestCase_ == 2 &&
          getRequestBuilder_ != null) {
        result.request_ = getRequestBuilder_.build();
      }
      if (requestCase_ == 3 &&
          scanRequestBuilder_ != null) {
        result.request_ = scanRequestBuilder_.build();
      }
      if (requestCase_ == 4 &&
          mutateRequestBuilder_ != null) {
        result.request_ = mutateRequestBuilder_.build();
      }
      if (requestCase_ == 5 &&
          commitRequestBuilder_ != null) {
        result.request_ = commitRequestBuilder_.build();
      }
      if (requestCase_ == 6 &&
          abortRequestBuilder_ != null) {
        result.request_ = abortRequestBuilder_.build();
      }
      if (requestCase_ == 7 &&
          beginRequestBuilder_ != null) {
        result.request_ = beginRequestBuilder_.build();
      }
      if (requestCase_ == 8 &&
          rollbackRequestBuilder_ != null) {
        result.request_ = rollbackRequestBuilder_.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.TransactionRequest) {
        return mergeFrom((com.scalar.db.rpc.TransactionRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.scalar.db.rpc.TransactionRequest other) {
      if (other == com.scalar.db.rpc.TransactionRequest.getDefaultInstance()) return this;
      switch (other.getRequestCase()) {
        case START_REQUEST: {
          mergeStartRequest(other.getStartRequest());
          break;
        }
        case GET_REQUEST: {
          mergeGetRequest(other.getGetRequest());
          break;
        }
        case SCAN_REQUEST: {
          mergeScanRequest(other.getScanRequest());
          break;
        }
        case MUTATE_REQUEST: {
          mergeMutateRequest(other.getMutateRequest());
          break;
        }
        case COMMIT_REQUEST: {
          mergeCommitRequest(other.getCommitRequest());
          break;
        }
        case ABORT_REQUEST: {
          mergeAbortRequest(other.getAbortRequest());
          break;
        }
        case BEGIN_REQUEST: {
          mergeBeginRequest(other.getBeginRequest());
          break;
        }
        case ROLLBACK_REQUEST: {
          mergeRollbackRequest(other.getRollbackRequest());
          break;
        }
        case REQUEST_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(
                  getStartRequestFieldBuilder().getBuilder(),
                  extensionRegistry);
              requestCase_ = 1;
              break;
            } // case 10
            case 18: {
              input.readMessage(
                  getGetRequestFieldBuilder().getBuilder(),
                  extensionRegistry);
              requestCase_ = 2;
              break;
            } // case 18
            case 26: {
              input.readMessage(
                  getScanRequestFieldBuilder().getBuilder(),
                  extensionRegistry);
              requestCase_ = 3;
              break;
            } // case 26
            case 34: {
              input.readMessage(
                  getMutateRequestFieldBuilder().getBuilder(),
                  extensionRegistry);
              requestCase_ = 4;
              break;
            } // case 34
            case 42: {
              input.readMessage(
                  getCommitRequestFieldBuilder().getBuilder(),
                  extensionRegistry);
              requestCase_ = 5;
              break;
            } // case 42
            case 50: {
              input.readMessage(
                  getAbortRequestFieldBuilder().getBuilder(),
                  extensionRegistry);
              requestCase_ = 6;
              break;
            } // case 50
            case 58: {
              input.readMessage(
                  getBeginRequestFieldBuilder().getBuilder(),
                  extensionRegistry);
              requestCase_ = 7;
              break;
            } // case 58
            case 66: {
              input.readMessage(
                  getRollbackRequestFieldBuilder().getBuilder(),
                  extensionRegistry);
              requestCase_ = 8;
              break;
            } // case 66
            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 requestCase_ = 0;
    private java.lang.Object request_;
    public RequestCase
        getRequestCase() {
      return RequestCase.forNumber(
          requestCase_);
    }

    public Builder clearRequest() {
      requestCase_ = 0;
      request_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionRequest.StartRequest, com.scalar.db.rpc.TransactionRequest.StartRequest.Builder, com.scalar.db.rpc.TransactionRequest.StartRequestOrBuilder> startRequestBuilder_;
    /**
     * .rpc.TransactionRequest.StartRequest start_request = 1;
     * @return Whether the startRequest field is set.
     */
    @java.lang.Override
    public boolean hasStartRequest() {
      return requestCase_ == 1;
    }
    /**
     * .rpc.TransactionRequest.StartRequest start_request = 1;
     * @return The startRequest.
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionRequest.StartRequest getStartRequest() {
      if (startRequestBuilder_ == null) {
        if (requestCase_ == 1) {
          return (com.scalar.db.rpc.TransactionRequest.StartRequest) request_;
        }
        return com.scalar.db.rpc.TransactionRequest.StartRequest.getDefaultInstance();
      } else {
        if (requestCase_ == 1) {
          return startRequestBuilder_.getMessage();
        }
        return com.scalar.db.rpc.TransactionRequest.StartRequest.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionRequest.StartRequest start_request = 1;
     */
    public Builder setStartRequest(com.scalar.db.rpc.TransactionRequest.StartRequest value) {
      if (startRequestBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        request_ = value;
        onChanged();
      } else {
        startRequestBuilder_.setMessage(value);
      }
      requestCase_ = 1;
      return this;
    }
    /**
     * .rpc.TransactionRequest.StartRequest start_request = 1;
     */
    public Builder setStartRequest(
        com.scalar.db.rpc.TransactionRequest.StartRequest.Builder builderForValue) {
      if (startRequestBuilder_ == null) {
        request_ = builderForValue.build();
        onChanged();
      } else {
        startRequestBuilder_.setMessage(builderForValue.build());
      }
      requestCase_ = 1;
      return this;
    }
    /**
     * .rpc.TransactionRequest.StartRequest start_request = 1;
     */
    public Builder mergeStartRequest(com.scalar.db.rpc.TransactionRequest.StartRequest value) {
      if (startRequestBuilder_ == null) {
        if (requestCase_ == 1 &&
            request_ != com.scalar.db.rpc.TransactionRequest.StartRequest.getDefaultInstance()) {
          request_ = com.scalar.db.rpc.TransactionRequest.StartRequest.newBuilder((com.scalar.db.rpc.TransactionRequest.StartRequest) request_)
              .mergeFrom(value).buildPartial();
        } else {
          request_ = value;
        }
        onChanged();
      } else {
        if (requestCase_ == 1) {
          startRequestBuilder_.mergeFrom(value);
        } else {
          startRequestBuilder_.setMessage(value);
        }
      }
      requestCase_ = 1;
      return this;
    }
    /**
     * .rpc.TransactionRequest.StartRequest start_request = 1;
     */
    public Builder clearStartRequest() {
      if (startRequestBuilder_ == null) {
        if (requestCase_ == 1) {
          requestCase_ = 0;
          request_ = null;
          onChanged();
        }
      } else {
        if (requestCase_ == 1) {
          requestCase_ = 0;
          request_ = null;
        }
        startRequestBuilder_.clear();
      }
      return this;
    }
    /**
     * .rpc.TransactionRequest.StartRequest start_request = 1;
     */
    public com.scalar.db.rpc.TransactionRequest.StartRequest.Builder getStartRequestBuilder() {
      return getStartRequestFieldBuilder().getBuilder();
    }
    /**
     * .rpc.TransactionRequest.StartRequest start_request = 1;
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionRequest.StartRequestOrBuilder getStartRequestOrBuilder() {
      if ((requestCase_ == 1) && (startRequestBuilder_ != null)) {
        return startRequestBuilder_.getMessageOrBuilder();
      } else {
        if (requestCase_ == 1) {
          return (com.scalar.db.rpc.TransactionRequest.StartRequest) request_;
        }
        return com.scalar.db.rpc.TransactionRequest.StartRequest.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionRequest.StartRequest start_request = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionRequest.StartRequest, com.scalar.db.rpc.TransactionRequest.StartRequest.Builder, com.scalar.db.rpc.TransactionRequest.StartRequestOrBuilder> 
        getStartRequestFieldBuilder() {
      if (startRequestBuilder_ == null) {
        if (!(requestCase_ == 1)) {
          request_ = com.scalar.db.rpc.TransactionRequest.StartRequest.getDefaultInstance();
        }
        startRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.scalar.db.rpc.TransactionRequest.StartRequest, com.scalar.db.rpc.TransactionRequest.StartRequest.Builder, com.scalar.db.rpc.TransactionRequest.StartRequestOrBuilder>(
                (com.scalar.db.rpc.TransactionRequest.StartRequest) request_,
                getParentForChildren(),
                isClean());
        request_ = null;
      }
      requestCase_ = 1;
      onChanged();
      return startRequestBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionRequest.GetRequest, com.scalar.db.rpc.TransactionRequest.GetRequest.Builder, com.scalar.db.rpc.TransactionRequest.GetRequestOrBuilder> getRequestBuilder_;
    /**
     * .rpc.TransactionRequest.GetRequest get_request = 2;
     * @return Whether the getRequest field is set.
     */
    @java.lang.Override
    public boolean hasGetRequest() {
      return requestCase_ == 2;
    }
    /**
     * .rpc.TransactionRequest.GetRequest get_request = 2;
     * @return The getRequest.
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionRequest.GetRequest getGetRequest() {
      if (getRequestBuilder_ == null) {
        if (requestCase_ == 2) {
          return (com.scalar.db.rpc.TransactionRequest.GetRequest) request_;
        }
        return com.scalar.db.rpc.TransactionRequest.GetRequest.getDefaultInstance();
      } else {
        if (requestCase_ == 2) {
          return getRequestBuilder_.getMessage();
        }
        return com.scalar.db.rpc.TransactionRequest.GetRequest.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionRequest.GetRequest get_request = 2;
     */
    public Builder setGetRequest(com.scalar.db.rpc.TransactionRequest.GetRequest value) {
      if (getRequestBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        request_ = value;
        onChanged();
      } else {
        getRequestBuilder_.setMessage(value);
      }
      requestCase_ = 2;
      return this;
    }
    /**
     * .rpc.TransactionRequest.GetRequest get_request = 2;
     */
    public Builder setGetRequest(
        com.scalar.db.rpc.TransactionRequest.GetRequest.Builder builderForValue) {
      if (getRequestBuilder_ == null) {
        request_ = builderForValue.build();
        onChanged();
      } else {
        getRequestBuilder_.setMessage(builderForValue.build());
      }
      requestCase_ = 2;
      return this;
    }
    /**
     * .rpc.TransactionRequest.GetRequest get_request = 2;
     */
    public Builder mergeGetRequest(com.scalar.db.rpc.TransactionRequest.GetRequest value) {
      if (getRequestBuilder_ == null) {
        if (requestCase_ == 2 &&
            request_ != com.scalar.db.rpc.TransactionRequest.GetRequest.getDefaultInstance()) {
          request_ = com.scalar.db.rpc.TransactionRequest.GetRequest.newBuilder((com.scalar.db.rpc.TransactionRequest.GetRequest) request_)
              .mergeFrom(value).buildPartial();
        } else {
          request_ = value;
        }
        onChanged();
      } else {
        if (requestCase_ == 2) {
          getRequestBuilder_.mergeFrom(value);
        } else {
          getRequestBuilder_.setMessage(value);
        }
      }
      requestCase_ = 2;
      return this;
    }
    /**
     * .rpc.TransactionRequest.GetRequest get_request = 2;
     */
    public Builder clearGetRequest() {
      if (getRequestBuilder_ == null) {
        if (requestCase_ == 2) {
          requestCase_ = 0;
          request_ = null;
          onChanged();
        }
      } else {
        if (requestCase_ == 2) {
          requestCase_ = 0;
          request_ = null;
        }
        getRequestBuilder_.clear();
      }
      return this;
    }
    /**
     * .rpc.TransactionRequest.GetRequest get_request = 2;
     */
    public com.scalar.db.rpc.TransactionRequest.GetRequest.Builder getGetRequestBuilder() {
      return getGetRequestFieldBuilder().getBuilder();
    }
    /**
     * .rpc.TransactionRequest.GetRequest get_request = 2;
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionRequest.GetRequestOrBuilder getGetRequestOrBuilder() {
      if ((requestCase_ == 2) && (getRequestBuilder_ != null)) {
        return getRequestBuilder_.getMessageOrBuilder();
      } else {
        if (requestCase_ == 2) {
          return (com.scalar.db.rpc.TransactionRequest.GetRequest) request_;
        }
        return com.scalar.db.rpc.TransactionRequest.GetRequest.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionRequest.GetRequest get_request = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionRequest.GetRequest, com.scalar.db.rpc.TransactionRequest.GetRequest.Builder, com.scalar.db.rpc.TransactionRequest.GetRequestOrBuilder> 
        getGetRequestFieldBuilder() {
      if (getRequestBuilder_ == null) {
        if (!(requestCase_ == 2)) {
          request_ = com.scalar.db.rpc.TransactionRequest.GetRequest.getDefaultInstance();
        }
        getRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.scalar.db.rpc.TransactionRequest.GetRequest, com.scalar.db.rpc.TransactionRequest.GetRequest.Builder, com.scalar.db.rpc.TransactionRequest.GetRequestOrBuilder>(
                (com.scalar.db.rpc.TransactionRequest.GetRequest) request_,
                getParentForChildren(),
                isClean());
        request_ = null;
      }
      requestCase_ = 2;
      onChanged();
      return getRequestBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionRequest.ScanRequest, com.scalar.db.rpc.TransactionRequest.ScanRequest.Builder, com.scalar.db.rpc.TransactionRequest.ScanRequestOrBuilder> scanRequestBuilder_;
    /**
     * .rpc.TransactionRequest.ScanRequest scan_request = 3;
     * @return Whether the scanRequest field is set.
     */
    @java.lang.Override
    public boolean hasScanRequest() {
      return requestCase_ == 3;
    }
    /**
     * .rpc.TransactionRequest.ScanRequest scan_request = 3;
     * @return The scanRequest.
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionRequest.ScanRequest getScanRequest() {
      if (scanRequestBuilder_ == null) {
        if (requestCase_ == 3) {
          return (com.scalar.db.rpc.TransactionRequest.ScanRequest) request_;
        }
        return com.scalar.db.rpc.TransactionRequest.ScanRequest.getDefaultInstance();
      } else {
        if (requestCase_ == 3) {
          return scanRequestBuilder_.getMessage();
        }
        return com.scalar.db.rpc.TransactionRequest.ScanRequest.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionRequest.ScanRequest scan_request = 3;
     */
    public Builder setScanRequest(com.scalar.db.rpc.TransactionRequest.ScanRequest value) {
      if (scanRequestBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        request_ = value;
        onChanged();
      } else {
        scanRequestBuilder_.setMessage(value);
      }
      requestCase_ = 3;
      return this;
    }
    /**
     * .rpc.TransactionRequest.ScanRequest scan_request = 3;
     */
    public Builder setScanRequest(
        com.scalar.db.rpc.TransactionRequest.ScanRequest.Builder builderForValue) {
      if (scanRequestBuilder_ == null) {
        request_ = builderForValue.build();
        onChanged();
      } else {
        scanRequestBuilder_.setMessage(builderForValue.build());
      }
      requestCase_ = 3;
      return this;
    }
    /**
     * .rpc.TransactionRequest.ScanRequest scan_request = 3;
     */
    public Builder mergeScanRequest(com.scalar.db.rpc.TransactionRequest.ScanRequest value) {
      if (scanRequestBuilder_ == null) {
        if (requestCase_ == 3 &&
            request_ != com.scalar.db.rpc.TransactionRequest.ScanRequest.getDefaultInstance()) {
          request_ = com.scalar.db.rpc.TransactionRequest.ScanRequest.newBuilder((com.scalar.db.rpc.TransactionRequest.ScanRequest) request_)
              .mergeFrom(value).buildPartial();
        } else {
          request_ = value;
        }
        onChanged();
      } else {
        if (requestCase_ == 3) {
          scanRequestBuilder_.mergeFrom(value);
        } else {
          scanRequestBuilder_.setMessage(value);
        }
      }
      requestCase_ = 3;
      return this;
    }
    /**
     * .rpc.TransactionRequest.ScanRequest scan_request = 3;
     */
    public Builder clearScanRequest() {
      if (scanRequestBuilder_ == null) {
        if (requestCase_ == 3) {
          requestCase_ = 0;
          request_ = null;
          onChanged();
        }
      } else {
        if (requestCase_ == 3) {
          requestCase_ = 0;
          request_ = null;
        }
        scanRequestBuilder_.clear();
      }
      return this;
    }
    /**
     * .rpc.TransactionRequest.ScanRequest scan_request = 3;
     */
    public com.scalar.db.rpc.TransactionRequest.ScanRequest.Builder getScanRequestBuilder() {
      return getScanRequestFieldBuilder().getBuilder();
    }
    /**
     * .rpc.TransactionRequest.ScanRequest scan_request = 3;
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionRequest.ScanRequestOrBuilder getScanRequestOrBuilder() {
      if ((requestCase_ == 3) && (scanRequestBuilder_ != null)) {
        return scanRequestBuilder_.getMessageOrBuilder();
      } else {
        if (requestCase_ == 3) {
          return (com.scalar.db.rpc.TransactionRequest.ScanRequest) request_;
        }
        return com.scalar.db.rpc.TransactionRequest.ScanRequest.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionRequest.ScanRequest scan_request = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionRequest.ScanRequest, com.scalar.db.rpc.TransactionRequest.ScanRequest.Builder, com.scalar.db.rpc.TransactionRequest.ScanRequestOrBuilder> 
        getScanRequestFieldBuilder() {
      if (scanRequestBuilder_ == null) {
        if (!(requestCase_ == 3)) {
          request_ = com.scalar.db.rpc.TransactionRequest.ScanRequest.getDefaultInstance();
        }
        scanRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.scalar.db.rpc.TransactionRequest.ScanRequest, com.scalar.db.rpc.TransactionRequest.ScanRequest.Builder, com.scalar.db.rpc.TransactionRequest.ScanRequestOrBuilder>(
                (com.scalar.db.rpc.TransactionRequest.ScanRequest) request_,
                getParentForChildren(),
                isClean());
        request_ = null;
      }
      requestCase_ = 3;
      onChanged();
      return scanRequestBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionRequest.MutateRequest, com.scalar.db.rpc.TransactionRequest.MutateRequest.Builder, com.scalar.db.rpc.TransactionRequest.MutateRequestOrBuilder> mutateRequestBuilder_;
    /**
     * .rpc.TransactionRequest.MutateRequest mutate_request = 4;
     * @return Whether the mutateRequest field is set.
     */
    @java.lang.Override
    public boolean hasMutateRequest() {
      return requestCase_ == 4;
    }
    /**
     * .rpc.TransactionRequest.MutateRequest mutate_request = 4;
     * @return The mutateRequest.
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionRequest.MutateRequest getMutateRequest() {
      if (mutateRequestBuilder_ == null) {
        if (requestCase_ == 4) {
          return (com.scalar.db.rpc.TransactionRequest.MutateRequest) request_;
        }
        return com.scalar.db.rpc.TransactionRequest.MutateRequest.getDefaultInstance();
      } else {
        if (requestCase_ == 4) {
          return mutateRequestBuilder_.getMessage();
        }
        return com.scalar.db.rpc.TransactionRequest.MutateRequest.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionRequest.MutateRequest mutate_request = 4;
     */
    public Builder setMutateRequest(com.scalar.db.rpc.TransactionRequest.MutateRequest value) {
      if (mutateRequestBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        request_ = value;
        onChanged();
      } else {
        mutateRequestBuilder_.setMessage(value);
      }
      requestCase_ = 4;
      return this;
    }
    /**
     * .rpc.TransactionRequest.MutateRequest mutate_request = 4;
     */
    public Builder setMutateRequest(
        com.scalar.db.rpc.TransactionRequest.MutateRequest.Builder builderForValue) {
      if (mutateRequestBuilder_ == null) {
        request_ = builderForValue.build();
        onChanged();
      } else {
        mutateRequestBuilder_.setMessage(builderForValue.build());
      }
      requestCase_ = 4;
      return this;
    }
    /**
     * .rpc.TransactionRequest.MutateRequest mutate_request = 4;
     */
    public Builder mergeMutateRequest(com.scalar.db.rpc.TransactionRequest.MutateRequest value) {
      if (mutateRequestBuilder_ == null) {
        if (requestCase_ == 4 &&
            request_ != com.scalar.db.rpc.TransactionRequest.MutateRequest.getDefaultInstance()) {
          request_ = com.scalar.db.rpc.TransactionRequest.MutateRequest.newBuilder((com.scalar.db.rpc.TransactionRequest.MutateRequest) request_)
              .mergeFrom(value).buildPartial();
        } else {
          request_ = value;
        }
        onChanged();
      } else {
        if (requestCase_ == 4) {
          mutateRequestBuilder_.mergeFrom(value);
        } else {
          mutateRequestBuilder_.setMessage(value);
        }
      }
      requestCase_ = 4;
      return this;
    }
    /**
     * .rpc.TransactionRequest.MutateRequest mutate_request = 4;
     */
    public Builder clearMutateRequest() {
      if (mutateRequestBuilder_ == null) {
        if (requestCase_ == 4) {
          requestCase_ = 0;
          request_ = null;
          onChanged();
        }
      } else {
        if (requestCase_ == 4) {
          requestCase_ = 0;
          request_ = null;
        }
        mutateRequestBuilder_.clear();
      }
      return this;
    }
    /**
     * .rpc.TransactionRequest.MutateRequest mutate_request = 4;
     */
    public com.scalar.db.rpc.TransactionRequest.MutateRequest.Builder getMutateRequestBuilder() {
      return getMutateRequestFieldBuilder().getBuilder();
    }
    /**
     * .rpc.TransactionRequest.MutateRequest mutate_request = 4;
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionRequest.MutateRequestOrBuilder getMutateRequestOrBuilder() {
      if ((requestCase_ == 4) && (mutateRequestBuilder_ != null)) {
        return mutateRequestBuilder_.getMessageOrBuilder();
      } else {
        if (requestCase_ == 4) {
          return (com.scalar.db.rpc.TransactionRequest.MutateRequest) request_;
        }
        return com.scalar.db.rpc.TransactionRequest.MutateRequest.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionRequest.MutateRequest mutate_request = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionRequest.MutateRequest, com.scalar.db.rpc.TransactionRequest.MutateRequest.Builder, com.scalar.db.rpc.TransactionRequest.MutateRequestOrBuilder> 
        getMutateRequestFieldBuilder() {
      if (mutateRequestBuilder_ == null) {
        if (!(requestCase_ == 4)) {
          request_ = com.scalar.db.rpc.TransactionRequest.MutateRequest.getDefaultInstance();
        }
        mutateRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.scalar.db.rpc.TransactionRequest.MutateRequest, com.scalar.db.rpc.TransactionRequest.MutateRequest.Builder, com.scalar.db.rpc.TransactionRequest.MutateRequestOrBuilder>(
                (com.scalar.db.rpc.TransactionRequest.MutateRequest) request_,
                getParentForChildren(),
                isClean());
        request_ = null;
      }
      requestCase_ = 4;
      onChanged();
      return mutateRequestBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionRequest.CommitRequest, com.scalar.db.rpc.TransactionRequest.CommitRequest.Builder, com.scalar.db.rpc.TransactionRequest.CommitRequestOrBuilder> commitRequestBuilder_;
    /**
     * .rpc.TransactionRequest.CommitRequest commit_request = 5;
     * @return Whether the commitRequest field is set.
     */
    @java.lang.Override
    public boolean hasCommitRequest() {
      return requestCase_ == 5;
    }
    /**
     * .rpc.TransactionRequest.CommitRequest commit_request = 5;
     * @return The commitRequest.
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionRequest.CommitRequest getCommitRequest() {
      if (commitRequestBuilder_ == null) {
        if (requestCase_ == 5) {
          return (com.scalar.db.rpc.TransactionRequest.CommitRequest) request_;
        }
        return com.scalar.db.rpc.TransactionRequest.CommitRequest.getDefaultInstance();
      } else {
        if (requestCase_ == 5) {
          return commitRequestBuilder_.getMessage();
        }
        return com.scalar.db.rpc.TransactionRequest.CommitRequest.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionRequest.CommitRequest commit_request = 5;
     */
    public Builder setCommitRequest(com.scalar.db.rpc.TransactionRequest.CommitRequest value) {
      if (commitRequestBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        request_ = value;
        onChanged();
      } else {
        commitRequestBuilder_.setMessage(value);
      }
      requestCase_ = 5;
      return this;
    }
    /**
     * .rpc.TransactionRequest.CommitRequest commit_request = 5;
     */
    public Builder setCommitRequest(
        com.scalar.db.rpc.TransactionRequest.CommitRequest.Builder builderForValue) {
      if (commitRequestBuilder_ == null) {
        request_ = builderForValue.build();
        onChanged();
      } else {
        commitRequestBuilder_.setMessage(builderForValue.build());
      }
      requestCase_ = 5;
      return this;
    }
    /**
     * .rpc.TransactionRequest.CommitRequest commit_request = 5;
     */
    public Builder mergeCommitRequest(com.scalar.db.rpc.TransactionRequest.CommitRequest value) {
      if (commitRequestBuilder_ == null) {
        if (requestCase_ == 5 &&
            request_ != com.scalar.db.rpc.TransactionRequest.CommitRequest.getDefaultInstance()) {
          request_ = com.scalar.db.rpc.TransactionRequest.CommitRequest.newBuilder((com.scalar.db.rpc.TransactionRequest.CommitRequest) request_)
              .mergeFrom(value).buildPartial();
        } else {
          request_ = value;
        }
        onChanged();
      } else {
        if (requestCase_ == 5) {
          commitRequestBuilder_.mergeFrom(value);
        } else {
          commitRequestBuilder_.setMessage(value);
        }
      }
      requestCase_ = 5;
      return this;
    }
    /**
     * .rpc.TransactionRequest.CommitRequest commit_request = 5;
     */
    public Builder clearCommitRequest() {
      if (commitRequestBuilder_ == null) {
        if (requestCase_ == 5) {
          requestCase_ = 0;
          request_ = null;
          onChanged();
        }
      } else {
        if (requestCase_ == 5) {
          requestCase_ = 0;
          request_ = null;
        }
        commitRequestBuilder_.clear();
      }
      return this;
    }
    /**
     * .rpc.TransactionRequest.CommitRequest commit_request = 5;
     */
    public com.scalar.db.rpc.TransactionRequest.CommitRequest.Builder getCommitRequestBuilder() {
      return getCommitRequestFieldBuilder().getBuilder();
    }
    /**
     * .rpc.TransactionRequest.CommitRequest commit_request = 5;
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionRequest.CommitRequestOrBuilder getCommitRequestOrBuilder() {
      if ((requestCase_ == 5) && (commitRequestBuilder_ != null)) {
        return commitRequestBuilder_.getMessageOrBuilder();
      } else {
        if (requestCase_ == 5) {
          return (com.scalar.db.rpc.TransactionRequest.CommitRequest) request_;
        }
        return com.scalar.db.rpc.TransactionRequest.CommitRequest.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionRequest.CommitRequest commit_request = 5;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionRequest.CommitRequest, com.scalar.db.rpc.TransactionRequest.CommitRequest.Builder, com.scalar.db.rpc.TransactionRequest.CommitRequestOrBuilder> 
        getCommitRequestFieldBuilder() {
      if (commitRequestBuilder_ == null) {
        if (!(requestCase_ == 5)) {
          request_ = com.scalar.db.rpc.TransactionRequest.CommitRequest.getDefaultInstance();
        }
        commitRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.scalar.db.rpc.TransactionRequest.CommitRequest, com.scalar.db.rpc.TransactionRequest.CommitRequest.Builder, com.scalar.db.rpc.TransactionRequest.CommitRequestOrBuilder>(
                (com.scalar.db.rpc.TransactionRequest.CommitRequest) request_,
                getParentForChildren(),
                isClean());
        request_ = null;
      }
      requestCase_ = 5;
      onChanged();
      return commitRequestBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionRequest.AbortRequest, com.scalar.db.rpc.TransactionRequest.AbortRequest.Builder, com.scalar.db.rpc.TransactionRequest.AbortRequestOrBuilder> abortRequestBuilder_;
    /**
     * .rpc.TransactionRequest.AbortRequest abort_request = 6;
     * @return Whether the abortRequest field is set.
     */
    @java.lang.Override
    public boolean hasAbortRequest() {
      return requestCase_ == 6;
    }
    /**
     * .rpc.TransactionRequest.AbortRequest abort_request = 6;
     * @return The abortRequest.
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionRequest.AbortRequest getAbortRequest() {
      if (abortRequestBuilder_ == null) {
        if (requestCase_ == 6) {
          return (com.scalar.db.rpc.TransactionRequest.AbortRequest) request_;
        }
        return com.scalar.db.rpc.TransactionRequest.AbortRequest.getDefaultInstance();
      } else {
        if (requestCase_ == 6) {
          return abortRequestBuilder_.getMessage();
        }
        return com.scalar.db.rpc.TransactionRequest.AbortRequest.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionRequest.AbortRequest abort_request = 6;
     */
    public Builder setAbortRequest(com.scalar.db.rpc.TransactionRequest.AbortRequest value) {
      if (abortRequestBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        request_ = value;
        onChanged();
      } else {
        abortRequestBuilder_.setMessage(value);
      }
      requestCase_ = 6;
      return this;
    }
    /**
     * .rpc.TransactionRequest.AbortRequest abort_request = 6;
     */
    public Builder setAbortRequest(
        com.scalar.db.rpc.TransactionRequest.AbortRequest.Builder builderForValue) {
      if (abortRequestBuilder_ == null) {
        request_ = builderForValue.build();
        onChanged();
      } else {
        abortRequestBuilder_.setMessage(builderForValue.build());
      }
      requestCase_ = 6;
      return this;
    }
    /**
     * .rpc.TransactionRequest.AbortRequest abort_request = 6;
     */
    public Builder mergeAbortRequest(com.scalar.db.rpc.TransactionRequest.AbortRequest value) {
      if (abortRequestBuilder_ == null) {
        if (requestCase_ == 6 &&
            request_ != com.scalar.db.rpc.TransactionRequest.AbortRequest.getDefaultInstance()) {
          request_ = com.scalar.db.rpc.TransactionRequest.AbortRequest.newBuilder((com.scalar.db.rpc.TransactionRequest.AbortRequest) request_)
              .mergeFrom(value).buildPartial();
        } else {
          request_ = value;
        }
        onChanged();
      } else {
        if (requestCase_ == 6) {
          abortRequestBuilder_.mergeFrom(value);
        } else {
          abortRequestBuilder_.setMessage(value);
        }
      }
      requestCase_ = 6;
      return this;
    }
    /**
     * .rpc.TransactionRequest.AbortRequest abort_request = 6;
     */
    public Builder clearAbortRequest() {
      if (abortRequestBuilder_ == null) {
        if (requestCase_ == 6) {
          requestCase_ = 0;
          request_ = null;
          onChanged();
        }
      } else {
        if (requestCase_ == 6) {
          requestCase_ = 0;
          request_ = null;
        }
        abortRequestBuilder_.clear();
      }
      return this;
    }
    /**
     * .rpc.TransactionRequest.AbortRequest abort_request = 6;
     */
    public com.scalar.db.rpc.TransactionRequest.AbortRequest.Builder getAbortRequestBuilder() {
      return getAbortRequestFieldBuilder().getBuilder();
    }
    /**
     * .rpc.TransactionRequest.AbortRequest abort_request = 6;
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionRequest.AbortRequestOrBuilder getAbortRequestOrBuilder() {
      if ((requestCase_ == 6) && (abortRequestBuilder_ != null)) {
        return abortRequestBuilder_.getMessageOrBuilder();
      } else {
        if (requestCase_ == 6) {
          return (com.scalar.db.rpc.TransactionRequest.AbortRequest) request_;
        }
        return com.scalar.db.rpc.TransactionRequest.AbortRequest.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionRequest.AbortRequest abort_request = 6;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionRequest.AbortRequest, com.scalar.db.rpc.TransactionRequest.AbortRequest.Builder, com.scalar.db.rpc.TransactionRequest.AbortRequestOrBuilder> 
        getAbortRequestFieldBuilder() {
      if (abortRequestBuilder_ == null) {
        if (!(requestCase_ == 6)) {
          request_ = com.scalar.db.rpc.TransactionRequest.AbortRequest.getDefaultInstance();
        }
        abortRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.scalar.db.rpc.TransactionRequest.AbortRequest, com.scalar.db.rpc.TransactionRequest.AbortRequest.Builder, com.scalar.db.rpc.TransactionRequest.AbortRequestOrBuilder>(
                (com.scalar.db.rpc.TransactionRequest.AbortRequest) request_,
                getParentForChildren(),
                isClean());
        request_ = null;
      }
      requestCase_ = 6;
      onChanged();
      return abortRequestBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionRequest.BeginRequest, com.scalar.db.rpc.TransactionRequest.BeginRequest.Builder, com.scalar.db.rpc.TransactionRequest.BeginRequestOrBuilder> beginRequestBuilder_;
    /**
     * .rpc.TransactionRequest.BeginRequest begin_request = 7;
     * @return Whether the beginRequest field is set.
     */
    @java.lang.Override
    public boolean hasBeginRequest() {
      return requestCase_ == 7;
    }
    /**
     * .rpc.TransactionRequest.BeginRequest begin_request = 7;
     * @return The beginRequest.
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionRequest.BeginRequest getBeginRequest() {
      if (beginRequestBuilder_ == null) {
        if (requestCase_ == 7) {
          return (com.scalar.db.rpc.TransactionRequest.BeginRequest) request_;
        }
        return com.scalar.db.rpc.TransactionRequest.BeginRequest.getDefaultInstance();
      } else {
        if (requestCase_ == 7) {
          return beginRequestBuilder_.getMessage();
        }
        return com.scalar.db.rpc.TransactionRequest.BeginRequest.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionRequest.BeginRequest begin_request = 7;
     */
    public Builder setBeginRequest(com.scalar.db.rpc.TransactionRequest.BeginRequest value) {
      if (beginRequestBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        request_ = value;
        onChanged();
      } else {
        beginRequestBuilder_.setMessage(value);
      }
      requestCase_ = 7;
      return this;
    }
    /**
     * .rpc.TransactionRequest.BeginRequest begin_request = 7;
     */
    public Builder setBeginRequest(
        com.scalar.db.rpc.TransactionRequest.BeginRequest.Builder builderForValue) {
      if (beginRequestBuilder_ == null) {
        request_ = builderForValue.build();
        onChanged();
      } else {
        beginRequestBuilder_.setMessage(builderForValue.build());
      }
      requestCase_ = 7;
      return this;
    }
    /**
     * .rpc.TransactionRequest.BeginRequest begin_request = 7;
     */
    public Builder mergeBeginRequest(com.scalar.db.rpc.TransactionRequest.BeginRequest value) {
      if (beginRequestBuilder_ == null) {
        if (requestCase_ == 7 &&
            request_ != com.scalar.db.rpc.TransactionRequest.BeginRequest.getDefaultInstance()) {
          request_ = com.scalar.db.rpc.TransactionRequest.BeginRequest.newBuilder((com.scalar.db.rpc.TransactionRequest.BeginRequest) request_)
              .mergeFrom(value).buildPartial();
        } else {
          request_ = value;
        }
        onChanged();
      } else {
        if (requestCase_ == 7) {
          beginRequestBuilder_.mergeFrom(value);
        } else {
          beginRequestBuilder_.setMessage(value);
        }
      }
      requestCase_ = 7;
      return this;
    }
    /**
     * .rpc.TransactionRequest.BeginRequest begin_request = 7;
     */
    public Builder clearBeginRequest() {
      if (beginRequestBuilder_ == null) {
        if (requestCase_ == 7) {
          requestCase_ = 0;
          request_ = null;
          onChanged();
        }
      } else {
        if (requestCase_ == 7) {
          requestCase_ = 0;
          request_ = null;
        }
        beginRequestBuilder_.clear();
      }
      return this;
    }
    /**
     * .rpc.TransactionRequest.BeginRequest begin_request = 7;
     */
    public com.scalar.db.rpc.TransactionRequest.BeginRequest.Builder getBeginRequestBuilder() {
      return getBeginRequestFieldBuilder().getBuilder();
    }
    /**
     * .rpc.TransactionRequest.BeginRequest begin_request = 7;
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionRequest.BeginRequestOrBuilder getBeginRequestOrBuilder() {
      if ((requestCase_ == 7) && (beginRequestBuilder_ != null)) {
        return beginRequestBuilder_.getMessageOrBuilder();
      } else {
        if (requestCase_ == 7) {
          return (com.scalar.db.rpc.TransactionRequest.BeginRequest) request_;
        }
        return com.scalar.db.rpc.TransactionRequest.BeginRequest.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionRequest.BeginRequest begin_request = 7;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionRequest.BeginRequest, com.scalar.db.rpc.TransactionRequest.BeginRequest.Builder, com.scalar.db.rpc.TransactionRequest.BeginRequestOrBuilder> 
        getBeginRequestFieldBuilder() {
      if (beginRequestBuilder_ == null) {
        if (!(requestCase_ == 7)) {
          request_ = com.scalar.db.rpc.TransactionRequest.BeginRequest.getDefaultInstance();
        }
        beginRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.scalar.db.rpc.TransactionRequest.BeginRequest, com.scalar.db.rpc.TransactionRequest.BeginRequest.Builder, com.scalar.db.rpc.TransactionRequest.BeginRequestOrBuilder>(
                (com.scalar.db.rpc.TransactionRequest.BeginRequest) request_,
                getParentForChildren(),
                isClean());
        request_ = null;
      }
      requestCase_ = 7;
      onChanged();
      return beginRequestBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionRequest.RollbackRequest, com.scalar.db.rpc.TransactionRequest.RollbackRequest.Builder, com.scalar.db.rpc.TransactionRequest.RollbackRequestOrBuilder> rollbackRequestBuilder_;
    /**
     * .rpc.TransactionRequest.RollbackRequest rollback_request = 8;
     * @return Whether the rollbackRequest field is set.
     */
    @java.lang.Override
    public boolean hasRollbackRequest() {
      return requestCase_ == 8;
    }
    /**
     * .rpc.TransactionRequest.RollbackRequest rollback_request = 8;
     * @return The rollbackRequest.
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionRequest.RollbackRequest getRollbackRequest() {
      if (rollbackRequestBuilder_ == null) {
        if (requestCase_ == 8) {
          return (com.scalar.db.rpc.TransactionRequest.RollbackRequest) request_;
        }
        return com.scalar.db.rpc.TransactionRequest.RollbackRequest.getDefaultInstance();
      } else {
        if (requestCase_ == 8) {
          return rollbackRequestBuilder_.getMessage();
        }
        return com.scalar.db.rpc.TransactionRequest.RollbackRequest.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionRequest.RollbackRequest rollback_request = 8;
     */
    public Builder setRollbackRequest(com.scalar.db.rpc.TransactionRequest.RollbackRequest value) {
      if (rollbackRequestBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        request_ = value;
        onChanged();
      } else {
        rollbackRequestBuilder_.setMessage(value);
      }
      requestCase_ = 8;
      return this;
    }
    /**
     * .rpc.TransactionRequest.RollbackRequest rollback_request = 8;
     */
    public Builder setRollbackRequest(
        com.scalar.db.rpc.TransactionRequest.RollbackRequest.Builder builderForValue) {
      if (rollbackRequestBuilder_ == null) {
        request_ = builderForValue.build();
        onChanged();
      } else {
        rollbackRequestBuilder_.setMessage(builderForValue.build());
      }
      requestCase_ = 8;
      return this;
    }
    /**
     * .rpc.TransactionRequest.RollbackRequest rollback_request = 8;
     */
    public Builder mergeRollbackRequest(com.scalar.db.rpc.TransactionRequest.RollbackRequest value) {
      if (rollbackRequestBuilder_ == null) {
        if (requestCase_ == 8 &&
            request_ != com.scalar.db.rpc.TransactionRequest.RollbackRequest.getDefaultInstance()) {
          request_ = com.scalar.db.rpc.TransactionRequest.RollbackRequest.newBuilder((com.scalar.db.rpc.TransactionRequest.RollbackRequest) request_)
              .mergeFrom(value).buildPartial();
        } else {
          request_ = value;
        }
        onChanged();
      } else {
        if (requestCase_ == 8) {
          rollbackRequestBuilder_.mergeFrom(value);
        } else {
          rollbackRequestBuilder_.setMessage(value);
        }
      }
      requestCase_ = 8;
      return this;
    }
    /**
     * .rpc.TransactionRequest.RollbackRequest rollback_request = 8;
     */
    public Builder clearRollbackRequest() {
      if (rollbackRequestBuilder_ == null) {
        if (requestCase_ == 8) {
          requestCase_ = 0;
          request_ = null;
          onChanged();
        }
      } else {
        if (requestCase_ == 8) {
          requestCase_ = 0;
          request_ = null;
        }
        rollbackRequestBuilder_.clear();
      }
      return this;
    }
    /**
     * .rpc.TransactionRequest.RollbackRequest rollback_request = 8;
     */
    public com.scalar.db.rpc.TransactionRequest.RollbackRequest.Builder getRollbackRequestBuilder() {
      return getRollbackRequestFieldBuilder().getBuilder();
    }
    /**
     * .rpc.TransactionRequest.RollbackRequest rollback_request = 8;
     */
    @java.lang.Override
    public com.scalar.db.rpc.TransactionRequest.RollbackRequestOrBuilder getRollbackRequestOrBuilder() {
      if ((requestCase_ == 8) && (rollbackRequestBuilder_ != null)) {
        return rollbackRequestBuilder_.getMessageOrBuilder();
      } else {
        if (requestCase_ == 8) {
          return (com.scalar.db.rpc.TransactionRequest.RollbackRequest) request_;
        }
        return com.scalar.db.rpc.TransactionRequest.RollbackRequest.getDefaultInstance();
      }
    }
    /**
     * .rpc.TransactionRequest.RollbackRequest rollback_request = 8;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.TransactionRequest.RollbackRequest, com.scalar.db.rpc.TransactionRequest.RollbackRequest.Builder, com.scalar.db.rpc.TransactionRequest.RollbackRequestOrBuilder> 
        getRollbackRequestFieldBuilder() {
      if (rollbackRequestBuilder_ == null) {
        if (!(requestCase_ == 8)) {
          request_ = com.scalar.db.rpc.TransactionRequest.RollbackRequest.getDefaultInstance();
        }
        rollbackRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.scalar.db.rpc.TransactionRequest.RollbackRequest, com.scalar.db.rpc.TransactionRequest.RollbackRequest.Builder, com.scalar.db.rpc.TransactionRequest.RollbackRequestOrBuilder>(
                (com.scalar.db.rpc.TransactionRequest.RollbackRequest) request_,
                getParentForChildren(),
                isClean());
        request_ = null;
      }
      requestCase_ = 8;
      onChanged();
      return rollbackRequestBuilder_;
    }
    @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.TransactionRequest)
  }

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

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

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public TransactionRequest 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.TransactionRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy