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

org.apache.omid.proto.TSOProto Maven / Gradle / Ivy

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

package org.apache.omid.proto;

public final class TSOProto {
  private TSOProto() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface RequestOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // optional .TimestampRequest timestampRequest = 1;
    /**
     * optional .TimestampRequest timestampRequest = 1;
     */
    boolean hasTimestampRequest();
    /**
     * optional .TimestampRequest timestampRequest = 1;
     */
    org.apache.omid.proto.TSOProto.TimestampRequest getTimestampRequest();
    /**
     * optional .TimestampRequest timestampRequest = 1;
     */
    org.apache.omid.proto.TSOProto.TimestampRequestOrBuilder getTimestampRequestOrBuilder();

    // optional .CommitRequest commitRequest = 2;
    /**
     * optional .CommitRequest commitRequest = 2;
     */
    boolean hasCommitRequest();
    /**
     * optional .CommitRequest commitRequest = 2;
     */
    org.apache.omid.proto.TSOProto.CommitRequest getCommitRequest();
    /**
     * optional .CommitRequest commitRequest = 2;
     */
    org.apache.omid.proto.TSOProto.CommitRequestOrBuilder getCommitRequestOrBuilder();

    // optional .HandshakeRequest handshakeRequest = 3;
    /**
     * optional .HandshakeRequest handshakeRequest = 3;
     */
    boolean hasHandshakeRequest();
    /**
     * optional .HandshakeRequest handshakeRequest = 3;
     */
    org.apache.omid.proto.TSOProto.HandshakeRequest getHandshakeRequest();
    /**
     * optional .HandshakeRequest handshakeRequest = 3;
     */
    org.apache.omid.proto.TSOProto.HandshakeRequestOrBuilder getHandshakeRequestOrBuilder();

