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();
  }
  /**
   * 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;
            }
          }
        }
      } 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_;
    }

    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();
    }
    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_);
      }
      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_);
      }
      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();
        }
      }
      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);
        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();
        }
        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());
        }
        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_;
      }

      // @@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);
  }
  /**
   * 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;
            }
          }
        }
      } 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_);
        }
        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);
    }

    private void initFields() {
      startTimestamp_ = 0L;
      isRetry_ = false;
      cellId_ = 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));
      }
      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();
      }
      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);
        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_;
        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();
        }
        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;
      }

      // @@protoc_insertion_point(builder_scope:CommitRequest)
    }

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

    // @@protoc_insertion_point(class_scope:CommitRequest)
  }

  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();
  }
  /**
   * 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;
            }
          }
        }
      } 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_;
    }

    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();
    }
    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_);
      }
      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_);
      }
      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();
        }
      }
      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);
        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();
        }
        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());
        }
        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_;
      }

      // @@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 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(); } /** * 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; } } } } 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_; } private void initFields() { clientCompatible_ = false; serverCapabilities_ = 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.writeBool(1, clientCompatible_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, serverCapabilities_); } 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_); } 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); 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(); } 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()); } 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_; } // @@protoc_insertion_point(builder_scope:HandshakeResponse) } static { defaultInstance = new HandshakeResponse(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:HandshakeResponse) } 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_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_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; 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\"\212\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" + "\020TimestampRequest\"O\n\rCommitRequest\022\026\n\016st" + "artTimestamp\030\001 \001(\003\022\026\n\007isRetry\030\002 \001(\010:\005fal" + "se\022\016\n\006cellId\030\003 \003(\003\"\221\001\n\010Response\022-\n\021times" + "tampResponse\030\001 \001(\0132\022.TimestampResponse\022\'" + "\n\016commitResponse\030\002 \001(\0132\017.CommitResponse\022" + "-\n\021handshakeResponse\030\003 \001(\0132\022.HandshakeRe", "sponse\"+\n\021TimestampResponse\022\026\n\016startTime" + "stamp\030\001 \001(\003\"R\n\016CommitResponse\022\017\n\007aborted" + "\030\001 \001(\010\022\026\n\016startTimestamp\030\002 \001(\003\022\027\n\017commit" + "Timestamp\030\003 \001(\003\"\016\n\014Capabilities\"=\n\020Hands" + "hakeRequest\022)\n\022clientCapabilities\030\001 \001(\0132" + "\r.Capabilities\"X\n\021HandshakeResponse\022\030\n\020c" + "lientCompatible\030\001 \001(\010\022)\n\022serverCapabilit" + "ies\030\002 \001(\0132\r.CapabilitiesB\031\n\025org.apache.o" + "mid.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", }); 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", }); internal_static_Response_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_Response_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Response_descriptor, new java.lang.String[] { "TimestampResponse", "CommitResponse", "HandshakeResponse", }); internal_static_TimestampResponse_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_TimestampResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_TimestampResponse_descriptor, new java.lang.String[] { "StartTimestamp", }); internal_static_CommitResponse_descriptor = getDescriptor().getMessageTypes().get(5); 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(6); 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(7); 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(8); internal_static_HandshakeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_HandshakeResponse_descriptor, new java.lang.String[] { "ClientCompatible", "ServerCapabilities", }); 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