/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: org/waveprotocol/box/common/comms/waveclient-rpc.proto

package org.waveprotocol.box.common.comms;

public final class WaveClientRpc {
  private WaveClientRpc() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public static final class ProtocolAuthenticate extends
      com.google.protobuf.GeneratedMessage {
    // Use ProtocolAuthenticate.newBuilder() to construct.
    private ProtocolAuthenticate() {
      initFields();
    }
    private ProtocolAuthenticate(boolean noInit) {}
    
    private static final ProtocolAuthenticate defaultInstance;
    public static ProtocolAuthenticate getDefaultInstance() {
      return defaultInstance;
    }
    
    public ProtocolAuthenticate getDefaultInstanceForType() {
      return defaultInstance;
    }
    
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolAuthenticate_descriptor;
    }
    
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolAuthenticate_fieldAccessorTable;
    }
    
    // required string token = 1;
    public static final int TOKEN_FIELD_NUMBER = 1;
    private boolean hasToken;
    private java.lang.String token_ = "";
    public boolean hasToken() { return hasToken; }
    public java.lang.String getToken() { return token_; }
    
    private void initFields() {
    }
    public final boolean isInitialized() {
      if (!hasToken) return false;
      return true;
    }
    
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (hasToken()) {
        output.writeString(1, getToken());
      }
      getUnknownFields().writeTo(output);
    }
    
    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;
    
      size = 0;
      if (hasToken()) {
        size += com.google.protobuf.CodedOutputStream
          .computeStringSize(1, getToken());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }
    
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    
    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }
    
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder> {
      private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate result;
      
      // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.newBuilder()
      private Builder() {}
      
      private static Builder create() {
        Builder builder = new Builder();
        builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate();
        return builder;
      }
      
      protected org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate internalGetResult() {
        return result;
      }
      
      public Builder clear() {
        if (result == null) {
          throw new IllegalStateException(
            "Cannot call clear() after build().");
        }
        result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate();
        return this;
      }
      
      public Builder clone() {
        return create().mergeFrom(result);
      }
      
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.getDescriptor();
      }
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate getDefaultInstanceForType() {
        return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.getDefaultInstance();
      }
      
      public boolean isInitialized() {
        return result.isInitialized();
      }
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate build() {
        if (result != null && !isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return buildPartial();
      }
      
      private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        if (!isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return buildPartial();
      }
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate buildPartial() {
        if (result == null) {
          throw new IllegalStateException(
            "build() has already been called on this Builder.");
        }
        org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate returnMe = result;
        result = null;
        return returnMe;
      }
      
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate) {
          return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      
      public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate other) {
        if (other == org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.getDefaultInstance()) return this;
        if (other.hasToken()) {
          setToken(other.getToken());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }
      
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder(
            this.getUnknownFields());
        while (true) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              this.setUnknownFields(unknownFields.build());
              return this;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                this.setUnknownFields(unknownFields.build());
                return this;
              }
              break;
            }
            case 10: {
              setToken(input.readString());
              break;
            }
          }
        }
      }
      
      
      // required string token = 1;
      public boolean hasToken() {
        return result.hasToken();
      }
      public java.lang.String getToken() {
        return result.getToken();
      }
      public Builder setToken(java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.hasToken = true;
        result.token_ = value;
        return this;
      }
      public Builder clearToken() {
        result.hasToken = false;
        result.token_ = getDefaultInstance().getToken();
        return this;
      }
      
      // @@protoc_insertion_point(builder_scope:waveserver.ProtocolAuthenticate)
    }
    
    static {
      defaultInstance = new ProtocolAuthenticate(true);
      org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
      defaultInstance.initFields();
    }
    
    // @@protoc_insertion_point(class_scope:waveserver.ProtocolAuthenticate)
  }
  
  public static final class ProtocolAuthenticationResult extends
      com.google.protobuf.GeneratedMessage {
    // Use ProtocolAuthenticationResult.newBuilder() to construct.
    private ProtocolAuthenticationResult() {
      initFields();
    }
    private ProtocolAuthenticationResult(boolean noInit) {}
    
    private static final ProtocolAuthenticationResult defaultInstance;
    public static ProtocolAuthenticationResult getDefaultInstance() {
      return defaultInstance;
    }
    
    public ProtocolAuthenticationResult getDefaultInstanceForType() {
      return defaultInstance;
    }
    
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolAuthenticationResult_descriptor;
    }
    
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolAuthenticationResult_fieldAccessorTable;
    }
    
    private void initFields() {
    }
    public final boolean isInitialized() {
      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;
    }
    
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    
    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }
    
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder> {
      private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult result;
      
      // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.newBuilder()
      private Builder() {}
      
      private static Builder create() {
        Builder builder = new Builder();
        builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult();
        return builder;
      }
      
      protected org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult internalGetResult() {
        return result;
      }
      
      public Builder clear() {
        if (result == null) {
          throw new IllegalStateException(
            "Cannot call clear() after build().");
        }
        result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult();
        return this;
      }
      
      public Builder clone() {
        return create().mergeFrom(result);
      }
      
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.getDescriptor();
      }
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult getDefaultInstanceForType() {
        return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.getDefaultInstance();
      }
      
      public boolean isInitialized() {
        return result.isInitialized();
      }
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult build() {
        if (result != null && !isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return buildPartial();
      }
      
      private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        if (!isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return buildPartial();
      }
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult buildPartial() {
        if (result == null) {
          throw new IllegalStateException(
            "build() has already been called on this Builder.");
        }
        org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult returnMe = result;
        result = null;
        return returnMe;
      }
      
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult) {
          return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      
      public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult other) {
        if (other == org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.getDefaultInstance()) return this;
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }
      
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder(
            this.getUnknownFields());
        while (true) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              this.setUnknownFields(unknownFields.build());
              return this;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                this.setUnknownFields(unknownFields.build());
                return this;
              }
              break;
            }
          }
        }
      }
      
      
      // @@protoc_insertion_point(builder_scope:waveserver.ProtocolAuthenticationResult)
    }
    
    static {
      defaultInstance = new ProtocolAuthenticationResult(true);
      org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
      defaultInstance.initFields();
    }
    
    // @@protoc_insertion_point(class_scope:waveserver.ProtocolAuthenticationResult)
  }
  
  public static final class ProtocolOpenRequest extends
      com.google.protobuf.GeneratedMessage {
    // Use ProtocolOpenRequest.newBuilder() to construct.
    private ProtocolOpenRequest() {
      initFields();
    }
    private ProtocolOpenRequest(boolean noInit) {}
    
    private static final ProtocolOpenRequest defaultInstance;
    public static ProtocolOpenRequest getDefaultInstance() {
      return defaultInstance;
    }
    
    public ProtocolOpenRequest getDefaultInstanceForType() {
      return defaultInstance;
    }
    
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolOpenRequest_descriptor;
    }
    
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolOpenRequest_fieldAccessorTable;
    }
    
    // required string participant_id = 1;
    public static final int PARTICIPANT_ID_FIELD_NUMBER = 1;
    private boolean hasParticipantId;
    private java.lang.String participantId_ = "";
    public boolean hasParticipantId() { return hasParticipantId; }
    public java.lang.String getParticipantId() { return participantId_; }
    
    // required string wave_id = 2;
    public static final int WAVE_ID_FIELD_NUMBER = 2;
    private boolean hasWaveId;
    private java.lang.String waveId_ = "";
    public boolean hasWaveId() { return hasWaveId; }
    public java.lang.String getWaveId() { return waveId_; }
    
    // repeated string wavelet_id_prefix = 3;
    public static final int WAVELET_ID_PREFIX_FIELD_NUMBER = 3;
    private java.util.List<java.lang.String> waveletIdPrefix_ =
      java.util.Collections.emptyList();
    public java.util.List<java.lang.String> getWaveletIdPrefixList() {
      return waveletIdPrefix_;
    }
    public int getWaveletIdPrefixCount() { return waveletIdPrefix_.size(); }
    public java.lang.String getWaveletIdPrefix(int index) {
      return waveletIdPrefix_.get(index);
    }
    
    // repeated .waveserver.WaveletVersion known_wavelet = 4;
    public static final int KNOWN_WAVELET_FIELD_NUMBER = 4;
    private java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion> knownWavelet_ =
      java.util.Collections.emptyList();
    public java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion> getKnownWaveletList() {
      return knownWavelet_;
    }
    public int getKnownWaveletCount() { return knownWavelet_.size(); }
    public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion getKnownWavelet(int index) {
      return knownWavelet_.get(index);
    }
    
    private void initFields() {
    }
    public final boolean isInitialized() {
      if (!hasParticipantId) return false;
      if (!hasWaveId) return false;
      for (org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion element : getKnownWaveletList()) {
        if (!element.isInitialized()) return false;
      }
      return true;
    }
    
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (hasParticipantId()) {
        output.writeString(1, getParticipantId());
      }
      if (hasWaveId()) {
        output.writeString(2, getWaveId());
      }
      for (java.lang.String element : getWaveletIdPrefixList()) {
        output.writeString(3, element);
      }
      for (org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion element : getKnownWaveletList()) {
        output.writeMessage(4, element);
      }
      getUnknownFields().writeTo(output);
    }
    
    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;
    
      size = 0;
      if (hasParticipantId()) {
        size += com.google.protobuf.CodedOutputStream
          .computeStringSize(1, getParticipantId());
      }
      if (hasWaveId()) {
        size += com.google.protobuf.CodedOutputStream
          .computeStringSize(2, getWaveId());
      }
      {
        int dataSize = 0;
        for (java.lang.String element : getWaveletIdPrefixList()) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeStringSizeNoTag(element);
        }
        size += dataSize;
        size += 1 * getWaveletIdPrefixList().size();
      }
      for (org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion element : getKnownWaveletList()) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, element);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }
    
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    
    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }
    
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder> {
      private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest result;
      
      // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.newBuilder()
      private Builder() {}
      
      private static Builder create() {
        Builder builder = new Builder();
        builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest();
        return builder;
      }
      
      protected org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest internalGetResult() {
        return result;
      }
      
      public Builder clear() {
        if (result == null) {
          throw new IllegalStateException(
            "Cannot call clear() after build().");
        }
        result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest();
        return this;
      }
      
      public Builder clone() {
        return create().mergeFrom(result);
      }
      
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.getDescriptor();
      }
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest getDefaultInstanceForType() {
        return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.getDefaultInstance();
      }
      
      public boolean isInitialized() {
        return result.isInitialized();
      }
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest build() {
        if (result != null && !isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return buildPartial();
      }
      
      private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        if (!isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return buildPartial();
      }
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest buildPartial() {
        if (result == null) {
          throw new IllegalStateException(
            "build() has already been called on this Builder.");
        }
        if (result.waveletIdPrefix_ != java.util.Collections.EMPTY_LIST) {
          result.waveletIdPrefix_ =
            java.util.Collections.unmodifiableList(result.waveletIdPrefix_);
        }
        if (result.knownWavelet_ != java.util.Collections.EMPTY_LIST) {
          result.knownWavelet_ =
            java.util.Collections.unmodifiableList(result.knownWavelet_);
        }
        org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest returnMe = result;
        result = null;
        return returnMe;
      }
      
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest) {
          return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      
      public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest other) {
        if (other == org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.getDefaultInstance()) return this;
        if (other.hasParticipantId()) {
          setParticipantId(other.getParticipantId());
        }
        if (other.hasWaveId()) {
          setWaveId(other.getWaveId());
        }
        if (!other.waveletIdPrefix_.isEmpty()) {
          if (result.waveletIdPrefix_.isEmpty()) {
            result.waveletIdPrefix_ = new java.util.ArrayList<java.lang.String>();
          }
          result.waveletIdPrefix_.addAll(other.waveletIdPrefix_);
        }
        if (!other.knownWavelet_.isEmpty()) {
          if (result.knownWavelet_.isEmpty()) {
            result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion>();
          }
          result.knownWavelet_.addAll(other.knownWavelet_);
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }
      
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder(
            this.getUnknownFields());
        while (true) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              this.setUnknownFields(unknownFields.build());
              return this;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                this.setUnknownFields(unknownFields.build());
                return this;
              }
              break;
            }
            case 10: {
              setParticipantId(input.readString());
              break;
            }
            case 18: {
              setWaveId(input.readString());
              break;
            }
            case 26: {
              addWaveletIdPrefix(input.readString());
              break;
            }
            case 34: {
              org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.Builder subBuilder = org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.newBuilder();
              input.readMessage(subBuilder, extensionRegistry);
              addKnownWavelet(subBuilder.buildPartial());
              break;
            }
          }
        }
      }
      
      
      // required string participant_id = 1;
      public boolean hasParticipantId() {
        return result.hasParticipantId();
      }
      public java.lang.String getParticipantId() {
        return result.getParticipantId();
      }
      public Builder setParticipantId(java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.hasParticipantId = true;
        result.participantId_ = value;
        return this;
      }
      public Builder clearParticipantId() {
        result.hasParticipantId = false;
        result.participantId_ = getDefaultInstance().getParticipantId();
        return this;
      }
      
      // required string wave_id = 2;
      public boolean hasWaveId() {
        return result.hasWaveId();
      }
      public java.lang.String getWaveId() {
        return result.getWaveId();
      }
      public Builder setWaveId(java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.hasWaveId = true;
        result.waveId_ = value;
        return this;
      }
      public Builder clearWaveId() {
        result.hasWaveId = false;
        result.waveId_ = getDefaultInstance().getWaveId();
        return this;
      }
      
      // repeated string wavelet_id_prefix = 3;
      public java.util.List<java.lang.String> getWaveletIdPrefixList() {
        return java.util.Collections.unmodifiableList(result.waveletIdPrefix_);
      }
      public int getWaveletIdPrefixCount() {
        return result.getWaveletIdPrefixCount();
      }
      public java.lang.String getWaveletIdPrefix(int index) {
        return result.getWaveletIdPrefix(index);
      }
      public Builder setWaveletIdPrefix(int index, java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.waveletIdPrefix_.set(index, value);
        return this;
      }
      public Builder addWaveletIdPrefix(java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  if (result.waveletIdPrefix_.isEmpty()) {
          result.waveletIdPrefix_ = new java.util.ArrayList<java.lang.String>();
        }
        result.waveletIdPrefix_.add(value);
        return this;
      }
      public Builder addAllWaveletIdPrefix(
          java.lang.Iterable<? extends java.lang.String> values) {
        if (result.waveletIdPrefix_.isEmpty()) {
          result.waveletIdPrefix_ = new java.util.ArrayList<java.lang.String>();
        }
        super.addAll(values, result.waveletIdPrefix_);
        return this;
      }
      public Builder clearWaveletIdPrefix() {
        result.waveletIdPrefix_ = java.util.Collections.emptyList();
        return this;
      }
      
      // repeated .waveserver.WaveletVersion known_wavelet = 4;
      public java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion> getKnownWaveletList() {
        return java.util.Collections.unmodifiableList(result.knownWavelet_);
      }
      public int getKnownWaveletCount() {
        return result.getKnownWaveletCount();
      }
      public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion getKnownWavelet(int index) {
        return result.getKnownWavelet(index);
      }
      public Builder setKnownWavelet(int index, org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion value) {
        if (value == null) {
          throw new NullPointerException();
        }
        result.knownWavelet_.set(index, value);
        return this;
      }
      public Builder setKnownWavelet(int index, org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.Builder builderForValue) {
        result.knownWavelet_.set(index, builderForValue.build());
        return this;
      }
      public Builder addKnownWavelet(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion value) {
        if (value == null) {
          throw new NullPointerException();
        }
        if (result.knownWavelet_.isEmpty()) {
          result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion>();
        }
        result.knownWavelet_.add(value);
        return this;
      }
      public Builder addKnownWavelet(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.Builder builderForValue) {
        if (result.knownWavelet_.isEmpty()) {
          result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion>();
        }
        result.knownWavelet_.add(builderForValue.build());
        return this;
      }
      public Builder addAllKnownWavelet(
          java.lang.Iterable<? extends org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion> values) {
        if (result.knownWavelet_.isEmpty()) {
          result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion>();
        }
        super.addAll(values, result.knownWavelet_);
        return this;
      }
      public Builder clearKnownWavelet() {
        result.knownWavelet_ = java.util.Collections.emptyList();
        return this;
      }
      
      // @@protoc_insertion_point(builder_scope:waveserver.ProtocolOpenRequest)
    }
    
    static {
      defaultInstance = new ProtocolOpenRequest(true);
      org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
      defaultInstance.initFields();
    }
    
    // @@protoc_insertion_point(class_scope:waveserver.ProtocolOpenRequest)
  }
  
  public static final class WaveletVersion extends
      com.google.protobuf.GeneratedMessage {
    // Use WaveletVersion.newBuilder() to construct.
    private WaveletVersion() {
      initFields();
    }
    private WaveletVersion(boolean noInit) {}
    
    private static final WaveletVersion defaultInstance;
    public static WaveletVersion getDefaultInstance() {
      return defaultInstance;
    }
    
    public WaveletVersion getDefaultInstanceForType() {
      return defaultInstance;
    }
    
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_WaveletVersion_descriptor;
    }
    
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_WaveletVersion_fieldAccessorTable;
    }
    
    // required string wavelet_id = 1;
    public static final int WAVELET_ID_FIELD_NUMBER = 1;
    private boolean hasWaveletId;
    private java.lang.String waveletId_ = "";
    public boolean hasWaveletId() { return hasWaveletId; }
    public java.lang.String getWaveletId() { return waveletId_; }
    
    // required .federation.ProtocolHashedVersion hashed_version = 2;
    public static final int HASHED_VERSION_FIELD_NUMBER = 2;
    private boolean hasHashedVersion;
    private org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion hashedVersion_;
    public boolean hasHashedVersion() { return hasHashedVersion; }
    public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getHashedVersion() { return hashedVersion_; }
    
    private void initFields() {
      hashedVersion_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
    }
    public final boolean isInitialized() {
      if (!hasWaveletId) return false;
      if (!hasHashedVersion) return false;
      if (!getHashedVersion().isInitialized()) return false;
      return true;
    }
    
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (hasWaveletId()) {
        output.writeString(1, getWaveletId());
      }
      if (hasHashedVersion()) {
        output.writeMessage(2, getHashedVersion());
      }
      getUnknownFields().writeTo(output);
    }
    
    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;
    
      size = 0;
      if (hasWaveletId()) {
        size += com.google.protobuf.CodedOutputStream
          .computeStringSize(1, getWaveletId());
      }
      if (hasHashedVersion()) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getHashedVersion());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }
    
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    
    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }
    
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder> {
      private org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion result;
      
      // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.newBuilder()
      private Builder() {}
      
      private static Builder create() {
        Builder builder = new Builder();
        builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion();
        return builder;
      }
      
      protected org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion internalGetResult() {
        return result;
      }
      
      public Builder clear() {
        if (result == null) {
          throw new IllegalStateException(
            "Cannot call clear() after build().");
        }
        result = new org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion();
        return this;
      }
      
      public Builder clone() {
        return create().mergeFrom(result);
      }
      
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.getDescriptor();
      }
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion getDefaultInstanceForType() {
        return org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.getDefaultInstance();
      }
      
      public boolean isInitialized() {
        return result.isInitialized();
      }
      public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion build() {
        if (result != null && !isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return buildPartial();
      }
      
      private org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        if (!isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return buildPartial();
      }
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion buildPartial() {
        if (result == null) {
          throw new IllegalStateException(
            "build() has already been called on this Builder.");
        }
        org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion returnMe = result;
        result = null;
        return returnMe;
      }
      
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion) {
          return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      
      public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion other) {
        if (other == org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.getDefaultInstance()) return this;
        if (other.hasWaveletId()) {
          setWaveletId(other.getWaveletId());
        }
        if (other.hasHashedVersion()) {
          mergeHashedVersion(other.getHashedVersion());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }
      
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder(
            this.getUnknownFields());
        while (true) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              this.setUnknownFields(unknownFields.build());
              return this;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                this.setUnknownFields(unknownFields.build());
                return this;
              }
              break;
            }
            case 10: {
              setWaveletId(input.readString());
              break;
            }
            case 18: {
              org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder();
              if (hasHashedVersion()) {
                subBuilder.mergeFrom(getHashedVersion());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setHashedVersion(subBuilder.buildPartial());
              break;
            }
          }
        }
      }
      
      
      // required string wavelet_id = 1;
      public boolean hasWaveletId() {
        return result.hasWaveletId();
      }
      public java.lang.String getWaveletId() {
        return result.getWaveletId();
      }
      public Builder setWaveletId(java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.hasWaveletId = true;
        result.waveletId_ = value;
        return this;
      }
      public Builder clearWaveletId() {
        result.hasWaveletId = false;
        result.waveletId_ = getDefaultInstance().getWaveletId();
        return this;
      }
      
      // required .federation.ProtocolHashedVersion hashed_version = 2;
      public boolean hasHashedVersion() {
        return result.hasHashedVersion();
      }
      public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getHashedVersion() {
        return result.getHashedVersion();
      }
      public Builder setHashedVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
        if (value == null) {
          throw new NullPointerException();
        }
        result.hasHashedVersion = true;
        result.hashedVersion_ = value;
        return this;
      }
      public Builder setHashedVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder builderForValue) {
        result.hasHashedVersion = true;
        result.hashedVersion_ = builderForValue.build();
        return this;
      }
      public Builder mergeHashedVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
        if (result.hasHashedVersion() &&
            result.hashedVersion_ != org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance()) {
          result.hashedVersion_ =
            org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder(result.hashedVersion_).mergeFrom(value).buildPartial();
        } else {
          result.hashedVersion_ = value;
        }
        result.hasHashedVersion = true;
        return this;
      }
      public Builder clearHashedVersion() {
        result.hasHashedVersion = false;
        result.hashedVersion_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
        return this;
      }
      
      // @@protoc_insertion_point(builder_scope:waveserver.WaveletVersion)
    }
    
    static {
      defaultInstance = new WaveletVersion(true);
      org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
      defaultInstance.initFields();
    }
    
    // @@protoc_insertion_point(class_scope:waveserver.WaveletVersion)
  }
  
  public static final class DocumentSnapshot extends
      com.google.protobuf.GeneratedMessage {
    // Use DocumentSnapshot.newBuilder() to construct.
    private DocumentSnapshot() {
      initFields();
    }
    private DocumentSnapshot(boolean noInit) {}
    
    private static final DocumentSnapshot defaultInstance;
    public static DocumentSnapshot getDefaultInstance() {
      return defaultInstance;
    }
    
    public DocumentSnapshot getDefaultInstanceForType() {
      return defaultInstance;
    }
    
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_DocumentSnapshot_descriptor;
    }
    
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_DocumentSnapshot_fieldAccessorTable;
    }
    
    // required string document_id = 1;
    public static final int DOCUMENT_ID_FIELD_NUMBER = 1;
    private boolean hasDocumentId;
    private java.lang.String documentId_ = "";
    public boolean hasDocumentId() { return hasDocumentId; }
    public java.lang.String getDocumentId() { return documentId_; }
    
    // required .federation.ProtocolDocumentOperation document_operation = 2;
    public static final int DOCUMENT_OPERATION_FIELD_NUMBER = 2;
    private boolean hasDocumentOperation;
    private org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation documentOperation_;
    public boolean hasDocumentOperation() { return hasDocumentOperation; }
    public org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation getDocumentOperation() { return documentOperation_; }
    
    // required string author = 3;
    public static final int AUTHOR_FIELD_NUMBER = 3;
    private boolean hasAuthor;
    private java.lang.String author_ = "";
    public boolean hasAuthor() { return hasAuthor; }
    public java.lang.String getAuthor() { return author_; }
    
    // repeated string contributor = 4;
    public static final int CONTRIBUTOR_FIELD_NUMBER = 4;
    private java.util.List<java.lang.String> contributor_ =
      java.util.Collections.emptyList();
    public java.util.List<java.lang.String> getContributorList() {
      return contributor_;
    }
    public int getContributorCount() { return contributor_.size(); }
    public java.lang.String getContributor(int index) {
      return contributor_.get(index);
    }
    
    // required int64 last_modified_version = 5;
    public static final int LAST_MODIFIED_VERSION_FIELD_NUMBER = 5;
    private boolean hasLastModifiedVersion;
    private long lastModifiedVersion_ = 0L;
    public boolean hasLastModifiedVersion() { return hasLastModifiedVersion; }
    public long getLastModifiedVersion() { return lastModifiedVersion_; }
    
    // required int64 last_modified_time = 6;
    public static final int LAST_MODIFIED_TIME_FIELD_NUMBER = 6;
    private boolean hasLastModifiedTime;
    private long lastModifiedTime_ = 0L;
    public boolean hasLastModifiedTime() { return hasLastModifiedTime; }
    public long getLastModifiedTime() { return lastModifiedTime_; }
    
    private void initFields() {
      documentOperation_ = org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation.getDefaultInstance();
    }
    public final boolean isInitialized() {
      if (!hasDocumentId) return false;
      if (!hasDocumentOperation) return false;
      if (!hasAuthor) return false;
      if (!hasLastModifiedVersion) return false;
      if (!hasLastModifiedTime) return false;
      if (!getDocumentOperation().isInitialized()) return false;
      return true;
    }
    
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (hasDocumentId()) {
        output.writeString(1, getDocumentId());
      }
      if (hasDocumentOperation()) {
        output.writeMessage(2, getDocumentOperation());
      }
      if (hasAuthor()) {
        output.writeString(3, getAuthor());
      }
      for (java.lang.String element : getContributorList()) {
        output.writeString(4, element);
      }
      if (hasLastModifiedVersion()) {
        output.writeInt64(5, getLastModifiedVersion());
      }
      if (hasLastModifiedTime()) {
        output.writeInt64(6, getLastModifiedTime());
      }
      getUnknownFields().writeTo(output);
    }
    
    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;
    
      size = 0;
      if (hasDocumentId()) {
        size += com.google.protobuf.CodedOutputStream
          .computeStringSize(1, getDocumentId());
      }
      if (hasDocumentOperation()) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getDocumentOperation());
      }
      if (hasAuthor()) {
        size += com.google.protobuf.CodedOutputStream
          .computeStringSize(3, getAuthor());
      }
      {
        int dataSize = 0;
        for (java.lang.String element : getContributorList()) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeStringSizeNoTag(element);
        }
        size += dataSize;
        size += 1 * getContributorList().size();
      }
      if (hasLastModifiedVersion()) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(5, getLastModifiedVersion());
      }
      if (hasLastModifiedTime()) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(6, getLastModifiedTime());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }
    
    public static org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    
    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }
    
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder> {
      private org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot result;
      
      // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot.newBuilder()
      private Builder() {}
      
      private static Builder create() {
        Builder builder = new Builder();
        builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot();
        return builder;
      }
      
      protected org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot internalGetResult() {
        return result;
      }
      
      public Builder clear() {
        if (result == null) {
          throw new IllegalStateException(
            "Cannot call clear() after build().");
        }
        result = new org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot();
        return this;
      }
      
      public Builder clone() {
        return create().mergeFrom(result);
      }
      
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot.getDescriptor();
      }
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot getDefaultInstanceForType() {
        return org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot.getDefaultInstance();
      }
      
      public boolean isInitialized() {
        return result.isInitialized();
      }
      public org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot build() {
        if (result != null && !isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return buildPartial();
      }
      
      private org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        if (!isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return buildPartial();
      }
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot buildPartial() {
        if (result == null) {
          throw new IllegalStateException(
            "build() has already been called on this Builder.");
        }
        if (result.contributor_ != java.util.Collections.EMPTY_LIST) {
          result.contributor_ =
            java.util.Collections.unmodifiableList(result.contributor_);
        }
        org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot returnMe = result;
        result = null;
        return returnMe;
      }
      
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot) {
          return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      
      public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot other) {
        if (other == org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot.getDefaultInstance()) return this;
        if (other.hasDocumentId()) {
          setDocumentId(other.getDocumentId());
        }
        if (other.hasDocumentOperation()) {
          mergeDocumentOperation(other.getDocumentOperation());
        }
        if (other.hasAuthor()) {
          setAuthor(other.getAuthor());
        }
        if (!other.contributor_.isEmpty()) {
          if (result.contributor_.isEmpty()) {
            result.contributor_ = new java.util.ArrayList<java.lang.String>();
          }
          result.contributor_.addAll(other.contributor_);
        }
        if (other.hasLastModifiedVersion()) {
          setLastModifiedVersion(other.getLastModifiedVersion());
        }
        if (other.hasLastModifiedTime()) {
          setLastModifiedTime(other.getLastModifiedTime());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }
      
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder(
            this.getUnknownFields());
        while (true) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              this.setUnknownFields(unknownFields.build());
              return this;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                this.setUnknownFields(unknownFields.build());
                return this;
              }
              break;
            }
            case 10: {
              setDocumentId(input.readString());
              break;
            }
            case 18: {
              org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation.newBuilder();
              if (hasDocumentOperation()) {
                subBuilder.mergeFrom(getDocumentOperation());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setDocumentOperation(subBuilder.buildPartial());
              break;
            }
            case 26: {
              setAuthor(input.readString());
              break;
            }
            case 34: {
              addContributor(input.readString());
              break;
            }
            case 40: {
              setLastModifiedVersion(input.readInt64());
              break;
            }
            case 48: {
              setLastModifiedTime(input.readInt64());
              break;
            }
          }
        }
      }
      
      
      // required string document_id = 1;
      public boolean hasDocumentId() {
        return result.hasDocumentId();
      }
      public java.lang.String getDocumentId() {
        return result.getDocumentId();
      }
      public Builder setDocumentId(java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.hasDocumentId = true;
        result.documentId_ = value;
        return this;
      }
      public Builder clearDocumentId() {
        result.hasDocumentId = false;
        result.documentId_ = getDefaultInstance().getDocumentId();
        return this;
      }
      
      // required .federation.ProtocolDocumentOperation document_operation = 2;
      public boolean hasDocumentOperation() {
        return result.hasDocumentOperation();
      }
      public org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation getDocumentOperation() {
        return result.getDocumentOperation();
      }
      public Builder setDocumentOperation(org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation value) {
        if (value == null) {
          throw new NullPointerException();
        }
        result.hasDocumentOperation = true;
        result.documentOperation_ = value;
        return this;
      }
      public Builder setDocumentOperation(org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation.Builder builderForValue) {
        result.hasDocumentOperation = true;
        result.documentOperation_ = builderForValue.build();
        return this;
      }
      public Builder mergeDocumentOperation(org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation value) {
        if (result.hasDocumentOperation() &&
            result.documentOperation_ != org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation.getDefaultInstance()) {
          result.documentOperation_ =
            org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation.newBuilder(result.documentOperation_).mergeFrom(value).buildPartial();
        } else {
          result.documentOperation_ = value;
        }
        result.hasDocumentOperation = true;
        return this;
      }
      public Builder clearDocumentOperation() {
        result.hasDocumentOperation = false;
        result.documentOperation_ = org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation.getDefaultInstance();
        return this;
      }
      
      // required string author = 3;
      public boolean hasAuthor() {
        return result.hasAuthor();
      }
      public java.lang.String getAuthor() {
        return result.getAuthor();
      }
      public Builder setAuthor(java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.hasAuthor = true;
        result.author_ = value;
        return this;
      }
      public Builder clearAuthor() {
        result.hasAuthor = false;
        result.author_ = getDefaultInstance().getAuthor();
        return this;
      }
      
      // repeated string contributor = 4;
      public java.util.List<java.lang.String> getContributorList() {
        return java.util.Collections.unmodifiableList(result.contributor_);
      }
      public int getContributorCount() {
        return result.getContributorCount();
      }
      public java.lang.String getContributor(int index) {
        return result.getContributor(index);
      }
      public Builder setContributor(int index, java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.contributor_.set(index, value);
        return this;
      }
      public Builder addContributor(java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  if (result.contributor_.isEmpty()) {
          result.contributor_ = new java.util.ArrayList<java.lang.String>();
        }
        result.contributor_.add(value);
        return this;
      }
      public Builder addAllContributor(
          java.lang.Iterable<? extends java.lang.String> values) {
        if (result.contributor_.isEmpty()) {
          result.contributor_ = new java.util.ArrayList<java.lang.String>();
        }
        super.addAll(values, result.contributor_);
        return this;
      }
      public Builder clearContributor() {
        result.contributor_ = java.util.Collections.emptyList();
        return this;
      }
      
      // required int64 last_modified_version = 5;
      public boolean hasLastModifiedVersion() {
        return result.hasLastModifiedVersion();
      }
      public long getLastModifiedVersion() {
        return result.getLastModifiedVersion();
      }
      public Builder setLastModifiedVersion(long value) {
        result.hasLastModifiedVersion = true;
        result.lastModifiedVersion_ = value;
        return this;
      }
      public Builder clearLastModifiedVersion() {
        result.hasLastModifiedVersion = false;
        result.lastModifiedVersion_ = 0L;
        return this;
      }
      
      // required int64 last_modified_time = 6;
      public boolean hasLastModifiedTime() {
        return result.hasLastModifiedTime();
      }
      public long getLastModifiedTime() {
        return result.getLastModifiedTime();
      }
      public Builder setLastModifiedTime(long value) {
        result.hasLastModifiedTime = true;
        result.lastModifiedTime_ = value;
        return this;
      }
      public Builder clearLastModifiedTime() {
        result.hasLastModifiedTime = false;
        result.lastModifiedTime_ = 0L;
        return this;
      }
      
      // @@protoc_insertion_point(builder_scope:waveserver.DocumentSnapshot)
    }
    
    static {
      defaultInstance = new DocumentSnapshot(true);
      org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
      defaultInstance.initFields();
    }
    
    // @@protoc_insertion_point(class_scope:waveserver.DocumentSnapshot)
  }
  
  public static final class WaveletSnapshot extends
      com.google.protobuf.GeneratedMessage {
    // Use WaveletSnapshot.newBuilder() to construct.
    private WaveletSnapshot() {
      initFields();
    }
    private WaveletSnapshot(boolean noInit) {}
    
    private static final WaveletSnapshot defaultInstance;
    public static WaveletSnapshot getDefaultInstance() {
      return defaultInstance;
    }
    
    public WaveletSnapshot getDefaultInstanceForType() {
      return defaultInstance;
    }
    
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_WaveletSnapshot_descriptor;
    }
    
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_WaveletSnapshot_fieldAccessorTable;
    }
    
    // required string wavelet_id = 1;
    public static final int WAVELET_ID_FIELD_NUMBER = 1;
    private boolean hasWaveletId;
    private java.lang.String waveletId_ = "";
    public boolean hasWaveletId() { return hasWaveletId; }
    public java.lang.String getWaveletId() { return waveletId_; }
    
    // repeated string participant_id = 2;
    public static final int PARTICIPANT_ID_FIELD_NUMBER = 2;
    private java.util.List<java.lang.String> participantId_ =
      java.util.Collections.emptyList();
    public java.util.List<java.lang.String> getParticipantIdList() {
      return participantId_;
    }
    public int getParticipantIdCount() { return participantId_.size(); }
    public java.lang.String getParticipantId(int index) {
      return participantId_.get(index);
    }
    
    // repeated .waveserver.DocumentSnapshot document = 3;
    public static final int DOCUMENT_FIELD_NUMBER = 3;
    private java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot> document_ =
      java.util.Collections.emptyList();
    public java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot> getDocumentList() {
      return document_;
    }
    public int getDocumentCount() { return document_.size(); }
    public org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot getDocument(int index) {
      return document_.get(index);
    }
    
    // required .federation.ProtocolHashedVersion version = 4;
    public static final int VERSION_FIELD_NUMBER = 4;
    private boolean hasVersion;
    private org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion version_;
    public boolean hasVersion() { return hasVersion; }
    public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getVersion() { return version_; }
    
    // required int64 last_modified_time = 5;
    public static final int LAST_MODIFIED_TIME_FIELD_NUMBER = 5;
    private boolean hasLastModifiedTime;
    private long lastModifiedTime_ = 0L;
    public boolean hasLastModifiedTime() { return hasLastModifiedTime; }
    public long getLastModifiedTime() { return lastModifiedTime_; }
    
    // required string creator = 6;
    public static final int CREATOR_FIELD_NUMBER = 6;
    private boolean hasCreator;
    private java.lang.String creator_ = "";
    public boolean hasCreator() { return hasCreator; }
    public java.lang.String getCreator() { return creator_; }
    
    // required int64 creation_time = 7;
    public static final int CREATION_TIME_FIELD_NUMBER = 7;
    private boolean hasCreationTime;
    private long creationTime_ = 0L;
    public boolean hasCreationTime() { return hasCreationTime; }
    public long getCreationTime() { return creationTime_; }
    
    private void initFields() {
      version_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
    }
    public final boolean isInitialized() {
      if (!hasWaveletId) return false;
      if (!hasVersion) return false;
      if (!hasLastModifiedTime) return false;
      if (!hasCreator) return false;
      if (!hasCreationTime) return false;
      for (org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot element : getDocumentList()) {
        if (!element.isInitialized()) return false;
      }
      if (!getVersion().isInitialized()) return false;
      return true;
    }
    
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (hasWaveletId()) {
        output.writeString(1, getWaveletId());
      }
      for (java.lang.String element : getParticipantIdList()) {
        output.writeString(2, element);
      }
      for (org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot element : getDocumentList()) {
        output.writeMessage(3, element);
      }
      if (hasVersion()) {
        output.writeMessage(4, getVersion());
      }
      if (hasLastModifiedTime()) {
        output.writeInt64(5, getLastModifiedTime());
      }
      if (hasCreator()) {
        output.writeString(6, getCreator());
      }
      if (hasCreationTime()) {
        output.writeInt64(7, getCreationTime());
      }
      getUnknownFields().writeTo(output);
    }
    
    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;
    
      size = 0;
      if (hasWaveletId()) {
        size += com.google.protobuf.CodedOutputStream
          .computeStringSize(1, getWaveletId());
      }
      {
        int dataSize = 0;
        for (java.lang.String element : getParticipantIdList()) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeStringSizeNoTag(element);
        }
        size += dataSize;
        size += 1 * getParticipantIdList().size();
      }
      for (org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot element : getDocumentList()) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, element);
      }
      if (hasVersion()) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, getVersion());
      }
      if (hasLastModifiedTime()) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(5, getLastModifiedTime());
      }
      if (hasCreator()) {
        size += com.google.protobuf.CodedOutputStream
          .computeStringSize(6, getCreator());
      }
      if (hasCreationTime()) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(7, getCreationTime());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }
    
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    
    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }
    
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder> {
      private org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot result;
      
      // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.newBuilder()
      private Builder() {}
      
      private static Builder create() {
        Builder builder = new Builder();
        builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot();
        return builder;
      }
      
      protected org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot internalGetResult() {
        return result;
      }
      
      public Builder clear() {
        if (result == null) {
          throw new IllegalStateException(
            "Cannot call clear() after build().");
        }
        result = new org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot();
        return this;
      }
      
      public Builder clone() {
        return create().mergeFrom(result);
      }
      
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.getDescriptor();
      }
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot getDefaultInstanceForType() {
        return org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.getDefaultInstance();
      }
      
      public boolean isInitialized() {
        return result.isInitialized();
      }
      public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot build() {
        if (result != null && !isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return buildPartial();
      }
      
      private org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        if (!isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return buildPartial();
      }
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot buildPartial() {
        if (result == null) {
          throw new IllegalStateException(
            "build() has already been called on this Builder.");
        }
        if (result.participantId_ != java.util.Collections.EMPTY_LIST) {
          result.participantId_ =
            java.util.Collections.unmodifiableList(result.participantId_);
        }
        if (result.document_ != java.util.Collections.EMPTY_LIST) {
          result.document_ =
            java.util.Collections.unmodifiableList(result.document_);
        }
        org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot returnMe = result;
        result = null;
        return returnMe;
      }
      
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot) {
          return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      
      public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot other) {
        if (other == org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.getDefaultInstance()) return this;
        if (other.hasWaveletId()) {
          setWaveletId(other.getWaveletId());
        }
        if (!other.participantId_.isEmpty()) {
          if (result.participantId_.isEmpty()) {
            result.participantId_ = new java.util.ArrayList<java.lang.String>();
          }
          result.participantId_.addAll(other.participantId_);
        }
        if (!other.document_.isEmpty()) {
          if (result.document_.isEmpty()) {
            result.document_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot>();
          }
          result.document_.addAll(other.document_);
        }
        if (other.hasVersion()) {
          mergeVersion(other.getVersion());
        }
        if (other.hasLastModifiedTime()) {
          setLastModifiedTime(other.getLastModifiedTime());
        }
        if (other.hasCreator()) {
          setCreator(other.getCreator());
        }
        if (other.hasCreationTime()) {
          setCreationTime(other.getCreationTime());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }
      
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder(
            this.getUnknownFields());
        while (true) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              this.setUnknownFields(unknownFields.build());
              return this;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                this.setUnknownFields(unknownFields.build());
                return this;
              }
              break;
            }
            case 10: {
              setWaveletId(input.readString());
              break;
            }
            case 18: {
              addParticipantId(input.readString());
              break;
            }
            case 26: {
              org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot.Builder subBuilder = org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot.newBuilder();
              input.readMessage(subBuilder, extensionRegistry);
              addDocument(subBuilder.buildPartial());
              break;
            }
            case 34: {
              org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder();
              if (hasVersion()) {
                subBuilder.mergeFrom(getVersion());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setVersion(subBuilder.buildPartial());
              break;
            }
            case 40: {
              setLastModifiedTime(input.readInt64());
              break;
            }
            case 50: {
              setCreator(input.readString());
              break;
            }
            case 56: {
              setCreationTime(input.readInt64());
              break;
            }
          }
        }
      }
      
      
      // required string wavelet_id = 1;
      public boolean hasWaveletId() {
        return result.hasWaveletId();
      }
      public java.lang.String getWaveletId() {
        return result.getWaveletId();
      }
      public Builder setWaveletId(java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.hasWaveletId = true;
        result.waveletId_ = value;
        return this;
      }
      public Builder clearWaveletId() {
        result.hasWaveletId = false;
        result.waveletId_ = getDefaultInstance().getWaveletId();
        return this;
      }
      
      // repeated string participant_id = 2;
      public java.util.List<java.lang.String> getParticipantIdList() {
        return java.util.Collections.unmodifiableList(result.participantId_);
      }
      public int getParticipantIdCount() {
        return result.getParticipantIdCount();
      }
      public java.lang.String getParticipantId(int index) {
        return result.getParticipantId(index);
      }
      public Builder setParticipantId(int index, java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.participantId_.set(index, value);
        return this;
      }
      public Builder addParticipantId(java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  if (result.participantId_.isEmpty()) {
          result.participantId_ = new java.util.ArrayList<java.lang.String>();
        }
        result.participantId_.add(value);
        return this;
      }
      public Builder addAllParticipantId(
          java.lang.Iterable<? extends java.lang.String> values) {
        if (result.participantId_.isEmpty()) {
          result.participantId_ = new java.util.ArrayList<java.lang.String>();
        }
        super.addAll(values, result.participantId_);
        return this;
      }
      public Builder clearParticipantId() {
        result.participantId_ = java.util.Collections.emptyList();
        return this;
      }
      
      // repeated .waveserver.DocumentSnapshot document = 3;
      public java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot> getDocumentList() {
        return java.util.Collections.unmodifiableList(result.document_);
      }
      public int getDocumentCount() {
        return result.getDocumentCount();
      }
      public org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot getDocument(int index) {
        return result.getDocument(index);
      }
      public Builder setDocument(int index, org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot value) {
        if (value == null) {
          throw new NullPointerException();
        }
        result.document_.set(index, value);
        return this;
      }
      public Builder setDocument(int index, org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot.Builder builderForValue) {
        result.document_.set(index, builderForValue.build());
        return this;
      }
      public Builder addDocument(org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot value) {
        if (value == null) {
          throw new NullPointerException();
        }
        if (result.document_.isEmpty()) {
          result.document_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot>();
        }
        result.document_.add(value);
        return this;
      }
      public Builder addDocument(org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot.Builder builderForValue) {
        if (result.document_.isEmpty()) {
          result.document_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot>();
        }
        result.document_.add(builderForValue.build());
        return this;
      }
      public Builder addAllDocument(
          java.lang.Iterable<? extends org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot> values) {
        if (result.document_.isEmpty()) {
          result.document_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot>();
        }
        super.addAll(values, result.document_);
        return this;
      }
      public Builder clearDocument() {
        result.document_ = java.util.Collections.emptyList();
        return this;
      }
      
      // required .federation.ProtocolHashedVersion version = 4;
      public boolean hasVersion() {
        return result.hasVersion();
      }
      public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getVersion() {
        return result.getVersion();
      }
      public Builder setVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
        if (value == null) {
          throw new NullPointerException();
        }
        result.hasVersion = true;
        result.version_ = value;
        return this;
      }
      public Builder setVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder builderForValue) {
        result.hasVersion = true;
        result.version_ = builderForValue.build();
        return this;
      }
      public Builder mergeVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
        if (result.hasVersion() &&
            result.version_ != org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance()) {
          result.version_ =
            org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder(result.version_).mergeFrom(value).buildPartial();
        } else {
          result.version_ = value;
        }
        result.hasVersion = true;
        return this;
      }
      public Builder clearVersion() {
        result.hasVersion = false;
        result.version_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
        return this;
      }
      
      // required int64 last_modified_time = 5;
      public boolean hasLastModifiedTime() {
        return result.hasLastModifiedTime();
      }
      public long getLastModifiedTime() {
        return result.getLastModifiedTime();
      }
      public Builder setLastModifiedTime(long value) {
        result.hasLastModifiedTime = true;
        result.lastModifiedTime_ = value;
        return this;
      }
      public Builder clearLastModifiedTime() {
        result.hasLastModifiedTime = false;
        result.lastModifiedTime_ = 0L;
        return this;
      }
      
      // required string creator = 6;
      public boolean hasCreator() {
        return result.hasCreator();
      }
      public java.lang.String getCreator() {
        return result.getCreator();
      }
      public Builder setCreator(java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.hasCreator = true;
        result.creator_ = value;
        return this;
      }
      public Builder clearCreator() {
        result.hasCreator = false;
        result.creator_ = getDefaultInstance().getCreator();
        return this;
      }
      
      // required int64 creation_time = 7;
      public boolean hasCreationTime() {
        return result.hasCreationTime();
      }
      public long getCreationTime() {
        return result.getCreationTime();
      }
      public Builder setCreationTime(long value) {
        result.hasCreationTime = true;
        result.creationTime_ = value;
        return this;
      }
      public Builder clearCreationTime() {
        result.hasCreationTime = false;
        result.creationTime_ = 0L;
        return this;
      }
      
      // @@protoc_insertion_point(builder_scope:waveserver.WaveletSnapshot)
    }
    
    static {
      defaultInstance = new WaveletSnapshot(true);
      org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
      defaultInstance.initFields();
    }
    
    // @@protoc_insertion_point(class_scope:waveserver.WaveletSnapshot)
  }
  
  public static final class WaveViewSnapshot extends
      com.google.protobuf.GeneratedMessage {
    // Use WaveViewSnapshot.newBuilder() to construct.
    private WaveViewSnapshot() {
      initFields();
    }
    private WaveViewSnapshot(boolean noInit) {}
    
    private static final WaveViewSnapshot defaultInstance;
    public static WaveViewSnapshot getDefaultInstance() {
      return defaultInstance;
    }
    
    public WaveViewSnapshot getDefaultInstanceForType() {
      return defaultInstance;
    }
    
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_WaveViewSnapshot_descriptor;
    }
    
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_WaveViewSnapshot_fieldAccessorTable;
    }
    
    // required string wave_id = 1;
    public static final int WAVE_ID_FIELD_NUMBER = 1;
    private boolean hasWaveId;
    private java.lang.String waveId_ = "";
    public boolean hasWaveId() { return hasWaveId; }
    public java.lang.String getWaveId() { return waveId_; }
    
    // repeated .waveserver.WaveletSnapshot wavelet = 2;
    public static final int WAVELET_FIELD_NUMBER = 2;
    private java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot> wavelet_ =
      java.util.Collections.emptyList();
    public java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot> getWaveletList() {
      return wavelet_;
    }
    public int getWaveletCount() { return wavelet_.size(); }
    public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot getWavelet(int index) {
      return wavelet_.get(index);
    }
    
    private void initFields() {
    }
    public final boolean isInitialized() {
      if (!hasWaveId) return false;
      for (org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot element : getWaveletList()) {
        if (!element.isInitialized()) return false;
      }
      return true;
    }
    
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (hasWaveId()) {
        output.writeString(1, getWaveId());
      }
      for (org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot element : getWaveletList()) {
        output.writeMessage(2, element);
      }
      getUnknownFields().writeTo(output);
    }
    
    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;
    
      size = 0;
      if (hasWaveId()) {
        size += com.google.protobuf.CodedOutputStream
          .computeStringSize(1, getWaveId());
      }
      for (org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot element : getWaveletList()) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, element);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }
    
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    
    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }
    
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder> {
      private org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot result;
      
      // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot.newBuilder()
      private Builder() {}
      
      private static Builder create() {
        Builder builder = new Builder();
        builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot();
        return builder;
      }
      
      protected org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot internalGetResult() {
        return result;
      }
      
      public Builder clear() {
        if (result == null) {
          throw new IllegalStateException(
            "Cannot call clear() after build().");
        }
        result = new org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot();
        return this;
      }
      
      public Builder clone() {
        return create().mergeFrom(result);
      }
      
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot.getDescriptor();
      }
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot getDefaultInstanceForType() {
        return org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot.getDefaultInstance();
      }
      
      public boolean isInitialized() {
        return result.isInitialized();
      }
      public org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot build() {
        if (result != null && !isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return buildPartial();
      }
      
      private org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        if (!isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return buildPartial();
      }
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot buildPartial() {
        if (result == null) {
          throw new IllegalStateException(
            "build() has already been called on this Builder.");
        }
        if (result.wavelet_ != java.util.Collections.EMPTY_LIST) {
          result.wavelet_ =
            java.util.Collections.unmodifiableList(result.wavelet_);
        }
        org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot returnMe = result;
        result = null;
        return returnMe;
      }
      
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot) {
          return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      
      public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot other) {
        if (other == org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot.getDefaultInstance()) return this;
        if (other.hasWaveId()) {
          setWaveId(other.getWaveId());
        }
        if (!other.wavelet_.isEmpty()) {
          if (result.wavelet_.isEmpty()) {
            result.wavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot>();
          }
          result.wavelet_.addAll(other.wavelet_);
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }
      
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder(
            this.getUnknownFields());
        while (true) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              this.setUnknownFields(unknownFields.build());
              return this;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                this.setUnknownFields(unknownFields.build());
                return this;
              }
              break;
            }
            case 10: {
              setWaveId(input.readString());
              break;
            }
            case 18: {
              org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.Builder subBuilder = org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.newBuilder();
              input.readMessage(subBuilder, extensionRegistry);
              addWavelet(subBuilder.buildPartial());
              break;
            }
          }
        }
      }
      
      
      // required string wave_id = 1;
      public boolean hasWaveId() {
        return result.hasWaveId();
      }
      public java.lang.String getWaveId() {
        return result.getWaveId();
      }
      public Builder setWaveId(java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.hasWaveId = true;
        result.waveId_ = value;
        return this;
      }
      public Builder clearWaveId() {
        result.hasWaveId = false;
        result.waveId_ = getDefaultInstance().getWaveId();
        return this;
      }
      
      // repeated .waveserver.WaveletSnapshot wavelet = 2;
      public java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot> getWaveletList() {
        return java.util.Collections.unmodifiableList(result.wavelet_);
      }
      public int getWaveletCount() {
        return result.getWaveletCount();
      }
      public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot getWavelet(int index) {
        return result.getWavelet(index);
      }
      public Builder setWavelet(int index, org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot value) {
        if (value == null) {
          throw new NullPointerException();
        }
        result.wavelet_.set(index, value);
        return this;
      }
      public Builder setWavelet(int index, org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.Builder builderForValue) {
        result.wavelet_.set(index, builderForValue.build());
        return this;
      }
      public Builder addWavelet(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot value) {
        if (value == null) {
          throw new NullPointerException();
        }
        if (result.wavelet_.isEmpty()) {
          result.wavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot>();
        }
        result.wavelet_.add(value);
        return this;
      }
      public Builder addWavelet(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.Builder builderForValue) {
        if (result.wavelet_.isEmpty()) {
          result.wavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot>();
        }
        result.wavelet_.add(builderForValue.build());
        return this;
      }
      public Builder addAllWavelet(
          java.lang.Iterable<? extends org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot> values) {
        if (result.wavelet_.isEmpty()) {
          result.wavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot>();
        }
        super.addAll(values, result.wavelet_);
        return this;
      }
      public Builder clearWavelet() {
        result.wavelet_ = java.util.Collections.emptyList();
        return this;
      }
      
      // @@protoc_insertion_point(builder_scope:waveserver.WaveViewSnapshot)
    }
    
    static {
      defaultInstance = new WaveViewSnapshot(true);
      org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
      defaultInstance.initFields();
    }
    
    // @@protoc_insertion_point(class_scope:waveserver.WaveViewSnapshot)
  }
  
  public static final class ProtocolWaveletUpdate extends
      com.google.protobuf.GeneratedMessage {
    // Use ProtocolWaveletUpdate.newBuilder() to construct.
    private ProtocolWaveletUpdate() {
      initFields();
    }
    private ProtocolWaveletUpdate(boolean noInit) {}
    
    private static final ProtocolWaveletUpdate defaultInstance;
    public static ProtocolWaveletUpdate getDefaultInstance() {
      return defaultInstance;
    }
    
    public ProtocolWaveletUpdate getDefaultInstanceForType() {
      return defaultInstance;
    }
    
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolWaveletUpdate_descriptor;
    }
    
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolWaveletUpdate_fieldAccessorTable;
    }
    
    // required string wavelet_name = 1;
    public static final int WAVELET_NAME_FIELD_NUMBER = 1;
    private boolean hasWaveletName;
    private java.lang.String waveletName_ = "";
    public boolean hasWaveletName() { return hasWaveletName; }
    public java.lang.String getWaveletName() { return waveletName_; }
    
    // repeated .federation.ProtocolWaveletDelta applied_delta = 2;
    public static final int APPLIED_DELTA_FIELD_NUMBER = 2;
    private java.util.List<org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta> appliedDelta_ =
      java.util.Collections.emptyList();
    public java.util.List<org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta> getAppliedDeltaList() {
      return appliedDelta_;
    }
    public int getAppliedDeltaCount() { return appliedDelta_.size(); }
    public org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta getAppliedDelta(int index) {
      return appliedDelta_.get(index);
    }
    
    // optional .federation.ProtocolHashedVersion commit_notice = 3;
    public static final int COMMIT_NOTICE_FIELD_NUMBER = 3;
    private boolean hasCommitNotice;
    private org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion commitNotice_;
    public boolean hasCommitNotice() { return hasCommitNotice; }
    public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getCommitNotice() { return commitNotice_; }
    
    // optional .federation.ProtocolHashedVersion resulting_version = 4;
    public static final int RESULTING_VERSION_FIELD_NUMBER = 4;
    private boolean hasResultingVersion;
    private org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion resultingVersion_;
    public boolean hasResultingVersion() { return hasResultingVersion; }
    public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getResultingVersion() { return resultingVersion_; }
    
    // optional .waveserver.WaveletSnapshot snapshot = 5;
    public static final int SNAPSHOT_FIELD_NUMBER = 5;
    private boolean hasSnapshot;
    private org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot snapshot_;
    public boolean hasSnapshot() { return hasSnapshot; }
    public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot getSnapshot() { return snapshot_; }
    
    // optional bool marker = 6 [default = false];
    public static final int MARKER_FIELD_NUMBER = 6;
    private boolean hasMarker;
    private boolean marker_ = false;
    public boolean hasMarker() { return hasMarker; }
    public boolean getMarker() { return marker_; }
    
    // optional string channel_id = 7;
    public static final int CHANNEL_ID_FIELD_NUMBER = 7;
    private boolean hasChannelId;
    private java.lang.String channelId_ = "";
    public boolean hasChannelId() { return hasChannelId; }
    public java.lang.String getChannelId() { return channelId_; }
    
    private void initFields() {
      commitNotice_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
      resultingVersion_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
      snapshot_ = org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.getDefaultInstance();
    }
    public final boolean isInitialized() {
      if (!hasWaveletName) return false;
      for (org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta element : getAppliedDeltaList()) {
        if (!element.isInitialized()) return false;
      }
      if (hasCommitNotice()) {
        if (!getCommitNotice().isInitialized()) return false;
      }
      if (hasResultingVersion()) {
        if (!getResultingVersion().isInitialized()) return false;
      }
      if (hasSnapshot()) {
        if (!getSnapshot().isInitialized()) return false;
      }
      return true;
    }
    
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (hasWaveletName()) {
        output.writeString(1, getWaveletName());
      }
      for (org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta element : getAppliedDeltaList()) {
        output.writeMessage(2, element);
      }
      if (hasCommitNotice()) {
        output.writeMessage(3, getCommitNotice());
      }
      if (hasResultingVersion()) {
        output.writeMessage(4, getResultingVersion());
      }
      if (hasSnapshot()) {
        output.writeMessage(5, getSnapshot());
      }
      if (hasMarker()) {
        output.writeBool(6, getMarker());
      }
      if (hasChannelId()) {
        output.writeString(7, getChannelId());
      }
      getUnknownFields().writeTo(output);
    }
    
    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;
    
      size = 0;
      if (hasWaveletName()) {
        size += com.google.protobuf.CodedOutputStream
          .computeStringSize(1, getWaveletName());
      }
      for (org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta element : getAppliedDeltaList()) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, element);
      }
      if (hasCommitNotice()) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, getCommitNotice());
      }
      if (hasResultingVersion()) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, getResultingVersion());
      }
      if (hasSnapshot()) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(5, getSnapshot());
      }
      if (hasMarker()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(6, getMarker());
      }
      if (hasChannelId()) {
        size += com.google.protobuf.CodedOutputStream
          .computeStringSize(7, getChannelId());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }
    
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    
    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }
    
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder> {
      private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate result;
      
      // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.newBuilder()
      private Builder() {}
      
      private static Builder create() {
        Builder builder = new Builder();
        builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate();
        return builder;
      }
      
      protected org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate internalGetResult() {
        return result;
      }
      
      public Builder clear() {
        if (result == null) {
          throw new IllegalStateException(
            "Cannot call clear() after build().");
        }
        result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate();
        return this;
      }
      
      public Builder clone() {
        return create().mergeFrom(result);
      }
      
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.getDescriptor();
      }
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate getDefaultInstanceForType() {
        return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.getDefaultInstance();
      }
      
      public boolean isInitialized() {
        return result.isInitialized();
      }
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate build() {
        if (result != null && !isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return buildPartial();
      }
      
      private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        if (!isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return buildPartial();
      }
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate buildPartial() {
        if (result == null) {
          throw new IllegalStateException(
            "build() has already been called on this Builder.");
        }
        if (result.appliedDelta_ != java.util.Collections.EMPTY_LIST) {
          result.appliedDelta_ =
            java.util.Collections.unmodifiableList(result.appliedDelta_);
        }
        org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate returnMe = result;
        result = null;
        return returnMe;
      }
      
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate) {
          return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      
      public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate other) {
        if (other == org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.getDefaultInstance()) return this;
        if (other.hasWaveletName()) {
          setWaveletName(other.getWaveletName());
        }
        if (!other.appliedDelta_.isEmpty()) {
          if (result.appliedDelta_.isEmpty()) {
            result.appliedDelta_ = new java.util.ArrayList<org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta>();
          }
          result.appliedDelta_.addAll(other.appliedDelta_);
        }
        if (other.hasCommitNotice()) {
          mergeCommitNotice(other.getCommitNotice());
        }
        if (other.hasResultingVersion()) {
          mergeResultingVersion(other.getResultingVersion());
        }
        if (other.hasSnapshot()) {
          mergeSnapshot(other.getSnapshot());
        }
        if (other.hasMarker()) {
          setMarker(other.getMarker());
        }
        if (other.hasChannelId()) {
          setChannelId(other.getChannelId());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }
      
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder(
            this.getUnknownFields());
        while (true) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              this.setUnknownFields(unknownFields.build());
              return this;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                this.setUnknownFields(unknownFields.build());
                return this;
              }
              break;
            }
            case 10: {
              setWaveletName(input.readString());
              break;
            }
            case 18: {
              org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.newBuilder();
              input.readMessage(subBuilder, extensionRegistry);
              addAppliedDelta(subBuilder.buildPartial());
              break;
            }
            case 26: {
              org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder();
              if (hasCommitNotice()) {
                subBuilder.mergeFrom(getCommitNotice());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setCommitNotice(subBuilder.buildPartial());
              break;
            }
            case 34: {
              org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder();
              if (hasResultingVersion()) {
                subBuilder.mergeFrom(getResultingVersion());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setResultingVersion(subBuilder.buildPartial());
              break;
            }
            case 42: {
              org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.Builder subBuilder = org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.newBuilder();
              if (hasSnapshot()) {
                subBuilder.mergeFrom(getSnapshot());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setSnapshot(subBuilder.buildPartial());
              break;
            }
            case 48: {
              setMarker(input.readBool());
              break;
            }
            case 58: {
              setChannelId(input.readString());
              break;
            }
          }
        }
      }
      
      
      // required string wavelet_name = 1;
      public boolean hasWaveletName() {
        return result.hasWaveletName();
      }
      public java.lang.String getWaveletName() {
        return result.getWaveletName();
      }
      public Builder setWaveletName(java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.hasWaveletName = true;
        result.waveletName_ = value;
        return this;
      }
      public Builder clearWaveletName() {
        result.hasWaveletName = false;
        result.waveletName_ = getDefaultInstance().getWaveletName();
        return this;
      }
      
      // repeated .federation.ProtocolWaveletDelta applied_delta = 2;
      public java.util.List<org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta> getAppliedDeltaList() {
        return java.util.Collections.unmodifiableList(result.appliedDelta_);
      }
      public int getAppliedDeltaCount() {
        return result.getAppliedDeltaCount();
      }
      public org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta getAppliedDelta(int index) {
        return result.getAppliedDelta(index);
      }
      public Builder setAppliedDelta(int index, org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta value) {
        if (value == null) {
          throw new NullPointerException();
        }
        result.appliedDelta_.set(index, value);
        return this;
      }
      public Builder setAppliedDelta(int index, org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.Builder builderForValue) {
        result.appliedDelta_.set(index, builderForValue.build());
        return this;
      }
      public Builder addAppliedDelta(org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta value) {
        if (value == null) {
          throw new NullPointerException();
        }
        if (result.appliedDelta_.isEmpty()) {
          result.appliedDelta_ = new java.util.ArrayList<org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta>();
        }
        result.appliedDelta_.add(value);
        return this;
      }
      public Builder addAppliedDelta(org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.Builder builderForValue) {
        if (result.appliedDelta_.isEmpty()) {
          result.appliedDelta_ = new java.util.ArrayList<org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta>();
        }
        result.appliedDelta_.add(builderForValue.build());
        return this;
      }
      public Builder addAllAppliedDelta(
          java.lang.Iterable<? extends org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta> values) {
        if (result.appliedDelta_.isEmpty()) {
          result.appliedDelta_ = new java.util.ArrayList<org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta>();
        }
        super.addAll(values, result.appliedDelta_);
        return this;
      }
      public Builder clearAppliedDelta() {
        result.appliedDelta_ = java.util.Collections.emptyList();
        return this;
      }
      
      // optional .federation.ProtocolHashedVersion commit_notice = 3;
      public boolean hasCommitNotice() {
        return result.hasCommitNotice();
      }
      public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getCommitNotice() {
        return result.getCommitNotice();
      }
      public Builder setCommitNotice(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
        if (value == null) {
          throw new NullPointerException();
        }
        result.hasCommitNotice = true;
        result.commitNotice_ = value;
        return this;
      }
      public Builder setCommitNotice(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder builderForValue) {
        result.hasCommitNotice = true;
        result.commitNotice_ = builderForValue.build();
        return this;
      }
      public Builder mergeCommitNotice(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
        if (result.hasCommitNotice() &&
            result.commitNotice_ != org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance()) {
          result.commitNotice_ =
            org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder(result.commitNotice_).mergeFrom(value).buildPartial();
        } else {
          result.commitNotice_ = value;
        }
        result.hasCommitNotice = true;
        return this;
      }
      public Builder clearCommitNotice() {
        result.hasCommitNotice = false;
        result.commitNotice_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
        return this;
      }
      
      // optional .federation.ProtocolHashedVersion resulting_version = 4;
      public boolean hasResultingVersion() {
        return result.hasResultingVersion();
      }
      public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getResultingVersion() {
        return result.getResultingVersion();
      }
      public Builder setResultingVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
        if (value == null) {
          throw new NullPointerException();
        }
        result.hasResultingVersion = true;
        result.resultingVersion_ = value;
        return this;
      }
      public Builder setResultingVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder builderForValue) {
        result.hasResultingVersion = true;
        result.resultingVersion_ = builderForValue.build();
        return this;
      }
      public Builder mergeResultingVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
        if (result.hasResultingVersion() &&
            result.resultingVersion_ != org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance()) {
          result.resultingVersion_ =
            org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder(result.resultingVersion_).mergeFrom(value).buildPartial();
        } else {
          result.resultingVersion_ = value;
        }
        result.hasResultingVersion = true;
        return this;
      }
      public Builder clearResultingVersion() {
        result.hasResultingVersion = false;
        result.resultingVersion_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
        return this;
      }
      
      // optional .waveserver.WaveletSnapshot snapshot = 5;
      public boolean hasSnapshot() {
        return result.hasSnapshot();
      }
      public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot getSnapshot() {
        return result.getSnapshot();
      }
      public Builder setSnapshot(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot value) {
        if (value == null) {
          throw new NullPointerException();
        }
        result.hasSnapshot = true;
        result.snapshot_ = value;
        return this;
      }
      public Builder setSnapshot(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.Builder builderForValue) {
        result.hasSnapshot = true;
        result.snapshot_ = builderForValue.build();
        return this;
      }
      public Builder mergeSnapshot(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot value) {
        if (result.hasSnapshot() &&
            result.snapshot_ != org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.getDefaultInstance()) {
          result.snapshot_ =
            org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.newBuilder(result.snapshot_).mergeFrom(value).buildPartial();
        } else {
          result.snapshot_ = value;
        }
        result.hasSnapshot = true;
        return this;
      }
      public Builder clearSnapshot() {
        result.hasSnapshot = false;
        result.snapshot_ = org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.getDefaultInstance();
        return this;
      }
      
      // optional bool marker = 6 [default = false];
      public boolean hasMarker() {
        return result.hasMarker();
      }
      public boolean getMarker() {
        return result.getMarker();
      }
      public Builder setMarker(boolean value) {
        result.hasMarker = true;
        result.marker_ = value;
        return this;
      }
      public Builder clearMarker() {
        result.hasMarker = false;
        result.marker_ = false;
        return this;
      }
      
      // optional string channel_id = 7;
      public boolean hasChannelId() {
        return result.hasChannelId();
      }
      public java.lang.String getChannelId() {
        return result.getChannelId();
      }
      public Builder setChannelId(java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.hasChannelId = true;
        result.channelId_ = value;
        return this;
      }
      public Builder clearChannelId() {
        result.hasChannelId = false;
        result.channelId_ = getDefaultInstance().getChannelId();
        return this;
      }
      
      // @@protoc_insertion_point(builder_scope:waveserver.ProtocolWaveletUpdate)
    }
    
    static {
      defaultInstance = new ProtocolWaveletUpdate(true);
      org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
      defaultInstance.initFields();
    }
    
    // @@protoc_insertion_point(class_scope:waveserver.ProtocolWaveletUpdate)
  }
  
  public static final class ProtocolSubmitRequest extends
      com.google.protobuf.GeneratedMessage {
    // Use ProtocolSubmitRequest.newBuilder() to construct.
    private ProtocolSubmitRequest() {
      initFields();
    }
    private ProtocolSubmitRequest(boolean noInit) {}
    
    private static final ProtocolSubmitRequest defaultInstance;
    public static ProtocolSubmitRequest getDefaultInstance() {
      return defaultInstance;
    }
    
    public ProtocolSubmitRequest getDefaultInstanceForType() {
      return defaultInstance;
    }
    
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolSubmitRequest_descriptor;
    }
    
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolSubmitRequest_fieldAccessorTable;
    }
    
    // required string wavelet_name = 1;
    public static final int WAVELET_NAME_FIELD_NUMBER = 1;
    private boolean hasWaveletName;
    private java.lang.String waveletName_ = "";
    public boolean hasWaveletName() { return hasWaveletName; }
    public java.lang.String getWaveletName() { return waveletName_; }
    
    // required .federation.ProtocolWaveletDelta delta = 2;
    public static final int DELTA_FIELD_NUMBER = 2;
    private boolean hasDelta;
    private org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta delta_;
    public boolean hasDelta() { return hasDelta; }
    public org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta getDelta() { return delta_; }
    
    // optional string channel_id = 3;
    public static final int CHANNEL_ID_FIELD_NUMBER = 3;
    private boolean hasChannelId;
    private java.lang.String channelId_ = "";
    public boolean hasChannelId() { return hasChannelId; }
    public java.lang.String getChannelId() { return channelId_; }
    
    private void initFields() {
      delta_ = org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.getDefaultInstance();
    }
    public final boolean isInitialized() {
      if (!hasWaveletName) return false;
      if (!hasDelta) return false;
      if (!getDelta().isInitialized()) return false;
      return true;
    }
    
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (hasWaveletName()) {
        output.writeString(1, getWaveletName());
      }
      if (hasDelta()) {
        output.writeMessage(2, getDelta());
      }
      if (hasChannelId()) {
        output.writeString(3, getChannelId());
      }
      getUnknownFields().writeTo(output);
    }
    
    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;
    
      size = 0;
      if (hasWaveletName()) {
        size += com.google.protobuf.CodedOutputStream
          .computeStringSize(1, getWaveletName());
      }
      if (hasDelta()) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getDelta());
      }
      if (hasChannelId()) {
        size += com.google.protobuf.CodedOutputStream
          .computeStringSize(3, getChannelId());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }
    
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    
    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }
    
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder> {
      private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest result;
      
      // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest.newBuilder()
      private Builder() {}
      
      private static Builder create() {
        Builder builder = new Builder();
        builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest();
        return builder;
      }
      
      protected org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest internalGetResult() {
        return result;
      }
      
      public Builder clear() {
        if (result == null) {
          throw new IllegalStateException(
            "Cannot call clear() after build().");
        }
        result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest();
        return this;
      }
      
      public Builder clone() {
        return create().mergeFrom(result);
      }
      
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest.getDescriptor();
      }
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest getDefaultInstanceForType() {
        return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest.getDefaultInstance();
      }
      
      public boolean isInitialized() {
        return result.isInitialized();
      }
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest build() {
        if (result != null && !isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return buildPartial();
      }
      
      private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        if (!isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return buildPartial();
      }
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest buildPartial() {
        if (result == null) {
          throw new IllegalStateException(
            "build() has already been called on this Builder.");
        }
        org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest returnMe = result;
        result = null;
        return returnMe;
      }
      
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest) {
          return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      
      public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest other) {
        if (other == org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest.getDefaultInstance()) return this;
        if (other.hasWaveletName()) {
          setWaveletName(other.getWaveletName());
        }
        if (other.hasDelta()) {
          mergeDelta(other.getDelta());
        }
        if (other.hasChannelId()) {
          setChannelId(other.getChannelId());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }
      
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder(
            this.getUnknownFields());
        while (true) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              this.setUnknownFields(unknownFields.build());
              return this;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                this.setUnknownFields(unknownFields.build());
                return this;
              }
              break;
            }
            case 10: {
              setWaveletName(input.readString());
              break;
            }
            case 18: {
              org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.newBuilder();
              if (hasDelta()) {
                subBuilder.mergeFrom(getDelta());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setDelta(subBuilder.buildPartial());
              break;
            }
            case 26: {
              setChannelId(input.readString());
              break;
            }
          }
        }
      }
      
      
      // required string wavelet_name = 1;
      public boolean hasWaveletName() {
        return result.hasWaveletName();
      }
      public java.lang.String getWaveletName() {
        return result.getWaveletName();
      }
      public Builder setWaveletName(java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.hasWaveletName = true;
        result.waveletName_ = value;
        return this;
      }
      public Builder clearWaveletName() {
        result.hasWaveletName = false;
        result.waveletName_ = getDefaultInstance().getWaveletName();
        return this;
      }
      
      // required .federation.ProtocolWaveletDelta delta = 2;
      public boolean hasDelta() {
        return result.hasDelta();
      }
      public org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta getDelta() {
        return result.getDelta();
      }
      public Builder setDelta(org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta value) {
        if (value == null) {
          throw new NullPointerException();
        }
        result.hasDelta = true;
        result.delta_ = value;
        return this;
      }
      public Builder setDelta(org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.Builder builderForValue) {
        result.hasDelta = true;
        result.delta_ = builderForValue.build();
        return this;
      }
      public Builder mergeDelta(org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta value) {
        if (result.hasDelta() &&
            result.delta_ != org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.getDefaultInstance()) {
          result.delta_ =
            org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.newBuilder(result.delta_).mergeFrom(value).buildPartial();
        } else {
          result.delta_ = value;
        }
        result.hasDelta = true;
        return this;
      }
      public Builder clearDelta() {
        result.hasDelta = false;
        result.delta_ = org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.getDefaultInstance();
        return this;
      }
      
      // optional string channel_id = 3;
      public boolean hasChannelId() {
        return result.hasChannelId();
      }
      public java.lang.String getChannelId() {
        return result.getChannelId();
      }
      public Builder setChannelId(java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.hasChannelId = true;
        result.channelId_ = value;
        return this;
      }
      public Builder clearChannelId() {
        result.hasChannelId = false;
        result.channelId_ = getDefaultInstance().getChannelId();
        return this;
      }
      
      // @@protoc_insertion_point(builder_scope:waveserver.ProtocolSubmitRequest)
    }
    
    static {
      defaultInstance = new ProtocolSubmitRequest(true);
      org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
      defaultInstance.initFields();
    }
    
    // @@protoc_insertion_point(class_scope:waveserver.ProtocolSubmitRequest)
  }
  
  public static final class ProtocolSubmitResponse extends
      com.google.protobuf.GeneratedMessage {
    // Use ProtocolSubmitResponse.newBuilder() to construct.
    private ProtocolSubmitResponse() {
      initFields();
    }
    private ProtocolSubmitResponse(boolean noInit) {}
    
    private static final ProtocolSubmitResponse defaultInstance;
    public static ProtocolSubmitResponse getDefaultInstance() {
      return defaultInstance;
    }
    
    public ProtocolSubmitResponse getDefaultInstanceForType() {
      return defaultInstance;
    }
    
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolSubmitResponse_descriptor;
    }
    
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolSubmitResponse_fieldAccessorTable;
    }
    
    // required int32 operations_applied = 1;
    public static final int OPERATIONS_APPLIED_FIELD_NUMBER = 1;
    private boolean hasOperationsApplied;
    private int operationsApplied_ = 0;
    public boolean hasOperationsApplied() { return hasOperationsApplied; }
    public int getOperationsApplied() { return operationsApplied_; }
    
    // optional string error_message = 2;
    public static final int ERROR_MESSAGE_FIELD_NUMBER = 2;
    private boolean hasErrorMessage;
    private java.lang.String errorMessage_ = "";
    public boolean hasErrorMessage() { return hasErrorMessage; }
    public java.lang.String getErrorMessage() { return errorMessage_; }
    
    // optional .federation.ProtocolHashedVersion hashed_version_after_application = 3;
    public static final int HASHED_VERSION_AFTER_APPLICATION_FIELD_NUMBER = 3;
    private boolean hasHashedVersionAfterApplication;
    private org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion hashedVersionAfterApplication_;
    public boolean hasHashedVersionAfterApplication() { return hasHashedVersionAfterApplication; }
    public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getHashedVersionAfterApplication() { return hashedVersionAfterApplication_; }
    
    private void initFields() {
      hashedVersionAfterApplication_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
    }
    public final boolean isInitialized() {
      if (!hasOperationsApplied) return false;
      if (hasHashedVersionAfterApplication()) {
        if (!getHashedVersionAfterApplication().isInitialized()) return false;
      }
      return true;
    }
    
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (hasOperationsApplied()) {
        output.writeInt32(1, getOperationsApplied());
      }
      if (hasErrorMessage()) {
        output.writeString(2, getErrorMessage());
      }
      if (hasHashedVersionAfterApplication()) {
        output.writeMessage(3, getHashedVersionAfterApplication());
      }
      getUnknownFields().writeTo(output);
    }
    
    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;
    
      size = 0;
      if (hasOperationsApplied()) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, getOperationsApplied());
      }
      if (hasErrorMessage()) {
        size += com.google.protobuf.CodedOutputStream
          .computeStringSize(2, getErrorMessage());
      }
      if (hasHashedVersionAfterApplication()) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, getHashedVersionAfterApplication());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }
    
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    
    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }
    
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder> {
      private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse result;
      
      // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.newBuilder()
      private Builder() {}
      
      private static Builder create() {
        Builder builder = new Builder();
        builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse();
        return builder;
      }
      
      protected org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse internalGetResult() {
        return result;
      }
      
      public Builder clear() {
        if (result == null) {
          throw new IllegalStateException(
            "Cannot call clear() after build().");
        }
        result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse();
        return this;
      }
      
      public Builder clone() {
        return create().mergeFrom(result);
      }
      
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.getDescriptor();
      }
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse getDefaultInstanceForType() {
        return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.getDefaultInstance();
      }
      
      public boolean isInitialized() {
        return result.isInitialized();
      }
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse build() {
        if (result != null && !isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return buildPartial();
      }
      
      private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        if (!isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return buildPartial();
      }
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse buildPartial() {
        if (result == null) {
          throw new IllegalStateException(
            "build() has already been called on this Builder.");
        }
        org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse returnMe = result;
        result = null;
        return returnMe;
      }
      
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse) {
          return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      
      public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse other) {
        if (other == org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.getDefaultInstance()) return this;
        if (other.hasOperationsApplied()) {
          setOperationsApplied(other.getOperationsApplied());
        }
        if (other.hasErrorMessage()) {
          setErrorMessage(other.getErrorMessage());
        }
        if (other.hasHashedVersionAfterApplication()) {
          mergeHashedVersionAfterApplication(other.getHashedVersionAfterApplication());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }
      
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder(
            this.getUnknownFields());
        while (true) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              this.setUnknownFields(unknownFields.build());
              return this;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                this.setUnknownFields(unknownFields.build());
                return this;
              }
              break;
            }
            case 8: {
              setOperationsApplied(input.readInt32());
              break;
            }
            case 18: {
              setErrorMessage(input.readString());
              break;
            }
            case 26: {
              org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder();
              if (hasHashedVersionAfterApplication()) {
                subBuilder.mergeFrom(getHashedVersionAfterApplication());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setHashedVersionAfterApplication(subBuilder.buildPartial());
              break;
            }
          }
        }
      }
      
      
      // required int32 operations_applied = 1;
      public boolean hasOperationsApplied() {
        return result.hasOperationsApplied();
      }
      public int getOperationsApplied() {
        return result.getOperationsApplied();
      }
      public Builder setOperationsApplied(int value) {
        result.hasOperationsApplied = true;
        result.operationsApplied_ = value;
        return this;
      }
      public Builder clearOperationsApplied() {
        result.hasOperationsApplied = false;
        result.operationsApplied_ = 0;
        return this;
      }
      
      // optional string error_message = 2;
      public boolean hasErrorMessage() {
        return result.hasErrorMessage();
      }
      public java.lang.String getErrorMessage() {
        return result.getErrorMessage();
      }
      public Builder setErrorMessage(java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  result.hasErrorMessage = true;
        result.errorMessage_ = value;
        return this;
      }
      public Builder clearErrorMessage() {
        result.hasErrorMessage = false;
        result.errorMessage_ = getDefaultInstance().getErrorMessage();
        return this;
      }
      
      // optional .federation.ProtocolHashedVersion hashed_version_after_application = 3;
      public boolean hasHashedVersionAfterApplication() {
        return result.hasHashedVersionAfterApplication();
      }
      public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getHashedVersionAfterApplication() {
        return result.getHashedVersionAfterApplication();
      }
      public Builder setHashedVersionAfterApplication(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
        if (value == null) {
          throw new NullPointerException();
        }
        result.hasHashedVersionAfterApplication = true;
        result.hashedVersionAfterApplication_ = value;
        return this;
      }
      public Builder setHashedVersionAfterApplication(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder builderForValue) {
        result.hasHashedVersionAfterApplication = true;
        result.hashedVersionAfterApplication_ = builderForValue.build();
        return this;
      }
      public Builder mergeHashedVersionAfterApplication(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
        if (result.hasHashedVersionAfterApplication() &&
            result.hashedVersionAfterApplication_ != org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance()) {
          result.hashedVersionAfterApplication_ =
            org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder(result.hashedVersionAfterApplication_).mergeFrom(value).buildPartial();
        } else {
          result.hashedVersionAfterApplication_ = value;
        }
        result.hasHashedVersionAfterApplication = true;
        return this;
      }
      public Builder clearHashedVersionAfterApplication() {
        result.hasHashedVersionAfterApplication = false;
        result.hashedVersionAfterApplication_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
        return this;
      }
      
      // @@protoc_insertion_point(builder_scope:waveserver.ProtocolSubmitResponse)
    }
    
    static {
      defaultInstance = new ProtocolSubmitResponse(true);
      org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
      defaultInstance.initFields();
    }
    
    // @@protoc_insertion_point(class_scope:waveserver.ProtocolSubmitResponse)
  }
  
  public static abstract class ProtocolWaveClientRpc
      implements com.google.protobuf.Service {
    protected ProtocolWaveClientRpc() {}
    
    public interface Interface {
      public abstract void open(
          com.google.protobuf.RpcController controller,
          org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest request,
          com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate> done);
      
      public abstract void submit(
          com.google.protobuf.RpcController controller,
          org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest request,
          com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse> done);
      
      public abstract void authenticate(
          com.google.protobuf.RpcController controller,
          org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate request,
          com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult> done);
      
    }
    
    public static com.google.protobuf.Service newReflectiveService(
        final Interface impl) {
      return new ProtocolWaveClientRpc() {
        @Override
        public  void open(
            com.google.protobuf.RpcController controller,
            org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest request,
            com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate> done) {
          impl.open(controller, request, done);
        }
        
        @Override
        public  void submit(
            com.google.protobuf.RpcController controller,
            org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest request,
            com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse> done) {
          impl.submit(controller, request, done);
        }
        
        @Override
        public  void authenticate(
            com.google.protobuf.RpcController controller,
            org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate request,
            com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult> done) {
          impl.authenticate(controller, request, done);
        }
        
      };
    }
    
    public static com.google.protobuf.BlockingService
        newReflectiveBlockingService(final BlockingInterface impl) {
      return new com.google.protobuf.BlockingService() {
        public final com.google.protobuf.Descriptors.ServiceDescriptor
            getDescriptorForType() {
          return getDescriptor();
        }
        
        public final com.google.protobuf.Message callBlockingMethod(
            com.google.protobuf.Descriptors.MethodDescriptor method,
            com.google.protobuf.RpcController controller,
            com.google.protobuf.Message request)
            throws com.google.protobuf.ServiceException {
          if (method.getService() != getDescriptor()) {
            throw new java.lang.IllegalArgumentException(
              "Service.callBlockingMethod() given method descriptor for " +
              "wrong service type.");
          }
          switch(method.getIndex()) {
            case 0:
              return impl.open(controller, (org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest)request);
            case 1:
              return impl.submit(controller, (org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest)request);
            case 2:
              return impl.authenticate(controller, (org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate)request);
            default:
              throw new java.lang.AssertionError("Can't get here.");
          }
        }
        
        public final com.google.protobuf.Message
            getRequestPrototype(
            com.google.protobuf.Descriptors.MethodDescriptor method) {
          if (method.getService() != getDescriptor()) {
            throw new java.lang.IllegalArgumentException(
              "Service.getRequestPrototype() given method " +
              "descriptor for wrong service type.");
          }
          switch(method.getIndex()) {
            case 0:
              return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.getDefaultInstance();
            case 1:
              return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest.getDefaultInstance();
            case 2:
              return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.getDefaultInstance();
            default:
              throw new java.lang.AssertionError("Can't get here.");
          }
        }
        
        public final com.google.protobuf.Message
            getResponsePrototype(
            com.google.protobuf.Descriptors.MethodDescriptor method) {
          if (method.getService() != getDescriptor()) {
            throw new java.lang.IllegalArgumentException(
              "Service.getResponsePrototype() given method " +
              "descriptor for wrong service type.");
          }
          switch(method.getIndex()) {
            case 0:
              return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.getDefaultInstance();
            case 1:
              return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.getDefaultInstance();
            case 2:
              return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.getDefaultInstance();
            default:
              throw new java.lang.AssertionError("Can't get here.");
          }
        }
        
      };
    }
    
    public abstract void open(
        com.google.protobuf.RpcController controller,
        org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest request,
        com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate> done);
    
    public abstract void submit(
        com.google.protobuf.RpcController controller,
        org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest request,
        com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse> done);
    
    public abstract void authenticate(
        com.google.protobuf.RpcController controller,
        org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate request,
        com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult> done);
    
    public static final
        com.google.protobuf.Descriptors.ServiceDescriptor
        getDescriptor() {
      return org.waveprotocol.box.common.comms.WaveClientRpc.getDescriptor().getServices().get(0);
    }
    public final com.google.protobuf.Descriptors.ServiceDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    
    public final void callMethod(
        com.google.protobuf.Descriptors.MethodDescriptor method,
        com.google.protobuf.RpcController controller,
        com.google.protobuf.Message request,
        com.google.protobuf.RpcCallback<
          com.google.protobuf.Message> done) {
      if (method.getService() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "Service.callMethod() given method descriptor for wrong " +
          "service type.");
      }
      switch(method.getIndex()) {
        case 0:
          this.open(controller, (org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest)request,
            com.google.protobuf.RpcUtil.<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate>specializeCallback(
              done));
          return;
        case 1:
          this.submit(controller, (org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest)request,
            com.google.protobuf.RpcUtil.<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse>specializeCallback(
              done));
          return;
        case 2:
          this.authenticate(controller, (org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate)request,
            com.google.protobuf.RpcUtil.<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult>specializeCallback(
              done));
          return;
        default:
          throw new java.lang.AssertionError("Can't get here.");
      }
    }
    
    public final com.google.protobuf.Message
        getRequestPrototype(
        com.google.protobuf.Descriptors.MethodDescriptor method) {
      if (method.getService() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "Service.getRequestPrototype() given method " +
          "descriptor for wrong service type.");
      }
      switch(method.getIndex()) {
        case 0:
          return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.getDefaultInstance();
        case 1:
          return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest.getDefaultInstance();
        case 2:
          return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.getDefaultInstance();
        default:
          throw new java.lang.AssertionError("Can't get here.");
      }
    }
    
    public final com.google.protobuf.Message
        getResponsePrototype(
        com.google.protobuf.Descriptors.MethodDescriptor method) {
      if (method.getService() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "Service.getResponsePrototype() given method " +
          "descriptor for wrong service type.");
      }
      switch(method.getIndex()) {
        case 0:
          return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.getDefaultInstance();
        case 1:
          return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.getDefaultInstance();
        case 2:
          return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.getDefaultInstance();
        default:
          throw new java.lang.AssertionError("Can't get here.");
      }
    }
    
    public static Stub newStub(
        com.google.protobuf.RpcChannel channel) {
      return new Stub(channel);
    }
    
    public static final class Stub extends org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveClientRpc implements Interface {
      private Stub(com.google.protobuf.RpcChannel channel) {
        this.channel = channel;
      }
      
      private final com.google.protobuf.RpcChannel channel;
      
      public com.google.protobuf.RpcChannel getChannel() {
        return channel;
      }
      
      public  void open(
          com.google.protobuf.RpcController controller,
          org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest request,
          com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate> done) {
        channel.callMethod(
          getDescriptor().getMethods().get(0),
          controller,
          request,
          org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.getDefaultInstance(),
          com.google.protobuf.RpcUtil.generalizeCallback(
            done,
            org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.class,
            org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.getDefaultInstance()));
      }
      
      public  void submit(
          com.google.protobuf.RpcController controller,
          org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest request,
          com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse> done) {
        channel.callMethod(
          getDescriptor().getMethods().get(1),
          controller,
          request,
          org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.getDefaultInstance(),
          com.google.protobuf.RpcUtil.generalizeCallback(
            done,
            org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.class,
            org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.getDefaultInstance()));
      }
      
      public  void authenticate(
          com.google.protobuf.RpcController controller,
          org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate request,
          com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult> done) {
        channel.callMethod(
          getDescriptor().getMethods().get(2),
          controller,
          request,
          org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.getDefaultInstance(),
          com.google.protobuf.RpcUtil.generalizeCallback(
            done,
            org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.class,
            org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.getDefaultInstance()));
      }
    }
    
    public static BlockingInterface newBlockingStub(
        com.google.protobuf.BlockingRpcChannel channel) {
      return new BlockingStub(channel);
    }
    
    public interface BlockingInterface {
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate open(
          com.google.protobuf.RpcController controller,
          org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest request)
          throws com.google.protobuf.ServiceException;
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse submit(
          com.google.protobuf.RpcController controller,
          org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest request)
          throws com.google.protobuf.ServiceException;
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult authenticate(
          com.google.protobuf.RpcController controller,
          org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate request)
          throws com.google.protobuf.ServiceException;
    }
    
    private static final class BlockingStub implements BlockingInterface {
      private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) {
        this.channel = channel;
      }
      
      private final com.google.protobuf.BlockingRpcChannel channel;
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate open(
          com.google.protobuf.RpcController controller,
          org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest request)
          throws com.google.protobuf.ServiceException {
        return (org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate) channel.callBlockingMethod(
          getDescriptor().getMethods().get(0),
          controller,
          request,
          org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.getDefaultInstance());
      }
      
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse submit(
          com.google.protobuf.RpcController controller,
          org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest request)
          throws com.google.protobuf.ServiceException {
        return (org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse) channel.callBlockingMethod(
          getDescriptor().getMethods().get(1),
          controller,
          request,
          org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.getDefaultInstance());
      }
      
      
      public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult authenticate(
          com.google.protobuf.RpcController controller,
          org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate request)
          throws com.google.protobuf.ServiceException {
        return (org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult) channel.callBlockingMethod(
          getDescriptor().getMethods().get(2),
          controller,
          request,
          org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.getDefaultInstance());
      }
      
    }
  }
  
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_waveserver_ProtocolAuthenticate_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_waveserver_ProtocolAuthenticate_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_waveserver_ProtocolAuthenticationResult_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_waveserver_ProtocolAuthenticationResult_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_waveserver_ProtocolOpenRequest_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_waveserver_ProtocolOpenRequest_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_waveserver_WaveletVersion_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_waveserver_WaveletVersion_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_waveserver_DocumentSnapshot_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_waveserver_DocumentSnapshot_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_waveserver_WaveletSnapshot_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_waveserver_WaveletSnapshot_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_waveserver_WaveViewSnapshot_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_waveserver_WaveViewSnapshot_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_waveserver_ProtocolWaveletUpdate_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_waveserver_ProtocolWaveletUpdate_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_waveserver_ProtocolSubmitRequest_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_waveserver_ProtocolSubmitRequest_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_waveserver_ProtocolSubmitResponse_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_waveserver_ProtocolSubmitResponse_fieldAccessorTable;
  
  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n6org/waveprotocol/box/common/comms/wave" +
      "client-rpc.proto\022\nwaveserver\032)org/wavepr" +
      "otocol/box/server/rpc/rpc.proto\0326org/wav" +
      "eprotocol/wave/federation/federation.pro" +
      "todevel\"%\n\024ProtocolAuthenticate\022\r\n\005token" +
      "\030\001 \002(\t\"\036\n\034ProtocolAuthenticationResult\"\214" +
      "\001\n\023ProtocolOpenRequest\022\026\n\016participant_id" +
      "\030\001 \002(\t\022\017\n\007wave_id\030\002 \002(\t\022\031\n\021wavelet_id_pr" +
      "efix\030\003 \003(\t\0221\n\rknown_wavelet\030\004 \003(\0132\032.wave" +
      "server.WaveletVersion\"_\n\016WaveletVersion\022",
      "\022\n\nwavelet_id\030\001 \002(\t\0229\n\016hashed_version\030\002 " +
      "\002(\0132!.federation.ProtocolHashedVersion\"\312" +
      "\001\n\020DocumentSnapshot\022\023\n\013document_id\030\001 \002(\t" +
      "\022A\n\022document_operation\030\002 \002(\0132%.federatio" +
      "n.ProtocolDocumentOperation\022\016\n\006author\030\003 " +
      "\002(\t\022\023\n\013contributor\030\004 \003(\t\022\035\n\025last_modifie" +
      "d_version\030\005 \002(\003\022\032\n\022last_modified_time\030\006 " +
      "\002(\003\"\345\001\n\017WaveletSnapshot\022\022\n\nwavelet_id\030\001 " +
      "\002(\t\022\026\n\016participant_id\030\002 \003(\t\022.\n\010document\030" +
      "\003 \003(\0132\034.waveserver.DocumentSnapshot\0222\n\007v",
      "ersion\030\004 \002(\0132!.federation.ProtocolHashed" +
      "Version\022\032\n\022last_modified_time\030\005 \002(\003\022\017\n\007c" +
      "reator\030\006 \002(\t\022\025\n\rcreation_time\030\007 \002(\003\"Q\n\020W" +
      "aveViewSnapshot\022\017\n\007wave_id\030\001 \002(\t\022,\n\007wave" +
      "let\030\002 \003(\0132\033.waveserver.WaveletSnapshot\"\270" +
      "\002\n\025ProtocolWaveletUpdate\022\024\n\014wavelet_name" +
      "\030\001 \002(\t\0227\n\rapplied_delta\030\002 \003(\0132 .federati" +
      "on.ProtocolWaveletDelta\0228\n\rcommit_notice" +
      "\030\003 \001(\0132!.federation.ProtocolHashedVersio" +
      "n\022<\n\021resulting_version\030\004 \001(\0132!.federatio",
      "n.ProtocolHashedVersion\022-\n\010snapshot\030\005 \001(" +
      "\0132\033.waveserver.WaveletSnapshot\022\025\n\006marker" +
      "\030\006 \001(\010:\005false\022\022\n\nchannel_id\030\007 \001(\t\"r\n\025Pro" +
      "tocolSubmitRequest\022\024\n\014wavelet_name\030\001 \002(\t" +
      "\022/\n\005delta\030\002 \002(\0132 .federation.ProtocolWav" +
      "eletDelta\022\022\n\nchannel_id\030\003 \001(\t\"\230\001\n\026Protoc" +
      "olSubmitResponse\022\032\n\022operations_applied\030\001" +
      " \002(\005\022\025\n\rerror_message\030\002 \001(\t\022K\n hashed_ve" +
      "rsion_after_application\030\003 \001(\0132!.federati" +
      "on.ProtocolHashedVersion2\225\002\n\025ProtocolWav",
      "eClientRpc\022O\n\004Open\022\037.waveserver.Protocol" +
      "OpenRequest\032!.waveserver.ProtocolWavelet" +
      "Update\"\003\330>\001\022O\n\006Submit\022!.waveserver.Proto" +
      "colSubmitRequest\032\".waveserver.ProtocolSu" +
      "bmitResponse\022Z\n\014Authenticate\022 .waveserve" +
      "r.ProtocolAuthenticate\032(.waveserver.Prot" +
      "ocolAuthenticationResultB2\n!org.waveprot" +
      "ocol.box.common.commsB\rWaveClientRpc"
    };
    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_waveserver_ProtocolAuthenticate_descriptor =
            getDescriptor().getMessageTypes().get(0);
          internal_static_waveserver_ProtocolAuthenticate_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_waveserver_ProtocolAuthenticate_descriptor,
              new java.lang.String[] { "Token", },
              org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.class,
              org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.Builder.class);
          internal_static_waveserver_ProtocolAuthenticationResult_descriptor =
            getDescriptor().getMessageTypes().get(1);
          internal_static_waveserver_ProtocolAuthenticationResult_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_waveserver_ProtocolAuthenticationResult_descriptor,
              new java.lang.String[] { },
              org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.class,
              org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.Builder.class);
          internal_static_waveserver_ProtocolOpenRequest_descriptor =
            getDescriptor().getMessageTypes().get(2);
          internal_static_waveserver_ProtocolOpenRequest_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_waveserver_ProtocolOpenRequest_descriptor,
              new java.lang.String[] { "ParticipantId", "WaveId", "WaveletIdPrefix", "KnownWavelet", },
              org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.class,
              org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.Builder.class);
          internal_static_waveserver_WaveletVersion_descriptor =
            getDescriptor().getMessageTypes().get(3);
          internal_static_waveserver_WaveletVersion_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_waveserver_WaveletVersion_descriptor,
              new java.lang.String[] { "WaveletId", "HashedVersion", },
              org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.class,
              org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.Builder.class);
          internal_static_waveserver_DocumentSnapshot_descriptor =
            getDescriptor().getMessageTypes().get(4);
          internal_static_waveserver_DocumentSnapshot_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_waveserver_DocumentSnapshot_descriptor,
              new java.lang.String[] { "DocumentId", "DocumentOperation", "Author", "Contributor", "LastModifiedVersion", "LastModifiedTime", },
              org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot.class,
              org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot.Builder.class);
          internal_static_waveserver_WaveletSnapshot_descriptor =
            getDescriptor().getMessageTypes().get(5);
          internal_static_waveserver_WaveletSnapshot_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_waveserver_WaveletSnapshot_descriptor,
              new java.lang.String[] { "WaveletId", "ParticipantId", "Document", "Version", "LastModifiedTime", "Creator", "CreationTime", },
              org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.class,
              org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.Builder.class);
          internal_static_waveserver_WaveViewSnapshot_descriptor =
            getDescriptor().getMessageTypes().get(6);
          internal_static_waveserver_WaveViewSnapshot_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_waveserver_WaveViewSnapshot_descriptor,
              new java.lang.String[] { "WaveId", "Wavelet", },
              org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot.class,
              org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot.Builder.class);
          internal_static_waveserver_ProtocolWaveletUpdate_descriptor =
            getDescriptor().getMessageTypes().get(7);
          internal_static_waveserver_ProtocolWaveletUpdate_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_waveserver_ProtocolWaveletUpdate_descriptor,
              new java.lang.String[] { "WaveletName", "AppliedDelta", "CommitNotice", "ResultingVersion", "Snapshot", "Marker", "ChannelId", },
              org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.class,
              org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.Builder.class);
          internal_static_waveserver_ProtocolSubmitRequest_descriptor =
            getDescriptor().getMessageTypes().get(8);
          internal_static_waveserver_ProtocolSubmitRequest_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_waveserver_ProtocolSubmitRequest_descriptor,
              new java.lang.String[] { "WaveletName", "Delta", "ChannelId", },
              org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest.class,
              org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest.Builder.class);
          internal_static_waveserver_ProtocolSubmitResponse_descriptor =
            getDescriptor().getMessageTypes().get(9);
          internal_static_waveserver_ProtocolSubmitResponse_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_waveserver_ProtocolSubmitResponse_descriptor,
              new java.lang.String[] { "OperationsApplied", "ErrorMessage", "HashedVersionAfterApplication", },
              org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.class,
              org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.Builder.class);
          com.google.protobuf.ExtensionRegistry registry =
            com.google.protobuf.ExtensionRegistry.newInstance();
          registerAllExtensions(registry);
          org.waveprotocol.box.server.rpc.Rpc.registerAllExtensions(registry);
          org.waveprotocol.wave.federation.Proto.registerAllExtensions(registry);
          return registry;
        }
      };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          org.waveprotocol.box.server.rpc.Rpc.getDescriptor(),
          org.waveprotocol.wave.federation.Proto.getDescriptor(),
        }, assigner);
  }
  
  public static void internalForceInit() {}
  
  // @@protoc_insertion_point(outer_class_scope)
}