    // optional .FenceRequest fenceRequest = 4;
    /**
     * optional .FenceRequest fenceRequest = 4;
     */
    boolean hasFenceRequest();
    /**
     * optional .FenceRequest fenceRequest = 4;
     */
    org.apache.omid.proto.TSOProto.FenceRequest getFenceRequest();
    /**
     * optional .FenceRequest fenceRequest = 4;
     */
    org.apache.omid.proto.TSOProto.FenceRequestOrBuilder getFenceRequestOrBuilder();
  }
  /**
   * Protobuf type {@code Request}
   */
  public static final class Request extends
      com.google.protobuf.GeneratedMessage
      implements RequestOrBuilder {
    // Use Request.newBuilder() to construct.
    private Request(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private Request(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final Request defaultInstance;
    public static Request getDefaultInstance() {
      return defaultInstance;
    }

    public Request getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private Request(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              org.apache.omid.proto.TSOProto.TimestampRequest.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) == 0x00000001)) {
                subBuilder = timestampRequest_.toBuilder();
              }
              timestampRequest_ = input.readMessage(org.apache.omid.proto.TSOProto.TimestampRequest.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(timestampRequest_);
                timestampRequest_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 18: {
              org.apache.omid.proto.TSOProto.CommitRequest.Builder subBuilder = null;
              if (((bitField0_ & 0x00000002) == 0x00000002)) {
                subBuilder = commitRequest_.toBuilder();
              }
              commitRequest_ = input.readMessage(org.apache.omid.proto.TSOProto.CommitRequest.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(commitRequest_);
                commitRequest_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000002;
              break;
            }
            case 26: {
              org.apache.omid.proto.TSOProto.HandshakeRequest.Builder subBuilder = null;
              if (((bitField0_ & 0x00000004) == 0x00000004)) {
                subBuilder = handshakeRequest_.toBuilder();
              }
              handshakeRequest_ = input.readMessage(org.apache.omid.proto.TSOProto.HandshakeRequest.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(handshakeRequest_);
                handshakeRequest_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000004;
              break;
            }
            case 34: {
              org.apache.omid.proto.TSOProto.FenceRequest.Builder subBuilder = null;
              if (((bitField0_ & 0x00000008) == 0x00000008)) {
                subBuilder = fenceRequest_.toBuilder();
              }
              fenceRequest_ = input.readMessage(org.apache.omid.proto.TSOProto.FenceRequest.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(fenceRequest_);
                fenceRequest_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000008;
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.omid.proto.TSOProto.internal_static_Request_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.omid.proto.TSOProto.internal_static_Request_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.omid.proto.TSOProto.Request.class, org.apache.omid.proto.TSOProto.Request.Builder.class);
    }

    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public Request parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Request(input, extensionRegistry);
      }
    };

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

    private int bitField0_;
    // optional .TimestampRequest timestampRequest = 1;
    public static final int TIMESTAMPREQUEST_FIELD_NUMBER = 1;
    private org.apache.omid.proto.TSOProto.TimestampRequest timestampRequest_;
    /**
     * optional .TimestampRequest timestampRequest = 1;
     */
    public boolean hasTimestampRequest() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional .TimestampRequest timestampRequest = 1;
     */
    public org.apache.omid.proto.TSOProto.TimestampRequest getTimestampRequest() {
      return timestampRequest_;
    }
    /**
     * optional .TimestampRequest timestampRequest = 1;
     */
    public org.apache.omid.proto.TSOProto.TimestampRequestOrBuilder getTimestampRequestOrBuilder() {
      return timestampRequest_;
    }

    // optional .CommitRequest commitRequest = 2;
    public static final int COMMITREQUEST_FIELD_NUMBER = 2;
    private org.apache.omid.proto.TSOProto.CommitRequest commitRequest_;
    /**
     * optional .CommitRequest commitRequest = 2;
     */
    public boolean hasCommitRequest() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional .CommitRequest commitRequest = 2;
     */
    public org.apache.omid.proto.TSOProto.CommitRequest getCommitRequest() {
      return commitRequest_;
    }
    /**
     * optional .CommitRequest commitRequest = 2;
     */
    public org.apache.omid.proto.TSOProto.CommitRequestOrBuilder getCommitRequestOrBuilder() {
      return commitRequest_;
    }

    // optional .HandshakeRequest handshakeRequest = 3;
    public static final int HANDSHAKEREQUEST_FIELD_NUMBER = 3;
    private org.apache.omid.proto.TSOProto.HandshakeRequest handshakeRequest_;
    /**
     * optional .HandshakeRequest handshakeRequest = 3;
     */
    public boolean hasHandshakeRequest() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * optional .HandshakeRequest handshakeRequest = 3;
     */
    public org.apache.omid.proto.TSOProto.HandshakeRequest getHandshakeRequest() {
      return handshakeRequest_;
    }
    /**
     * optional .HandshakeRequest handshakeRequest = 3;
     */
    public org.apache.omid.proto.TSOProto.HandshakeRequestOrBuilder getHandshakeRequestOrBuilder() {
      return handshakeRequest_;
    }

    // optional .FenceRequest fenceRequest = 4;
    public static final int FENCEREQUEST_FIELD_NUMBER = 4;
    private org.apache.omid.proto.TSOProto.FenceRequest fenceRequest_;
    /**
     * optional .FenceRequest fenceRequest = 4;
     */
    public boolean hasFenceRequest() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    /**
     * optional .FenceRequest fenceRequest = 4;
     */
    public org.apache.omid.proto.TSOProto.FenceRequest getFenceRequest() {
      return fenceRequest_;
    }
    /**
     * optional .FenceRequest fenceRequest = 4;
     */
    public org.apache.omid.proto.TSOProto.FenceRequestOrBuilder getFenceRequestOrBuilder() {
      return fenceRequest_;
    }

    private void initFields() {
      timestampRequest_ = org.apache.omid.proto.TSOProto.TimestampRequest.getDefaultInstance();
      commitRequest_ = org.apache.omid.proto.TSOProto.CommitRequest.getDefaultInstance();
      handshakeRequest_ = org.apache.omid.proto.TSOProto.HandshakeRequest.getDefaultInstance();
      fenceRequest_ = org.apache.omid.proto.TSOProto.FenceRequest.getDefaultInstance();
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeMessage(1, timestampRequest_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeMessage(2, commitRequest_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeMessage(3, handshakeRequest_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeMessage(4, fenceRequest_);
      }
      getUnknownFields().writeTo(output);
    }

    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, timestampRequest_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, commitRequest_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, handshakeRequest_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, fenceRequest_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static org.apache.omid.proto.TSOProto.Request parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.omid.proto.TSOProto.Request parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.Request parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.omid.proto.TSOProto.Request parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.Request parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.Request parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.Request parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.Request parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.Request parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.Request parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.apache.omid.proto.TSOProto.Request prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code Request}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements org.apache.omid.proto.TSOProto.RequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.omid.proto.TSOProto.internal_static_Request_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.omid.proto.TSOProto.internal_static_Request_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.omid.proto.TSOProto.Request.class, org.apache.omid.proto.TSOProto.Request.Builder.class);
      }

      // Construct using org.apache.omid.proto.TSOProto.Request.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getTimestampRequestFieldBuilder();
          getCommitRequestFieldBuilder();
          getHandshakeRequestFieldBuilder();
          getFenceRequestFieldBuilder();
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        if (timestampRequestBuilder_ == null) {
          timestampRequest_ = org.apache.omid.proto.TSOProto.TimestampRequest.getDefaultInstance();
        } else {
          timestampRequestBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        if (commitRequestBuilder_ == null) {
          commitRequest_ = org.apache.omid.proto.TSOProto.CommitRequest.getDefaultInstance();
        } else {
          commitRequestBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        if (handshakeRequestBuilder_ == null) {
          handshakeRequest_ = org.apache.omid.proto.TSOProto.HandshakeRequest.getDefaultInstance();
        } else {
          handshakeRequestBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        if (fenceRequestBuilder_ == null) {
          fenceRequest_ = org.apache.omid.proto.TSOProto.FenceRequest.getDefaultInstance();
        } else {
          fenceRequestBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.omid.proto.TSOProto.internal_static_Request_descriptor;
      }

      public org.apache.omid.proto.TSOProto.Request getDefaultInstanceForType() {
        return org.apache.omid.proto.TSOProto.Request.getDefaultInstance();
      }

      public org.apache.omid.proto.TSOProto.Request build() {
        org.apache.omid.proto.TSOProto.Request result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.apache.omid.proto.TSOProto.Request buildPartial() {
        org.apache.omid.proto.TSOProto.Request result = new org.apache.omid.proto.TSOProto.Request(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        if (timestampRequestBuilder_ == null) {
          result.timestampRequest_ = timestampRequest_;
        } else {
          result.timestampRequest_ = timestampRequestBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        if (commitRequestBuilder_ == null) {
          result.commitRequest_ = commitRequest_;
        } else {
          result.commitRequest_ = commitRequestBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        if (handshakeRequestBuilder_ == null) {
          result.handshakeRequest_ = handshakeRequest_;
        } else {
          result.handshakeRequest_ = handshakeRequestBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000008;
        }
        if (fenceRequestBuilder_ == null) {
          result.fenceRequest_ = fenceRequest_;
        } else {
          result.fenceRequest_ = fenceRequestBuilder_.build();
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.apache.omid.proto.TSOProto.Request) {
          return mergeFrom((org.apache.omid.proto.TSOProto.Request)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.omid.proto.TSOProto.Request other) {
        if (other == org.apache.omid.proto.TSOProto.Request.getDefaultInstance()) return this;
        if (other.hasTimestampRequest()) {
          mergeTimestampRequest(other.getTimestampRequest());
        }
        if (other.hasCommitRequest()) {
          mergeCommitRequest(other.getCommitRequest());
        }
        if (other.hasHandshakeRequest()) {
          mergeHandshakeRequest(other.getHandshakeRequest());
        }
        if (other.hasFenceRequest()) {
          mergeFenceRequest(other.getFenceRequest());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.apache.omid.proto.TSOProto.Request parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.omid.proto.TSOProto.Request) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional .TimestampRequest timestampRequest = 1;
      private org.apache.omid.proto.TSOProto.TimestampRequest timestampRequest_ = org.apache.omid.proto.TSOProto.TimestampRequest.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.omid.proto.TSOProto.TimestampRequest, org.apache.omid.proto.TSOProto.TimestampRequest.Builder, org.apache.omid.proto.TSOProto.TimestampRequestOrBuilder> timestampRequestBuilder_;
      /**
       * optional .TimestampRequest timestampRequest = 1;
       */
      public boolean hasTimestampRequest() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional .TimestampRequest timestampRequest = 1;
       */
      public org.apache.omid.proto.TSOProto.TimestampRequest getTimestampRequest() {
        if (timestampRequestBuilder_ == null) {
          return timestampRequest_;
        } else {
          return timestampRequestBuilder_.getMessage();
        }
      }
      /**
       * optional .TimestampRequest timestampRequest = 1;
       */
      public Builder setTimestampRequest(org.apache.omid.proto.TSOProto.TimestampRequest value) {
        if (timestampRequestBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          timestampRequest_ = value;
          onChanged();
        } else {
          timestampRequestBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .TimestampRequest timestampRequest = 1;
       */
      public Builder setTimestampRequest(
          org.apache.omid.proto.TSOProto.TimestampRequest.Builder builderForValue) {
        if (timestampRequestBuilder_ == null) {
          timestampRequest_ = builderForValue.build();
          onChanged();
        } else {
          timestampRequestBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .TimestampRequest timestampRequest = 1;
       */
      public Builder mergeTimestampRequest(org.apache.omid.proto.TSOProto.TimestampRequest value) {
        if (timestampRequestBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001) &&
              timestampRequest_ != org.apache.omid.proto.TSOProto.TimestampRequest.getDefaultInstance()) {
            timestampRequest_ =
              org.apache.omid.proto.TSOProto.TimestampRequest.newBuilder(timestampRequest_).mergeFrom(value).buildPartial();
          } else {
            timestampRequest_ = value;
          }
          onChanged();
        } else {
          timestampRequestBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .TimestampRequest timestampRequest = 1;
       */
      public Builder clearTimestampRequest() {
        if (timestampRequestBuilder_ == null) {
          timestampRequest_ = org.apache.omid.proto.TSOProto.TimestampRequest.getDefaultInstance();
          onChanged();
        } else {
          timestampRequestBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * optional .TimestampRequest timestampRequest = 1;
       */
      public org.apache.omid.proto.TSOProto.TimestampRequest.Builder getTimestampRequestBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getTimestampRequestFieldBuilder().getBuilder();
      }
      /**
       * optional .TimestampRequest timestampRequest = 1;
       */
      public org.apache.omid.proto.TSOProto.TimestampRequestOrBuilder getTimestampRequestOrBuilder() {
        if (timestampRequestBuilder_ != null) {
          return timestampRequestBuilder_.getMessageOrBuilder();
        } else {
          return timestampRequest_;
        }
      }
      /**
       * optional .TimestampRequest timestampRequest = 1;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.omid.proto.TSOProto.TimestampRequest, org.apache.omid.proto.TSOProto.TimestampRequest.Builder, org.apache.omid.proto.TSOProto.TimestampRequestOrBuilder> 
          getTimestampRequestFieldBuilder() {
        if (timestampRequestBuilder_ == null) {
          timestampRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.omid.proto.TSOProto.TimestampRequest, org.apache.omid.proto.TSOProto.TimestampRequest.Builder, org.apache.omid.proto.TSOProto.TimestampRequestOrBuilder>(
                  timestampRequest_,
                  getParentForChildren(),
                  isClean());
          timestampRequest_ = null;
        }
        return timestampRequestBuilder_;
      }

      // optional .CommitRequest commitRequest = 2;
      private org.apache.omid.proto.TSOProto.CommitRequest commitRequest_ = org.apache.omid.proto.TSOProto.CommitRequest.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.omid.proto.TSOProto.CommitRequest, org.apache.omid.proto.TSOProto.CommitRequest.Builder, org.apache.omid.proto.TSOProto.CommitRequestOrBuilder> commitRequestBuilder_;
      /**
       * optional .CommitRequest commitRequest = 2;
       */
      public boolean hasCommitRequest() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional .CommitRequest commitRequest = 2;
       */
      public org.apache.omid.proto.TSOProto.CommitRequest getCommitRequest() {
        if (commitRequestBuilder_ == null) {
          return commitRequest_;
        } else {
          return commitRequestBuilder_.getMessage();
        }
      }
      /**
       * optional .CommitRequest commitRequest = 2;
       */
      public Builder setCommitRequest(org.apache.omid.proto.TSOProto.CommitRequest value) {
        if (commitRequestBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          commitRequest_ = value;
          onChanged();
        } else {
          commitRequestBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * optional .CommitRequest commitRequest = 2;
       */
      public Builder setCommitRequest(
          org.apache.omid.proto.TSOProto.CommitRequest.Builder builderForValue) {
        if (commitRequestBuilder_ == null) {
          commitRequest_ = builderForValue.build();
          onChanged();
        } else {
          commitRequestBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * optional .CommitRequest commitRequest = 2;
       */
      public Builder mergeCommitRequest(org.apache.omid.proto.TSOProto.CommitRequest value) {
        if (commitRequestBuilder_ == null) {
          if (((bitField0_ & 0x00000002) == 0x00000002) &&
              commitRequest_ != org.apache.omid.proto.TSOProto.CommitRequest.getDefaultInstance()) {
            commitRequest_ =
              org.apache.omid.proto.TSOProto.CommitRequest.newBuilder(commitRequest_).mergeFrom(value).buildPartial();
          } else {
            commitRequest_ = value;
          }
          onChanged();
        } else {
          commitRequestBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * optional .CommitRequest commitRequest = 2;
       */
      public Builder clearCommitRequest() {
        if (commitRequestBuilder_ == null) {
          commitRequest_ = org.apache.omid.proto.TSOProto.CommitRequest.getDefaultInstance();
          onChanged();
        } else {
          commitRequestBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }
      /**
       * optional .CommitRequest commitRequest = 2;
       */
      public org.apache.omid.proto.TSOProto.CommitRequest.Builder getCommitRequestBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getCommitRequestFieldBuilder().getBuilder();
      }
      /**
       * optional .CommitRequest commitRequest = 2;
       */
      public org.apache.omid.proto.TSOProto.CommitRequestOrBuilder getCommitRequestOrBuilder() {
        if (commitRequestBuilder_ != null) {
          return commitRequestBuilder_.getMessageOrBuilder();
        } else {
          return commitRequest_;
        }
      }
      /**
       * optional .CommitRequest commitRequest = 2;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.omid.proto.TSOProto.CommitRequest, org.apache.omid.proto.TSOProto.CommitRequest.Builder, org.apache.omid.proto.TSOProto.CommitRequestOrBuilder> 
          getCommitRequestFieldBuilder() {
        if (commitRequestBuilder_ == null) {
          commitRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.omid.proto.TSOProto.CommitRequest, org.apache.omid.proto.TSOProto.CommitRequest.Builder, org.apache.omid.proto.TSOProto.CommitRequestOrBuilder>(
                  commitRequest_,
                  getParentForChildren(),
                  isClean());
          commitRequest_ = null;
        }
        return commitRequestBuilder_;
      }

      // optional .HandshakeRequest handshakeRequest = 3;
      private org.apache.omid.proto.TSOProto.HandshakeRequest handshakeRequest_ = org.apache.omid.proto.TSOProto.HandshakeRequest.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.omid.proto.TSOProto.HandshakeRequest, org.apache.omid.proto.TSOProto.HandshakeRequest.Builder, org.apache.omid.proto.TSOProto.HandshakeRequestOrBuilder> handshakeRequestBuilder_;
      /**
       * optional .HandshakeRequest handshakeRequest = 3;
       */
      public boolean hasHandshakeRequest() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * optional .HandshakeRequest handshakeRequest = 3;
       */
      public org.apache.omid.proto.TSOProto.HandshakeRequest getHandshakeRequest() {
        if (handshakeRequestBuilder_ == null) {
          return handshakeRequest_;
        } else {
          return handshakeRequestBuilder_.getMessage();
        }
      }
      /**
       * optional .HandshakeRequest handshakeRequest = 3;
       */
      public Builder setHandshakeRequest(org.apache.omid.proto.TSOProto.HandshakeRequest value) {
        if (handshakeRequestBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          handshakeRequest_ = value;
          onChanged();
        } else {
          handshakeRequestBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       * optional .HandshakeRequest handshakeRequest = 3;
       */
      public Builder setHandshakeRequest(
          org.apache.omid.proto.TSOProto.HandshakeRequest.Builder builderForValue) {
        if (handshakeRequestBuilder_ == null) {
          handshakeRequest_ = builderForValue.build();
          onChanged();
        } else {
          handshakeRequestBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       * optional .HandshakeRequest handshakeRequest = 3;
       */
      public Builder mergeHandshakeRequest(org.apache.omid.proto.TSOProto.HandshakeRequest value) {
        if (handshakeRequestBuilder_ == null) {
          if (((bitField0_ & 0x00000004) == 0x00000004) &&
              handshakeRequest_ != org.apache.omid.proto.TSOProto.HandshakeRequest.getDefaultInstance()) {
            handshakeRequest_ =
              org.apache.omid.proto.TSOProto.HandshakeRequest.newBuilder(handshakeRequest_).mergeFrom(value).buildPartial();
          } else {
            handshakeRequest_ = value;
          }
          onChanged();
        } else {
          handshakeRequestBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       * optional .HandshakeRequest handshakeRequest = 3;
       */
      public Builder clearHandshakeRequest() {
        if (handshakeRequestBuilder_ == null) {
          handshakeRequest_ = org.apache.omid.proto.TSOProto.HandshakeRequest.getDefaultInstance();
          onChanged();
        } else {
          handshakeRequestBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }
      /**
       * optional .HandshakeRequest handshakeRequest = 3;
       */
      public org.apache.omid.proto.TSOProto.HandshakeRequest.Builder getHandshakeRequestBuilder() {
        bitField0_ |= 0x00000004;
        onChanged();
        return getHandshakeRequestFieldBuilder().getBuilder();
      }
      /**
       * optional .HandshakeRequest handshakeRequest = 3;
       */
      public org.apache.omid.proto.TSOProto.HandshakeRequestOrBuilder getHandshakeRequestOrBuilder() {
        if (handshakeRequestBuilder_ != null) {
          return handshakeRequestBuilder_.getMessageOrBuilder();
        } else {
          return handshakeRequest_;
        }
      }
      /**
       * optional .HandshakeRequest handshakeRequest = 3;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.omid.proto.TSOProto.HandshakeRequest, org.apache.omid.proto.TSOProto.HandshakeRequest.Builder, org.apache.omid.proto.TSOProto.HandshakeRequestOrBuilder> 
          getHandshakeRequestFieldBuilder() {
        if (handshakeRequestBuilder_ == null) {
          handshakeRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.omid.proto.TSOProto.HandshakeRequest, org.apache.omid.proto.TSOProto.HandshakeRequest.Builder, org.apache.omid.proto.TSOProto.HandshakeRequestOrBuilder>(
                  handshakeRequest_,
                  getParentForChildren(),
                  isClean());
          handshakeRequest_ = null;
        }
        return handshakeRequestBuilder_;
      }

      // optional .FenceRequest fenceRequest = 4;
      private org.apache.omid.proto.TSOProto.FenceRequest fenceRequest_ = org.apache.omid.proto.TSOProto.FenceRequest.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.omid.proto.TSOProto.FenceRequest, org.apache.omid.proto.TSOProto.FenceRequest.Builder, org.apache.omid.proto.TSOProto.FenceRequestOrBuilder> fenceRequestBuilder_;
      /**
       * optional .FenceRequest fenceRequest = 4;
       */
      public boolean hasFenceRequest() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      /**
       * optional .FenceRequest fenceRequest = 4;
       */
      public org.apache.omid.proto.TSOProto.FenceRequest getFenceRequest() {
        if (fenceRequestBuilder_ == null) {
          return fenceRequest_;
        } else {
          return fenceRequestBuilder_.getMessage();
        }
      }
      /**
       * optional .FenceRequest fenceRequest = 4;
       */
      public Builder setFenceRequest(org.apache.omid.proto.TSOProto.FenceRequest value) {
        if (fenceRequestBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          fenceRequest_ = value;
          onChanged();
        } else {
          fenceRequestBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * optional .FenceRequest fenceRequest = 4;
       */
      public Builder setFenceRequest(
          org.apache.omid.proto.TSOProto.FenceRequest.Builder builderForValue) {
        if (fenceRequestBuilder_ == null) {
          fenceRequest_ = builderForValue.build();
          onChanged();
        } else {
          fenceRequestBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * optional .FenceRequest fenceRequest = 4;
       */
      public Builder mergeFenceRequest(org.apache.omid.proto.TSOProto.FenceRequest value) {
        if (fenceRequestBuilder_ == null) {
          if (((bitField0_ & 0x00000008) == 0x00000008) &&
              fenceRequest_ != org.apache.omid.proto.TSOProto.FenceRequest.getDefaultInstance()) {
            fenceRequest_ =
              org.apache.omid.proto.TSOProto.FenceRequest.newBuilder(fenceRequest_).mergeFrom(value).buildPartial();
          } else {
            fenceRequest_ = value;
          }
          onChanged();
        } else {
          fenceRequestBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * optional .FenceRequest fenceRequest = 4;
       */
      public Builder clearFenceRequest() {
        if (fenceRequestBuilder_ == null) {
          fenceRequest_ = org.apache.omid.proto.TSOProto.FenceRequest.getDefaultInstance();
          onChanged();
        } else {
          fenceRequestBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }
      /**
       * optional .FenceRequest fenceRequest = 4;
       */
      public org.apache.omid.proto.TSOProto.FenceRequest.Builder getFenceRequestBuilder() {
        bitField0_ |= 0x00000008;
        onChanged();
        return getFenceRequestFieldBuilder().getBuilder();
      }
      /**
       * optional .FenceRequest fenceRequest = 4;
       */
      public org.apache.omid.proto.TSOProto.FenceRequestOrBuilder getFenceRequestOrBuilder() {
        if (fenceRequestBuilder_ != null) {
          return fenceRequestBuilder_.getMessageOrBuilder();
        } else {
          return fenceRequest_;
        }
      }
      /**
       * optional .FenceRequest fenceRequest = 4;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.omid.proto.TSOProto.FenceRequest, org.apache.omid.proto.TSOProto.FenceRequest.Builder, org.apache.omid.proto.TSOProto.FenceRequestOrBuilder> 
          getFenceRequestFieldBuilder() {
        if (fenceRequestBuilder_ == null) {
          fenceRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.omid.proto.TSOProto.FenceRequest, org.apache.omid.proto.TSOProto.FenceRequest.Builder, org.apache.omid.proto.TSOProto.FenceRequestOrBuilder>(
                  fenceRequest_,
                  getParentForChildren(),
                  isClean());
          fenceRequest_ = null;
        }
        return fenceRequestBuilder_;
      }

      // @@protoc_insertion_point(builder_scope:Request)
    }

    static {
      defaultInstance = new Request(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:Request)
  }

  public interface TimestampRequestOrBuilder
      extends com.google.protobuf.MessageOrBuilder {
  }
  /**
   * Protobuf type {@code TimestampRequest}
   */
  public static final class TimestampRequest extends
      com.google.protobuf.GeneratedMessage
      implements TimestampRequestOrBuilder {
    // Use TimestampRequest.newBuilder() to construct.
    private TimestampRequest(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private TimestampRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final TimestampRequest defaultInstance;
    public static TimestampRequest getDefaultInstance() {
      return defaultInstance;
    }

    public TimestampRequest getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private TimestampRequest(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.omid.proto.TSOProto.internal_static_TimestampRequest_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.omid.proto.TSOProto.internal_static_TimestampRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.omid.proto.TSOProto.TimestampRequest.class, org.apache.omid.proto.TSOProto.TimestampRequest.Builder.class);
    }

    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public TimestampRequest parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new TimestampRequest(input, extensionRegistry);
      }
    };

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

    private void initFields() {
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      getUnknownFields().writeTo(output);
    }

    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static org.apache.omid.proto.TSOProto.TimestampRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.omid.proto.TSOProto.TimestampRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.TimestampRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.omid.proto.TSOProto.TimestampRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.TimestampRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.TimestampRequest parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.TimestampRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.TimestampRequest parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.TimestampRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.TimestampRequest parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.apache.omid.proto.TSOProto.TimestampRequest prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code TimestampRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements org.apache.omid.proto.TSOProto.TimestampRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.omid.proto.TSOProto.internal_static_TimestampRequest_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.omid.proto.TSOProto.internal_static_TimestampRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.omid.proto.TSOProto.TimestampRequest.class, org.apache.omid.proto.TSOProto.TimestampRequest.Builder.class);
      }

      // Construct using org.apache.omid.proto.TSOProto.TimestampRequest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.omid.proto.TSOProto.internal_static_TimestampRequest_descriptor;
      }

      public org.apache.omid.proto.TSOProto.TimestampRequest getDefaultInstanceForType() {
        return org.apache.omid.proto.TSOProto.TimestampRequest.getDefaultInstance();
      }

      public org.apache.omid.proto.TSOProto.TimestampRequest build() {
        org.apache.omid.proto.TSOProto.TimestampRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.apache.omid.proto.TSOProto.TimestampRequest buildPartial() {
        org.apache.omid.proto.TSOProto.TimestampRequest result = new org.apache.omid.proto.TSOProto.TimestampRequest(this);
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.apache.omid.proto.TSOProto.TimestampRequest) {
          return mergeFrom((org.apache.omid.proto.TSOProto.TimestampRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.omid.proto.TSOProto.TimestampRequest other) {
        if (other == org.apache.omid.proto.TSOProto.TimestampRequest.getDefaultInstance()) return this;
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.apache.omid.proto.TSOProto.TimestampRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.omid.proto.TSOProto.TimestampRequest) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      // @@protoc_insertion_point(builder_scope:TimestampRequest)
    }

    static {
      defaultInstance = new TimestampRequest(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:TimestampRequest)
  }

  public interface CommitRequestOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // optional int64 startTimestamp = 1;
    /**
     * optional int64 startTimestamp = 1;
     */
    boolean hasStartTimestamp();
    /**
     * optional int64 startTimestamp = 1;
     */
    long getStartTimestamp();

    // optional bool isRetry = 2 [default = false];
    /**
     * optional bool isRetry = 2 [default = false];
     */
    boolean hasIsRetry();
    /**
     * optional bool isRetry = 2 [default = false];
     */
    boolean getIsRetry();

    // repeated int64 cellId = 3;
    /**
     * repeated int64 cellId = 3;
     */
    java.util.List getCellIdList();
    /**
     * repeated int64 cellId = 3;
     */
    int getCellIdCount();
    /**
     * repeated int64 cellId = 3;
     */
    long getCellId(int index);

    // repeated int64 TableId = 4;
    /**
     * repeated int64 TableId = 4;
     */
    java.util.List getTableIdList();
    /**
     * repeated int64 TableId = 4;
     */
    int getTableIdCount();
    /**
     * repeated int64 TableId = 4;
     */
    long getTableId(int index);
  }
  /**
   * Protobuf type {@code CommitRequest}
   */
  public static final class CommitRequest extends
      com.google.protobuf.GeneratedMessage
      implements CommitRequestOrBuilder {
    // Use CommitRequest.newBuilder() to construct.
    private CommitRequest(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private CommitRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final CommitRequest defaultInstance;
    public static CommitRequest getDefaultInstance() {
      return defaultInstance;
    }

    public CommitRequest getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private CommitRequest(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 8: {
              bitField0_ |= 0x00000001;
              startTimestamp_ = input.readInt64();
              break;
            }
            case 16: {
              bitField0_ |= 0x00000002;
              isRetry_ = input.readBool();
              break;
            }
            case 24: {
              if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
                cellId_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000004;
              }
              cellId_.add(input.readInt64());
              break;
            }
            case 26: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
                cellId_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000004;
              }
              while (input.getBytesUntilLimit() > 0) {
                cellId_.add(input.readInt64());
              }
              input.popLimit(limit);
              break;
            }
            case 32: {
              if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
                tableId_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000008;
              }
              tableId_.add(input.readInt64());
              break;
            }
            case 34: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
                tableId_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000008;
              }
              while (input.getBytesUntilLimit() > 0) {
                tableId_.add(input.readInt64());
              }
              input.popLimit(limit);
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
          cellId_ = java.util.Collections.unmodifiableList(cellId_);
        }
        if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
          tableId_ = java.util.Collections.unmodifiableList(tableId_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.omid.proto.TSOProto.internal_static_CommitRequest_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.omid.proto.TSOProto.internal_static_CommitRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.omid.proto.TSOProto.CommitRequest.class, org.apache.omid.proto.TSOProto.CommitRequest.Builder.class);
    }

    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public CommitRequest parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new CommitRequest(input, extensionRegistry);
      }
    };

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

    private int bitField0_;
    // optional int64 startTimestamp = 1;
    public static final int STARTTIMESTAMP_FIELD_NUMBER = 1;
    private long startTimestamp_;
    /**
     * optional int64 startTimestamp = 1;
     */
    public boolean hasStartTimestamp() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional int64 startTimestamp = 1;
     */
    public long getStartTimestamp() {
      return startTimestamp_;
    }

    // optional bool isRetry = 2 [default = false];
    public static final int ISRETRY_FIELD_NUMBER = 2;
    private boolean isRetry_;
    /**
     * optional bool isRetry = 2 [default = false];
     */
    public boolean hasIsRetry() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional bool isRetry = 2 [default = false];
     */
    public boolean getIsRetry() {
      return isRetry_;
    }

    // repeated int64 cellId = 3;
    public static final int CELLID_FIELD_NUMBER = 3;
    private java.util.List cellId_;
    /**
     * repeated int64 cellId = 3;
     */
    public java.util.List
        getCellIdList() {
      return cellId_;
    }
    /**
     * repeated int64 cellId = 3;
     */
    public int getCellIdCount() {
      return cellId_.size();
    }
    /**
     * repeated int64 cellId = 3;
     */
    public long getCellId(int index) {
      return cellId_.get(index);
    }

    // repeated int64 TableId = 4;
    public static final int TABLEID_FIELD_NUMBER = 4;
    private java.util.List tableId_;
    /**
     * repeated int64 TableId = 4;
     */
    public java.util.List
        getTableIdList() {
      return tableId_;
    }
    /**
     * repeated int64 TableId = 4;
     */
    public int getTableIdCount() {
      return tableId_.size();
    }
    /**
     * repeated int64 TableId = 4;
     */
    public long getTableId(int index) {
      return tableId_.get(index);
    }

    private void initFields() {
      startTimestamp_ = 0L;
      isRetry_ = false;
      cellId_ = java.util.Collections.emptyList();
      tableId_ = java.util.Collections.emptyList();
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeInt64(1, startTimestamp_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBool(2, isRetry_);
      }
      for (int i = 0; i < cellId_.size(); i++) {
        output.writeInt64(3, cellId_.get(i));
      }
      for (int i = 0; i < tableId_.size(); i++) {
        output.writeInt64(4, tableId_.get(i));
      }
      getUnknownFields().writeTo(output);
    }

    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, startTimestamp_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(2, isRetry_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < cellId_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeInt64SizeNoTag(cellId_.get(i));
        }
        size += dataSize;
        size += 1 * getCellIdList().size();
      }
      {
        int dataSize = 0;
        for (int i = 0; i < tableId_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeInt64SizeNoTag(tableId_.get(i));
        }
        size += dataSize;
        size += 1 * getTableIdList().size();
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static org.apache.omid.proto.TSOProto.CommitRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.omid.proto.TSOProto.CommitRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.CommitRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.omid.proto.TSOProto.CommitRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.CommitRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.CommitRequest parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.CommitRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.CommitRequest parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.CommitRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.CommitRequest parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.apache.omid.proto.TSOProto.CommitRequest prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code CommitRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements org.apache.omid.proto.TSOProto.CommitRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.omid.proto.TSOProto.internal_static_CommitRequest_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.omid.proto.TSOProto.internal_static_CommitRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.omid.proto.TSOProto.CommitRequest.class, org.apache.omid.proto.TSOProto.CommitRequest.Builder.class);
      }

      // Construct using org.apache.omid.proto.TSOProto.CommitRequest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        startTimestamp_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000001);
        isRetry_ = false;
        bitField0_ = (bitField0_ & ~0x00000002);
        cellId_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        tableId_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.omid.proto.TSOProto.internal_static_CommitRequest_descriptor;
      }

      public org.apache.omid.proto.TSOProto.CommitRequest getDefaultInstanceForType() {
        return org.apache.omid.proto.TSOProto.CommitRequest.getDefaultInstance();
      }

      public org.apache.omid.proto.TSOProto.CommitRequest build() {
        org.apache.omid.proto.TSOProto.CommitRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.apache.omid.proto.TSOProto.CommitRequest buildPartial() {
        org.apache.omid.proto.TSOProto.CommitRequest result = new org.apache.omid.proto.TSOProto.CommitRequest(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.startTimestamp_ = startTimestamp_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.isRetry_ = isRetry_;
        if (((bitField0_ & 0x00000004) == 0x00000004)) {
          cellId_ = java.util.Collections.unmodifiableList(cellId_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.cellId_ = cellId_;
        if (((bitField0_ & 0x00000008) == 0x00000008)) {
          tableId_ = java.util.Collections.unmodifiableList(tableId_);
          bitField0_ = (bitField0_ & ~0x00000008);
        }
        result.tableId_ = tableId_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.apache.omid.proto.TSOProto.CommitRequest) {
          return mergeFrom((org.apache.omid.proto.TSOProto.CommitRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.omid.proto.TSOProto.CommitRequest other) {
        if (other == org.apache.omid.proto.TSOProto.CommitRequest.getDefaultInstance()) return this;
        if (other.hasStartTimestamp()) {
          setStartTimestamp(other.getStartTimestamp());
        }
        if (other.hasIsRetry()) {
          setIsRetry(other.getIsRetry());
        }
        if (!other.cellId_.isEmpty()) {
          if (cellId_.isEmpty()) {
            cellId_ = other.cellId_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureCellIdIsMutable();
            cellId_.addAll(other.cellId_);
          }
          onChanged();
        }
        if (!other.tableId_.isEmpty()) {
          if (tableId_.isEmpty()) {
            tableId_ = other.tableId_;
            bitField0_ = (bitField0_ & ~0x00000008);
          } else {
            ensureTableIdIsMutable();
            tableId_.addAll(other.tableId_);
          }
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.apache.omid.proto.TSOProto.CommitRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.omid.proto.TSOProto.CommitRequest) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional int64 startTimestamp = 1;
      private long startTimestamp_ ;
      /**
       * optional int64 startTimestamp = 1;
       */
      public boolean hasStartTimestamp() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional int64 startTimestamp = 1;
       */
      public long getStartTimestamp() {
        return startTimestamp_;
      }
      /**
       * optional int64 startTimestamp = 1;
       */
      public Builder setStartTimestamp(long value) {
        bitField0_ |= 0x00000001;
        startTimestamp_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int64 startTimestamp = 1;
       */
      public Builder clearStartTimestamp() {
        bitField0_ = (bitField0_ & ~0x00000001);
        startTimestamp_ = 0L;
        onChanged();
        return this;
      }

      // optional bool isRetry = 2 [default = false];
      private boolean isRetry_ ;
      /**
       * optional bool isRetry = 2 [default = false];
       */
      public boolean hasIsRetry() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional bool isRetry = 2 [default = false];
       */
      public boolean getIsRetry() {
        return isRetry_;
      }
      /**
       * optional bool isRetry = 2 [default = false];
       */
      public Builder setIsRetry(boolean value) {
        bitField0_ |= 0x00000002;
        isRetry_ = value;
        onChanged();
        return this;
      }
      /**
       * optional bool isRetry = 2 [default = false];
       */
      public Builder clearIsRetry() {
        bitField0_ = (bitField0_ & ~0x00000002);
        isRetry_ = false;
        onChanged();
        return this;
      }

      // repeated int64 cellId = 3;
      private java.util.List cellId_ = java.util.Collections.emptyList();
      private void ensureCellIdIsMutable() {
        if (!((bitField0_ & 0x00000004) == 0x00000004)) {
          cellId_ = new java.util.ArrayList(cellId_);
          bitField0_ |= 0x00000004;
         }
      }
      /**
       * repeated int64 cellId = 3;
       */
      public java.util.List
          getCellIdList() {
        return java.util.Collections.unmodifiableList(cellId_);
      }
      /**
       * repeated int64 cellId = 3;
       */
      public int getCellIdCount() {
        return cellId_.size();
      }
      /**
       * repeated int64 cellId = 3;
       */
      public long getCellId(int index) {
        return cellId_.get(index);
      }
      /**
       * repeated int64 cellId = 3;
       */
      public Builder setCellId(
          int index, long value) {
        ensureCellIdIsMutable();
        cellId_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * repeated int64 cellId = 3;
       */
      public Builder addCellId(long value) {
        ensureCellIdIsMutable();
        cellId_.add(value);
        onChanged();
        return this;
      }
      /**
       * repeated int64 cellId = 3;
       */
      public Builder addAllCellId(
          java.lang.Iterable values) {
        ensureCellIdIsMutable();
        super.addAll(values, cellId_);
        onChanged();
        return this;
      }
      /**
       * repeated int64 cellId = 3;
       */
      public Builder clearCellId() {
        cellId_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
        return this;
      }

      // repeated int64 TableId = 4;
      private java.util.List tableId_ = java.util.Collections.emptyList();
      private void ensureTableIdIsMutable() {
        if (!((bitField0_ & 0x00000008) == 0x00000008)) {
          tableId_ = new java.util.ArrayList(tableId_);
          bitField0_ |= 0x00000008;
         }
      }
      /**
       * repeated int64 TableId = 4;
       */
      public java.util.List
          getTableIdList() {
        return java.util.Collections.unmodifiableList(tableId_);
      }
      /**
       * repeated int64 TableId = 4;
       */
      public int getTableIdCount() {
        return tableId_.size();
      }
      /**
       * repeated int64 TableId = 4;
       */
      public long getTableId(int index) {
        return tableId_.get(index);
      }
      /**
       * repeated int64 TableId = 4;
       */
      public Builder setTableId(
          int index, long value) {
        ensureTableIdIsMutable();
        tableId_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * repeated int64 TableId = 4;
       */
      public Builder addTableId(long value) {
        ensureTableIdIsMutable();
        tableId_.add(value);
        onChanged();
        return this;
      }
      /**
       * repeated int64 TableId = 4;
       */
      public Builder addAllTableId(
          java.lang.Iterable values) {
        ensureTableIdIsMutable();
        super.addAll(values, tableId_);
        onChanged();
        return this;
      }
      /**
       * repeated int64 TableId = 4;
       */
      public Builder clearTableId() {
        tableId_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:CommitRequest)
    }

    static {
      defaultInstance = new CommitRequest(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:CommitRequest)
  }

  public interface FenceRequestOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // optional int64 TableId = 1;
    /**
     * optional int64 TableId = 1;
     */
    boolean hasTableId();
    /**
     * optional int64 TableId = 1;
     */
    long getTableId();
  }
  /**
   * Protobuf type {@code FenceRequest}
   */
  public static final class FenceRequest extends
      com.google.protobuf.GeneratedMessage
      implements FenceRequestOrBuilder {
    // Use FenceRequest.newBuilder() to construct.
    private FenceRequest(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private FenceRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final FenceRequest defaultInstance;
    public static FenceRequest getDefaultInstance() {
      return defaultInstance;
    }

    public FenceRequest getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private FenceRequest(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 8: {
              bitField0_ |= 0x00000001;
              tableId_ = input.readInt64();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.omid.proto.TSOProto.internal_static_FenceRequest_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.omid.proto.TSOProto.internal_static_FenceRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.omid.proto.TSOProto.FenceRequest.class, org.apache.omid.proto.TSOProto.FenceRequest.Builder.class);
    }

    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public FenceRequest parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new FenceRequest(input, extensionRegistry);
      }
    };

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

    private int bitField0_;
    // optional int64 TableId = 1;
    public static final int TABLEID_FIELD_NUMBER = 1;
    private long tableId_;
    /**
     * optional int64 TableId = 1;
     */
    public boolean hasTableId() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional int64 TableId = 1;
     */
    public long getTableId() {
      return tableId_;
    }

    private void initFields() {
      tableId_ = 0L;
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeInt64(1, tableId_);
      }
      getUnknownFields().writeTo(output);
    }

    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, tableId_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static org.apache.omid.proto.TSOProto.FenceRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.omid.proto.TSOProto.FenceRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.FenceRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.omid.proto.TSOProto.FenceRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.FenceRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.FenceRequest parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.FenceRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.FenceRequest parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.FenceRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.FenceRequest parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.apache.omid.proto.TSOProto.FenceRequest prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code FenceRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements org.apache.omid.proto.TSOProto.FenceRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.omid.proto.TSOProto.internal_static_FenceRequest_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.omid.proto.TSOProto.internal_static_FenceRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.omid.proto.TSOProto.FenceRequest.class, org.apache.omid.proto.TSOProto.FenceRequest.Builder.class);
      }

      // Construct using org.apache.omid.proto.TSOProto.FenceRequest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        tableId_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.omid.proto.TSOProto.internal_static_FenceRequest_descriptor;
      }

      public org.apache.omid.proto.TSOProto.FenceRequest getDefaultInstanceForType() {
        return org.apache.omid.proto.TSOProto.FenceRequest.getDefaultInstance();
      }

      public org.apache.omid.proto.TSOProto.FenceRequest build() {
        org.apache.omid.proto.TSOProto.FenceRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.apache.omid.proto.TSOProto.FenceRequest buildPartial() {
        org.apache.omid.proto.TSOProto.FenceRequest result = new org.apache.omid.proto.TSOProto.FenceRequest(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.tableId_ = tableId_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.apache.omid.proto.TSOProto.FenceRequest) {
          return mergeFrom((org.apache.omid.proto.TSOProto.FenceRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.omid.proto.TSOProto.FenceRequest other) {
        if (other == org.apache.omid.proto.TSOProto.FenceRequest.getDefaultInstance()) return this;
        if (other.hasTableId()) {
          setTableId(other.getTableId());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.apache.omid.proto.TSOProto.FenceRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.omid.proto.TSOProto.FenceRequest) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional int64 TableId = 1;
      private long tableId_ ;
      /**
       * optional int64 TableId = 1;
       */
      public boolean hasTableId() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional int64 TableId = 1;
       */
      public long getTableId() {
        return tableId_;
      }
      /**
       * optional int64 TableId = 1;
       */
      public Builder setTableId(long value) {
        bitField0_ |= 0x00000001;
        tableId_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int64 TableId = 1;
       */
      public Builder clearTableId() {
        bitField0_ = (bitField0_ & ~0x00000001);
        tableId_ = 0L;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:FenceRequest)
    }

    static {
      defaultInstance = new FenceRequest(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:FenceRequest)
  }

  public interface ResponseOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // optional .TimestampResponse timestampResponse = 1;
    /**
     * optional .TimestampResponse timestampResponse = 1;
     */
    boolean hasTimestampResponse();
    /**
     * optional .TimestampResponse timestampResponse = 1;
     */
    org.apache.omid.proto.TSOProto.TimestampResponse getTimestampResponse();
    /**
     * optional .TimestampResponse timestampResponse = 1;
     */
    org.apache.omid.proto.TSOProto.TimestampResponseOrBuilder getTimestampResponseOrBuilder();

    // optional .CommitResponse commitResponse = 2;
    /**
     * optional .CommitResponse commitResponse = 2;
     */
    boolean hasCommitResponse();
    /**
     * optional .CommitResponse commitResponse = 2;
     */
    org.apache.omid.proto.TSOProto.CommitResponse getCommitResponse();
    /**
     * optional .CommitResponse commitResponse = 2;
     */
    org.apache.omid.proto.TSOProto.CommitResponseOrBuilder getCommitResponseOrBuilder();

    // optional .HandshakeResponse handshakeResponse = 3;
    /**
     * optional .HandshakeResponse handshakeResponse = 3;
     */
    boolean hasHandshakeResponse();
    /**
     * optional .HandshakeResponse handshakeResponse = 3;
     */
    org.apache.omid.proto.TSOProto.HandshakeResponse getHandshakeResponse();
    /**
     * optional .HandshakeResponse handshakeResponse = 3;
     */
    org.apache.omid.proto.TSOProto.HandshakeResponseOrBuilder getHandshakeResponseOrBuilder();

    // optional .FenceResponse fenceResponse = 4;
    /**
     * optional .FenceResponse fenceResponse = 4;
     */
    boolean hasFenceResponse();
    /**
     * optional .FenceResponse fenceResponse = 4;
     */
    org.apache.omid.proto.TSOProto.FenceResponse getFenceResponse();
    /**
     * optional .FenceResponse fenceResponse = 4;
     */
    org.apache.omid.proto.TSOProto.FenceResponseOrBuilder getFenceResponseOrBuilder();
  }
  /**
   * Protobuf type {@code Response}
   */
  public static final class Response extends
      com.google.protobuf.GeneratedMessage
      implements ResponseOrBuilder {
    // Use Response.newBuilder() to construct.
    private Response(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private Response(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final Response defaultInstance;
    public static Response getDefaultInstance() {
      return defaultInstance;
    }

    public Response getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private Response(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              org.apache.omid.proto.TSOProto.TimestampResponse.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) == 0x00000001)) {
                subBuilder = timestampResponse_.toBuilder();
              }
              timestampResponse_ = input.readMessage(org.apache.omid.proto.TSOProto.TimestampResponse.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(timestampResponse_);
                timestampResponse_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 18: {
              org.apache.omid.proto.TSOProto.CommitResponse.Builder subBuilder = null;
              if (((bitField0_ & 0x00000002) == 0x00000002)) {
                subBuilder = commitResponse_.toBuilder();
              }
              commitResponse_ = input.readMessage(org.apache.omid.proto.TSOProto.CommitResponse.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(commitResponse_);
                commitResponse_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000002;
              break;
            }
            case 26: {
              org.apache.omid.proto.TSOProto.HandshakeResponse.Builder subBuilder = null;
              if (((bitField0_ & 0x00000004) == 0x00000004)) {
                subBuilder = handshakeResponse_.toBuilder();
              }
              handshakeResponse_ = input.readMessage(org.apache.omid.proto.TSOProto.HandshakeResponse.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(handshakeResponse_);
                handshakeResponse_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000004;
              break;
            }
            case 34: {
              org.apache.omid.proto.TSOProto.FenceResponse.Builder subBuilder = null;
              if (((bitField0_ & 0x00000008) == 0x00000008)) {
                subBuilder = fenceResponse_.toBuilder();
              }
              fenceResponse_ = input.readMessage(org.apache.omid.proto.TSOProto.FenceResponse.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(fenceResponse_);
                fenceResponse_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000008;
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.omid.proto.TSOProto.internal_static_Response_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.omid.proto.TSOProto.internal_static_Response_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.omid.proto.TSOProto.Response.class, org.apache.omid.proto.TSOProto.Response.Builder.class);
    }

    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public Response parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Response(input, extensionRegistry);
      }
    };

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

    private int bitField0_;
    // optional .TimestampResponse timestampResponse = 1;
    public static final int TIMESTAMPRESPONSE_FIELD_NUMBER = 1;
    private org.apache.omid.proto.TSOProto.TimestampResponse timestampResponse_;
    /**
     * optional .TimestampResponse timestampResponse = 1;
     */
    public boolean hasTimestampResponse() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional .TimestampResponse timestampResponse = 1;
     */
    public org.apache.omid.proto.TSOProto.TimestampResponse getTimestampResponse() {
      return timestampResponse_;
    }
    /**
     * optional .TimestampResponse timestampResponse = 1;
     */
    public org.apache.omid.proto.TSOProto.TimestampResponseOrBuilder getTimestampResponseOrBuilder() {
      return timestampResponse_;
    }

    // optional .CommitResponse commitResponse = 2;
    public static final int COMMITRESPONSE_FIELD_NUMBER = 2;
    private org.apache.omid.proto.TSOProto.CommitResponse commitResponse_;
    /**
     * optional .CommitResponse commitResponse = 2;
     */
    public boolean hasCommitResponse() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional .CommitResponse commitResponse = 2;
     */
    public org.apache.omid.proto.TSOProto.CommitResponse getCommitResponse() {
      return commitResponse_;
    }
    /**
     * optional .CommitResponse commitResponse = 2;
     */
    public org.apache.omid.proto.TSOProto.CommitResponseOrBuilder getCommitResponseOrBuilder() {
      return commitResponse_;
    }

    // optional .HandshakeResponse handshakeResponse = 3;
    public static final int HANDSHAKERESPONSE_FIELD_NUMBER = 3;
    private org.apache.omid.proto.TSOProto.HandshakeResponse handshakeResponse_;
    /**
     * optional .HandshakeResponse handshakeResponse = 3;
     */
    public boolean hasHandshakeResponse() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * optional .HandshakeResponse handshakeResponse = 3;
     */
    public org.apache.omid.proto.TSOProto.HandshakeResponse getHandshakeResponse() {
      return handshakeResponse_;
    }
    /**
     * optional .HandshakeResponse handshakeResponse = 3;
     */
    public org.apache.omid.proto.TSOProto.HandshakeResponseOrBuilder getHandshakeResponseOrBuilder() {
      return handshakeResponse_;
    }

    // optional .FenceResponse fenceResponse = 4;
    public static final int FENCERESPONSE_FIELD_NUMBER = 4;
    private org.apache.omid.proto.TSOProto.FenceResponse fenceResponse_;
    /**
     * optional .FenceResponse fenceResponse = 4;
     */
    public boolean hasFenceResponse() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    /**
     * optional .FenceResponse fenceResponse = 4;
     */
    public org.apache.omid.proto.TSOProto.FenceResponse getFenceResponse() {
      return fenceResponse_;
    }
    /**
     * optional .FenceResponse fenceResponse = 4;
     */
    public org.apache.omid.proto.TSOProto.FenceResponseOrBuilder getFenceResponseOrBuilder() {
      return fenceResponse_;
    }

    private void initFields() {
      timestampResponse_ = org.apache.omid.proto.TSOProto.TimestampResponse.getDefaultInstance();
      commitResponse_ = org.apache.omid.proto.TSOProto.CommitResponse.getDefaultInstance();
      handshakeResponse_ = org.apache.omid.proto.TSOProto.HandshakeResponse.getDefaultInstance();
      fenceResponse_ = org.apache.omid.proto.TSOProto.FenceResponse.getDefaultInstance();
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeMessage(1, timestampResponse_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeMessage(2, commitResponse_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeMessage(3, handshakeResponse_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeMessage(4, fenceResponse_);
      }
      getUnknownFields().writeTo(output);
    }

    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, timestampResponse_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, commitResponse_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, handshakeResponse_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, fenceResponse_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static org.apache.omid.proto.TSOProto.Response parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.omid.proto.TSOProto.Response parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.Response parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.omid.proto.TSOProto.Response parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.Response parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.Response parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.Response parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.Response parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.Response parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.Response parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.apache.omid.proto.TSOProto.Response prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code Response}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements org.apache.omid.proto.TSOProto.ResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.omid.proto.TSOProto.internal_static_Response_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.omid.proto.TSOProto.internal_static_Response_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.omid.proto.TSOProto.Response.class, org.apache.omid.proto.TSOProto.Response.Builder.class);
      }

      // Construct using org.apache.omid.proto.TSOProto.Response.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getTimestampResponseFieldBuilder();
          getCommitResponseFieldBuilder();
          getHandshakeResponseFieldBuilder();
          getFenceResponseFieldBuilder();
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        if (timestampResponseBuilder_ == null) {
          timestampResponse_ = org.apache.omid.proto.TSOProto.TimestampResponse.getDefaultInstance();
        } else {
          timestampResponseBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        if (commitResponseBuilder_ == null) {
          commitResponse_ = org.apache.omid.proto.TSOProto.CommitResponse.getDefaultInstance();
        } else {
          commitResponseBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        if (handshakeResponseBuilder_ == null) {
          handshakeResponse_ = org.apache.omid.proto.TSOProto.HandshakeResponse.getDefaultInstance();
        } else {
          handshakeResponseBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        if (fenceResponseBuilder_ == null) {
          fenceResponse_ = org.apache.omid.proto.TSOProto.FenceResponse.getDefaultInstance();
        } else {
          fenceResponseBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.omid.proto.TSOProto.internal_static_Response_descriptor;
      }

      public org.apache.omid.proto.TSOProto.Response getDefaultInstanceForType() {
        return org.apache.omid.proto.TSOProto.Response.getDefaultInstance();
      }

      public org.apache.omid.proto.TSOProto.Response build() {
        org.apache.omid.proto.TSOProto.Response result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.apache.omid.proto.TSOProto.Response buildPartial() {
        org.apache.omid.proto.TSOProto.Response result = new org.apache.omid.proto.TSOProto.Response(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        if (timestampResponseBuilder_ == null) {
          result.timestampResponse_ = timestampResponse_;
        } else {
          result.timestampResponse_ = timestampResponseBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        if (commitResponseBuilder_ == null) {
          result.commitResponse_ = commitResponse_;
        } else {
          result.commitResponse_ = commitResponseBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        if (handshakeResponseBuilder_ == null) {
          result.handshakeResponse_ = handshakeResponse_;
        } else {
          result.handshakeResponse_ = handshakeResponseBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000008;
        }
        if (fenceResponseBuilder_ == null) {
          result.fenceResponse_ = fenceResponse_;
        } else {
          result.fenceResponse_ = fenceResponseBuilder_.build();
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.apache.omid.proto.TSOProto.Response) {
          return mergeFrom((org.apache.omid.proto.TSOProto.Response)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.omid.proto.TSOProto.Response other) {
        if (other == org.apache.omid.proto.TSOProto.Response.getDefaultInstance()) return this;
        if (other.hasTimestampResponse()) {
          mergeTimestampResponse(other.getTimestampResponse());
        }
        if (other.hasCommitResponse()) {
          mergeCommitResponse(other.getCommitResponse());
        }
        if (other.hasHandshakeResponse()) {
          mergeHandshakeResponse(other.getHandshakeResponse());
        }
        if (other.hasFenceResponse()) {
          mergeFenceResponse(other.getFenceResponse());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.apache.omid.proto.TSOProto.Response parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.omid.proto.TSOProto.Response) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional .TimestampResponse timestampResponse = 1;
      private org.apache.omid.proto.TSOProto.TimestampResponse timestampResponse_ = org.apache.omid.proto.TSOProto.TimestampResponse.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.omid.proto.TSOProto.TimestampResponse, org.apache.omid.proto.TSOProto.TimestampResponse.Builder, org.apache.omid.proto.TSOProto.TimestampResponseOrBuilder> timestampResponseBuilder_;
      /**
       * optional .TimestampResponse timestampResponse = 1;
       */
      public boolean hasTimestampResponse() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional .TimestampResponse timestampResponse = 1;
       */
      public org.apache.omid.proto.TSOProto.TimestampResponse getTimestampResponse() {
        if (timestampResponseBuilder_ == null) {
          return timestampResponse_;
        } else {
          return timestampResponseBuilder_.getMessage();
        }
      }
      /**
       * optional .TimestampResponse timestampResponse = 1;
       */
      public Builder setTimestampResponse(org.apache.omid.proto.TSOProto.TimestampResponse value) {
        if (timestampResponseBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          timestampResponse_ = value;
          onChanged();
        } else {
          timestampResponseBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .TimestampResponse timestampResponse = 1;
       */
      public Builder setTimestampResponse(
          org.apache.omid.proto.TSOProto.TimestampResponse.Builder builderForValue) {
        if (timestampResponseBuilder_ == null) {
          timestampResponse_ = builderForValue.build();
          onChanged();
        } else {
          timestampResponseBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .TimestampResponse timestampResponse = 1;
       */
      public Builder mergeTimestampResponse(org.apache.omid.proto.TSOProto.TimestampResponse value) {
        if (timestampResponseBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001) &&
              timestampResponse_ != org.apache.omid.proto.TSOProto.TimestampResponse.getDefaultInstance()) {
            timestampResponse_ =
              org.apache.omid.proto.TSOProto.TimestampResponse.newBuilder(timestampResponse_).mergeFrom(value).buildPartial();
          } else {
            timestampResponse_ = value;
          }
          onChanged();
        } else {
          timestampResponseBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .TimestampResponse timestampResponse = 1;
       */
      public Builder clearTimestampResponse() {
        if (timestampResponseBuilder_ == null) {
          timestampResponse_ = org.apache.omid.proto.TSOProto.TimestampResponse.getDefaultInstance();
          onChanged();
        } else {
          timestampResponseBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * optional .TimestampResponse timestampResponse = 1;
       */
      public org.apache.omid.proto.TSOProto.TimestampResponse.Builder getTimestampResponseBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getTimestampResponseFieldBuilder().getBuilder();
      }
      /**
       * optional .TimestampResponse timestampResponse = 1;
       */
      public org.apache.omid.proto.TSOProto.TimestampResponseOrBuilder getTimestampResponseOrBuilder() {
        if (timestampResponseBuilder_ != null) {
          return timestampResponseBuilder_.getMessageOrBuilder();
        } else {
          return timestampResponse_;
        }
      }
      /**
       * optional .TimestampResponse timestampResponse = 1;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.omid.proto.TSOProto.TimestampResponse, org.apache.omid.proto.TSOProto.TimestampResponse.Builder, org.apache.omid.proto.TSOProto.TimestampResponseOrBuilder> 
          getTimestampResponseFieldBuilder() {
        if (timestampResponseBuilder_ == null) {
          timestampResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.omid.proto.TSOProto.TimestampResponse, org.apache.omid.proto.TSOProto.TimestampResponse.Builder, org.apache.omid.proto.TSOProto.TimestampResponseOrBuilder>(
                  timestampResponse_,
                  getParentForChildren(),
                  isClean());
          timestampResponse_ = null;
        }
        return timestampResponseBuilder_;
      }

      // optional .CommitResponse commitResponse = 2;
      private org.apache.omid.proto.TSOProto.CommitResponse commitResponse_ = org.apache.omid.proto.TSOProto.CommitResponse.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.omid.proto.TSOProto.CommitResponse, org.apache.omid.proto.TSOProto.CommitResponse.Builder, org.apache.omid.proto.TSOProto.CommitResponseOrBuilder> commitResponseBuilder_;
      /**
       * optional .CommitResponse commitResponse = 2;
       */
      public boolean hasCommitResponse() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional .CommitResponse commitResponse = 2;
       */
      public org.apache.omid.proto.TSOProto.CommitResponse getCommitResponse() {
        if (commitResponseBuilder_ == null) {
          return commitResponse_;
        } else {
          return commitResponseBuilder_.getMessage();
        }
      }
      /**
       * optional .CommitResponse commitResponse = 2;
       */
      public Builder setCommitResponse(org.apache.omid.proto.TSOProto.CommitResponse value) {
        if (commitResponseBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          commitResponse_ = value;
          onChanged();
        } else {
          commitResponseBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * optional .CommitResponse commitResponse = 2;
       */
      public Builder setCommitResponse(
          org.apache.omid.proto.TSOProto.CommitResponse.Builder builderForValue) {
        if (commitResponseBuilder_ == null) {
          commitResponse_ = builderForValue.build();
          onChanged();
        } else {
          commitResponseBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * optional .CommitResponse commitResponse = 2;
       */
      public Builder mergeCommitResponse(org.apache.omid.proto.TSOProto.CommitResponse value) {
        if (commitResponseBuilder_ == null) {
          if (((bitField0_ & 0x00000002) == 0x00000002) &&
              commitResponse_ != org.apache.omid.proto.TSOProto.CommitResponse.getDefaultInstance()) {
            commitResponse_ =
              org.apache.omid.proto.TSOProto.CommitResponse.newBuilder(commitResponse_).mergeFrom(value).buildPartial();
          } else {
            commitResponse_ = value;
          }
          onChanged();
        } else {
          commitResponseBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * optional .CommitResponse commitResponse = 2;
       */
      public Builder clearCommitResponse() {
        if (commitResponseBuilder_ == null) {
          commitResponse_ = org.apache.omid.proto.TSOProto.CommitResponse.getDefaultInstance();
          onChanged();
        } else {
          commitResponseBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }
      /**
       * optional .CommitResponse commitResponse = 2;
       */
      public org.apache.omid.proto.TSOProto.CommitResponse.Builder getCommitResponseBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getCommitResponseFieldBuilder().getBuilder();
      }
      /**
       * optional .CommitResponse commitResponse = 2;
       */
      public org.apache.omid.proto.TSOProto.CommitResponseOrBuilder getCommitResponseOrBuilder() {
        if (commitResponseBuilder_ != null) {
          return commitResponseBuilder_.getMessageOrBuilder();
        } else {
          return commitResponse_;
        }
      }
      /**
       * optional .CommitResponse commitResponse = 2;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.omid.proto.TSOProto.CommitResponse, org.apache.omid.proto.TSOProto.CommitResponse.Builder, org.apache.omid.proto.TSOProto.CommitResponseOrBuilder> 
          getCommitResponseFieldBuilder() {
        if (commitResponseBuilder_ == null) {
          commitResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.omid.proto.TSOProto.CommitResponse, org.apache.omid.proto.TSOProto.CommitResponse.Builder, org.apache.omid.proto.TSOProto.CommitResponseOrBuilder>(
                  commitResponse_,
                  getParentForChildren(),
                  isClean());
          commitResponse_ = null;
        }
        return commitResponseBuilder_;
      }

      // optional .HandshakeResponse handshakeResponse = 3;
      private org.apache.omid.proto.TSOProto.HandshakeResponse handshakeResponse_ = org.apache.omid.proto.TSOProto.HandshakeResponse.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.omid.proto.TSOProto.HandshakeResponse, org.apache.omid.proto.TSOProto.HandshakeResponse.Builder, org.apache.omid.proto.TSOProto.HandshakeResponseOrBuilder> handshakeResponseBuilder_;
      /**
       * optional .HandshakeResponse handshakeResponse = 3;
       */
      public boolean hasHandshakeResponse() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * optional .HandshakeResponse handshakeResponse = 3;
       */
      public org.apache.omid.proto.TSOProto.HandshakeResponse getHandshakeResponse() {
        if (handshakeResponseBuilder_ == null) {
          return handshakeResponse_;
        } else {
          return handshakeResponseBuilder_.getMessage();
        }
      }
      /**
       * optional .HandshakeResponse handshakeResponse = 3;
       */
      public Builder setHandshakeResponse(org.apache.omid.proto.TSOProto.HandshakeResponse value) {
        if (handshakeResponseBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          handshakeResponse_ = value;
          onChanged();
        } else {
          handshakeResponseBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       * optional .HandshakeResponse handshakeResponse = 3;
       */
      public Builder setHandshakeResponse(
          org.apache.omid.proto.TSOProto.HandshakeResponse.Builder builderForValue) {
        if (handshakeResponseBuilder_ == null) {
          handshakeResponse_ = builderForValue.build();
          onChanged();
        } else {
          handshakeResponseBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       * optional .HandshakeResponse handshakeResponse = 3;
       */
      public Builder mergeHandshakeResponse(org.apache.omid.proto.TSOProto.HandshakeResponse value) {
        if (handshakeResponseBuilder_ == null) {
          if (((bitField0_ & 0x00000004) == 0x00000004) &&
              handshakeResponse_ != org.apache.omid.proto.TSOProto.HandshakeResponse.getDefaultInstance()) {
            handshakeResponse_ =
              org.apache.omid.proto.TSOProto.HandshakeResponse.newBuilder(handshakeResponse_).mergeFrom(value).buildPartial();
          } else {
            handshakeResponse_ = value;
          }
          onChanged();
        } else {
          handshakeResponseBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       * optional .HandshakeResponse handshakeResponse = 3;
       */
      public Builder clearHandshakeResponse() {
        if (handshakeResponseBuilder_ == null) {
          handshakeResponse_ = org.apache.omid.proto.TSOProto.HandshakeResponse.getDefaultInstance();
          onChanged();
        } else {
          handshakeResponseBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }
      /**
       * optional .HandshakeResponse handshakeResponse = 3;
       */
      public org.apache.omid.proto.TSOProto.HandshakeResponse.Builder getHandshakeResponseBuilder() {
        bitField0_ |= 0x00000004;
        onChanged();
        return getHandshakeResponseFieldBuilder().getBuilder();
      }
      /**
       * optional .HandshakeResponse handshakeResponse = 3;
       */
      public org.apache.omid.proto.TSOProto.HandshakeResponseOrBuilder getHandshakeResponseOrBuilder() {
        if (handshakeResponseBuilder_ != null) {
          return handshakeResponseBuilder_.getMessageOrBuilder();
        } else {
          return handshakeResponse_;
        }
      }
      /**
       * optional .HandshakeResponse handshakeResponse = 3;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.omid.proto.TSOProto.HandshakeResponse, org.apache.omid.proto.TSOProto.HandshakeResponse.Builder, org.apache.omid.proto.TSOProto.HandshakeResponseOrBuilder> 
          getHandshakeResponseFieldBuilder() {
        if (handshakeResponseBuilder_ == null) {
          handshakeResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.omid.proto.TSOProto.HandshakeResponse, org.apache.omid.proto.TSOProto.HandshakeResponse.Builder, org.apache.omid.proto.TSOProto.HandshakeResponseOrBuilder>(
                  handshakeResponse_,
                  getParentForChildren(),
                  isClean());
          handshakeResponse_ = null;
        }
        return handshakeResponseBuilder_;
      }

      // optional .FenceResponse fenceResponse = 4;
      private org.apache.omid.proto.TSOProto.FenceResponse fenceResponse_ = org.apache.omid.proto.TSOProto.FenceResponse.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.omid.proto.TSOProto.FenceResponse, org.apache.omid.proto.TSOProto.FenceResponse.Builder, org.apache.omid.proto.TSOProto.FenceResponseOrBuilder> fenceResponseBuilder_;
      /**
       * optional .FenceResponse fenceResponse = 4;
       */
      public boolean hasFenceResponse() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      /**
       * optional .FenceResponse fenceResponse = 4;
       */
      public org.apache.omid.proto.TSOProto.FenceResponse getFenceResponse() {
        if (fenceResponseBuilder_ == null) {
          return fenceResponse_;
        } else {
          return fenceResponseBuilder_.getMessage();
        }
      }
      /**
       * optional .FenceResponse fenceResponse = 4;
       */
      public Builder setFenceResponse(org.apache.omid.proto.TSOProto.FenceResponse value) {
        if (fenceResponseBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          fenceResponse_ = value;
          onChanged();
        } else {
          fenceResponseBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * optional .FenceResponse fenceResponse = 4;
       */
      public Builder setFenceResponse(
          org.apache.omid.proto.TSOProto.FenceResponse.Builder builderForValue) {
        if (fenceResponseBuilder_ == null) {
          fenceResponse_ = builderForValue.build();
          onChanged();
        } else {
          fenceResponseBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * optional .FenceResponse fenceResponse = 4;
       */
      public Builder mergeFenceResponse(org.apache.omid.proto.TSOProto.FenceResponse value) {
        if (fenceResponseBuilder_ == null) {
          if (((bitField0_ & 0x00000008) == 0x00000008) &&
              fenceResponse_ != org.apache.omid.proto.TSOProto.FenceResponse.getDefaultInstance()) {
            fenceResponse_ =
              org.apache.omid.proto.TSOProto.FenceResponse.newBuilder(fenceResponse_).mergeFrom(value).buildPartial();
          } else {
            fenceResponse_ = value;
          }
          onChanged();
        } else {
          fenceResponseBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * optional .FenceResponse fenceResponse = 4;
       */
      public Builder clearFenceResponse() {
        if (fenceResponseBuilder_ == null) {
          fenceResponse_ = org.apache.omid.proto.TSOProto.FenceResponse.getDefaultInstance();
          onChanged();
        } else {
          fenceResponseBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }
      /**
       * optional .FenceResponse fenceResponse = 4;
       */
      public org.apache.omid.proto.TSOProto.FenceResponse.Builder getFenceResponseBuilder() {
        bitField0_ |= 0x00000008;
        onChanged();
        return getFenceResponseFieldBuilder().getBuilder();
      }
      /**
       * optional .FenceResponse fenceResponse = 4;
       */
      public org.apache.omid.proto.TSOProto.FenceResponseOrBuilder getFenceResponseOrBuilder() {
        if (fenceResponseBuilder_ != null) {
          return fenceResponseBuilder_.getMessageOrBuilder();
        } else {
          return fenceResponse_;
        }
      }
      /**
       * optional .FenceResponse fenceResponse = 4;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.omid.proto.TSOProto.FenceResponse, org.apache.omid.proto.TSOProto.FenceResponse.Builder, org.apache.omid.proto.TSOProto.FenceResponseOrBuilder> 
          getFenceResponseFieldBuilder() {
        if (fenceResponseBuilder_ == null) {
          fenceResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.omid.proto.TSOProto.FenceResponse, org.apache.omid.proto.TSOProto.FenceResponse.Builder, org.apache.omid.proto.TSOProto.FenceResponseOrBuilder>(
                  fenceResponse_,
                  getParentForChildren(),
                  isClean());
          fenceResponse_ = null;
        }
        return fenceResponseBuilder_;
      }

      // @@protoc_insertion_point(builder_scope:Response)
    }

    static {
      defaultInstance = new Response(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:Response)
  }

  public interface TimestampResponseOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // optional int64 startTimestamp = 1;
    /**
     * optional int64 startTimestamp = 1;
     */
    boolean hasStartTimestamp();
    /**
     * optional int64 startTimestamp = 1;
     */
    long getStartTimestamp();
  }
  /**
   * Protobuf type {@code TimestampResponse}
   */
  public static final class TimestampResponse extends
      com.google.protobuf.GeneratedMessage
      implements TimestampResponseOrBuilder {
    // Use TimestampResponse.newBuilder() to construct.
    private TimestampResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private TimestampResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final TimestampResponse defaultInstance;
    public static TimestampResponse getDefaultInstance() {
      return defaultInstance;
    }

    public TimestampResponse getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private TimestampResponse(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 8: {
              bitField0_ |= 0x00000001;
              startTimestamp_ = input.readInt64();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.omid.proto.TSOProto.internal_static_TimestampResponse_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.omid.proto.TSOProto.internal_static_TimestampResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.omid.proto.TSOProto.TimestampResponse.class, org.apache.omid.proto.TSOProto.TimestampResponse.Builder.class);
    }

    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public TimestampResponse parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new TimestampResponse(input, extensionRegistry);
      }
    };

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

    private int bitField0_;
    // optional int64 startTimestamp = 1;
    public static final int STARTTIMESTAMP_FIELD_NUMBER = 1;
    private long startTimestamp_;
    /**
     * optional int64 startTimestamp = 1;
     */
    public boolean hasStartTimestamp() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional int64 startTimestamp = 1;
     */
    public long getStartTimestamp() {
      return startTimestamp_;
    }

    private void initFields() {
      startTimestamp_ = 0L;
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeInt64(1, startTimestamp_);
      }
      getUnknownFields().writeTo(output);
    }

    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, startTimestamp_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static org.apache.omid.proto.TSOProto.TimestampResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.omid.proto.TSOProto.TimestampResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.TimestampResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.omid.proto.TSOProto.TimestampResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.TimestampResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.TimestampResponse parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.TimestampResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.TimestampResponse parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.TimestampResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.TimestampResponse parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.apache.omid.proto.TSOProto.TimestampResponse prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code TimestampResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements org.apache.omid.proto.TSOProto.TimestampResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.omid.proto.TSOProto.internal_static_TimestampResponse_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.omid.proto.TSOProto.internal_static_TimestampResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.omid.proto.TSOProto.TimestampResponse.class, org.apache.omid.proto.TSOProto.TimestampResponse.Builder.class);
      }

      // Construct using org.apache.omid.proto.TSOProto.TimestampResponse.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        startTimestamp_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.omid.proto.TSOProto.internal_static_TimestampResponse_descriptor;
      }

      public org.apache.omid.proto.TSOProto.TimestampResponse getDefaultInstanceForType() {
        return org.apache.omid.proto.TSOProto.TimestampResponse.getDefaultInstance();
      }

      public org.apache.omid.proto.TSOProto.TimestampResponse build() {
        org.apache.omid.proto.TSOProto.TimestampResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.apache.omid.proto.TSOProto.TimestampResponse buildPartial() {
        org.apache.omid.proto.TSOProto.TimestampResponse result = new org.apache.omid.proto.TSOProto.TimestampResponse(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.startTimestamp_ = startTimestamp_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.apache.omid.proto.TSOProto.TimestampResponse) {
          return mergeFrom((org.apache.omid.proto.TSOProto.TimestampResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.omid.proto.TSOProto.TimestampResponse other) {
        if (other == org.apache.omid.proto.TSOProto.TimestampResponse.getDefaultInstance()) return this;
        if (other.hasStartTimestamp()) {
          setStartTimestamp(other.getStartTimestamp());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.apache.omid.proto.TSOProto.TimestampResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.omid.proto.TSOProto.TimestampResponse) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional int64 startTimestamp = 1;
      private long startTimestamp_ ;
      /**
       * optional int64 startTimestamp = 1;
       */
      public boolean hasStartTimestamp() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional int64 startTimestamp = 1;
       */
      public long getStartTimestamp() {
        return startTimestamp_;
      }
      /**
       * optional int64 startTimestamp = 1;
       */
      public Builder setStartTimestamp(long value) {
        bitField0_ |= 0x00000001;
        startTimestamp_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int64 startTimestamp = 1;
       */
      public Builder clearStartTimestamp() {
        bitField0_ = (bitField0_ & ~0x00000001);
        startTimestamp_ = 0L;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:TimestampResponse)
    }

    static {
      defaultInstance = new TimestampResponse(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:TimestampResponse)
  }

  public interface FenceResponseOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // optional int64 TableId = 1;
    /**
     * optional int64 TableId = 1;
     */
    boolean hasTableId();
    /**
     * optional int64 TableId = 1;
     */
    long getTableId();

    // optional int64 FenceId = 2;
    /**
     * optional int64 FenceId = 2;
     */
    boolean hasFenceId();
    /**
     * optional int64 FenceId = 2;
     */
    long getFenceId();
  }
  /**
   * Protobuf type {@code FenceResponse}
   */
  public static final class FenceResponse extends
      com.google.protobuf.GeneratedMessage
      implements FenceResponseOrBuilder {
    // Use FenceResponse.newBuilder() to construct.
    private FenceResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private FenceResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final FenceResponse defaultInstance;
    public static FenceResponse getDefaultInstance() {
      return defaultInstance;
    }

    public FenceResponse getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private FenceResponse(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 8: {
              bitField0_ |= 0x00000001;
              tableId_ = input.readInt64();
              break;
            }
            case 16: {
              bitField0_ |= 0x00000002;
              fenceId_ = input.readInt64();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.omid.proto.TSOProto.internal_static_FenceResponse_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.omid.proto.TSOProto.internal_static_FenceResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.omid.proto.TSOProto.FenceResponse.class, org.apache.omid.proto.TSOProto.FenceResponse.Builder.class);
    }

    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public FenceResponse parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new FenceResponse(input, extensionRegistry);
      }
    };

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

    private int bitField0_;
    // optional int64 TableId = 1;
    public static final int TABLEID_FIELD_NUMBER = 1;
    private long tableId_;
    /**
     * optional int64 TableId = 1;
     */
    public boolean hasTableId() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional int64 TableId = 1;
     */
    public long getTableId() {
      return tableId_;
    }

    // optional int64 FenceId = 2;
    public static final int FENCEID_FIELD_NUMBER = 2;
    private long fenceId_;
    /**
     * optional int64 FenceId = 2;
     */
    public boolean hasFenceId() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional int64 FenceId = 2;
     */
    public long getFenceId() {
      return fenceId_;
    }

    private void initFields() {
      tableId_ = 0L;
      fenceId_ = 0L;
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeInt64(1, tableId_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeInt64(2, fenceId_);
      }
      getUnknownFields().writeTo(output);
    }

    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, tableId_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(2, fenceId_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static org.apache.omid.proto.TSOProto.FenceResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.omid.proto.TSOProto.FenceResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.FenceResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.omid.proto.TSOProto.FenceResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.FenceResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.FenceResponse parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.FenceResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.FenceResponse parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.FenceResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.FenceResponse parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.apache.omid.proto.TSOProto.FenceResponse prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code FenceResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements org.apache.omid.proto.TSOProto.FenceResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.omid.proto.TSOProto.internal_static_FenceResponse_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.omid.proto.TSOProto.internal_static_FenceResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.omid.proto.TSOProto.FenceResponse.class, org.apache.omid.proto.TSOProto.FenceResponse.Builder.class);
      }

      // Construct using org.apache.omid.proto.TSOProto.FenceResponse.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        tableId_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000001);
        fenceId_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.omid.proto.TSOProto.internal_static_FenceResponse_descriptor;
      }

      public org.apache.omid.proto.TSOProto.FenceResponse getDefaultInstanceForType() {
        return org.apache.omid.proto.TSOProto.FenceResponse.getDefaultInstance();
      }

      public org.apache.omid.proto.TSOProto.FenceResponse build() {
        org.apache.omid.proto.TSOProto.FenceResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.apache.omid.proto.TSOProto.FenceResponse buildPartial() {
        org.apache.omid.proto.TSOProto.FenceResponse result = new org.apache.omid.proto.TSOProto.FenceResponse(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.tableId_ = tableId_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.fenceId_ = fenceId_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.apache.omid.proto.TSOProto.FenceResponse) {
          return mergeFrom((org.apache.omid.proto.TSOProto.FenceResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.omid.proto.TSOProto.FenceResponse other) {
        if (other == org.apache.omid.proto.TSOProto.FenceResponse.getDefaultInstance()) return this;
        if (other.hasTableId()) {
          setTableId(other.getTableId());
        }
        if (other.hasFenceId()) {
          setFenceId(other.getFenceId());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.apache.omid.proto.TSOProto.FenceResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.omid.proto.TSOProto.FenceResponse) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional int64 TableId = 1;
      private long tableId_ ;
      /**
       * optional int64 TableId = 1;
       */
      public boolean hasTableId() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional int64 TableId = 1;
       */
      public long getTableId() {
        return tableId_;
      }
      /**
       * optional int64 TableId = 1;
       */
      public Builder setTableId(long value) {
        bitField0_ |= 0x00000001;
        tableId_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int64 TableId = 1;
       */
      public Builder clearTableId() {
        bitField0_ = (bitField0_ & ~0x00000001);
        tableId_ = 0L;
        onChanged();
        return this;
      }

      // optional int64 FenceId = 2;
      private long fenceId_ ;
      /**
       * optional int64 FenceId = 2;
       */
      public boolean hasFenceId() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional int64 FenceId = 2;
       */
      public long getFenceId() {
        return fenceId_;
      }
      /**
       * optional int64 FenceId = 2;
       */
      public Builder setFenceId(long value) {
        bitField0_ |= 0x00000002;
        fenceId_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int64 FenceId = 2;
       */
      public Builder clearFenceId() {
        bitField0_ = (bitField0_ & ~0x00000002);
        fenceId_ = 0L;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:FenceResponse)
    }

    static {
      defaultInstance = new FenceResponse(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:FenceResponse)
  }

  public interface CommitResponseOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // optional bool aborted = 1;
    /**
     * optional bool aborted = 1;
     */
    boolean hasAborted();
    /**
     * optional bool aborted = 1;
     */
    boolean getAborted();

    // optional int64 startTimestamp = 2;
    /**
     * optional int64 startTimestamp = 2;
     */
    boolean hasStartTimestamp();
    /**
     * optional int64 startTimestamp = 2;
     */
    long getStartTimestamp();

    // optional int64 commitTimestamp = 3;
    /**
     * optional int64 commitTimestamp = 3;
     */
    boolean hasCommitTimestamp();
    /**
     * optional int64 commitTimestamp = 3;
     */
    long getCommitTimestamp();
  }
  /**
   * Protobuf type {@code CommitResponse}
   */
  public static final class CommitResponse extends
      com.google.protobuf.GeneratedMessage
      implements CommitResponseOrBuilder {
    // Use CommitResponse.newBuilder() to construct.
    private CommitResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private CommitResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final CommitResponse defaultInstance;
    public static CommitResponse getDefaultInstance() {
      return defaultInstance;
    }

    public CommitResponse getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private CommitResponse(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 8: {
              bitField0_ |= 0x00000001;
              aborted_ = input.readBool();
              break;
            }
            case 16: {
              bitField0_ |= 0x00000002;
              startTimestamp_ = input.readInt64();
              break;
            }
            case 24: {
              bitField0_ |= 0x00000004;
              commitTimestamp_ = input.readInt64();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.omid.proto.TSOProto.internal_static_CommitResponse_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.omid.proto.TSOProto.internal_static_CommitResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.omid.proto.TSOProto.CommitResponse.class, org.apache.omid.proto.TSOProto.CommitResponse.Builder.class);
    }

    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public CommitResponse parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new CommitResponse(input, extensionRegistry);
      }
    };

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

    private int bitField0_;
    // optional bool aborted = 1;
    public static final int ABORTED_FIELD_NUMBER = 1;
    private boolean aborted_;
    /**
     * optional bool aborted = 1;
     */
    public boolean hasAborted() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional bool aborted = 1;
     */
    public boolean getAborted() {
      return aborted_;
    }

    // optional int64 startTimestamp = 2;
    public static final int STARTTIMESTAMP_FIELD_NUMBER = 2;
    private long startTimestamp_;
    /**
     * optional int64 startTimestamp = 2;
     */
    public boolean hasStartTimestamp() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional int64 startTimestamp = 2;
     */
    public long getStartTimestamp() {
      return startTimestamp_;
    }

    // optional int64 commitTimestamp = 3;
    public static final int COMMITTIMESTAMP_FIELD_NUMBER = 3;
    private long commitTimestamp_;
    /**
     * optional int64 commitTimestamp = 3;
     */
    public boolean hasCommitTimestamp() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * optional int64 commitTimestamp = 3;
     */
    public long getCommitTimestamp() {
      return commitTimestamp_;
    }

    private void initFields() {
      aborted_ = false;
      startTimestamp_ = 0L;
      commitTimestamp_ = 0L;
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBool(1, aborted_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeInt64(2, startTimestamp_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeInt64(3, commitTimestamp_);
      }
      getUnknownFields().writeTo(output);
    }

    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(1, aborted_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(2, startTimestamp_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(3, commitTimestamp_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static org.apache.omid.proto.TSOProto.CommitResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.omid.proto.TSOProto.CommitResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.CommitResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.omid.proto.TSOProto.CommitResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.CommitResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.CommitResponse parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.CommitResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.CommitResponse parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.apache.omid.proto.TSOProto.CommitResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.omid.proto.TSOProto.CommitResponse parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.apache.omid.proto.TSOProto.CommitResponse prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code CommitResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements org.apache.omid.proto.TSOProto.CommitResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.omid.proto.TSOProto.internal_static_CommitResponse_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.omid.proto.TSOProto.internal_static_CommitResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.omid.proto.TSOProto.CommitResponse.class, org.apache.omid.proto.TSOProto.CommitResponse.Builder.class);
      }

      // Construct using org.apache.omid.proto.TSOProto.CommitResponse.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        aborted_ = false;
        bitField0_ = (bitField0_ & ~0x00000001);
        startTimestamp_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000002);
        commitTimestamp_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.omid.proto.TSOProto.internal_static_CommitResponse_descriptor;
      }

      public org.apache.omid.proto.TSOProto.CommitResponse getDefaultInstanceForType() {
        return org.apache.omid.proto.TSOProto.CommitResponse.getDefaultInstance();
      }

      public org.apache.omid.proto.TSOProto.CommitResponse build() {
        org.apache.omid.proto.TSOProto.CommitResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.apache.omid.proto.TSOProto.CommitResponse buildPartial() {
        org.apache.omid.proto.TSOProto.CommitResponse result = new org.apache.omid.proto.TSOProto.CommitResponse(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.aborted_ = aborted_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.startTimestamp_ = startTimestamp_;
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        result.commitTimestamp_ = commitTimestamp_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.apache.omid.proto.TSOProto.CommitResponse) {
          return mergeFrom((org.apache.omid.proto.TSOProto.CommitResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.omid.proto.TSOProto.CommitResponse other) {
        if (other == org.apache.omid.proto.TSOProto.CommitResponse.getDefaultInstance()) return this;
        if (other.hasAborted()) {
          setAborted(other.getAborted());
        }
        if (other.hasStartTimestamp()) {
          setStartTimestamp(other.getStartTimestamp());
        }
        if (other.hasCommitTimestamp()) {
          setCommitTimestamp(other.getCommitTimestamp());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.apache.omid.proto.TSOProto.CommitResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.omid.proto.TSOProto.CommitResponse) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional bool aborted = 1;
      private boolean aborted_ ;
      /**
       * optional bool aborted = 1;
       */
      public boolean hasAborted() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional bool aborted = 1;
       */
      public boolean getAborted() {
        return aborted_;
      }
      /**
       * optional bool aborted = 1;
       */
      public Builder setAborted(boolean value) {
        bitField0_ |= 0x00000001;
        aborted_ = value;
        onChanged();
        return this;
      }
      /**
       * optional bool aborted = 1;
       */
      public Builder clearAborted() {
        bitField0_ = (bitField0_ & ~0x00000001);
        aborted_ = false;
        onChanged();
        return this;
      }

      // optional int64 startTimestamp = 2;
      private long startTimestamp_ ;
      /**
       * optional int64 startTimestamp = 2;
       */
      public boolean hasStartTimestamp() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional int64 startTimestamp = 2;
       */
      public long getStartTimestamp() {
        return startTimestamp_;
      }
      /**
       * optional int64 startTimestamp = 2;
       */
      public Builder setStartTimestamp(long value) {
        bitField0_ |= 0x00000002;
        startTimestamp_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int64 startTimestamp = 2;
       */
      public Builder clearStartTimestamp() {
        bitField0_ = (bitField0_ & ~0x00000002);
        startTimestamp_ = 0L;
        onChanged();
        return this;
      }

      // optional int64 commitTimestamp = 3;
      private long commitTimestamp_ ;
      /**
       * optional int64 commitTimestamp = 3;
       */
      public boolean hasCommitTimestamp() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * optional int64 commitTimestamp = 3;
       */
      public long getCommitTimestamp() {
        return commitTimestamp_;
      }
      /**
       * optional int64 commitTimestamp = 3;
       */
      public Builder setCommitTimestamp(long value) {
        bitField0_ |= 0x00000004;
        commitTimestamp_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int64 commitTimestamp = 3;
       */
      public Builder clearCommitTimestamp() {
        bitField0_ = (bitField0_ & ~0x00000004);
        commitTimestamp_ = 0L;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:CommitResponse)
    }

    static {
      defaultInstance = new CommitResponse(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:CommitResponse)
  }

  public interface CapabilitiesOrBuilder
      extends com.google.protobuf.MessageOrBuilder {
  }
  /**
   * Protobuf type {@code Capabilities}
   *
   * 
   * place here the capabilities a client has to have
   * to pass the handshake
   * 
*/ public static final class Capabilities extends com.google.protobuf.GeneratedMessage implements CapabilitiesOrBuilder { // Use Capabilities.newBuilder() to construct. private Capabilities(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Capabilities(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Capabilities defaultInstance; public static Capabilities getDefaultInstance() { return defaultInstance; } public Capabilities getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Capabilities( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.omid.proto.TSOProto.internal_static_Capabilities_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.omid.proto.TSOProto.internal_static_Capabilities_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.omid.proto.TSOProto.Capabilities.class, org.apache.omid.proto.TSOProto.Capabilities.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Capabilities parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Capabilities(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.omid.proto.TSOProto.Capabilities parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.omid.proto.TSOProto.Capabilities parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.omid.proto.TSOProto.Capabilities parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.omid.proto.TSOProto.Capabilities parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.omid.proto.TSOProto.Capabilities parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.omid.proto.TSOProto.Capabilities parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.omid.proto.TSOProto.Capabilities parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.omid.proto.TSOProto.Capabilities parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.omid.proto.TSOProto.Capabilities parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.omid.proto.TSOProto.Capabilities parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.omid.proto.TSOProto.Capabilities prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code Capabilities} * *
     * place here the capabilities a client has to have
     * to pass the handshake
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.omid.proto.TSOProto.CapabilitiesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.omid.proto.TSOProto.internal_static_Capabilities_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.omid.proto.TSOProto.internal_static_Capabilities_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.omid.proto.TSOProto.Capabilities.class, org.apache.omid.proto.TSOProto.Capabilities.Builder.class); } // Construct using org.apache.omid.proto.TSOProto.Capabilities.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.omid.proto.TSOProto.internal_static_Capabilities_descriptor; } public org.apache.omid.proto.TSOProto.Capabilities getDefaultInstanceForType() { return org.apache.omid.proto.TSOProto.Capabilities.getDefaultInstance(); } public org.apache.omid.proto.TSOProto.Capabilities build() { org.apache.omid.proto.TSOProto.Capabilities result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.omid.proto.TSOProto.Capabilities buildPartial() { org.apache.omid.proto.TSOProto.Capabilities result = new org.apache.omid.proto.TSOProto.Capabilities(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.omid.proto.TSOProto.Capabilities) { return mergeFrom((org.apache.omid.proto.TSOProto.Capabilities)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.omid.proto.TSOProto.Capabilities other) { if (other == org.apache.omid.proto.TSOProto.Capabilities.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.omid.proto.TSOProto.Capabilities parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.omid.proto.TSOProto.Capabilities) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:Capabilities) } static { defaultInstance = new Capabilities(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:Capabilities) } public interface HandshakeRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .Capabilities clientCapabilities = 1; /** * optional .Capabilities clientCapabilities = 1; */ boolean hasClientCapabilities(); /** * optional .Capabilities clientCapabilities = 1; */ org.apache.omid.proto.TSOProto.Capabilities getClientCapabilities(); /** * optional .Capabilities clientCapabilities = 1; */ org.apache.omid.proto.TSOProto.CapabilitiesOrBuilder getClientCapabilitiesOrBuilder(); } /** * Protobuf type {@code HandshakeRequest} */ public static final class HandshakeRequest extends com.google.protobuf.GeneratedMessage implements HandshakeRequestOrBuilder { // Use HandshakeRequest.newBuilder() to construct. private HandshakeRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private HandshakeRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final HandshakeRequest defaultInstance; public static HandshakeRequest getDefaultInstance() { return defaultInstance; } public HandshakeRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HandshakeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.omid.proto.TSOProto.Capabilities.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = clientCapabilities_.toBuilder(); } clientCapabilities_ = input.readMessage(org.apache.omid.proto.TSOProto.Capabilities.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(clientCapabilities_); clientCapabilities_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.omid.proto.TSOProto.internal_static_HandshakeRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.omid.proto.TSOProto.internal_static_HandshakeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.omid.proto.TSOProto.HandshakeRequest.class, org.apache.omid.proto.TSOProto.HandshakeRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public HandshakeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HandshakeRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional .Capabilities clientCapabilities = 1; public static final int CLIENTCAPABILITIES_FIELD_NUMBER = 1; private org.apache.omid.proto.TSOProto.Capabilities clientCapabilities_; /** * optional .Capabilities clientCapabilities = 1; */ public boolean hasClientCapabilities() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .Capabilities clientCapabilities = 1; */ public org.apache.omid.proto.TSOProto.Capabilities getClientCapabilities() { return clientCapabilities_; } /** * optional .Capabilities clientCapabilities = 1; */ public org.apache.omid.proto.TSOProto.CapabilitiesOrBuilder getClientCapabilitiesOrBuilder() { return clientCapabilities_; } private void initFields() { clientCapabilities_ = org.apache.omid.proto.TSOProto.Capabilities.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, clientCapabilities_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, clientCapabilities_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.omid.proto.TSOProto.HandshakeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.omid.proto.TSOProto.HandshakeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.omid.proto.TSOProto.HandshakeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.omid.proto.TSOProto.HandshakeRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.omid.proto.TSOProto.HandshakeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.omid.proto.TSOProto.HandshakeRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.omid.proto.TSOProto.HandshakeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.omid.proto.TSOProto.HandshakeRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.omid.proto.TSOProto.HandshakeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.omid.proto.TSOProto.HandshakeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.omid.proto.TSOProto.HandshakeRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code HandshakeRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.omid.proto.TSOProto.HandshakeRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.omid.proto.TSOProto.internal_static_HandshakeRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.omid.proto.TSOProto.internal_static_HandshakeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.omid.proto.TSOProto.HandshakeRequest.class, org.apache.omid.proto.TSOProto.HandshakeRequest.Builder.class); } // Construct using org.apache.omid.proto.TSOProto.HandshakeRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getClientCapabilitiesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (clientCapabilitiesBuilder_ == null) { clientCapabilities_ = org.apache.omid.proto.TSOProto.Capabilities.getDefaultInstance(); } else { clientCapabilitiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.omid.proto.TSOProto.internal_static_HandshakeRequest_descriptor; } public org.apache.omid.proto.TSOProto.HandshakeRequest getDefaultInstanceForType() { return org.apache.omid.proto.TSOProto.HandshakeRequest.getDefaultInstance(); } public org.apache.omid.proto.TSOProto.HandshakeRequest build() { org.apache.omid.proto.TSOProto.HandshakeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.omid.proto.TSOProto.HandshakeRequest buildPartial() { org.apache.omid.proto.TSOProto.HandshakeRequest result = new org.apache.omid.proto.TSOProto.HandshakeRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (clientCapabilitiesBuilder_ == null) { result.clientCapabilities_ = clientCapabilities_; } else { result.clientCapabilities_ = clientCapabilitiesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.omid.proto.TSOProto.HandshakeRequest) { return mergeFrom((org.apache.omid.proto.TSOProto.HandshakeRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.omid.proto.TSOProto.HandshakeRequest other) { if (other == org.apache.omid.proto.TSOProto.HandshakeRequest.getDefaultInstance()) return this; if (other.hasClientCapabilities()) { mergeClientCapabilities(other.getClientCapabilities()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.omid.proto.TSOProto.HandshakeRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.omid.proto.TSOProto.HandshakeRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .Capabilities clientCapabilities = 1; private org.apache.omid.proto.TSOProto.Capabilities clientCapabilities_ = org.apache.omid.proto.TSOProto.Capabilities.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.omid.proto.TSOProto.Capabilities, org.apache.omid.proto.TSOProto.Capabilities.Builder, org.apache.omid.proto.TSOProto.CapabilitiesOrBuilder> clientCapabilitiesBuilder_; /** * optional .Capabilities clientCapabilities = 1; */ public boolean hasClientCapabilities() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .Capabilities clientCapabilities = 1; */ public org.apache.omid.proto.TSOProto.Capabilities getClientCapabilities() { if (clientCapabilitiesBuilder_ == null) { return clientCapabilities_; } else { return clientCapabilitiesBuilder_.getMessage(); } } /** * optional .Capabilities clientCapabilities = 1; */ public Builder setClientCapabilities(org.apache.omid.proto.TSOProto.Capabilities value) { if (clientCapabilitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientCapabilities_ = value; onChanged(); } else { clientCapabilitiesBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .Capabilities clientCapabilities = 1; */ public Builder setClientCapabilities( org.apache.omid.proto.TSOProto.Capabilities.Builder builderForValue) { if (clientCapabilitiesBuilder_ == null) { clientCapabilities_ = builderForValue.build(); onChanged(); } else { clientCapabilitiesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .Capabilities clientCapabilities = 1; */ public Builder mergeClientCapabilities(org.apache.omid.proto.TSOProto.Capabilities value) { if (clientCapabilitiesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && clientCapabilities_ != org.apache.omid.proto.TSOProto.Capabilities.getDefaultInstance()) { clientCapabilities_ = org.apache.omid.proto.TSOProto.Capabilities.newBuilder(clientCapabilities_).mergeFrom(value).buildPartial(); } else { clientCapabilities_ = value; } onChanged(); } else { clientCapabilitiesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .Capabilities clientCapabilities = 1; */ public Builder clearClientCapabilities() { if (clientCapabilitiesBuilder_ == null) { clientCapabilities_ = org.apache.omid.proto.TSOProto.Capabilities.getDefaultInstance(); onChanged(); } else { clientCapabilitiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .Capabilities clientCapabilities = 1; */ public org.apache.omid.proto.TSOProto.Capabilities.Builder getClientCapabilitiesBuilder() { bitField0_ |= 0x00000001; onChanged(); return getClientCapabilitiesFieldBuilder().getBuilder(); } /** * optional .Capabilities clientCapabilities = 1; */ public org.apache.omid.proto.TSOProto.CapabilitiesOrBuilder getClientCapabilitiesOrBuilder() { if (clientCapabilitiesBuilder_ != null) { return clientCapabilitiesBuilder_.getMessageOrBuilder(); } else { return clientCapabilities_; } } /** * optional .Capabilities clientCapabilities = 1; */ private com.google.protobuf.SingleFieldBuilder< org.apache.omid.proto.TSOProto.Capabilities, org.apache.omid.proto.TSOProto.Capabilities.Builder, org.apache.omid.proto.TSOProto.CapabilitiesOrBuilder> getClientCapabilitiesFieldBuilder() { if (clientCapabilitiesBuilder_ == null) { clientCapabilitiesBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.omid.proto.TSOProto.Capabilities, org.apache.omid.proto.TSOProto.Capabilities.Builder, org.apache.omid.proto.TSOProto.CapabilitiesOrBuilder>( clientCapabilities_, getParentForChildren(), isClean()); clientCapabilities_ = null; } return clientCapabilitiesBuilder_; } // @@protoc_insertion_point(builder_scope:HandshakeRequest) } static { defaultInstance = new HandshakeRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:HandshakeRequest) } public interface HandshakeResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional bool clientCompatible = 1; /** * optional bool clientCompatible = 1; */ boolean hasClientCompatible(); /** * optional bool clientCompatible = 1; */ boolean getClientCompatible(); // optional .Capabilities serverCapabilities = 2; /** * optional .Capabilities serverCapabilities = 2; */ boolean hasServerCapabilities(); /** * optional .Capabilities serverCapabilities = 2; */ org.apache.omid.proto.TSOProto.Capabilities getServerCapabilities(); /** * optional .Capabilities serverCapabilities = 2; */ org.apache.omid.proto.TSOProto.CapabilitiesOrBuilder getServerCapabilitiesOrBuilder(); // optional bool lowLatency = 3 [default = false]; /** * optional bool lowLatency = 3 [default = false]; */ boolean hasLowLatency(); /** * optional bool lowLatency = 3 [default = false]; */ boolean getLowLatency(); } /** * Protobuf type {@code HandshakeResponse} */ public static final class HandshakeResponse extends com.google.protobuf.GeneratedMessage implements HandshakeResponseOrBuilder { // Use HandshakeResponse.newBuilder() to construct. private HandshakeResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private HandshakeResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final HandshakeResponse defaultInstance; public static HandshakeResponse getDefaultInstance() { return defaultInstance; } public HandshakeResponse getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HandshakeResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; clientCompatible_ = input.readBool(); break; } case 18: { org.apache.omid.proto.TSOProto.Capabilities.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = serverCapabilities_.toBuilder(); } serverCapabilities_ = input.readMessage(org.apache.omid.proto.TSOProto.Capabilities.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(serverCapabilities_); serverCapabilities_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 24: { bitField0_ |= 0x00000004; lowLatency_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.omid.proto.TSOProto.internal_static_HandshakeResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.omid.proto.TSOProto.internal_static_HandshakeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.omid.proto.TSOProto.HandshakeResponse.class, org.apache.omid.proto.TSOProto.HandshakeResponse.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public HandshakeResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HandshakeResponse(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional bool clientCompatible = 1; public static final int CLIENTCOMPATIBLE_FIELD_NUMBER = 1; private boolean clientCompatible_; /** * optional bool clientCompatible = 1; */ public boolean hasClientCompatible() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bool clientCompatible = 1; */ public boolean getClientCompatible() { return clientCompatible_; } // optional .Capabilities serverCapabilities = 2; public static final int SERVERCAPABILITIES_FIELD_NUMBER = 2; private org.apache.omid.proto.TSOProto.Capabilities serverCapabilities_; /** * optional .Capabilities serverCapabilities = 2; */ public boolean hasServerCapabilities() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .Capabilities serverCapabilities = 2; */ public org.apache.omid.proto.TSOProto.Capabilities getServerCapabilities() { return serverCapabilities_; } /** * optional .Capabilities serverCapabilities = 2; */ public org.apache.omid.proto.TSOProto.CapabilitiesOrBuilder getServerCapabilitiesOrBuilder() { return serverCapabilities_; } // optional bool lowLatency = 3 [default = false]; public static final int LOWLATENCY_FIELD_NUMBER = 3; private boolean lowLatency_; /** * optional bool lowLatency = 3 [default = false]; */ public boolean hasLowLatency() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bool lowLatency = 3 [default = false]; */ public boolean getLowLatency() { return lowLatency_; } private void initFields() { clientCompatible_ = false; serverCapabilities_ = org.apache.omid.proto.TSOProto.Capabilities.getDefaultInstance(); lowLatency_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBool(1, clientCompatible_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, serverCapabilities_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, lowLatency_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, clientCompatible_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, serverCapabilities_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, lowLatency_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.omid.proto.TSOProto.HandshakeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.omid.proto.TSOProto.HandshakeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.omid.proto.TSOProto.HandshakeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.omid.proto.TSOProto.HandshakeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.omid.proto.TSOProto.HandshakeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.omid.proto.TSOProto.HandshakeResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.omid.proto.TSOProto.HandshakeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.omid.proto.TSOProto.HandshakeResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.omid.proto.TSOProto.HandshakeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.omid.proto.TSOProto.HandshakeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.omid.proto.TSOProto.HandshakeResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code HandshakeResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.omid.proto.TSOProto.HandshakeResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.omid.proto.TSOProto.internal_static_HandshakeResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.omid.proto.TSOProto.internal_static_HandshakeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.omid.proto.TSOProto.HandshakeResponse.class, org.apache.omid.proto.TSOProto.HandshakeResponse.Builder.class); } // Construct using org.apache.omid.proto.TSOProto.HandshakeResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getServerCapabilitiesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); clientCompatible_ = false; bitField0_ = (bitField0_ & ~0x00000001); if (serverCapabilitiesBuilder_ == null) { serverCapabilities_ = org.apache.omid.proto.TSOProto.Capabilities.getDefaultInstance(); } else { serverCapabilitiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); lowLatency_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.omid.proto.TSOProto.internal_static_HandshakeResponse_descriptor; } public org.apache.omid.proto.TSOProto.HandshakeResponse getDefaultInstanceForType() { return org.apache.omid.proto.TSOProto.HandshakeResponse.getDefaultInstance(); } public org.apache.omid.proto.TSOProto.HandshakeResponse build() { org.apache.omid.proto.TSOProto.HandshakeResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.omid.proto.TSOProto.HandshakeResponse buildPartial() { org.apache.omid.proto.TSOProto.HandshakeResponse result = new org.apache.omid.proto.TSOProto.HandshakeResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.clientCompatible_ = clientCompatible_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (serverCapabilitiesBuilder_ == null) { result.serverCapabilities_ = serverCapabilities_; } else { result.serverCapabilities_ = serverCapabilitiesBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.lowLatency_ = lowLatency_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.omid.proto.TSOProto.HandshakeResponse) { return mergeFrom((org.apache.omid.proto.TSOProto.HandshakeResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.omid.proto.TSOProto.HandshakeResponse other) { if (other == org.apache.omid.proto.TSOProto.HandshakeResponse.getDefaultInstance()) return this; if (other.hasClientCompatible()) { setClientCompatible(other.getClientCompatible()); } if (other.hasServerCapabilities()) { mergeServerCapabilities(other.getServerCapabilities()); } if (other.hasLowLatency()) { setLowLatency(other.getLowLatency()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.omid.proto.TSOProto.HandshakeResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.omid.proto.TSOProto.HandshakeResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional bool clientCompatible = 1; private boolean clientCompatible_ ; /** * optional bool clientCompatible = 1; */ public boolean hasClientCompatible() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bool clientCompatible = 1; */ public boolean getClientCompatible() { return clientCompatible_; } /** * optional bool clientCompatible = 1; */ public Builder setClientCompatible(boolean value) { bitField0_ |= 0x00000001; clientCompatible_ = value; onChanged(); return this; } /** * optional bool clientCompatible = 1; */ public Builder clearClientCompatible() { bitField0_ = (bitField0_ & ~0x00000001); clientCompatible_ = false; onChanged(); return this; } // optional .Capabilities serverCapabilities = 2; private org.apache.omid.proto.TSOProto.Capabilities serverCapabilities_ = org.apache.omid.proto.TSOProto.Capabilities.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.omid.proto.TSOProto.Capabilities, org.apache.omid.proto.TSOProto.Capabilities.Builder, org.apache.omid.proto.TSOProto.CapabilitiesOrBuilder> serverCapabilitiesBuilder_; /** * optional .Capabilities serverCapabilities = 2; */ public boolean hasServerCapabilities() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .Capabilities serverCapabilities = 2; */ public org.apache.omid.proto.TSOProto.Capabilities getServerCapabilities() { if (serverCapabilitiesBuilder_ == null) { return serverCapabilities_; } else { return serverCapabilitiesBuilder_.getMessage(); } } /** * optional .Capabilities serverCapabilities = 2; */ public Builder setServerCapabilities(org.apache.omid.proto.TSOProto.Capabilities value) { if (serverCapabilitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverCapabilities_ = value; onChanged(); } else { serverCapabilitiesBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .Capabilities serverCapabilities = 2; */ public Builder setServerCapabilities( org.apache.omid.proto.TSOProto.Capabilities.Builder builderForValue) { if (serverCapabilitiesBuilder_ == null) { serverCapabilities_ = builderForValue.build(); onChanged(); } else { serverCapabilitiesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .Capabilities serverCapabilities = 2; */ public Builder mergeServerCapabilities(org.apache.omid.proto.TSOProto.Capabilities value) { if (serverCapabilitiesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && serverCapabilities_ != org.apache.omid.proto.TSOProto.Capabilities.getDefaultInstance()) { serverCapabilities_ = org.apache.omid.proto.TSOProto.Capabilities.newBuilder(serverCapabilities_).mergeFrom(value).buildPartial(); } else { serverCapabilities_ = value; } onChanged(); } else { serverCapabilitiesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .Capabilities serverCapabilities = 2; */ public Builder clearServerCapabilities() { if (serverCapabilitiesBuilder_ == null) { serverCapabilities_ = org.apache.omid.proto.TSOProto.Capabilities.getDefaultInstance(); onChanged(); } else { serverCapabilitiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .Capabilities serverCapabilities = 2; */ public org.apache.omid.proto.TSOProto.Capabilities.Builder getServerCapabilitiesBuilder() { bitField0_ |= 0x00000002; onChanged(); return getServerCapabilitiesFieldBuilder().getBuilder(); } /** * optional .Capabilities serverCapabilities = 2; */ public org.apache.omid.proto.TSOProto.CapabilitiesOrBuilder getServerCapabilitiesOrBuilder() { if (serverCapabilitiesBuilder_ != null) { return serverCapabilitiesBuilder_.getMessageOrBuilder(); } else { return serverCapabilities_; } } /** * optional .Capabilities serverCapabilities = 2; */ private com.google.protobuf.SingleFieldBuilder< org.apache.omid.proto.TSOProto.Capabilities, org.apache.omid.proto.TSOProto.Capabilities.Builder, org.apache.omid.proto.TSOProto.CapabilitiesOrBuilder> getServerCapabilitiesFieldBuilder() { if (serverCapabilitiesBuilder_ == null) { serverCapabilitiesBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.omid.proto.TSOProto.Capabilities, org.apache.omid.proto.TSOProto.Capabilities.Builder, org.apache.omid.proto.TSOProto.CapabilitiesOrBuilder>( serverCapabilities_, getParentForChildren(), isClean()); serverCapabilities_ = null; } return serverCapabilitiesBuilder_; } // optional bool lowLatency = 3 [default = false]; private boolean lowLatency_ ; /** * optional bool lowLatency = 3 [default = false]; */ public boolean hasLowLatency() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bool lowLatency = 3 [default = false]; */ public boolean getLowLatency() { return lowLatency_; } /** * optional bool lowLatency = 3 [default = false]; */ public Builder setLowLatency(boolean value) { bitField0_ |= 0x00000004; lowLatency_ = value; onChanged(); return this; } /** * optional bool lowLatency = 3 [default = false]; */ public Builder clearLowLatency() { bitField0_ = (bitField0_ & ~0x00000004); lowLatency_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:HandshakeResponse) } static { defaultInstance = new HandshakeResponse(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:HandshakeResponse) } public interface TransactionOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 timestamp = 1; /** * optional int64 timestamp = 1; */ boolean hasTimestamp(); /** * optional int64 timestamp = 1; */ long getTimestamp(); // optional int64 readTimestamp = 2; /** * optional int64 readTimestamp = 2; */ boolean hasReadTimestamp(); /** * optional int64 readTimestamp = 2; */ long getReadTimestamp(); // optional int32 visibilityLevel = 3; /** * optional int32 visibilityLevel = 3; */ boolean hasVisibilityLevel(); /** * optional int32 visibilityLevel = 3; */ int getVisibilityLevel(); // optional int64 epoch = 4; /** * optional int64 epoch = 4; */ boolean hasEpoch(); /** * optional int64 epoch = 4; */ long getEpoch(); } /** * Protobuf type {@code Transaction} */ public static final class Transaction extends com.google.protobuf.GeneratedMessage implements TransactionOrBuilder { // Use Transaction.newBuilder() to construct. private Transaction(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Transaction(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Transaction defaultInstance; public static Transaction getDefaultInstance() { return defaultInstance; } public Transaction getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Transaction( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; timestamp_ = input.readInt64(); break; } case 16: { bitField0_ |= 0x00000002; readTimestamp_ = input.readInt64(); break; } case 24: { bitField0_ |= 0x00000004; visibilityLevel_ = input.readInt32(); break; } case 32: { bitField0_ |= 0x00000008; epoch_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.omid.proto.TSOProto.internal_static_Transaction_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.omid.proto.TSOProto.internal_static_Transaction_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.omid.proto.TSOProto.Transaction.class, org.apache.omid.proto.TSOProto.Transaction.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Transaction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Transaction(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional int64 timestamp = 1; public static final int TIMESTAMP_FIELD_NUMBER = 1; private long timestamp_; /** * optional int64 timestamp = 1; */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 timestamp = 1; */ public long getTimestamp() { return timestamp_; } // optional int64 readTimestamp = 2; public static final int READTIMESTAMP_FIELD_NUMBER = 2; private long readTimestamp_; /** * optional int64 readTimestamp = 2; */ public boolean hasReadTimestamp() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 readTimestamp = 2; */ public long getReadTimestamp() { return readTimestamp_; } // optional int32 visibilityLevel = 3; public static final int VISIBILITYLEVEL_FIELD_NUMBER = 3; private int visibilityLevel_; /** * optional int32 visibilityLevel = 3; */ public boolean hasVisibilityLevel() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 visibilityLevel = 3; */ public int getVisibilityLevel() { return visibilityLevel_; } // optional int64 epoch = 4; public static final int EPOCH_FIELD_NUMBER = 4; private long epoch_; /** * optional int64 epoch = 4; */ public boolean hasEpoch() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 epoch = 4; */ public long getEpoch() { return epoch_; } private void initFields() { timestamp_ = 0L; readTimestamp_ = 0L; visibilityLevel_ = 0; epoch_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, timestamp_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, readTimestamp_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, visibilityLevel_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(4, epoch_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, timestamp_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, readTimestamp_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, visibilityLevel_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, epoch_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.omid.proto.TSOProto.Transaction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.omid.proto.TSOProto.Transaction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.omid.proto.TSOProto.Transaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.omid.proto.TSOProto.Transaction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.omid.proto.TSOProto.Transaction parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.omid.proto.TSOProto.Transaction parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.omid.proto.TSOProto.Transaction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.omid.proto.TSOProto.Transaction parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.omid.proto.TSOProto.Transaction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.omid.proto.TSOProto.Transaction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.omid.proto.TSOProto.Transaction prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code Transaction} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.omid.proto.TSOProto.TransactionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.omid.proto.TSOProto.internal_static_Transaction_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.omid.proto.TSOProto.internal_static_Transaction_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.omid.proto.TSOProto.Transaction.class, org.apache.omid.proto.TSOProto.Transaction.Builder.class); } // Construct using org.apache.omid.proto.TSOProto.Transaction.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); timestamp_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); readTimestamp_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); visibilityLevel_ = 0; bitField0_ = (bitField0_ & ~0x00000004); epoch_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.omid.proto.TSOProto.internal_static_Transaction_descriptor; } public org.apache.omid.proto.TSOProto.Transaction getDefaultInstanceForType() { return org.apache.omid.proto.TSOProto.Transaction.getDefaultInstance(); } public org.apache.omid.proto.TSOProto.Transaction build() { org.apache.omid.proto.TSOProto.Transaction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.omid.proto.TSOProto.Transaction buildPartial() { org.apache.omid.proto.TSOProto.Transaction result = new org.apache.omid.proto.TSOProto.Transaction(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.timestamp_ = timestamp_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.readTimestamp_ = readTimestamp_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.visibilityLevel_ = visibilityLevel_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.epoch_ = epoch_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.omid.proto.TSOProto.Transaction) { return mergeFrom((org.apache.omid.proto.TSOProto.Transaction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.omid.proto.TSOProto.Transaction other) { if (other == org.apache.omid.proto.TSOProto.Transaction.getDefaultInstance()) return this; if (other.hasTimestamp()) { setTimestamp(other.getTimestamp()); } if (other.hasReadTimestamp()) { setReadTimestamp(other.getReadTimestamp()); } if (other.hasVisibilityLevel()) { setVisibilityLevel(other.getVisibilityLevel()); } if (other.hasEpoch()) { setEpoch(other.getEpoch()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.omid.proto.TSOProto.Transaction parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.omid.proto.TSOProto.Transaction) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 timestamp = 1; private long timestamp_ ; /** * optional int64 timestamp = 1; */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 timestamp = 1; */ public long getTimestamp() { return timestamp_; } /** * optional int64 timestamp = 1; */ public Builder setTimestamp(long value) { bitField0_ |= 0x00000001; timestamp_ = value; onChanged(); return this; } /** * optional int64 timestamp = 1; */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000001); timestamp_ = 0L; onChanged(); return this; } // optional int64 readTimestamp = 2; private long readTimestamp_ ; /** * optional int64 readTimestamp = 2; */ public boolean hasReadTimestamp() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 readTimestamp = 2; */ public long getReadTimestamp() { return readTimestamp_; } /** * optional int64 readTimestamp = 2; */ public Builder setReadTimestamp(long value) { bitField0_ |= 0x00000002; readTimestamp_ = value; onChanged(); return this; } /** * optional int64 readTimestamp = 2; */ public Builder clearReadTimestamp() { bitField0_ = (bitField0_ & ~0x00000002); readTimestamp_ = 0L; onChanged(); return this; } // optional int32 visibilityLevel = 3; private int visibilityLevel_ ; /** * optional int32 visibilityLevel = 3; */ public boolean hasVisibilityLevel() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 visibilityLevel = 3; */ public int getVisibilityLevel() { return visibilityLevel_; } /** * optional int32 visibilityLevel = 3; */ public Builder setVisibilityLevel(int value) { bitField0_ |= 0x00000004; visibilityLevel_ = value; onChanged(); return this; } /** * optional int32 visibilityLevel = 3; */ public Builder clearVisibilityLevel() { bitField0_ = (bitField0_ & ~0x00000004); visibilityLevel_ = 0; onChanged(); return this; } // optional int64 epoch = 4; private long epoch_ ; /** * optional int64 epoch = 4; */ public boolean hasEpoch() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 epoch = 4; */ public long getEpoch() { return epoch_; } /** * optional int64 epoch = 4; */ public Builder setEpoch(long value) { bitField0_ |= 0x00000008; epoch_ = value; onChanged(); return this; } /** * optional int64 epoch = 4; */ public Builder clearEpoch() { bitField0_ = (bitField0_ & ~0x00000008); epoch_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:Transaction) } static { defaultInstance = new Transaction(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:Transaction) } private static com.google.protobuf.Descriptors.Descriptor internal_static_Request_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Request_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_TimestampRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_TimestampRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_CommitRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_CommitRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_FenceRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_FenceRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_Response_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Response_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_TimestampResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_TimestampResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_FenceResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_FenceResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_CommitResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_CommitResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_Capabilities_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Capabilities_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_HandshakeRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_HandshakeRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_HandshakeResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_HandshakeResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_Transaction_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Transaction_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\016TSOProto.proto\"\257\001\n\007Request\022+\n\020timestam" + "pRequest\030\001 \001(\0132\021.TimestampRequest\022%\n\rcom" + "mitRequest\030\002 \001(\0132\016.CommitRequest\022+\n\020hand" + "shakeRequest\030\003 \001(\0132\021.HandshakeRequest\022#\n" + "\014fenceRequest\030\004 \001(\0132\r.FenceRequest\"\022\n\020Ti" + "mestampRequest\"`\n\rCommitRequest\022\026\n\016start" + "Timestamp\030\001 \001(\003\022\026\n\007isRetry\030\002 \001(\010:\005false\022" + "\016\n\006cellId\030\003 \003(\003\022\017\n\007TableId\030\004 \003(\003\"\037\n\014Fenc" + "eRequest\022\017\n\007TableId\030\001 \001(\003\"\270\001\n\010Response\022-" + "\n\021timestampResponse\030\001 \001(\0132\022.TimestampRes", "ponse\022\'\n\016commitResponse\030\002 \001(\0132\017.CommitRe" + "sponse\022-\n\021handshakeResponse\030\003 \001(\0132\022.Hand" + "shakeResponse\022%\n\rfenceResponse\030\004 \001(\0132\016.F" + "enceResponse\"+\n\021TimestampResponse\022\026\n\016sta" + "rtTimestamp\030\001 \001(\003\"1\n\rFenceResponse\022\017\n\007Ta" + "bleId\030\001 \001(\003\022\017\n\007FenceId\030\002 \001(\003\"R\n\016CommitRe" + "sponse\022\017\n\007aborted\030\001 \001(\010\022\026\n\016startTimestam" + "p\030\002 \001(\003\022\027\n\017commitTimestamp\030\003 \001(\003\"\016\n\014Capa" + "bilities\"=\n\020HandshakeRequest\022)\n\022clientCa" + "pabilities\030\001 \001(\0132\r.Capabilities\"s\n\021Hands", "hakeResponse\022\030\n\020clientCompatible\030\001 \001(\010\022)" + "\n\022serverCapabilities\030\002 \001(\0132\r.Capabilitie" + "s\022\031\n\nlowLatency\030\003 \001(\010:\005false\"_\n\013Transact" + "ion\022\021\n\ttimestamp\030\001 \001(\003\022\025\n\rreadTimestamp\030" + "\002 \001(\003\022\027\n\017visibilityLevel\030\003 \001(\005\022\r\n\005epoch\030" + "\004 \001(\003B\031\n\025org.apache.omid.protoH\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; internal_static_Request_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Request_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Request_descriptor, new java.lang.String[] { "TimestampRequest", "CommitRequest", "HandshakeRequest", "FenceRequest", }); internal_static_TimestampRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_TimestampRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_TimestampRequest_descriptor, new java.lang.String[] { }); internal_static_CommitRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_CommitRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_CommitRequest_descriptor, new java.lang.String[] { "StartTimestamp", "IsRetry", "CellId", "TableId", }); internal_static_FenceRequest_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_FenceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_FenceRequest_descriptor, new java.lang.String[] { "TableId", }); internal_static_Response_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_Response_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Response_descriptor, new java.lang.String[] { "TimestampResponse", "CommitResponse", "HandshakeResponse", "FenceResponse", }); internal_static_TimestampResponse_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_TimestampResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_TimestampResponse_descriptor, new java.lang.String[] { "StartTimestamp", }); internal_static_FenceResponse_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_FenceResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_FenceResponse_descriptor, new java.lang.String[] { "TableId", "FenceId", }); internal_static_CommitResponse_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_CommitResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_CommitResponse_descriptor, new java.lang.String[] { "Aborted", "StartTimestamp", "CommitTimestamp", }); internal_static_Capabilities_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_Capabilities_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Capabilities_descriptor, new java.lang.String[] { }); internal_static_HandshakeRequest_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_HandshakeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_HandshakeRequest_descriptor, new java.lang.String[] { "ClientCapabilities", }); internal_static_HandshakeResponse_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_HandshakeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_HandshakeResponse_descriptor, new java.lang.String[] { "ClientCompatible", "ServerCapabilities", "LowLatency", }); internal_static_Transaction_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_Transaction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Transaction_descriptor, new java.lang.String[] { "Timestamp", "ReadTimestamp", "VisibilityLevel", "Epoch", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy