PageRenderTime 76ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 1ms

/proto_src/org/waveprotocol/box/common/comms/WaveClientRpc.java

https://code.google.com/p/wave-protocol/
Java | 4984 lines | 4466 code | 405 blank | 113 comment | 510 complexity | 34591f86d7af5d6a58fd41bdb57d93f8 MD5 | raw file
Possible License(s): BSD-3-Clause, LGPL-3.0, CPL-1.0, Apache-2.0, MIT
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: org/waveprotocol/box/common/comms/waveclient-rpc.proto
  3. package org.waveprotocol.box.common.comms;
  4. public final class WaveClientRpc {
  5. private WaveClientRpc() {}
  6. public static void registerAllExtensions(
  7. com.google.protobuf.ExtensionRegistry registry) {
  8. }
  9. public static final class ProtocolAuthenticate extends
  10. com.google.protobuf.GeneratedMessage {
  11. // Use ProtocolAuthenticate.newBuilder() to construct.
  12. private ProtocolAuthenticate() {
  13. initFields();
  14. }
  15. private ProtocolAuthenticate(boolean noInit) {}
  16. private static final ProtocolAuthenticate defaultInstance;
  17. public static ProtocolAuthenticate getDefaultInstance() {
  18. return defaultInstance;
  19. }
  20. public ProtocolAuthenticate getDefaultInstanceForType() {
  21. return defaultInstance;
  22. }
  23. public static final com.google.protobuf.Descriptors.Descriptor
  24. getDescriptor() {
  25. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolAuthenticate_descriptor;
  26. }
  27. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  28. internalGetFieldAccessorTable() {
  29. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolAuthenticate_fieldAccessorTable;
  30. }
  31. // required string token = 1;
  32. public static final int TOKEN_FIELD_NUMBER = 1;
  33. private boolean hasToken;
  34. private java.lang.String token_ = "";
  35. public boolean hasToken() { return hasToken; }
  36. public java.lang.String getToken() { return token_; }
  37. private void initFields() {
  38. }
  39. public final boolean isInitialized() {
  40. if (!hasToken) return false;
  41. return true;
  42. }
  43. public void writeTo(com.google.protobuf.CodedOutputStream output)
  44. throws java.io.IOException {
  45. getSerializedSize();
  46. if (hasToken()) {
  47. output.writeString(1, getToken());
  48. }
  49. getUnknownFields().writeTo(output);
  50. }
  51. private int memoizedSerializedSize = -1;
  52. public int getSerializedSize() {
  53. int size = memoizedSerializedSize;
  54. if (size != -1) return size;
  55. size = 0;
  56. if (hasToken()) {
  57. size += com.google.protobuf.CodedOutputStream
  58. .computeStringSize(1, getToken());
  59. }
  60. size += getUnknownFields().getSerializedSize();
  61. memoizedSerializedSize = size;
  62. return size;
  63. }
  64. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(
  65. com.google.protobuf.ByteString data)
  66. throws com.google.protobuf.InvalidProtocolBufferException {
  67. return newBuilder().mergeFrom(data).buildParsed();
  68. }
  69. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(
  70. com.google.protobuf.ByteString data,
  71. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  72. throws com.google.protobuf.InvalidProtocolBufferException {
  73. return newBuilder().mergeFrom(data, extensionRegistry)
  74. .buildParsed();
  75. }
  76. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(byte[] data)
  77. throws com.google.protobuf.InvalidProtocolBufferException {
  78. return newBuilder().mergeFrom(data).buildParsed();
  79. }
  80. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(
  81. byte[] data,
  82. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  83. throws com.google.protobuf.InvalidProtocolBufferException {
  84. return newBuilder().mergeFrom(data, extensionRegistry)
  85. .buildParsed();
  86. }
  87. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(java.io.InputStream input)
  88. throws java.io.IOException {
  89. return newBuilder().mergeFrom(input).buildParsed();
  90. }
  91. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(
  92. java.io.InputStream input,
  93. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  94. throws java.io.IOException {
  95. return newBuilder().mergeFrom(input, extensionRegistry)
  96. .buildParsed();
  97. }
  98. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseDelimitedFrom(java.io.InputStream input)
  99. throws java.io.IOException {
  100. Builder builder = newBuilder();
  101. if (builder.mergeDelimitedFrom(input)) {
  102. return builder.buildParsed();
  103. } else {
  104. return null;
  105. }
  106. }
  107. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseDelimitedFrom(
  108. java.io.InputStream input,
  109. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  110. throws java.io.IOException {
  111. Builder builder = newBuilder();
  112. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  113. return builder.buildParsed();
  114. } else {
  115. return null;
  116. }
  117. }
  118. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(
  119. com.google.protobuf.CodedInputStream input)
  120. throws java.io.IOException {
  121. return newBuilder().mergeFrom(input).buildParsed();
  122. }
  123. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(
  124. com.google.protobuf.CodedInputStream input,
  125. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  126. throws java.io.IOException {
  127. return newBuilder().mergeFrom(input, extensionRegistry)
  128. .buildParsed();
  129. }
  130. public static Builder newBuilder() { return Builder.create(); }
  131. public Builder newBuilderForType() { return newBuilder(); }
  132. public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate prototype) {
  133. return newBuilder().mergeFrom(prototype);
  134. }
  135. public Builder toBuilder() { return newBuilder(this); }
  136. public static final class Builder extends
  137. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  138. private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate result;
  139. // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.newBuilder()
  140. private Builder() {}
  141. private static Builder create() {
  142. Builder builder = new Builder();
  143. builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate();
  144. return builder;
  145. }
  146. protected org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate internalGetResult() {
  147. return result;
  148. }
  149. public Builder clear() {
  150. if (result == null) {
  151. throw new IllegalStateException(
  152. "Cannot call clear() after build().");
  153. }
  154. result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate();
  155. return this;
  156. }
  157. public Builder clone() {
  158. return create().mergeFrom(result);
  159. }
  160. public com.google.protobuf.Descriptors.Descriptor
  161. getDescriptorForType() {
  162. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.getDescriptor();
  163. }
  164. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate getDefaultInstanceForType() {
  165. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.getDefaultInstance();
  166. }
  167. public boolean isInitialized() {
  168. return result.isInitialized();
  169. }
  170. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate build() {
  171. if (result != null && !isInitialized()) {
  172. throw newUninitializedMessageException(result);
  173. }
  174. return buildPartial();
  175. }
  176. private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate buildParsed()
  177. throws com.google.protobuf.InvalidProtocolBufferException {
  178. if (!isInitialized()) {
  179. throw newUninitializedMessageException(
  180. result).asInvalidProtocolBufferException();
  181. }
  182. return buildPartial();
  183. }
  184. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate buildPartial() {
  185. if (result == null) {
  186. throw new IllegalStateException(
  187. "build() has already been called on this Builder.");
  188. }
  189. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate returnMe = result;
  190. result = null;
  191. return returnMe;
  192. }
  193. public Builder mergeFrom(com.google.protobuf.Message other) {
  194. if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate) {
  195. return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate)other);
  196. } else {
  197. super.mergeFrom(other);
  198. return this;
  199. }
  200. }
  201. public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate other) {
  202. if (other == org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.getDefaultInstance()) return this;
  203. if (other.hasToken()) {
  204. setToken(other.getToken());
  205. }
  206. this.mergeUnknownFields(other.getUnknownFields());
  207. return this;
  208. }
  209. public Builder mergeFrom(
  210. com.google.protobuf.CodedInputStream input,
  211. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  212. throws java.io.IOException {
  213. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  214. com.google.protobuf.UnknownFieldSet.newBuilder(
  215. this.getUnknownFields());
  216. while (true) {
  217. int tag = input.readTag();
  218. switch (tag) {
  219. case 0:
  220. this.setUnknownFields(unknownFields.build());
  221. return this;
  222. default: {
  223. if (!parseUnknownField(input, unknownFields,
  224. extensionRegistry, tag)) {
  225. this.setUnknownFields(unknownFields.build());
  226. return this;
  227. }
  228. break;
  229. }
  230. case 10: {
  231. setToken(input.readString());
  232. break;
  233. }
  234. }
  235. }
  236. }
  237. // required string token = 1;
  238. public boolean hasToken() {
  239. return result.hasToken();
  240. }
  241. public java.lang.String getToken() {
  242. return result.getToken();
  243. }
  244. public Builder setToken(java.lang.String value) {
  245. if (value == null) {
  246. throw new NullPointerException();
  247. }
  248. result.hasToken = true;
  249. result.token_ = value;
  250. return this;
  251. }
  252. public Builder clearToken() {
  253. result.hasToken = false;
  254. result.token_ = getDefaultInstance().getToken();
  255. return this;
  256. }
  257. // @@protoc_insertion_point(builder_scope:waveserver.ProtocolAuthenticate)
  258. }
  259. static {
  260. defaultInstance = new ProtocolAuthenticate(true);
  261. org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
  262. defaultInstance.initFields();
  263. }
  264. // @@protoc_insertion_point(class_scope:waveserver.ProtocolAuthenticate)
  265. }
  266. public static final class ProtocolAuthenticationResult extends
  267. com.google.protobuf.GeneratedMessage {
  268. // Use ProtocolAuthenticationResult.newBuilder() to construct.
  269. private ProtocolAuthenticationResult() {
  270. initFields();
  271. }
  272. private ProtocolAuthenticationResult(boolean noInit) {}
  273. private static final ProtocolAuthenticationResult defaultInstance;
  274. public static ProtocolAuthenticationResult getDefaultInstance() {
  275. return defaultInstance;
  276. }
  277. public ProtocolAuthenticationResult getDefaultInstanceForType() {
  278. return defaultInstance;
  279. }
  280. public static final com.google.protobuf.Descriptors.Descriptor
  281. getDescriptor() {
  282. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolAuthenticationResult_descriptor;
  283. }
  284. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  285. internalGetFieldAccessorTable() {
  286. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolAuthenticationResult_fieldAccessorTable;
  287. }
  288. private void initFields() {
  289. }
  290. public final boolean isInitialized() {
  291. return true;
  292. }
  293. public void writeTo(com.google.protobuf.CodedOutputStream output)
  294. throws java.io.IOException {
  295. getSerializedSize();
  296. getUnknownFields().writeTo(output);
  297. }
  298. private int memoizedSerializedSize = -1;
  299. public int getSerializedSize() {
  300. int size = memoizedSerializedSize;
  301. if (size != -1) return size;
  302. size = 0;
  303. size += getUnknownFields().getSerializedSize();
  304. memoizedSerializedSize = size;
  305. return size;
  306. }
  307. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(
  308. com.google.protobuf.ByteString data)
  309. throws com.google.protobuf.InvalidProtocolBufferException {
  310. return newBuilder().mergeFrom(data).buildParsed();
  311. }
  312. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(
  313. com.google.protobuf.ByteString data,
  314. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  315. throws com.google.protobuf.InvalidProtocolBufferException {
  316. return newBuilder().mergeFrom(data, extensionRegistry)
  317. .buildParsed();
  318. }
  319. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(byte[] data)
  320. throws com.google.protobuf.InvalidProtocolBufferException {
  321. return newBuilder().mergeFrom(data).buildParsed();
  322. }
  323. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(
  324. byte[] data,
  325. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  326. throws com.google.protobuf.InvalidProtocolBufferException {
  327. return newBuilder().mergeFrom(data, extensionRegistry)
  328. .buildParsed();
  329. }
  330. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(java.io.InputStream input)
  331. throws java.io.IOException {
  332. return newBuilder().mergeFrom(input).buildParsed();
  333. }
  334. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(
  335. java.io.InputStream input,
  336. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  337. throws java.io.IOException {
  338. return newBuilder().mergeFrom(input, extensionRegistry)
  339. .buildParsed();
  340. }
  341. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseDelimitedFrom(java.io.InputStream input)
  342. throws java.io.IOException {
  343. Builder builder = newBuilder();
  344. if (builder.mergeDelimitedFrom(input)) {
  345. return builder.buildParsed();
  346. } else {
  347. return null;
  348. }
  349. }
  350. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseDelimitedFrom(
  351. java.io.InputStream input,
  352. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  353. throws java.io.IOException {
  354. Builder builder = newBuilder();
  355. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  356. return builder.buildParsed();
  357. } else {
  358. return null;
  359. }
  360. }
  361. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(
  362. com.google.protobuf.CodedInputStream input)
  363. throws java.io.IOException {
  364. return newBuilder().mergeFrom(input).buildParsed();
  365. }
  366. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(
  367. com.google.protobuf.CodedInputStream input,
  368. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  369. throws java.io.IOException {
  370. return newBuilder().mergeFrom(input, extensionRegistry)
  371. .buildParsed();
  372. }
  373. public static Builder newBuilder() { return Builder.create(); }
  374. public Builder newBuilderForType() { return newBuilder(); }
  375. public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult prototype) {
  376. return newBuilder().mergeFrom(prototype);
  377. }
  378. public Builder toBuilder() { return newBuilder(this); }
  379. public static final class Builder extends
  380. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  381. private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult result;
  382. // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.newBuilder()
  383. private Builder() {}
  384. private static Builder create() {
  385. Builder builder = new Builder();
  386. builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult();
  387. return builder;
  388. }
  389. protected org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult internalGetResult() {
  390. return result;
  391. }
  392. public Builder clear() {
  393. if (result == null) {
  394. throw new IllegalStateException(
  395. "Cannot call clear() after build().");
  396. }
  397. result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult();
  398. return this;
  399. }
  400. public Builder clone() {
  401. return create().mergeFrom(result);
  402. }
  403. public com.google.protobuf.Descriptors.Descriptor
  404. getDescriptorForType() {
  405. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.getDescriptor();
  406. }
  407. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult getDefaultInstanceForType() {
  408. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.getDefaultInstance();
  409. }
  410. public boolean isInitialized() {
  411. return result.isInitialized();
  412. }
  413. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult build() {
  414. if (result != null && !isInitialized()) {
  415. throw newUninitializedMessageException(result);
  416. }
  417. return buildPartial();
  418. }
  419. private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult buildParsed()
  420. throws com.google.protobuf.InvalidProtocolBufferException {
  421. if (!isInitialized()) {
  422. throw newUninitializedMessageException(
  423. result).asInvalidProtocolBufferException();
  424. }
  425. return buildPartial();
  426. }
  427. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult buildPartial() {
  428. if (result == null) {
  429. throw new IllegalStateException(
  430. "build() has already been called on this Builder.");
  431. }
  432. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult returnMe = result;
  433. result = null;
  434. return returnMe;
  435. }
  436. public Builder mergeFrom(com.google.protobuf.Message other) {
  437. if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult) {
  438. return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult)other);
  439. } else {
  440. super.mergeFrom(other);
  441. return this;
  442. }
  443. }
  444. public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult other) {
  445. if (other == org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.getDefaultInstance()) return this;
  446. this.mergeUnknownFields(other.getUnknownFields());
  447. return this;
  448. }
  449. public Builder mergeFrom(
  450. com.google.protobuf.CodedInputStream input,
  451. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  452. throws java.io.IOException {
  453. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  454. com.google.protobuf.UnknownFieldSet.newBuilder(
  455. this.getUnknownFields());
  456. while (true) {
  457. int tag = input.readTag();
  458. switch (tag) {
  459. case 0:
  460. this.setUnknownFields(unknownFields.build());
  461. return this;
  462. default: {
  463. if (!parseUnknownField(input, unknownFields,
  464. extensionRegistry, tag)) {
  465. this.setUnknownFields(unknownFields.build());
  466. return this;
  467. }
  468. break;
  469. }
  470. }
  471. }
  472. }
  473. // @@protoc_insertion_point(builder_scope:waveserver.ProtocolAuthenticationResult)
  474. }
  475. static {
  476. defaultInstance = new ProtocolAuthenticationResult(true);
  477. org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
  478. defaultInstance.initFields();
  479. }
  480. // @@protoc_insertion_point(class_scope:waveserver.ProtocolAuthenticationResult)
  481. }
  482. public static final class ProtocolOpenRequest extends
  483. com.google.protobuf.GeneratedMessage {
  484. // Use ProtocolOpenRequest.newBuilder() to construct.
  485. private ProtocolOpenRequest() {
  486. initFields();
  487. }
  488. private ProtocolOpenRequest(boolean noInit) {}
  489. private static final ProtocolOpenRequest defaultInstance;
  490. public static ProtocolOpenRequest getDefaultInstance() {
  491. return defaultInstance;
  492. }
  493. public ProtocolOpenRequest getDefaultInstanceForType() {
  494. return defaultInstance;
  495. }
  496. public static final com.google.protobuf.Descriptors.Descriptor
  497. getDescriptor() {
  498. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolOpenRequest_descriptor;
  499. }
  500. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  501. internalGetFieldAccessorTable() {
  502. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolOpenRequest_fieldAccessorTable;
  503. }
  504. // required string participant_id = 1;
  505. public static final int PARTICIPANT_ID_FIELD_NUMBER = 1;
  506. private boolean hasParticipantId;
  507. private java.lang.String participantId_ = "";
  508. public boolean hasParticipantId() { return hasParticipantId; }
  509. public java.lang.String getParticipantId() { return participantId_; }
  510. // required string wave_id = 2;
  511. public static final int WAVE_ID_FIELD_NUMBER = 2;
  512. private boolean hasWaveId;
  513. private java.lang.String waveId_ = "";
  514. public boolean hasWaveId() { return hasWaveId; }
  515. public java.lang.String getWaveId() { return waveId_; }
  516. // repeated string wavelet_id_prefix = 3;
  517. public static final int WAVELET_ID_PREFIX_FIELD_NUMBER = 3;
  518. private java.util.List<java.lang.String> waveletIdPrefix_ =
  519. java.util.Collections.emptyList();
  520. public java.util.List<java.lang.String> getWaveletIdPrefixList() {
  521. return waveletIdPrefix_;
  522. }
  523. public int getWaveletIdPrefixCount() { return waveletIdPrefix_.size(); }
  524. public java.lang.String getWaveletIdPrefix(int index) {
  525. return waveletIdPrefix_.get(index);
  526. }
  527. // repeated .waveserver.WaveletVersion known_wavelet = 4;
  528. public static final int KNOWN_WAVELET_FIELD_NUMBER = 4;
  529. private java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion> knownWavelet_ =
  530. java.util.Collections.emptyList();
  531. public java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion> getKnownWaveletList() {
  532. return knownWavelet_;
  533. }
  534. public int getKnownWaveletCount() { return knownWavelet_.size(); }
  535. public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion getKnownWavelet(int index) {
  536. return knownWavelet_.get(index);
  537. }
  538. private void initFields() {
  539. }
  540. public final boolean isInitialized() {
  541. if (!hasParticipantId) return false;
  542. if (!hasWaveId) return false;
  543. for (org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion element : getKnownWaveletList()) {
  544. if (!element.isInitialized()) return false;
  545. }
  546. return true;
  547. }
  548. public void writeTo(com.google.protobuf.CodedOutputStream output)
  549. throws java.io.IOException {
  550. getSerializedSize();
  551. if (hasParticipantId()) {
  552. output.writeString(1, getParticipantId());
  553. }
  554. if (hasWaveId()) {
  555. output.writeString(2, getWaveId());
  556. }
  557. for (java.lang.String element : getWaveletIdPrefixList()) {
  558. output.writeString(3, element);
  559. }
  560. for (org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion element : getKnownWaveletList()) {
  561. output.writeMessage(4, element);
  562. }
  563. getUnknownFields().writeTo(output);
  564. }
  565. private int memoizedSerializedSize = -1;
  566. public int getSerializedSize() {
  567. int size = memoizedSerializedSize;
  568. if (size != -1) return size;
  569. size = 0;
  570. if (hasParticipantId()) {
  571. size += com.google.protobuf.CodedOutputStream
  572. .computeStringSize(1, getParticipantId());
  573. }
  574. if (hasWaveId()) {
  575. size += com.google.protobuf.CodedOutputStream
  576. .computeStringSize(2, getWaveId());
  577. }
  578. {
  579. int dataSize = 0;
  580. for (java.lang.String element : getWaveletIdPrefixList()) {
  581. dataSize += com.google.protobuf.CodedOutputStream
  582. .computeStringSizeNoTag(element);
  583. }
  584. size += dataSize;
  585. size += 1 * getWaveletIdPrefixList().size();
  586. }
  587. for (org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion element : getKnownWaveletList()) {
  588. size += com.google.protobuf.CodedOutputStream
  589. .computeMessageSize(4, element);
  590. }
  591. size += getUnknownFields().getSerializedSize();
  592. memoizedSerializedSize = size;
  593. return size;
  594. }
  595. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(
  596. com.google.protobuf.ByteString data)
  597. throws com.google.protobuf.InvalidProtocolBufferException {
  598. return newBuilder().mergeFrom(data).buildParsed();
  599. }
  600. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(
  601. com.google.protobuf.ByteString data,
  602. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  603. throws com.google.protobuf.InvalidProtocolBufferException {
  604. return newBuilder().mergeFrom(data, extensionRegistry)
  605. .buildParsed();
  606. }
  607. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(byte[] data)
  608. throws com.google.protobuf.InvalidProtocolBufferException {
  609. return newBuilder().mergeFrom(data).buildParsed();
  610. }
  611. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(
  612. byte[] data,
  613. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  614. throws com.google.protobuf.InvalidProtocolBufferException {
  615. return newBuilder().mergeFrom(data, extensionRegistry)
  616. .buildParsed();
  617. }
  618. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(java.io.InputStream input)
  619. throws java.io.IOException {
  620. return newBuilder().mergeFrom(input).buildParsed();
  621. }
  622. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(
  623. java.io.InputStream input,
  624. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  625. throws java.io.IOException {
  626. return newBuilder().mergeFrom(input, extensionRegistry)
  627. .buildParsed();
  628. }
  629. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseDelimitedFrom(java.io.InputStream input)
  630. throws java.io.IOException {
  631. Builder builder = newBuilder();
  632. if (builder.mergeDelimitedFrom(input)) {
  633. return builder.buildParsed();
  634. } else {
  635. return null;
  636. }
  637. }
  638. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseDelimitedFrom(
  639. java.io.InputStream input,
  640. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  641. throws java.io.IOException {
  642. Builder builder = newBuilder();
  643. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  644. return builder.buildParsed();
  645. } else {
  646. return null;
  647. }
  648. }
  649. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(
  650. com.google.protobuf.CodedInputStream input)
  651. throws java.io.IOException {
  652. return newBuilder().mergeFrom(input).buildParsed();
  653. }
  654. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(
  655. com.google.protobuf.CodedInputStream input,
  656. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  657. throws java.io.IOException {
  658. return newBuilder().mergeFrom(input, extensionRegistry)
  659. .buildParsed();
  660. }
  661. public static Builder newBuilder() { return Builder.create(); }
  662. public Builder newBuilderForType() { return newBuilder(); }
  663. public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest prototype) {
  664. return newBuilder().mergeFrom(prototype);
  665. }
  666. public Builder toBuilder() { return newBuilder(this); }
  667. public static final class Builder extends
  668. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  669. private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest result;
  670. // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.newBuilder()
  671. private Builder() {}
  672. private static Builder create() {
  673. Builder builder = new Builder();
  674. builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest();
  675. return builder;
  676. }
  677. protected org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest internalGetResult() {
  678. return result;
  679. }
  680. public Builder clear() {
  681. if (result == null) {
  682. throw new IllegalStateException(
  683. "Cannot call clear() after build().");
  684. }
  685. result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest();
  686. return this;
  687. }
  688. public Builder clone() {
  689. return create().mergeFrom(result);
  690. }
  691. public com.google.protobuf.Descriptors.Descriptor
  692. getDescriptorForType() {
  693. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.getDescriptor();
  694. }
  695. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest getDefaultInstanceForType() {
  696. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.getDefaultInstance();
  697. }
  698. public boolean isInitialized() {
  699. return result.isInitialized();
  700. }
  701. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest build() {
  702. if (result != null && !isInitialized()) {
  703. throw newUninitializedMessageException(result);
  704. }
  705. return buildPartial();
  706. }
  707. private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest buildParsed()
  708. throws com.google.protobuf.InvalidProtocolBufferException {
  709. if (!isInitialized()) {
  710. throw newUninitializedMessageException(
  711. result).asInvalidProtocolBufferException();
  712. }
  713. return buildPartial();
  714. }
  715. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest buildPartial() {
  716. if (result == null) {
  717. throw new IllegalStateException(
  718. "build() has already been called on this Builder.");
  719. }
  720. if (result.waveletIdPrefix_ != java.util.Collections.EMPTY_LIST) {
  721. result.waveletIdPrefix_ =
  722. java.util.Collections.unmodifiableList(result.waveletIdPrefix_);
  723. }
  724. if (result.knownWavelet_ != java.util.Collections.EMPTY_LIST) {
  725. result.knownWavelet_ =
  726. java.util.Collections.unmodifiableList(result.knownWavelet_);
  727. }
  728. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest returnMe = result;
  729. result = null;
  730. return returnMe;
  731. }
  732. public Builder mergeFrom(com.google.protobuf.Message other) {
  733. if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest) {
  734. return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest)other);
  735. } else {
  736. super.mergeFrom(other);
  737. return this;
  738. }
  739. }
  740. public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest other) {
  741. if (other == org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.getDefaultInstance()) return this;
  742. if (other.hasParticipantId()) {
  743. setParticipantId(other.getParticipantId());
  744. }
  745. if (other.hasWaveId()) {
  746. setWaveId(other.getWaveId());
  747. }
  748. if (!other.waveletIdPrefix_.isEmpty()) {
  749. if (result.waveletIdPrefix_.isEmpty()) {
  750. result.waveletIdPrefix_ = new java.util.ArrayList<java.lang.String>();
  751. }
  752. result.waveletIdPrefix_.addAll(other.waveletIdPrefix_);
  753. }
  754. if (!other.knownWavelet_.isEmpty()) {
  755. if (result.knownWavelet_.isEmpty()) {
  756. result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion>();
  757. }
  758. result.knownWavelet_.addAll(other.knownWavelet_);
  759. }
  760. this.mergeUnknownFields(other.getUnknownFields());
  761. return this;
  762. }
  763. public Builder mergeFrom(
  764. com.google.protobuf.CodedInputStream input,
  765. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  766. throws java.io.IOException {
  767. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  768. com.google.protobuf.UnknownFieldSet.newBuilder(
  769. this.getUnknownFields());
  770. while (true) {
  771. int tag = input.readTag();
  772. switch (tag) {
  773. case 0:
  774. this.setUnknownFields(unknownFields.build());
  775. return this;
  776. default: {
  777. if (!parseUnknownField(input, unknownFields,
  778. extensionRegistry, tag)) {
  779. this.setUnknownFields(unknownFields.build());
  780. return this;
  781. }
  782. break;
  783. }
  784. case 10: {
  785. setParticipantId(input.readString());
  786. break;
  787. }
  788. case 18: {
  789. setWaveId(input.readString());
  790. break;
  791. }
  792. case 26: {
  793. addWaveletIdPrefix(input.readString());
  794. break;
  795. }
  796. case 34: {
  797. org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.Builder subBuilder = org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.newBuilder();
  798. input.readMessage(subBuilder, extensionRegistry);
  799. addKnownWavelet(subBuilder.buildPartial());
  800. break;
  801. }
  802. }
  803. }
  804. }
  805. // required string participant_id = 1;
  806. public boolean hasParticipantId() {
  807. return result.hasParticipantId();
  808. }
  809. public java.lang.String getParticipantId() {
  810. return result.getParticipantId();
  811. }
  812. public Builder setParticipantId(java.lang.String value) {
  813. if (value == null) {
  814. throw new NullPointerException();
  815. }
  816. result.hasParticipantId = true;
  817. result.participantId_ = value;
  818. return this;
  819. }
  820. public Builder clearParticipantId() {
  821. result.hasParticipantId = false;
  822. result.participantId_ = getDefaultInstance().getParticipantId();
  823. return this;
  824. }
  825. // required string wave_id = 2;
  826. public boolean hasWaveId() {
  827. return result.hasWaveId();
  828. }
  829. public java.lang.String getWaveId() {
  830. return result.getWaveId();
  831. }
  832. public Builder setWaveId(java.lang.String value) {
  833. if (value == null) {
  834. throw new NullPointerException();
  835. }
  836. result.hasWaveId = true;
  837. result.waveId_ = value;
  838. return this;
  839. }
  840. public Builder clearWaveId() {
  841. result.hasWaveId = false;
  842. result.waveId_ = getDefaultInstance().getWaveId();
  843. return this;
  844. }
  845. // repeated string wavelet_id_prefix = 3;
  846. public java.util.List<java.lang.String> getWaveletIdPrefixList() {
  847. return java.util.Collections.unmodifiableList(result.waveletIdPrefix_);
  848. }
  849. public int getWaveletIdPrefixCount() {
  850. return result.getWaveletIdPrefixCount();
  851. }
  852. public java.lang.String getWaveletIdPrefix(int index) {
  853. return result.getWaveletIdPrefix(index);
  854. }
  855. public Builder setWaveletIdPrefix(int index, java.lang.String value) {
  856. if (value == null) {
  857. throw new NullPointerException();
  858. }
  859. result.waveletIdPrefix_.set(index, value);
  860. return this;
  861. }
  862. public Builder addWaveletIdPrefix(java.lang.String value) {
  863. if (value == null) {
  864. throw new NullPointerException();
  865. }
  866. if (result.waveletIdPrefix_.isEmpty()) {
  867. result.waveletIdPrefix_ = new java.util.ArrayList<java.lang.String>();
  868. }
  869. result.waveletIdPrefix_.add(value);
  870. return this;
  871. }
  872. public Builder addAllWaveletIdPrefix(
  873. java.lang.Iterable<? extends java.lang.String> values) {
  874. if (result.waveletIdPrefix_.isEmpty()) {
  875. result.waveletIdPrefix_ = new java.util.ArrayList<java.lang.String>();
  876. }
  877. super.addAll(values, result.waveletIdPrefix_);
  878. return this;
  879. }
  880. public Builder clearWaveletIdPrefix() {
  881. result.waveletIdPrefix_ = java.util.Collections.emptyList();
  882. return this;
  883. }
  884. // repeated .waveserver.WaveletVersion known_wavelet = 4;
  885. public java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion> getKnownWaveletList() {
  886. return java.util.Collections.unmodifiableList(result.knownWavelet_);
  887. }
  888. public int getKnownWaveletCount() {
  889. return result.getKnownWaveletCount();
  890. }
  891. public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion getKnownWavelet(int index) {
  892. return result.getKnownWavelet(index);
  893. }
  894. public Builder setKnownWavelet(int index, org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion value) {
  895. if (value == null) {
  896. throw new NullPointerException();
  897. }
  898. result.knownWavelet_.set(index, value);
  899. return this;
  900. }
  901. public Builder setKnownWavelet(int index, org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.Builder builderForValue) {
  902. result.knownWavelet_.set(index, builderForValue.build());
  903. return this;
  904. }
  905. public Builder addKnownWavelet(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion value) {
  906. if (value == null) {
  907. throw new NullPointerException();
  908. }
  909. if (result.knownWavelet_.isEmpty()) {
  910. result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion>();
  911. }
  912. result.knownWavelet_.add(value);
  913. return this;
  914. }
  915. public Builder addKnownWavelet(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.Builder builderForValue) {
  916. if (result.knownWavelet_.isEmpty()) {
  917. result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion>();
  918. }
  919. result.knownWavelet_.add(builderForValue.build());
  920. return this;
  921. }
  922. public Builder addAllKnownWavelet(
  923. java.lang.Iterable<? extends org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion> values) {
  924. if (result.knownWavelet_.isEmpty()) {
  925. result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion>();
  926. }
  927. super.addAll(values, result.knownWavelet_);
  928. return this;
  929. }
  930. public Builder clearKnownWavelet() {
  931. result.knownWavelet_ = java.util.Collections.emptyList();
  932. return this;
  933. }
  934. // @@protoc_insertion_point(builder_scope:waveserver.ProtocolOpenRequest)
  935. }
  936. static {
  937. defaultInstance = new ProtocolOpenRequest(true);
  938. org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
  939. defaultInstance.initFields();
  940. }
  941. // @@protoc_insertion_point(class_scope:waveserver.ProtocolOpenRequest)
  942. }
  943. public static final class WaveletVersion extends
  944. com.google.protobuf.GeneratedMessage {
  945. // Use WaveletVersion.newBuilder() to construct.
  946. private WaveletVersion() {
  947. initFields();
  948. }
  949. private WaveletVersion(boolean noInit) {}
  950. private static final WaveletVersion defaultInstance;
  951. public static WaveletVersion getDefaultInstance() {
  952. return defaultInstance;
  953. }
  954. public WaveletVersion getDefaultInstanceForType() {
  955. return defaultInstance;
  956. }
  957. public static final com.google.protobuf.Descriptors.Descriptor
  958. getDescriptor() {
  959. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_WaveletVersion_descriptor;
  960. }
  961. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  962. internalGetFieldAccessorTable() {
  963. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_WaveletVersion_fieldAccessorTable;
  964. }
  965. // required string wavelet_id = 1;
  966. public static final int WAVELET_ID_FIELD_NUMBER = 1;
  967. private boolean hasWaveletId;
  968. private java.lang.String waveletId_ = "";
  969. public boolean hasWaveletId() { return hasWaveletId; }
  970. public java.lang.String getWaveletId() { return waveletId_; }
  971. // required .federation.ProtocolHashedVersion hashed_version = 2;
  972. public static final int HASHED_VERSION_FIELD_NUMBER = 2;
  973. private boolean hasHashedVersion;
  974. private org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion hashedVersion_;
  975. public boolean hasHashedVersion() { return hasHashedVersion; }
  976. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getHashedVersion() { return hashedVersion_; }
  977. private void initFields() {
  978. hashedVersion_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  979. }
  980. public final boolean isInitialized() {
  981. if (!hasWaveletId) return false;
  982. if (!hasHashedVersion) return false;
  983. if (!getHashedVersion().isInitialized()) return false;
  984. return true;
  985. }
  986. public void writeTo(com.google.protobuf.CodedOutputStream output)
  987. throws java.io.IOException {
  988. getSerializedSize();
  989. if (hasWaveletId()) {
  990. output.writeString(1, getWaveletId());
  991. }
  992. if (hasHashedVersion()) {
  993. output.writeMessage(2, getHashedVersion());
  994. }
  995. getUnknownFields().writeTo(output);
  996. }
  997. private int memoizedSerializedSize = -1;
  998. public int getSerializedSize() {
  999. int size = memoizedSerializedSize;
  1000. if (size != -1) return size;
  1001. size = 0;
  1002. if (hasWaveletId()) {
  1003. size += com.google.protobuf.CodedOutputStream
  1004. .computeStringSize(1, getWaveletId());
  1005. }
  1006. if (hasHashedVersion()) {
  1007. size += com.google.protobuf.CodedOutputStream
  1008. .computeMessageSize(2, getHashedVersion());
  1009. }
  1010. size += getUnknownFields().getSerializedSize();
  1011. memoizedSerializedSize = size;
  1012. return size;
  1013. }
  1014. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(
  1015. com.google.protobuf.ByteString data)
  1016. throws com.google.protobuf.InvalidProtocolBufferException {
  1017. return newBuilder().mergeFrom(data).buildParsed();
  1018. }
  1019. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(
  1020. com.google.protobuf.ByteString data,
  1021. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1022. throws com.google.protobuf.InvalidProtocolBufferException {
  1023. return newBuilder().mergeFrom(data, extensionRegistry)
  1024. .buildParsed();
  1025. }
  1026. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(byte[] data)
  1027. throws com.google.protobuf.InvalidProtocolBufferException {
  1028. return newBuilder().mergeFrom(data).buildParsed();
  1029. }
  1030. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(
  1031. byte[] data,
  1032. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1033. throws com.google.protobuf.InvalidProtocolBufferException {
  1034. return newBuilder().mergeFrom(data, extensionRegistry)
  1035. .buildParsed();
  1036. }
  1037. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(java.io.InputStream input)
  1038. throws java.io.IOException {
  1039. return newBuilder().mergeFrom(input).buildParsed();
  1040. }
  1041. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(
  1042. java.io.InputStream input,
  1043. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1044. throws java.io.IOException {
  1045. return newBuilder().mergeFrom(input, extensionRegistry)
  1046. .buildParsed();
  1047. }
  1048. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseDelimitedFrom(java.io.InputStream input)
  1049. throws java.io.IOException {
  1050. Builder builder = newBuilder();
  1051. if (builder.mergeDelimitedFrom(input)) {
  1052. return builder.buildParsed();
  1053. } else {
  1054. return null;
  1055. }
  1056. }
  1057. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseDelimitedFrom(
  1058. java.io.InputStream input,
  1059. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1060. throws java.io.IOException {
  1061. Builder builder = newBuilder();
  1062. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  1063. return builder.buildParsed();
  1064. } else {
  1065. return null;
  1066. }
  1067. }
  1068. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(
  1069. com.google.protobuf.CodedInputStream input)
  1070. throws java.io.IOException {
  1071. return newBuilder().mergeFrom(input).buildParsed();
  1072. }
  1073. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(
  1074. com.google.protobuf.CodedInputStream input,
  1075. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1076. throws java.io.IOException {
  1077. return newBuilder().mergeFrom(input, extensionRegistry)
  1078. .buildParsed();
  1079. }
  1080. public static Builder newBuilder() { return Builder.create(); }
  1081. public Builder newBuilderForType() { return newBuilder(); }
  1082. public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion prototype) {
  1083. return newBuilder().mergeFrom(prototype);
  1084. }
  1085. public Builder toBuilder() { return newBuilder(this); }
  1086. public static final class Builder extends
  1087. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  1088. private org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion result;
  1089. // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.newBuilder()
  1090. private Builder() {}
  1091. private static Builder create() {
  1092. Builder builder = new Builder();
  1093. builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion();
  1094. return builder;
  1095. }
  1096. protected org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion internalGetResult() {
  1097. return result;
  1098. }
  1099. public Builder clear() {
  1100. if (result == null) {
  1101. throw new IllegalStateException(
  1102. "Cannot call clear() after build().");
  1103. }
  1104. result = new org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion();
  1105. return this;
  1106. }
  1107. public Builder clone() {
  1108. return create().mergeFrom(result);
  1109. }
  1110. public com.google.protobuf.Descriptors.Descriptor
  1111. getDescriptorForType() {
  1112. return org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.getDescriptor();
  1113. }
  1114. public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion getDefaultInstanceForType() {
  1115. return org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.getDefaultInstance();
  1116. }
  1117. public boolean isInitialized() {
  1118. return result.isInitialized();
  1119. }
  1120. public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion build() {
  1121. if (result != null && !isInitialized()) {
  1122. throw newUninitializedMessageException(result);
  1123. }
  1124. return buildPartial();
  1125. }
  1126. private org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion buildParsed()
  1127. throws com.google.protobuf.InvalidProtocolBufferException {
  1128. if (!isInitialized()) {
  1129. throw newUninitializedMessageException(
  1130. result).asInvalidProtocolBufferException();
  1131. }
  1132. return buildPartial();
  1133. }
  1134. public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion buildPartial() {
  1135. if (result == null) {
  1136. throw new IllegalStateException(
  1137. "build() has already been called on this Builder.");
  1138. }
  1139. org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion returnMe = result;
  1140. result = null;
  1141. return returnMe;
  1142. }
  1143. public Builder mergeFrom(com.google.protobuf.Message other) {
  1144. if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion) {
  1145. return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion)other);
  1146. } else {
  1147. super.mergeFrom(other);
  1148. return this;
  1149. }
  1150. }
  1151. public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion other) {
  1152. if (other == org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.getDefaultInstance()) return this;
  1153. if (other.hasWaveletId()) {
  1154. setWaveletId(other.getWaveletId());
  1155. }
  1156. if (other.hasHashedVersion()) {
  1157. mergeHashedVersion(other.getHashedVersion());
  1158. }
  1159. this.mergeUnknownFields(other.getUnknownFields());
  1160. return this;
  1161. }
  1162. public Builder mergeFrom(
  1163. com.google.protobuf.CodedInputStream input,
  1164. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1165. throws java.io.IOException {
  1166. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  1167. com.google.protobuf.UnknownFieldSet.newBuilder(
  1168. this.getUnknownFields());
  1169. while (true) {
  1170. int tag = input.readTag();
  1171. switch (tag) {
  1172. case 0:
  1173. this.setUnknownFields(unknownFields.build());
  1174. return this;
  1175. default: {
  1176. if (!parseUnknownField(input, unknownFields,
  1177. extensionRegistry, tag)) {
  1178. this.setUnknownFields(unknownFields.build());
  1179. return this;
  1180. }
  1181. break;
  1182. }
  1183. case 10: {
  1184. setWaveletId(input.readString());
  1185. break;
  1186. }
  1187. case 18: {
  1188. org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder();
  1189. if (hasHashedVersion()) {
  1190. subBuilder.mergeFrom(getHashedVersion());
  1191. }
  1192. input.readMessage(subBuilder, extensionRegistry);
  1193. setHashedVersion(subBuilder.buildPartial());
  1194. break;
  1195. }
  1196. }
  1197. }
  1198. }
  1199. // required string wavelet_id = 1;
  1200. public boolean hasWaveletId() {
  1201. return result.hasWaveletId();
  1202. }
  1203. public java.lang.String getWaveletId() {
  1204. return result.getWaveletId();
  1205. }
  1206. public Builder setWaveletId(java.lang.String value) {
  1207. if (value == null) {
  1208. throw new NullPointerException();
  1209. }
  1210. result.hasWaveletId = true;
  1211. result.waveletId_ = value;
  1212. return this;
  1213. }
  1214. public Builder clearWaveletId() {
  1215. result.hasWaveletId = false;
  1216. result.waveletId_ = getDefaultInstance().getWaveletId();
  1217. return this;
  1218. }
  1219. // required .federation.ProtocolHashedVersion hashed_version = 2;
  1220. public boolean hasHashedVersion() {
  1221. return result.hasHashedVersion();
  1222. }
  1223. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getHashedVersion() {
  1224. return result.getHashedVersion();
  1225. }
  1226. public Builder setHashedVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
  1227. if (value == null) {
  1228. throw new NullPointerException();
  1229. }
  1230. result.hasHashedVersion = true;
  1231. result.hashedVersion_ = value;
  1232. return this;
  1233. }
  1234. public Builder setHashedVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder builderForValue) {
  1235. result.hasHashedVersion = true;
  1236. result.hashedVersion_ = builderForValue.build();
  1237. return this;
  1238. }
  1239. public Builder mergeHashedVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
  1240. if (result.hasHashedVersion() &&
  1241. result.hashedVersion_ != org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance()) {
  1242. result.hashedVersion_ =
  1243. org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder(result.hashedVersion_).mergeFrom(value).buildPartial();
  1244. } else {
  1245. result.hashedVersion_ = value;
  1246. }
  1247. result.hasHashedVersion = true;
  1248. return this;
  1249. }
  1250. public Builder clearHashedVersion() {
  1251. result.hasHashedVersion = false;
  1252. result.hashedVersion_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  1253. return this;
  1254. }
  1255. // @@protoc_insertion_point(builder_scope:waveserver.WaveletVersion)
  1256. }
  1257. static {
  1258. defaultInstance = new WaveletVersion(true);
  1259. org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
  1260. defaultInstance.initFields();
  1261. }
  1262. // @@protoc_insertion_point(class_scope:waveserver.WaveletVersion)
  1263. }
  1264. public static final class DocumentSnapshot extends
  1265. com.google.protobuf.GeneratedMessage {
  1266. // Use DocumentSnapshot.newBuilder() to construct.
  1267. private DocumentSnapshot() {
  1268. initFields();
  1269. }
  1270. private DocumentSnapshot(boolean noInit) {}
  1271. private static final DocumentSnapshot defaultInstance;
  1272. public static DocumentSnapshot getDefaultInstance() {
  1273. return defaultInstance;
  1274. }
  1275. public DocumentSnapshot getDefaultInstanceForType() {
  1276. return defaultInstance;
  1277. }
  1278. public static final com.google.protobuf.Descriptors.Descriptor
  1279. getDescriptor() {
  1280. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_DocumentSnapshot_descriptor;
  1281. }
  1282. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  1283. internalGetFieldAccessorTable() {
  1284. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_DocumentSnapshot_fieldAccessorTable;
  1285. }
  1286. // required string document_id = 1;
  1287. public static final int DOCUMENT_ID_FIELD_NUMBER = 1;
  1288. private boolean hasDocumentId;
  1289. private java.lang.String documentId_ = "";
  1290. public boolean hasDocumentId() { return hasDocumentId; }
  1291. public java.lang.String getDocumentId() { return documentId_; }
  1292. // required .federation.ProtocolDocumentOperation document_operation = 2;
  1293. public static final int DOCUMENT_OPERATION_FIELD_NUMBER = 2;
  1294. private boolean hasDocumentOperation;
  1295. private org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation documentOperation_;
  1296. public boolean hasDocumentOperation() { return hasDocumentOperation; }
  1297. public org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation getDocumentOperation() { return documentOperation_; }
  1298. // required string author = 3;
  1299. public static final int AUTHOR_FIELD_NUMBER = 3;
  1300. private boolean hasAuthor;
  1301. private java.lang.String author_ = "";
  1302. public boolean hasAuthor() { return hasAuthor; }
  1303. public java.lang.String getAuthor() { return author_; }
  1304. // repeated string contributor = 4;
  1305. public static final int CONTRIBUTOR_FIELD_NUMBER = 4;
  1306. private java.util.List<java.lang.String> contributor_ =
  1307. java.util.Collections.emptyList();
  1308. public java.util.List<java.lang.String> getContributorList() {
  1309. return contributor_;
  1310. }
  1311. public int getContributorCount() { return contributor_.size(); }
  1312. public java.lang.String getContributor(int index) {
  1313. return contributor_.get(index);
  1314. }
  1315. // required int64 last_modified_version = 5;
  1316. public static final int LAST_MODIFIED_VERSION_FIELD_NUMBER = 5;
  1317. private boolean hasLastModifiedVersion;
  1318. private long lastModifiedVersion_ = 0L;
  1319. public boolean hasLastModifiedVersion() { return hasLastModifiedVersion; }
  1320. public long getLastModifiedVersion() { return lastModifiedVersion_; }
  1321. // required int64 last_modified_time = 6;
  1322. public static final int LAST_MODIFIED_TIME_FIELD_NUMBER = 6;
  1323. private boolean hasLastModifiedTime;
  1324. private long lastModifiedTime_ = 0L;
  1325. public boolean hasLastModifiedTime() { return hasLastModifiedTime; }
  1326. public long getLastModifiedTime() { return lastModifiedTime_; }
  1327. private void initFields() {
  1328. documentOperation_ = org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation.getDefaultInstance();
  1329. }
  1330. public final boolean isInitialized() {
  1331. if (!hasDocumentId) return false;
  1332. if (!hasDocumentOperation) return false;
  1333. if (!hasAuthor) return false;
  1334. if (!hasLastModifiedVersion) return false;
  1335. if (!hasLastModifiedTime) return false;
  1336. if (!getDocumentOperation().isInitialized()) return false;
  1337. return true;
  1338. }
  1339. public void writeTo(com.google.protobuf.CodedOutputStream output)
  1340. throws java.io.IOException {
  1341. getSerializedSize();
  1342. if (hasDocumentId()) {
  1343. output.writeString(1, getDocumentId());
  1344. }
  1345. if (hasDocumentOperation()) {
  1346. output.writeMessage(2, getDocumentOperation());
  1347. }
  1348. if (hasAuthor()) {
  1349. output.writeString(3, getAuthor());
  1350. }
  1351. for (java.lang.String element : getContributorList()) {
  1352. output.writeString(4, element);
  1353. }
  1354. if (hasLastModifiedVersion()) {
  1355. output.writeInt64(5, getLastModifiedVersion());
  1356. }
  1357. if (hasLastModifiedTime()) {
  1358. output.writeInt64(6, getLastModifiedTime());
  1359. }
  1360. getUnknownFields().writeTo(output);
  1361. }
  1362. private int memoizedSerializedSize = -1;
  1363. public int getSerializedSize() {
  1364. int size = memoizedSerializedSize;
  1365. if (size != -1) return size;
  1366. size = 0;
  1367. if (hasDocumentId()) {
  1368. size += com.google.protobuf.CodedOutputStream
  1369. .computeStringSize(1, getDocumentId());
  1370. }
  1371. if (hasDocumentOperation()) {
  1372. size += com.google.protobuf.CodedOutputStream
  1373. .computeMessageSize(2, getDocumentOperation());
  1374. }
  1375. if (hasAuthor()) {
  1376. size += com.google.protobuf.CodedOutputStream
  1377. .computeStringSize(3, getAuthor());
  1378. }
  1379. {
  1380. int dataSize = 0;
  1381. for (java.lang.String element : getContributorList()) {
  1382. dataSize += com.google.protobuf.CodedOutputStream
  1383. .computeStringSizeNoTag(element);
  1384. }
  1385. size += dataSize;
  1386. size += 1 * getContributorList().size();
  1387. }
  1388. if (hasLastModifiedVersion()) {
  1389. size += com.google.protobuf.CodedOutputStream
  1390. .computeInt64Size(5, getLastModifiedVersion());
  1391. }
  1392. if (hasLastModifiedTime()) {
  1393. size += com.google.protobuf.CodedOutputStream
  1394. .computeInt64Size(6, getLastModifiedTime());
  1395. }
  1396. size += getUnknownFields().getSerializedSize();
  1397. memoizedSerializedSize = size;
  1398. return size;
  1399. }
  1400. public static org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot parseFrom(
  1401. com.google.protobuf.ByteString data)
  1402. throws com.google.protobuf.InvalidProtocolBufferException {
  1403. return newBuilder().mergeFrom(data).buildParsed();
  1404. }
  1405. public static org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot parseFrom(
  1406. com.google.protobuf.ByteString data,
  1407. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1408. throws com.google.protobuf.InvalidProtocolBufferException {
  1409. return newBuilder().mergeFrom(data, extensionRegistry)
  1410. .buildParsed();
  1411. }
  1412. public static org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot parseFrom(byte[] data)
  1413. throws com.google.protobuf.InvalidProtocolBufferException {
  1414. return newBuilder().mergeFrom(data).buildParsed();
  1415. }
  1416. public static org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot parseFrom(
  1417. byte[] data,
  1418. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1419. throws com.google.protobuf.InvalidProtocolBufferException {
  1420. return newBuilder().mergeFrom(data, extensionRegistry)
  1421. .buildParsed();
  1422. }
  1423. public static org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot parseFrom(java.io.InputStream input)
  1424. throws java.io.IOException {
  1425. return newBuilder().mergeFrom(input).buildParsed();
  1426. }
  1427. public static org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot parseFrom(
  1428. java.io.InputStream input,
  1429. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1430. throws java.io.IOException {
  1431. return newBuilder().mergeFrom(input, extensionRegistry)
  1432. .buildParsed();
  1433. }
  1434. public static org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot parseDelimitedFrom(java.io.InputStream input)
  1435. throws java.io.IOException {
  1436. Builder builder = newBuilder();
  1437. if (builder.mergeDelimitedFrom(input)) {
  1438. return builder.buildParsed();
  1439. } else {
  1440. return null;
  1441. }
  1442. }
  1443. public static org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot parseDelimitedFrom(
  1444. java.io.InputStream input,
  1445. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1446. throws java.io.IOException {
  1447. Builder builder = newBuilder();
  1448. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  1449. return builder.buildParsed();
  1450. } else {
  1451. return null;
  1452. }
  1453. }
  1454. public static org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot parseFrom(
  1455. com.google.protobuf.CodedInputStream input)
  1456. throws java.io.IOException {
  1457. return newBuilder().mergeFrom(input).buildParsed();
  1458. }
  1459. public static org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot parseFrom(
  1460. com.google.protobuf.CodedInputStream input,
  1461. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1462. throws java.io.IOException {
  1463. return newBuilder().mergeFrom(input, extensionRegistry)
  1464. .buildParsed();
  1465. }
  1466. public static Builder newBuilder() { return Builder.create(); }
  1467. public Builder newBuilderForType() { return newBuilder(); }
  1468. public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot prototype) {
  1469. return newBuilder().mergeFrom(prototype);
  1470. }
  1471. public Builder toBuilder() { return newBuilder(this); }
  1472. public static final class Builder extends
  1473. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  1474. private org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot result;
  1475. // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot.newBuilder()
  1476. private Builder() {}
  1477. private static Builder create() {
  1478. Builder builder = new Builder();
  1479. builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot();
  1480. return builder;
  1481. }
  1482. protected org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot internalGetResult() {
  1483. return result;
  1484. }
  1485. public Builder clear() {
  1486. if (result == null) {
  1487. throw new IllegalStateException(
  1488. "Cannot call clear() after build().");
  1489. }
  1490. result = new org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot();
  1491. return this;
  1492. }
  1493. public Builder clone() {
  1494. return create().mergeFrom(result);
  1495. }
  1496. public com.google.protobuf.Descriptors.Descriptor
  1497. getDescriptorForType() {
  1498. return org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot.getDescriptor();
  1499. }
  1500. public org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot getDefaultInstanceForType() {
  1501. return org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot.getDefaultInstance();
  1502. }
  1503. public boolean isInitialized() {
  1504. return result.isInitialized();
  1505. }
  1506. public org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot build() {
  1507. if (result != null && !isInitialized()) {
  1508. throw newUninitializedMessageException(result);
  1509. }
  1510. return buildPartial();
  1511. }
  1512. private org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot buildParsed()
  1513. throws com.google.protobuf.InvalidProtocolBufferException {
  1514. if (!isInitialized()) {
  1515. throw newUninitializedMessageException(
  1516. result).asInvalidProtocolBufferException();
  1517. }
  1518. return buildPartial();
  1519. }
  1520. public org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot buildPartial() {
  1521. if (result == null) {
  1522. throw new IllegalStateException(
  1523. "build() has already been called on this Builder.");
  1524. }
  1525. if (result.contributor_ != java.util.Collections.EMPTY_LIST) {
  1526. result.contributor_ =
  1527. java.util.Collections.unmodifiableList(result.contributor_);
  1528. }
  1529. org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot returnMe = result;
  1530. result = null;
  1531. return returnMe;
  1532. }
  1533. public Builder mergeFrom(com.google.protobuf.Message other) {
  1534. if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot) {
  1535. return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot)other);
  1536. } else {
  1537. super.mergeFrom(other);
  1538. return this;
  1539. }
  1540. }
  1541. public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot other) {
  1542. if (other == org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot.getDefaultInstance()) return this;
  1543. if (other.hasDocumentId()) {
  1544. setDocumentId(other.getDocumentId());
  1545. }
  1546. if (other.hasDocumentOperation()) {
  1547. mergeDocumentOperation(other.getDocumentOperation());
  1548. }
  1549. if (other.hasAuthor()) {
  1550. setAuthor(other.getAuthor());
  1551. }
  1552. if (!other.contributor_.isEmpty()) {
  1553. if (result.contributor_.isEmpty()) {
  1554. result.contributor_ = new java.util.ArrayList<java.lang.String>();
  1555. }
  1556. result.contributor_.addAll(other.contributor_);
  1557. }
  1558. if (other.hasLastModifiedVersion()) {
  1559. setLastModifiedVersion(other.getLastModifiedVersion());
  1560. }
  1561. if (other.hasLastModifiedTime()) {
  1562. setLastModifiedTime(other.getLastModifiedTime());
  1563. }
  1564. this.mergeUnknownFields(other.getUnknownFields());
  1565. return this;
  1566. }
  1567. public Builder mergeFrom(
  1568. com.google.protobuf.CodedInputStream input,
  1569. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1570. throws java.io.IOException {
  1571. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  1572. com.google.protobuf.UnknownFieldSet.newBuilder(
  1573. this.getUnknownFields());
  1574. while (true) {
  1575. int tag = input.readTag();
  1576. switch (tag) {
  1577. case 0:
  1578. this.setUnknownFields(unknownFields.build());
  1579. return this;
  1580. default: {
  1581. if (!parseUnknownField(input, unknownFields,
  1582. extensionRegistry, tag)) {
  1583. this.setUnknownFields(unknownFields.build());
  1584. return this;
  1585. }
  1586. break;
  1587. }
  1588. case 10: {
  1589. setDocumentId(input.readString());
  1590. break;
  1591. }
  1592. case 18: {
  1593. org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation.newBuilder();
  1594. if (hasDocumentOperation()) {
  1595. subBuilder.mergeFrom(getDocumentOperation());
  1596. }
  1597. input.readMessage(subBuilder, extensionRegistry);
  1598. setDocumentOperation(subBuilder.buildPartial());
  1599. break;
  1600. }
  1601. case 26: {
  1602. setAuthor(input.readString());
  1603. break;
  1604. }
  1605. case 34: {
  1606. addContributor(input.readString());
  1607. break;
  1608. }
  1609. case 40: {
  1610. setLastModifiedVersion(input.readInt64());
  1611. break;
  1612. }
  1613. case 48: {
  1614. setLastModifiedTime(input.readInt64());
  1615. break;
  1616. }
  1617. }
  1618. }
  1619. }
  1620. // required string document_id = 1;
  1621. public boolean hasDocumentId() {
  1622. return result.hasDocumentId();
  1623. }
  1624. public java.lang.String getDocumentId() {
  1625. return result.getDocumentId();
  1626. }
  1627. public Builder setDocumentId(java.lang.String value) {
  1628. if (value == null) {
  1629. throw new NullPointerException();
  1630. }
  1631. result.hasDocumentId = true;
  1632. result.documentId_ = value;
  1633. return this;
  1634. }
  1635. public Builder clearDocumentId() {
  1636. result.hasDocumentId = false;
  1637. result.documentId_ = getDefaultInstance().getDocumentId();
  1638. return this;
  1639. }
  1640. // required .federation.ProtocolDocumentOperation document_operation = 2;
  1641. public boolean hasDocumentOperation() {
  1642. return result.hasDocumentOperation();
  1643. }
  1644. public org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation getDocumentOperation() {
  1645. return result.getDocumentOperation();
  1646. }
  1647. public Builder setDocumentOperation(org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation value) {
  1648. if (value == null) {
  1649. throw new NullPointerException();
  1650. }
  1651. result.hasDocumentOperation = true;
  1652. result.documentOperation_ = value;
  1653. return this;
  1654. }
  1655. public Builder setDocumentOperation(org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation.Builder builderForValue) {
  1656. result.hasDocumentOperation = true;
  1657. result.documentOperation_ = builderForValue.build();
  1658. return this;
  1659. }
  1660. public Builder mergeDocumentOperation(org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation value) {
  1661. if (result.hasDocumentOperation() &&
  1662. result.documentOperation_ != org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation.getDefaultInstance()) {
  1663. result.documentOperation_ =
  1664. org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation.newBuilder(result.documentOperation_).mergeFrom(value).buildPartial();
  1665. } else {
  1666. result.documentOperation_ = value;
  1667. }
  1668. result.hasDocumentOperation = true;
  1669. return this;
  1670. }
  1671. public Builder clearDocumentOperation() {
  1672. result.hasDocumentOperation = false;
  1673. result.documentOperation_ = org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation.getDefaultInstance();
  1674. return this;
  1675. }
  1676. // required string author = 3;
  1677. public boolean hasAuthor() {
  1678. return result.hasAuthor();
  1679. }
  1680. public java.lang.String getAuthor() {
  1681. return result.getAuthor();
  1682. }
  1683. public Builder setAuthor(java.lang.String value) {
  1684. if (value == null) {
  1685. throw new NullPointerException();
  1686. }
  1687. result.hasAuthor = true;
  1688. result.author_ = value;
  1689. return this;
  1690. }
  1691. public Builder clearAuthor() {
  1692. result.hasAuthor = false;
  1693. result.author_ = getDefaultInstance().getAuthor();
  1694. return this;
  1695. }
  1696. // repeated string contributor = 4;
  1697. public java.util.List<java.lang.String> getContributorList() {
  1698. return java.util.Collections.unmodifiableList(result.contributor_);
  1699. }
  1700. public int getContributorCount() {
  1701. return result.getContributorCount();
  1702. }
  1703. public java.lang.String getContributor(int index) {
  1704. return result.getContributor(index);
  1705. }
  1706. public Builder setContributor(int index, java.lang.String value) {
  1707. if (value == null) {
  1708. throw new NullPointerException();
  1709. }
  1710. result.contributor_.set(index, value);
  1711. return this;
  1712. }
  1713. public Builder addContributor(java.lang.String value) {
  1714. if (value == null) {
  1715. throw new NullPointerException();
  1716. }
  1717. if (result.contributor_.isEmpty()) {
  1718. result.contributor_ = new java.util.ArrayList<java.lang.String>();
  1719. }
  1720. result.contributor_.add(value);
  1721. return this;
  1722. }
  1723. public Builder addAllContributor(
  1724. java.lang.Iterable<? extends java.lang.String> values) {
  1725. if (result.contributor_.isEmpty()) {
  1726. result.contributor_ = new java.util.ArrayList<java.lang.String>();
  1727. }
  1728. super.addAll(values, result.contributor_);
  1729. return this;
  1730. }
  1731. public Builder clearContributor() {
  1732. result.contributor_ = java.util.Collections.emptyList();
  1733. return this;
  1734. }
  1735. // required int64 last_modified_version = 5;
  1736. public boolean hasLastModifiedVersion() {
  1737. return result.hasLastModifiedVersion();
  1738. }
  1739. public long getLastModifiedVersion() {
  1740. return result.getLastModifiedVersion();
  1741. }
  1742. public Builder setLastModifiedVersion(long value) {
  1743. result.hasLastModifiedVersion = true;
  1744. result.lastModifiedVersion_ = value;
  1745. return this;
  1746. }
  1747. public Builder clearLastModifiedVersion() {
  1748. result.hasLastModifiedVersion = false;
  1749. result.lastModifiedVersion_ = 0L;
  1750. return this;
  1751. }
  1752. // required int64 last_modified_time = 6;
  1753. public boolean hasLastModifiedTime() {
  1754. return result.hasLastModifiedTime();
  1755. }
  1756. public long getLastModifiedTime() {
  1757. return result.getLastModifiedTime();
  1758. }
  1759. public Builder setLastModifiedTime(long value) {
  1760. result.hasLastModifiedTime = true;
  1761. result.lastModifiedTime_ = value;
  1762. return this;
  1763. }
  1764. public Builder clearLastModifiedTime() {
  1765. result.hasLastModifiedTime = false;
  1766. result.lastModifiedTime_ = 0L;
  1767. return this;
  1768. }
  1769. // @@protoc_insertion_point(builder_scope:waveserver.DocumentSnapshot)
  1770. }
  1771. static {
  1772. defaultInstance = new DocumentSnapshot(true);
  1773. org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
  1774. defaultInstance.initFields();
  1775. }
  1776. // @@protoc_insertion_point(class_scope:waveserver.DocumentSnapshot)
  1777. }
  1778. public static final class WaveletSnapshot extends
  1779. com.google.protobuf.GeneratedMessage {
  1780. // Use WaveletSnapshot.newBuilder() to construct.
  1781. private WaveletSnapshot() {
  1782. initFields();
  1783. }
  1784. private WaveletSnapshot(boolean noInit) {}
  1785. private static final WaveletSnapshot defaultInstance;
  1786. public static WaveletSnapshot getDefaultInstance() {
  1787. return defaultInstance;
  1788. }
  1789. public WaveletSnapshot getDefaultInstanceForType() {
  1790. return defaultInstance;
  1791. }
  1792. public static final com.google.protobuf.Descriptors.Descriptor
  1793. getDescriptor() {
  1794. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_WaveletSnapshot_descriptor;
  1795. }
  1796. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  1797. internalGetFieldAccessorTable() {
  1798. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_WaveletSnapshot_fieldAccessorTable;
  1799. }
  1800. // required string wavelet_id = 1;
  1801. public static final int WAVELET_ID_FIELD_NUMBER = 1;
  1802. private boolean hasWaveletId;
  1803. private java.lang.String waveletId_ = "";
  1804. public boolean hasWaveletId() { return hasWaveletId; }
  1805. public java.lang.String getWaveletId() { return waveletId_; }
  1806. // repeated string participant_id = 2;
  1807. public static final int PARTICIPANT_ID_FIELD_NUMBER = 2;
  1808. private java.util.List<java.lang.String> participantId_ =
  1809. java.util.Collections.emptyList();
  1810. public java.util.List<java.lang.String> getParticipantIdList() {
  1811. return participantId_;
  1812. }
  1813. public int getParticipantIdCount() { return participantId_.size(); }
  1814. public java.lang.String getParticipantId(int index) {
  1815. return participantId_.get(index);
  1816. }
  1817. // repeated .waveserver.DocumentSnapshot document = 3;
  1818. public static final int DOCUMENT_FIELD_NUMBER = 3;
  1819. private java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot> document_ =
  1820. java.util.Collections.emptyList();
  1821. public java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot> getDocumentList() {
  1822. return document_;
  1823. }
  1824. public int getDocumentCount() { return document_.size(); }
  1825. public org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot getDocument(int index) {
  1826. return document_.get(index);
  1827. }
  1828. // required .federation.ProtocolHashedVersion version = 4;
  1829. public static final int VERSION_FIELD_NUMBER = 4;
  1830. private boolean hasVersion;
  1831. private org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion version_;
  1832. public boolean hasVersion() { return hasVersion; }
  1833. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getVersion() { return version_; }
  1834. // required int64 last_modified_time = 5;
  1835. public static final int LAST_MODIFIED_TIME_FIELD_NUMBER = 5;
  1836. private boolean hasLastModifiedTime;
  1837. private long lastModifiedTime_ = 0L;
  1838. public boolean hasLastModifiedTime() { return hasLastModifiedTime; }
  1839. public long getLastModifiedTime() { return lastModifiedTime_; }
  1840. // required string creator = 6;
  1841. public static final int CREATOR_FIELD_NUMBER = 6;
  1842. private boolean hasCreator;
  1843. private java.lang.String creator_ = "";
  1844. public boolean hasCreator() { return hasCreator; }
  1845. public java.lang.String getCreator() { return creator_; }
  1846. // required int64 creation_time = 7;
  1847. public static final int CREATION_TIME_FIELD_NUMBER = 7;
  1848. private boolean hasCreationTime;
  1849. private long creationTime_ = 0L;
  1850. public boolean hasCreationTime() { return hasCreationTime; }
  1851. public long getCreationTime() { return creationTime_; }
  1852. private void initFields() {
  1853. version_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  1854. }
  1855. public final boolean isInitialized() {
  1856. if (!hasWaveletId) return false;
  1857. if (!hasVersion) return false;
  1858. if (!hasLastModifiedTime) return false;
  1859. if (!hasCreator) return false;
  1860. if (!hasCreationTime) return false;
  1861. for (org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot element : getDocumentList()) {
  1862. if (!element.isInitialized()) return false;
  1863. }
  1864. if (!getVersion().isInitialized()) return false;
  1865. return true;
  1866. }
  1867. public void writeTo(com.google.protobuf.CodedOutputStream output)
  1868. throws java.io.IOException {
  1869. getSerializedSize();
  1870. if (hasWaveletId()) {
  1871. output.writeString(1, getWaveletId());
  1872. }
  1873. for (java.lang.String element : getParticipantIdList()) {
  1874. output.writeString(2, element);
  1875. }
  1876. for (org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot element : getDocumentList()) {
  1877. output.writeMessage(3, element);
  1878. }
  1879. if (hasVersion()) {
  1880. output.writeMessage(4, getVersion());
  1881. }
  1882. if (hasLastModifiedTime()) {
  1883. output.writeInt64(5, getLastModifiedTime());
  1884. }
  1885. if (hasCreator()) {
  1886. output.writeString(6, getCreator());
  1887. }
  1888. if (hasCreationTime()) {
  1889. output.writeInt64(7, getCreationTime());
  1890. }
  1891. getUnknownFields().writeTo(output);
  1892. }
  1893. private int memoizedSerializedSize = -1;
  1894. public int getSerializedSize() {
  1895. int size = memoizedSerializedSize;
  1896. if (size != -1) return size;
  1897. size = 0;
  1898. if (hasWaveletId()) {
  1899. size += com.google.protobuf.CodedOutputStream
  1900. .computeStringSize(1, getWaveletId());
  1901. }
  1902. {
  1903. int dataSize = 0;
  1904. for (java.lang.String element : getParticipantIdList()) {
  1905. dataSize += com.google.protobuf.CodedOutputStream
  1906. .computeStringSizeNoTag(element);
  1907. }
  1908. size += dataSize;
  1909. size += 1 * getParticipantIdList().size();
  1910. }
  1911. for (org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot element : getDocumentList()) {
  1912. size += com.google.protobuf.CodedOutputStream
  1913. .computeMessageSize(3, element);
  1914. }
  1915. if (hasVersion()) {
  1916. size += com.google.protobuf.CodedOutputStream
  1917. .computeMessageSize(4, getVersion());
  1918. }
  1919. if (hasLastModifiedTime()) {
  1920. size += com.google.protobuf.CodedOutputStream
  1921. .computeInt64Size(5, getLastModifiedTime());
  1922. }
  1923. if (hasCreator()) {
  1924. size += com.google.protobuf.CodedOutputStream
  1925. .computeStringSize(6, getCreator());
  1926. }
  1927. if (hasCreationTime()) {
  1928. size += com.google.protobuf.CodedOutputStream
  1929. .computeInt64Size(7, getCreationTime());
  1930. }
  1931. size += getUnknownFields().getSerializedSize();
  1932. memoizedSerializedSize = size;
  1933. return size;
  1934. }
  1935. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot parseFrom(
  1936. com.google.protobuf.ByteString data)
  1937. throws com.google.protobuf.InvalidProtocolBufferException {
  1938. return newBuilder().mergeFrom(data).buildParsed();
  1939. }
  1940. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot parseFrom(
  1941. com.google.protobuf.ByteString data,
  1942. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1943. throws com.google.protobuf.InvalidProtocolBufferException {
  1944. return newBuilder().mergeFrom(data, extensionRegistry)
  1945. .buildParsed();
  1946. }
  1947. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot parseFrom(byte[] data)
  1948. throws com.google.protobuf.InvalidProtocolBufferException {
  1949. return newBuilder().mergeFrom(data).buildParsed();
  1950. }
  1951. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot parseFrom(
  1952. byte[] data,
  1953. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1954. throws com.google.protobuf.InvalidProtocolBufferException {
  1955. return newBuilder().mergeFrom(data, extensionRegistry)
  1956. .buildParsed();
  1957. }
  1958. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot parseFrom(java.io.InputStream input)
  1959. throws java.io.IOException {
  1960. return newBuilder().mergeFrom(input).buildParsed();
  1961. }
  1962. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot parseFrom(
  1963. java.io.InputStream input,
  1964. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1965. throws java.io.IOException {
  1966. return newBuilder().mergeFrom(input, extensionRegistry)
  1967. .buildParsed();
  1968. }
  1969. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot parseDelimitedFrom(java.io.InputStream input)
  1970. throws java.io.IOException {
  1971. Builder builder = newBuilder();
  1972. if (builder.mergeDelimitedFrom(input)) {
  1973. return builder.buildParsed();
  1974. } else {
  1975. return null;
  1976. }
  1977. }
  1978. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot parseDelimitedFrom(
  1979. java.io.InputStream input,
  1980. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1981. throws java.io.IOException {
  1982. Builder builder = newBuilder();
  1983. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  1984. return builder.buildParsed();
  1985. } else {
  1986. return null;
  1987. }
  1988. }
  1989. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot parseFrom(
  1990. com.google.protobuf.CodedInputStream input)
  1991. throws java.io.IOException {
  1992. return newBuilder().mergeFrom(input).buildParsed();
  1993. }
  1994. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot parseFrom(
  1995. com.google.protobuf.CodedInputStream input,
  1996. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1997. throws java.io.IOException {
  1998. return newBuilder().mergeFrom(input, extensionRegistry)
  1999. .buildParsed();
  2000. }
  2001. public static Builder newBuilder() { return Builder.create(); }
  2002. public Builder newBuilderForType() { return newBuilder(); }
  2003. public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot prototype) {
  2004. return newBuilder().mergeFrom(prototype);
  2005. }
  2006. public Builder toBuilder() { return newBuilder(this); }
  2007. public static final class Builder extends
  2008. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  2009. private org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot result;
  2010. // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.newBuilder()
  2011. private Builder() {}
  2012. private static Builder create() {
  2013. Builder builder = new Builder();
  2014. builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot();
  2015. return builder;
  2016. }
  2017. protected org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot internalGetResult() {
  2018. return result;
  2019. }
  2020. public Builder clear() {
  2021. if (result == null) {
  2022. throw new IllegalStateException(
  2023. "Cannot call clear() after build().");
  2024. }
  2025. result = new org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot();
  2026. return this;
  2027. }
  2028. public Builder clone() {
  2029. return create().mergeFrom(result);
  2030. }
  2031. public com.google.protobuf.Descriptors.Descriptor
  2032. getDescriptorForType() {
  2033. return org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.getDescriptor();
  2034. }
  2035. public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot getDefaultInstanceForType() {
  2036. return org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.getDefaultInstance();
  2037. }
  2038. public boolean isInitialized() {
  2039. return result.isInitialized();
  2040. }
  2041. public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot build() {
  2042. if (result != null && !isInitialized()) {
  2043. throw newUninitializedMessageException(result);
  2044. }
  2045. return buildPartial();
  2046. }
  2047. private org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot buildParsed()
  2048. throws com.google.protobuf.InvalidProtocolBufferException {
  2049. if (!isInitialized()) {
  2050. throw newUninitializedMessageException(
  2051. result).asInvalidProtocolBufferException();
  2052. }
  2053. return buildPartial();
  2054. }
  2055. public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot buildPartial() {
  2056. if (result == null) {
  2057. throw new IllegalStateException(
  2058. "build() has already been called on this Builder.");
  2059. }
  2060. if (result.participantId_ != java.util.Collections.EMPTY_LIST) {
  2061. result.participantId_ =
  2062. java.util.Collections.unmodifiableList(result.participantId_);
  2063. }
  2064. if (result.document_ != java.util.Collections.EMPTY_LIST) {
  2065. result.document_ =
  2066. java.util.Collections.unmodifiableList(result.document_);
  2067. }
  2068. org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot returnMe = result;
  2069. result = null;
  2070. return returnMe;
  2071. }
  2072. public Builder mergeFrom(com.google.protobuf.Message other) {
  2073. if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot) {
  2074. return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot)other);
  2075. } else {
  2076. super.mergeFrom(other);
  2077. return this;
  2078. }
  2079. }
  2080. public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot other) {
  2081. if (other == org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.getDefaultInstance()) return this;
  2082. if (other.hasWaveletId()) {
  2083. setWaveletId(other.getWaveletId());
  2084. }
  2085. if (!other.participantId_.isEmpty()) {
  2086. if (result.participantId_.isEmpty()) {
  2087. result.participantId_ = new java.util.ArrayList<java.lang.String>();
  2088. }
  2089. result.participantId_.addAll(other.participantId_);
  2090. }
  2091. if (!other.document_.isEmpty()) {
  2092. if (result.document_.isEmpty()) {
  2093. result.document_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot>();
  2094. }
  2095. result.document_.addAll(other.document_);
  2096. }
  2097. if (other.hasVersion()) {
  2098. mergeVersion(other.getVersion());
  2099. }
  2100. if (other.hasLastModifiedTime()) {
  2101. setLastModifiedTime(other.getLastModifiedTime());
  2102. }
  2103. if (other.hasCreator()) {
  2104. setCreator(other.getCreator());
  2105. }
  2106. if (other.hasCreationTime()) {
  2107. setCreationTime(other.getCreationTime());
  2108. }
  2109. this.mergeUnknownFields(other.getUnknownFields());
  2110. return this;
  2111. }
  2112. public Builder mergeFrom(
  2113. com.google.protobuf.CodedInputStream input,
  2114. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2115. throws java.io.IOException {
  2116. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  2117. com.google.protobuf.UnknownFieldSet.newBuilder(
  2118. this.getUnknownFields());
  2119. while (true) {
  2120. int tag = input.readTag();
  2121. switch (tag) {
  2122. case 0:
  2123. this.setUnknownFields(unknownFields.build());
  2124. return this;
  2125. default: {
  2126. if (!parseUnknownField(input, unknownFields,
  2127. extensionRegistry, tag)) {
  2128. this.setUnknownFields(unknownFields.build());
  2129. return this;
  2130. }
  2131. break;
  2132. }
  2133. case 10: {
  2134. setWaveletId(input.readString());
  2135. break;
  2136. }
  2137. case 18: {
  2138. addParticipantId(input.readString());
  2139. break;
  2140. }
  2141. case 26: {
  2142. org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot.Builder subBuilder = org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot.newBuilder();
  2143. input.readMessage(subBuilder, extensionRegistry);
  2144. addDocument(subBuilder.buildPartial());
  2145. break;
  2146. }
  2147. case 34: {
  2148. org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder();
  2149. if (hasVersion()) {
  2150. subBuilder.mergeFrom(getVersion());
  2151. }
  2152. input.readMessage(subBuilder, extensionRegistry);
  2153. setVersion(subBuilder.buildPartial());
  2154. break;
  2155. }
  2156. case 40: {
  2157. setLastModifiedTime(input.readInt64());
  2158. break;
  2159. }
  2160. case 50: {
  2161. setCreator(input.readString());
  2162. break;
  2163. }
  2164. case 56: {
  2165. setCreationTime(input.readInt64());
  2166. break;
  2167. }
  2168. }
  2169. }
  2170. }
  2171. // required string wavelet_id = 1;
  2172. public boolean hasWaveletId() {
  2173. return result.hasWaveletId();
  2174. }
  2175. public java.lang.String getWaveletId() {
  2176. return result.getWaveletId();
  2177. }
  2178. public Builder setWaveletId(java.lang.String value) {
  2179. if (value == null) {
  2180. throw new NullPointerException();
  2181. }
  2182. result.hasWaveletId = true;
  2183. result.waveletId_ = value;
  2184. return this;
  2185. }
  2186. public Builder clearWaveletId() {
  2187. result.hasWaveletId = false;
  2188. result.waveletId_ = getDefaultInstance().getWaveletId();
  2189. return this;
  2190. }
  2191. // repeated string participant_id = 2;
  2192. public java.util.List<java.lang.String> getParticipantIdList() {
  2193. return java.util.Collections.unmodifiableList(result.participantId_);
  2194. }
  2195. public int getParticipantIdCount() {
  2196. return result.getParticipantIdCount();
  2197. }
  2198. public java.lang.String getParticipantId(int index) {
  2199. return result.getParticipantId(index);
  2200. }
  2201. public Builder setParticipantId(int index, java.lang.String value) {
  2202. if (value == null) {
  2203. throw new NullPointerException();
  2204. }
  2205. result.participantId_.set(index, value);
  2206. return this;
  2207. }
  2208. public Builder addParticipantId(java.lang.String value) {
  2209. if (value == null) {
  2210. throw new NullPointerException();
  2211. }
  2212. if (result.participantId_.isEmpty()) {
  2213. result.participantId_ = new java.util.ArrayList<java.lang.String>();
  2214. }
  2215. result.participantId_.add(value);
  2216. return this;
  2217. }
  2218. public Builder addAllParticipantId(
  2219. java.lang.Iterable<? extends java.lang.String> values) {
  2220. if (result.participantId_.isEmpty()) {
  2221. result.participantId_ = new java.util.ArrayList<java.lang.String>();
  2222. }
  2223. super.addAll(values, result.participantId_);
  2224. return this;
  2225. }
  2226. public Builder clearParticipantId() {
  2227. result.participantId_ = java.util.Collections.emptyList();
  2228. return this;
  2229. }
  2230. // repeated .waveserver.DocumentSnapshot document = 3;
  2231. public java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot> getDocumentList() {
  2232. return java.util.Collections.unmodifiableList(result.document_);
  2233. }
  2234. public int getDocumentCount() {
  2235. return result.getDocumentCount();
  2236. }
  2237. public org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot getDocument(int index) {
  2238. return result.getDocument(index);
  2239. }
  2240. public Builder setDocument(int index, org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot value) {
  2241. if (value == null) {
  2242. throw new NullPointerException();
  2243. }
  2244. result.document_.set(index, value);
  2245. return this;
  2246. }
  2247. public Builder setDocument(int index, org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot.Builder builderForValue) {
  2248. result.document_.set(index, builderForValue.build());
  2249. return this;
  2250. }
  2251. public Builder addDocument(org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot value) {
  2252. if (value == null) {
  2253. throw new NullPointerException();
  2254. }
  2255. if (result.document_.isEmpty()) {
  2256. result.document_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot>();
  2257. }
  2258. result.document_.add(value);
  2259. return this;
  2260. }
  2261. public Builder addDocument(org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot.Builder builderForValue) {
  2262. if (result.document_.isEmpty()) {
  2263. result.document_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot>();
  2264. }
  2265. result.document_.add(builderForValue.build());
  2266. return this;
  2267. }
  2268. public Builder addAllDocument(
  2269. java.lang.Iterable<? extends org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot> values) {
  2270. if (result.document_.isEmpty()) {
  2271. result.document_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot>();
  2272. }
  2273. super.addAll(values, result.document_);
  2274. return this;
  2275. }
  2276. public Builder clearDocument() {
  2277. result.document_ = java.util.Collections.emptyList();
  2278. return this;
  2279. }
  2280. // required .federation.ProtocolHashedVersion version = 4;
  2281. public boolean hasVersion() {
  2282. return result.hasVersion();
  2283. }
  2284. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getVersion() {
  2285. return result.getVersion();
  2286. }
  2287. public Builder setVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
  2288. if (value == null) {
  2289. throw new NullPointerException();
  2290. }
  2291. result.hasVersion = true;
  2292. result.version_ = value;
  2293. return this;
  2294. }
  2295. public Builder setVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder builderForValue) {
  2296. result.hasVersion = true;
  2297. result.version_ = builderForValue.build();
  2298. return this;
  2299. }
  2300. public Builder mergeVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
  2301. if (result.hasVersion() &&
  2302. result.version_ != org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance()) {
  2303. result.version_ =
  2304. org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder(result.version_).mergeFrom(value).buildPartial();
  2305. } else {
  2306. result.version_ = value;
  2307. }
  2308. result.hasVersion = true;
  2309. return this;
  2310. }
  2311. public Builder clearVersion() {
  2312. result.hasVersion = false;
  2313. result.version_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  2314. return this;
  2315. }
  2316. // required int64 last_modified_time = 5;
  2317. public boolean hasLastModifiedTime() {
  2318. return result.hasLastModifiedTime();
  2319. }
  2320. public long getLastModifiedTime() {
  2321. return result.getLastModifiedTime();
  2322. }
  2323. public Builder setLastModifiedTime(long value) {
  2324. result.hasLastModifiedTime = true;
  2325. result.lastModifiedTime_ = value;
  2326. return this;
  2327. }
  2328. public Builder clearLastModifiedTime() {
  2329. result.hasLastModifiedTime = false;
  2330. result.lastModifiedTime_ = 0L;
  2331. return this;
  2332. }
  2333. // required string creator = 6;
  2334. public boolean hasCreator() {
  2335. return result.hasCreator();
  2336. }
  2337. public java.lang.String getCreator() {
  2338. return result.getCreator();
  2339. }
  2340. public Builder setCreator(java.lang.String value) {
  2341. if (value == null) {
  2342. throw new NullPointerException();
  2343. }
  2344. result.hasCreator = true;
  2345. result.creator_ = value;
  2346. return this;
  2347. }
  2348. public Builder clearCreator() {
  2349. result.hasCreator = false;
  2350. result.creator_ = getDefaultInstance().getCreator();
  2351. return this;
  2352. }
  2353. // required int64 creation_time = 7;
  2354. public boolean hasCreationTime() {
  2355. return result.hasCreationTime();
  2356. }
  2357. public long getCreationTime() {
  2358. return result.getCreationTime();
  2359. }
  2360. public Builder setCreationTime(long value) {
  2361. result.hasCreationTime = true;
  2362. result.creationTime_ = value;
  2363. return this;
  2364. }
  2365. public Builder clearCreationTime() {
  2366. result.hasCreationTime = false;
  2367. result.creationTime_ = 0L;
  2368. return this;
  2369. }
  2370. // @@protoc_insertion_point(builder_scope:waveserver.WaveletSnapshot)
  2371. }
  2372. static {
  2373. defaultInstance = new WaveletSnapshot(true);
  2374. org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
  2375. defaultInstance.initFields();
  2376. }
  2377. // @@protoc_insertion_point(class_scope:waveserver.WaveletSnapshot)
  2378. }
  2379. public static final class WaveViewSnapshot extends
  2380. com.google.protobuf.GeneratedMessage {
  2381. // Use WaveViewSnapshot.newBuilder() to construct.
  2382. private WaveViewSnapshot() {
  2383. initFields();
  2384. }
  2385. private WaveViewSnapshot(boolean noInit) {}
  2386. private static final WaveViewSnapshot defaultInstance;
  2387. public static WaveViewSnapshot getDefaultInstance() {
  2388. return defaultInstance;
  2389. }
  2390. public WaveViewSnapshot getDefaultInstanceForType() {
  2391. return defaultInstance;
  2392. }
  2393. public static final com.google.protobuf.Descriptors.Descriptor
  2394. getDescriptor() {
  2395. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_WaveViewSnapshot_descriptor;
  2396. }
  2397. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  2398. internalGetFieldAccessorTable() {
  2399. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_WaveViewSnapshot_fieldAccessorTable;
  2400. }
  2401. // required string wave_id = 1;
  2402. public static final int WAVE_ID_FIELD_NUMBER = 1;
  2403. private boolean hasWaveId;
  2404. private java.lang.String waveId_ = "";
  2405. public boolean hasWaveId() { return hasWaveId; }
  2406. public java.lang.String getWaveId() { return waveId_; }
  2407. // repeated .waveserver.WaveletSnapshot wavelet = 2;
  2408. public static final int WAVELET_FIELD_NUMBER = 2;
  2409. private java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot> wavelet_ =
  2410. java.util.Collections.emptyList();
  2411. public java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot> getWaveletList() {
  2412. return wavelet_;
  2413. }
  2414. public int getWaveletCount() { return wavelet_.size(); }
  2415. public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot getWavelet(int index) {
  2416. return wavelet_.get(index);
  2417. }
  2418. private void initFields() {
  2419. }
  2420. public final boolean isInitialized() {
  2421. if (!hasWaveId) return false;
  2422. for (org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot element : getWaveletList()) {
  2423. if (!element.isInitialized()) return false;
  2424. }
  2425. return true;
  2426. }
  2427. public void writeTo(com.google.protobuf.CodedOutputStream output)
  2428. throws java.io.IOException {
  2429. getSerializedSize();
  2430. if (hasWaveId()) {
  2431. output.writeString(1, getWaveId());
  2432. }
  2433. for (org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot element : getWaveletList()) {
  2434. output.writeMessage(2, element);
  2435. }
  2436. getUnknownFields().writeTo(output);
  2437. }
  2438. private int memoizedSerializedSize = -1;
  2439. public int getSerializedSize() {
  2440. int size = memoizedSerializedSize;
  2441. if (size != -1) return size;
  2442. size = 0;
  2443. if (hasWaveId()) {
  2444. size += com.google.protobuf.CodedOutputStream
  2445. .computeStringSize(1, getWaveId());
  2446. }
  2447. for (org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot element : getWaveletList()) {
  2448. size += com.google.protobuf.CodedOutputStream
  2449. .computeMessageSize(2, element);
  2450. }
  2451. size += getUnknownFields().getSerializedSize();
  2452. memoizedSerializedSize = size;
  2453. return size;
  2454. }
  2455. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot parseFrom(
  2456. com.google.protobuf.ByteString data)
  2457. throws com.google.protobuf.InvalidProtocolBufferException {
  2458. return newBuilder().mergeFrom(data).buildParsed();
  2459. }
  2460. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot parseFrom(
  2461. com.google.protobuf.ByteString data,
  2462. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2463. throws com.google.protobuf.InvalidProtocolBufferException {
  2464. return newBuilder().mergeFrom(data, extensionRegistry)
  2465. .buildParsed();
  2466. }
  2467. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot parseFrom(byte[] data)
  2468. throws com.google.protobuf.InvalidProtocolBufferException {
  2469. return newBuilder().mergeFrom(data).buildParsed();
  2470. }
  2471. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot parseFrom(
  2472. byte[] data,
  2473. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2474. throws com.google.protobuf.InvalidProtocolBufferException {
  2475. return newBuilder().mergeFrom(data, extensionRegistry)
  2476. .buildParsed();
  2477. }
  2478. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot parseFrom(java.io.InputStream input)
  2479. throws java.io.IOException {
  2480. return newBuilder().mergeFrom(input).buildParsed();
  2481. }
  2482. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot parseFrom(
  2483. java.io.InputStream input,
  2484. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2485. throws java.io.IOException {
  2486. return newBuilder().mergeFrom(input, extensionRegistry)
  2487. .buildParsed();
  2488. }
  2489. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot parseDelimitedFrom(java.io.InputStream input)
  2490. throws java.io.IOException {
  2491. Builder builder = newBuilder();
  2492. if (builder.mergeDelimitedFrom(input)) {
  2493. return builder.buildParsed();
  2494. } else {
  2495. return null;
  2496. }
  2497. }
  2498. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot parseDelimitedFrom(
  2499. java.io.InputStream input,
  2500. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2501. throws java.io.IOException {
  2502. Builder builder = newBuilder();
  2503. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  2504. return builder.buildParsed();
  2505. } else {
  2506. return null;
  2507. }
  2508. }
  2509. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot parseFrom(
  2510. com.google.protobuf.CodedInputStream input)
  2511. throws java.io.IOException {
  2512. return newBuilder().mergeFrom(input).buildParsed();
  2513. }
  2514. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot parseFrom(
  2515. com.google.protobuf.CodedInputStream input,
  2516. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2517. throws java.io.IOException {
  2518. return newBuilder().mergeFrom(input, extensionRegistry)
  2519. .buildParsed();
  2520. }
  2521. public static Builder newBuilder() { return Builder.create(); }
  2522. public Builder newBuilderForType() { return newBuilder(); }
  2523. public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot prototype) {
  2524. return newBuilder().mergeFrom(prototype);
  2525. }
  2526. public Builder toBuilder() { return newBuilder(this); }
  2527. public static final class Builder extends
  2528. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  2529. private org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot result;
  2530. // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot.newBuilder()
  2531. private Builder() {}
  2532. private static Builder create() {
  2533. Builder builder = new Builder();
  2534. builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot();
  2535. return builder;
  2536. }
  2537. protected org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot internalGetResult() {
  2538. return result;
  2539. }
  2540. public Builder clear() {
  2541. if (result == null) {
  2542. throw new IllegalStateException(
  2543. "Cannot call clear() after build().");
  2544. }
  2545. result = new org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot();
  2546. return this;
  2547. }
  2548. public Builder clone() {
  2549. return create().mergeFrom(result);
  2550. }
  2551. public com.google.protobuf.Descriptors.Descriptor
  2552. getDescriptorForType() {
  2553. return org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot.getDescriptor();
  2554. }
  2555. public org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot getDefaultInstanceForType() {
  2556. return org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot.getDefaultInstance();
  2557. }
  2558. public boolean isInitialized() {
  2559. return result.isInitialized();
  2560. }
  2561. public org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot build() {
  2562. if (result != null && !isInitialized()) {
  2563. throw newUninitializedMessageException(result);
  2564. }
  2565. return buildPartial();
  2566. }
  2567. private org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot buildParsed()
  2568. throws com.google.protobuf.InvalidProtocolBufferException {
  2569. if (!isInitialized()) {
  2570. throw newUninitializedMessageException(
  2571. result).asInvalidProtocolBufferException();
  2572. }
  2573. return buildPartial();
  2574. }
  2575. public org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot buildPartial() {
  2576. if (result == null) {
  2577. throw new IllegalStateException(
  2578. "build() has already been called on this Builder.");
  2579. }
  2580. if (result.wavelet_ != java.util.Collections.EMPTY_LIST) {
  2581. result.wavelet_ =
  2582. java.util.Collections.unmodifiableList(result.wavelet_);
  2583. }
  2584. org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot returnMe = result;
  2585. result = null;
  2586. return returnMe;
  2587. }
  2588. public Builder mergeFrom(com.google.protobuf.Message other) {
  2589. if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot) {
  2590. return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot)other);
  2591. } else {
  2592. super.mergeFrom(other);
  2593. return this;
  2594. }
  2595. }
  2596. public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot other) {
  2597. if (other == org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot.getDefaultInstance()) return this;
  2598. if (other.hasWaveId()) {
  2599. setWaveId(other.getWaveId());
  2600. }
  2601. if (!other.wavelet_.isEmpty()) {
  2602. if (result.wavelet_.isEmpty()) {
  2603. result.wavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot>();
  2604. }
  2605. result.wavelet_.addAll(other.wavelet_);
  2606. }
  2607. this.mergeUnknownFields(other.getUnknownFields());
  2608. return this;
  2609. }
  2610. public Builder mergeFrom(
  2611. com.google.protobuf.CodedInputStream input,
  2612. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2613. throws java.io.IOException {
  2614. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  2615. com.google.protobuf.UnknownFieldSet.newBuilder(
  2616. this.getUnknownFields());
  2617. while (true) {
  2618. int tag = input.readTag();
  2619. switch (tag) {
  2620. case 0:
  2621. this.setUnknownFields(unknownFields.build());
  2622. return this;
  2623. default: {
  2624. if (!parseUnknownField(input, unknownFields,
  2625. extensionRegistry, tag)) {
  2626. this.setUnknownFields(unknownFields.build());
  2627. return this;
  2628. }
  2629. break;
  2630. }
  2631. case 10: {
  2632. setWaveId(input.readString());
  2633. break;
  2634. }
  2635. case 18: {
  2636. org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.Builder subBuilder = org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.newBuilder();
  2637. input.readMessage(subBuilder, extensionRegistry);
  2638. addWavelet(subBuilder.buildPartial());
  2639. break;
  2640. }
  2641. }
  2642. }
  2643. }
  2644. // required string wave_id = 1;
  2645. public boolean hasWaveId() {
  2646. return result.hasWaveId();
  2647. }
  2648. public java.lang.String getWaveId() {
  2649. return result.getWaveId();
  2650. }
  2651. public Builder setWaveId(java.lang.String value) {
  2652. if (value == null) {
  2653. throw new NullPointerException();
  2654. }
  2655. result.hasWaveId = true;
  2656. result.waveId_ = value;
  2657. return this;
  2658. }
  2659. public Builder clearWaveId() {
  2660. result.hasWaveId = false;
  2661. result.waveId_ = getDefaultInstance().getWaveId();
  2662. return this;
  2663. }
  2664. // repeated .waveserver.WaveletSnapshot wavelet = 2;
  2665. public java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot> getWaveletList() {
  2666. return java.util.Collections.unmodifiableList(result.wavelet_);
  2667. }
  2668. public int getWaveletCount() {
  2669. return result.getWaveletCount();
  2670. }
  2671. public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot getWavelet(int index) {
  2672. return result.getWavelet(index);
  2673. }
  2674. public Builder setWavelet(int index, org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot value) {
  2675. if (value == null) {
  2676. throw new NullPointerException();
  2677. }
  2678. result.wavelet_.set(index, value);
  2679. return this;
  2680. }
  2681. public Builder setWavelet(int index, org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.Builder builderForValue) {
  2682. result.wavelet_.set(index, builderForValue.build());
  2683. return this;
  2684. }
  2685. public Builder addWavelet(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot value) {
  2686. if (value == null) {
  2687. throw new NullPointerException();
  2688. }
  2689. if (result.wavelet_.isEmpty()) {
  2690. result.wavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot>();
  2691. }
  2692. result.wavelet_.add(value);
  2693. return this;
  2694. }
  2695. public Builder addWavelet(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.Builder builderForValue) {
  2696. if (result.wavelet_.isEmpty()) {
  2697. result.wavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot>();
  2698. }
  2699. result.wavelet_.add(builderForValue.build());
  2700. return this;
  2701. }
  2702. public Builder addAllWavelet(
  2703. java.lang.Iterable<? extends org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot> values) {
  2704. if (result.wavelet_.isEmpty()) {
  2705. result.wavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot>();
  2706. }
  2707. super.addAll(values, result.wavelet_);
  2708. return this;
  2709. }
  2710. public Builder clearWavelet() {
  2711. result.wavelet_ = java.util.Collections.emptyList();
  2712. return this;
  2713. }
  2714. // @@protoc_insertion_point(builder_scope:waveserver.WaveViewSnapshot)
  2715. }
  2716. static {
  2717. defaultInstance = new WaveViewSnapshot(true);
  2718. org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
  2719. defaultInstance.initFields();
  2720. }
  2721. // @@protoc_insertion_point(class_scope:waveserver.WaveViewSnapshot)
  2722. }
  2723. public static final class ProtocolWaveletUpdate extends
  2724. com.google.protobuf.GeneratedMessage {
  2725. // Use ProtocolWaveletUpdate.newBuilder() to construct.
  2726. private ProtocolWaveletUpdate() {
  2727. initFields();
  2728. }
  2729. private ProtocolWaveletUpdate(boolean noInit) {}
  2730. private static final ProtocolWaveletUpdate defaultInstance;
  2731. public static ProtocolWaveletUpdate getDefaultInstance() {
  2732. return defaultInstance;
  2733. }
  2734. public ProtocolWaveletUpdate getDefaultInstanceForType() {
  2735. return defaultInstance;
  2736. }
  2737. public static final com.google.protobuf.Descriptors.Descriptor
  2738. getDescriptor() {
  2739. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolWaveletUpdate_descriptor;
  2740. }
  2741. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  2742. internalGetFieldAccessorTable() {
  2743. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolWaveletUpdate_fieldAccessorTable;
  2744. }
  2745. // required string wavelet_name = 1;
  2746. public static final int WAVELET_NAME_FIELD_NUMBER = 1;
  2747. private boolean hasWaveletName;
  2748. private java.lang.String waveletName_ = "";
  2749. public boolean hasWaveletName() { return hasWaveletName; }
  2750. public java.lang.String getWaveletName() { return waveletName_; }
  2751. // repeated .federation.ProtocolWaveletDelta applied_delta = 2;
  2752. public static final int APPLIED_DELTA_FIELD_NUMBER = 2;
  2753. private java.util.List<org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta> appliedDelta_ =
  2754. java.util.Collections.emptyList();
  2755. public java.util.List<org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta> getAppliedDeltaList() {
  2756. return appliedDelta_;
  2757. }
  2758. public int getAppliedDeltaCount() { return appliedDelta_.size(); }
  2759. public org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta getAppliedDelta(int index) {
  2760. return appliedDelta_.get(index);
  2761. }
  2762. // optional .federation.ProtocolHashedVersion commit_notice = 3;
  2763. public static final int COMMIT_NOTICE_FIELD_NUMBER = 3;
  2764. private boolean hasCommitNotice;
  2765. private org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion commitNotice_;
  2766. public boolean hasCommitNotice() { return hasCommitNotice; }
  2767. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getCommitNotice() { return commitNotice_; }
  2768. // optional .federation.ProtocolHashedVersion resulting_version = 4;
  2769. public static final int RESULTING_VERSION_FIELD_NUMBER = 4;
  2770. private boolean hasResultingVersion;
  2771. private org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion resultingVersion_;
  2772. public boolean hasResultingVersion() { return hasResultingVersion; }
  2773. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getResultingVersion() { return resultingVersion_; }
  2774. // optional .waveserver.WaveletSnapshot snapshot = 5;
  2775. public static final int SNAPSHOT_FIELD_NUMBER = 5;
  2776. private boolean hasSnapshot;
  2777. private org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot snapshot_;
  2778. public boolean hasSnapshot() { return hasSnapshot; }
  2779. public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot getSnapshot() { return snapshot_; }
  2780. // optional bool marker = 6 [default = false];
  2781. public static final int MARKER_FIELD_NUMBER = 6;
  2782. private boolean hasMarker;
  2783. private boolean marker_ = false;
  2784. public boolean hasMarker() { return hasMarker; }
  2785. public boolean getMarker() { return marker_; }
  2786. // optional string channel_id = 7;
  2787. public static final int CHANNEL_ID_FIELD_NUMBER = 7;
  2788. private boolean hasChannelId;
  2789. private java.lang.String channelId_ = "";
  2790. public boolean hasChannelId() { return hasChannelId; }
  2791. public java.lang.String getChannelId() { return channelId_; }
  2792. private void initFields() {
  2793. commitNotice_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  2794. resultingVersion_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  2795. snapshot_ = org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.getDefaultInstance();
  2796. }
  2797. public final boolean isInitialized() {
  2798. if (!hasWaveletName) return false;
  2799. for (org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta element : getAppliedDeltaList()) {
  2800. if (!element.isInitialized()) return false;
  2801. }
  2802. if (hasCommitNotice()) {
  2803. if (!getCommitNotice().isInitialized()) return false;
  2804. }
  2805. if (hasResultingVersion()) {
  2806. if (!getResultingVersion().isInitialized()) return false;
  2807. }
  2808. if (hasSnapshot()) {
  2809. if (!getSnapshot().isInitialized()) return false;
  2810. }
  2811. return true;
  2812. }
  2813. public void writeTo(com.google.protobuf.CodedOutputStream output)
  2814. throws java.io.IOException {
  2815. getSerializedSize();
  2816. if (hasWaveletName()) {
  2817. output.writeString(1, getWaveletName());
  2818. }
  2819. for (org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta element : getAppliedDeltaList()) {
  2820. output.writeMessage(2, element);
  2821. }
  2822. if (hasCommitNotice()) {
  2823. output.writeMessage(3, getCommitNotice());
  2824. }
  2825. if (hasResultingVersion()) {
  2826. output.writeMessage(4, getResultingVersion());
  2827. }
  2828. if (hasSnapshot()) {
  2829. output.writeMessage(5, getSnapshot());
  2830. }
  2831. if (hasMarker()) {
  2832. output.writeBool(6, getMarker());
  2833. }
  2834. if (hasChannelId()) {
  2835. output.writeString(7, getChannelId());
  2836. }
  2837. getUnknownFields().writeTo(output);
  2838. }
  2839. private int memoizedSerializedSize = -1;
  2840. public int getSerializedSize() {
  2841. int size = memoizedSerializedSize;
  2842. if (size != -1) return size;
  2843. size = 0;
  2844. if (hasWaveletName()) {
  2845. size += com.google.protobuf.CodedOutputStream
  2846. .computeStringSize(1, getWaveletName());
  2847. }
  2848. for (org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta element : getAppliedDeltaList()) {
  2849. size += com.google.protobuf.CodedOutputStream
  2850. .computeMessageSize(2, element);
  2851. }
  2852. if (hasCommitNotice()) {
  2853. size += com.google.protobuf.CodedOutputStream
  2854. .computeMessageSize(3, getCommitNotice());
  2855. }
  2856. if (hasResultingVersion()) {
  2857. size += com.google.protobuf.CodedOutputStream
  2858. .computeMessageSize(4, getResultingVersion());
  2859. }
  2860. if (hasSnapshot()) {
  2861. size += com.google.protobuf.CodedOutputStream
  2862. .computeMessageSize(5, getSnapshot());
  2863. }
  2864. if (hasMarker()) {
  2865. size += com.google.protobuf.CodedOutputStream
  2866. .computeBoolSize(6, getMarker());
  2867. }
  2868. if (hasChannelId()) {
  2869. size += com.google.protobuf.CodedOutputStream
  2870. .computeStringSize(7, getChannelId());
  2871. }
  2872. size += getUnknownFields().getSerializedSize();
  2873. memoizedSerializedSize = size;
  2874. return size;
  2875. }
  2876. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate parseFrom(
  2877. com.google.protobuf.ByteString data)
  2878. throws com.google.protobuf.InvalidProtocolBufferException {
  2879. return newBuilder().mergeFrom(data).buildParsed();
  2880. }
  2881. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate parseFrom(
  2882. com.google.protobuf.ByteString data,
  2883. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2884. throws com.google.protobuf.InvalidProtocolBufferException {
  2885. return newBuilder().mergeFrom(data, extensionRegistry)
  2886. .buildParsed();
  2887. }
  2888. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate parseFrom(byte[] data)
  2889. throws com.google.protobuf.InvalidProtocolBufferException {
  2890. return newBuilder().mergeFrom(data).buildParsed();
  2891. }
  2892. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate parseFrom(
  2893. byte[] data,
  2894. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2895. throws com.google.protobuf.InvalidProtocolBufferException {
  2896. return newBuilder().mergeFrom(data, extensionRegistry)
  2897. .buildParsed();
  2898. }
  2899. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate parseFrom(java.io.InputStream input)
  2900. throws java.io.IOException {
  2901. return newBuilder().mergeFrom(input).buildParsed();
  2902. }
  2903. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate parseFrom(
  2904. java.io.InputStream input,
  2905. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2906. throws java.io.IOException {
  2907. return newBuilder().mergeFrom(input, extensionRegistry)
  2908. .buildParsed();
  2909. }
  2910. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate parseDelimitedFrom(java.io.InputStream input)
  2911. throws java.io.IOException {
  2912. Builder builder = newBuilder();
  2913. if (builder.mergeDelimitedFrom(input)) {
  2914. return builder.buildParsed();
  2915. } else {
  2916. return null;
  2917. }
  2918. }
  2919. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate parseDelimitedFrom(
  2920. java.io.InputStream input,
  2921. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2922. throws java.io.IOException {
  2923. Builder builder = newBuilder();
  2924. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  2925. return builder.buildParsed();
  2926. } else {
  2927. return null;
  2928. }
  2929. }
  2930. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate parseFrom(
  2931. com.google.protobuf.CodedInputStream input)
  2932. throws java.io.IOException {
  2933. return newBuilder().mergeFrom(input).buildParsed();
  2934. }
  2935. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate parseFrom(
  2936. com.google.protobuf.CodedInputStream input,
  2937. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2938. throws java.io.IOException {
  2939. return newBuilder().mergeFrom(input, extensionRegistry)
  2940. .buildParsed();
  2941. }
  2942. public static Builder newBuilder() { return Builder.create(); }
  2943. public Builder newBuilderForType() { return newBuilder(); }
  2944. public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate prototype) {
  2945. return newBuilder().mergeFrom(prototype);
  2946. }
  2947. public Builder toBuilder() { return newBuilder(this); }
  2948. public static final class Builder extends
  2949. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  2950. private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate result;
  2951. // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.newBuilder()
  2952. private Builder() {}
  2953. private static Builder create() {
  2954. Builder builder = new Builder();
  2955. builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate();
  2956. return builder;
  2957. }
  2958. protected org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate internalGetResult() {
  2959. return result;
  2960. }
  2961. public Builder clear() {
  2962. if (result == null) {
  2963. throw new IllegalStateException(
  2964. "Cannot call clear() after build().");
  2965. }
  2966. result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate();
  2967. return this;
  2968. }
  2969. public Builder clone() {
  2970. return create().mergeFrom(result);
  2971. }
  2972. public com.google.protobuf.Descriptors.Descriptor
  2973. getDescriptorForType() {
  2974. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.getDescriptor();
  2975. }
  2976. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate getDefaultInstanceForType() {
  2977. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.getDefaultInstance();
  2978. }
  2979. public boolean isInitialized() {
  2980. return result.isInitialized();
  2981. }
  2982. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate build() {
  2983. if (result != null && !isInitialized()) {
  2984. throw newUninitializedMessageException(result);
  2985. }
  2986. return buildPartial();
  2987. }
  2988. private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate buildParsed()
  2989. throws com.google.protobuf.InvalidProtocolBufferException {
  2990. if (!isInitialized()) {
  2991. throw newUninitializedMessageException(
  2992. result).asInvalidProtocolBufferException();
  2993. }
  2994. return buildPartial();
  2995. }
  2996. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate buildPartial() {
  2997. if (result == null) {
  2998. throw new IllegalStateException(
  2999. "build() has already been called on this Builder.");
  3000. }
  3001. if (result.appliedDelta_ != java.util.Collections.EMPTY_LIST) {
  3002. result.appliedDelta_ =
  3003. java.util.Collections.unmodifiableList(result.appliedDelta_);
  3004. }
  3005. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate returnMe = result;
  3006. result = null;
  3007. return returnMe;
  3008. }
  3009. public Builder mergeFrom(com.google.protobuf.Message other) {
  3010. if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate) {
  3011. return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate)other);
  3012. } else {
  3013. super.mergeFrom(other);
  3014. return this;
  3015. }
  3016. }
  3017. public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate other) {
  3018. if (other == org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.getDefaultInstance()) return this;
  3019. if (other.hasWaveletName()) {
  3020. setWaveletName(other.getWaveletName());
  3021. }
  3022. if (!other.appliedDelta_.isEmpty()) {
  3023. if (result.appliedDelta_.isEmpty()) {
  3024. result.appliedDelta_ = new java.util.ArrayList<org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta>();
  3025. }
  3026. result.appliedDelta_.addAll(other.appliedDelta_);
  3027. }
  3028. if (other.hasCommitNotice()) {
  3029. mergeCommitNotice(other.getCommitNotice());
  3030. }
  3031. if (other.hasResultingVersion()) {
  3032. mergeResultingVersion(other.getResultingVersion());
  3033. }
  3034. if (other.hasSnapshot()) {
  3035. mergeSnapshot(other.getSnapshot());
  3036. }
  3037. if (other.hasMarker()) {
  3038. setMarker(other.getMarker());
  3039. }
  3040. if (other.hasChannelId()) {
  3041. setChannelId(other.getChannelId());
  3042. }
  3043. this.mergeUnknownFields(other.getUnknownFields());
  3044. return this;
  3045. }
  3046. public Builder mergeFrom(
  3047. com.google.protobuf.CodedInputStream input,
  3048. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3049. throws java.io.IOException {
  3050. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  3051. com.google.protobuf.UnknownFieldSet.newBuilder(
  3052. this.getUnknownFields());
  3053. while (true) {
  3054. int tag = input.readTag();
  3055. switch (tag) {
  3056. case 0:
  3057. this.setUnknownFields(unknownFields.build());
  3058. return this;
  3059. default: {
  3060. if (!parseUnknownField(input, unknownFields,
  3061. extensionRegistry, tag)) {
  3062. this.setUnknownFields(unknownFields.build());
  3063. return this;
  3064. }
  3065. break;
  3066. }
  3067. case 10: {
  3068. setWaveletName(input.readString());
  3069. break;
  3070. }
  3071. case 18: {
  3072. org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.newBuilder();
  3073. input.readMessage(subBuilder, extensionRegistry);
  3074. addAppliedDelta(subBuilder.buildPartial());
  3075. break;
  3076. }
  3077. case 26: {
  3078. org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder();
  3079. if (hasCommitNotice()) {
  3080. subBuilder.mergeFrom(getCommitNotice());
  3081. }
  3082. input.readMessage(subBuilder, extensionRegistry);
  3083. setCommitNotice(subBuilder.buildPartial());
  3084. break;
  3085. }
  3086. case 34: {
  3087. org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder();
  3088. if (hasResultingVersion()) {
  3089. subBuilder.mergeFrom(getResultingVersion());
  3090. }
  3091. input.readMessage(subBuilder, extensionRegistry);
  3092. setResultingVersion(subBuilder.buildPartial());
  3093. break;
  3094. }
  3095. case 42: {
  3096. org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.Builder subBuilder = org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.newBuilder();
  3097. if (hasSnapshot()) {
  3098. subBuilder.mergeFrom(getSnapshot());
  3099. }
  3100. input.readMessage(subBuilder, extensionRegistry);
  3101. setSnapshot(subBuilder.buildPartial());
  3102. break;
  3103. }
  3104. case 48: {
  3105. setMarker(input.readBool());
  3106. break;
  3107. }
  3108. case 58: {
  3109. setChannelId(input.readString());
  3110. break;
  3111. }
  3112. }
  3113. }
  3114. }
  3115. // required string wavelet_name = 1;
  3116. public boolean hasWaveletName() {
  3117. return result.hasWaveletName();
  3118. }
  3119. public java.lang.String getWaveletName() {
  3120. return result.getWaveletName();
  3121. }
  3122. public Builder setWaveletName(java.lang.String value) {
  3123. if (value == null) {
  3124. throw new NullPointerException();
  3125. }
  3126. result.hasWaveletName = true;
  3127. result.waveletName_ = value;
  3128. return this;
  3129. }
  3130. public Builder clearWaveletName() {
  3131. result.hasWaveletName = false;
  3132. result.waveletName_ = getDefaultInstance().getWaveletName();
  3133. return this;
  3134. }
  3135. // repeated .federation.ProtocolWaveletDelta applied_delta = 2;
  3136. public java.util.List<org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta> getAppliedDeltaList() {
  3137. return java.util.Collections.unmodifiableList(result.appliedDelta_);
  3138. }
  3139. public int getAppliedDeltaCount() {
  3140. return result.getAppliedDeltaCount();
  3141. }
  3142. public org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta getAppliedDelta(int index) {
  3143. return result.getAppliedDelta(index);
  3144. }
  3145. public Builder setAppliedDelta(int index, org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta value) {
  3146. if (value == null) {
  3147. throw new NullPointerException();
  3148. }
  3149. result.appliedDelta_.set(index, value);
  3150. return this;
  3151. }
  3152. public Builder setAppliedDelta(int index, org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.Builder builderForValue) {
  3153. result.appliedDelta_.set(index, builderForValue.build());
  3154. return this;
  3155. }
  3156. public Builder addAppliedDelta(org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta value) {
  3157. if (value == null) {
  3158. throw new NullPointerException();
  3159. }
  3160. if (result.appliedDelta_.isEmpty()) {
  3161. result.appliedDelta_ = new java.util.ArrayList<org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta>();
  3162. }
  3163. result.appliedDelta_.add(value);
  3164. return this;
  3165. }
  3166. public Builder addAppliedDelta(org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.Builder builderForValue) {
  3167. if (result.appliedDelta_.isEmpty()) {
  3168. result.appliedDelta_ = new java.util.ArrayList<org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta>();
  3169. }
  3170. result.appliedDelta_.add(builderForValue.build());
  3171. return this;
  3172. }
  3173. public Builder addAllAppliedDelta(
  3174. java.lang.Iterable<? extends org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta> values) {
  3175. if (result.appliedDelta_.isEmpty()) {
  3176. result.appliedDelta_ = new java.util.ArrayList<org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta>();
  3177. }
  3178. super.addAll(values, result.appliedDelta_);
  3179. return this;
  3180. }
  3181. public Builder clearAppliedDelta() {
  3182. result.appliedDelta_ = java.util.Collections.emptyList();
  3183. return this;
  3184. }
  3185. // optional .federation.ProtocolHashedVersion commit_notice = 3;
  3186. public boolean hasCommitNotice() {
  3187. return result.hasCommitNotice();
  3188. }
  3189. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getCommitNotice() {
  3190. return result.getCommitNotice();
  3191. }
  3192. public Builder setCommitNotice(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
  3193. if (value == null) {
  3194. throw new NullPointerException();
  3195. }
  3196. result.hasCommitNotice = true;
  3197. result.commitNotice_ = value;
  3198. return this;
  3199. }
  3200. public Builder setCommitNotice(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder builderForValue) {
  3201. result.hasCommitNotice = true;
  3202. result.commitNotice_ = builderForValue.build();
  3203. return this;
  3204. }
  3205. public Builder mergeCommitNotice(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
  3206. if (result.hasCommitNotice() &&
  3207. result.commitNotice_ != org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance()) {
  3208. result.commitNotice_ =
  3209. org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder(result.commitNotice_).mergeFrom(value).buildPartial();
  3210. } else {
  3211. result.commitNotice_ = value;
  3212. }
  3213. result.hasCommitNotice = true;
  3214. return this;
  3215. }
  3216. public Builder clearCommitNotice() {
  3217. result.hasCommitNotice = false;
  3218. result.commitNotice_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  3219. return this;
  3220. }
  3221. // optional .federation.ProtocolHashedVersion resulting_version = 4;
  3222. public boolean hasResultingVersion() {
  3223. return result.hasResultingVersion();
  3224. }
  3225. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getResultingVersion() {
  3226. return result.getResultingVersion();
  3227. }
  3228. public Builder setResultingVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
  3229. if (value == null) {
  3230. throw new NullPointerException();
  3231. }
  3232. result.hasResultingVersion = true;
  3233. result.resultingVersion_ = value;
  3234. return this;
  3235. }
  3236. public Builder setResultingVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder builderForValue) {
  3237. result.hasResultingVersion = true;
  3238. result.resultingVersion_ = builderForValue.build();
  3239. return this;
  3240. }
  3241. public Builder mergeResultingVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
  3242. if (result.hasResultingVersion() &&
  3243. result.resultingVersion_ != org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance()) {
  3244. result.resultingVersion_ =
  3245. org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder(result.resultingVersion_).mergeFrom(value).buildPartial();
  3246. } else {
  3247. result.resultingVersion_ = value;
  3248. }
  3249. result.hasResultingVersion = true;
  3250. return this;
  3251. }
  3252. public Builder clearResultingVersion() {
  3253. result.hasResultingVersion = false;
  3254. result.resultingVersion_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  3255. return this;
  3256. }
  3257. // optional .waveserver.WaveletSnapshot snapshot = 5;
  3258. public boolean hasSnapshot() {
  3259. return result.hasSnapshot();
  3260. }
  3261. public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot getSnapshot() {
  3262. return result.getSnapshot();
  3263. }
  3264. public Builder setSnapshot(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot value) {
  3265. if (value == null) {
  3266. throw new NullPointerException();
  3267. }
  3268. result.hasSnapshot = true;
  3269. result.snapshot_ = value;
  3270. return this;
  3271. }
  3272. public Builder setSnapshot(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.Builder builderForValue) {
  3273. result.hasSnapshot = true;
  3274. result.snapshot_ = builderForValue.build();
  3275. return this;
  3276. }
  3277. public Builder mergeSnapshot(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot value) {
  3278. if (result.hasSnapshot() &&
  3279. result.snapshot_ != org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.getDefaultInstance()) {
  3280. result.snapshot_ =
  3281. org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.newBuilder(result.snapshot_).mergeFrom(value).buildPartial();
  3282. } else {
  3283. result.snapshot_ = value;
  3284. }
  3285. result.hasSnapshot = true;
  3286. return this;
  3287. }
  3288. public Builder clearSnapshot() {
  3289. result.hasSnapshot = false;
  3290. result.snapshot_ = org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.getDefaultInstance();
  3291. return this;
  3292. }
  3293. // optional bool marker = 6 [default = false];
  3294. public boolean hasMarker() {
  3295. return result.hasMarker();
  3296. }
  3297. public boolean getMarker() {
  3298. return result.getMarker();
  3299. }
  3300. public Builder setMarker(boolean value) {
  3301. result.hasMarker = true;
  3302. result.marker_ = value;
  3303. return this;
  3304. }
  3305. public Builder clearMarker() {
  3306. result.hasMarker = false;
  3307. result.marker_ = false;
  3308. return this;
  3309. }
  3310. // optional string channel_id = 7;
  3311. public boolean hasChannelId() {
  3312. return result.hasChannelId();
  3313. }
  3314. public java.lang.String getChannelId() {
  3315. return result.getChannelId();
  3316. }
  3317. public Builder setChannelId(java.lang.String value) {
  3318. if (value == null) {
  3319. throw new NullPointerException();
  3320. }
  3321. result.hasChannelId = true;
  3322. result.channelId_ = value;
  3323. return this;
  3324. }
  3325. public Builder clearChannelId() {
  3326. result.hasChannelId = false;
  3327. result.channelId_ = getDefaultInstance().getChannelId();
  3328. return this;
  3329. }
  3330. // @@protoc_insertion_point(builder_scope:waveserver.ProtocolWaveletUpdate)
  3331. }
  3332. static {
  3333. defaultInstance = new ProtocolWaveletUpdate(true);
  3334. org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
  3335. defaultInstance.initFields();
  3336. }
  3337. // @@protoc_insertion_point(class_scope:waveserver.ProtocolWaveletUpdate)
  3338. }
  3339. public static final class ProtocolSubmitRequest extends
  3340. com.google.protobuf.GeneratedMessage {
  3341. // Use ProtocolSubmitRequest.newBuilder() to construct.
  3342. private ProtocolSubmitRequest() {
  3343. initFields();
  3344. }
  3345. private ProtocolSubmitRequest(boolean noInit) {}
  3346. private static final ProtocolSubmitRequest defaultInstance;
  3347. public static ProtocolSubmitRequest getDefaultInstance() {
  3348. return defaultInstance;
  3349. }
  3350. public ProtocolSubmitRequest getDefaultInstanceForType() {
  3351. return defaultInstance;
  3352. }
  3353. public static final com.google.protobuf.Descriptors.Descriptor
  3354. getDescriptor() {
  3355. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolSubmitRequest_descriptor;
  3356. }
  3357. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  3358. internalGetFieldAccessorTable() {
  3359. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolSubmitRequest_fieldAccessorTable;
  3360. }
  3361. // required string wavelet_name = 1;
  3362. public static final int WAVELET_NAME_FIELD_NUMBER = 1;
  3363. private boolean hasWaveletName;
  3364. private java.lang.String waveletName_ = "";
  3365. public boolean hasWaveletName() { return hasWaveletName; }
  3366. public java.lang.String getWaveletName() { return waveletName_; }
  3367. // required .federation.ProtocolWaveletDelta delta = 2;
  3368. public static final int DELTA_FIELD_NUMBER = 2;
  3369. private boolean hasDelta;
  3370. private org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta delta_;
  3371. public boolean hasDelta() { return hasDelta; }
  3372. public org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta getDelta() { return delta_; }
  3373. // optional string channel_id = 3;
  3374. public static final int CHANNEL_ID_FIELD_NUMBER = 3;
  3375. private boolean hasChannelId;
  3376. private java.lang.String channelId_ = "";
  3377. public boolean hasChannelId() { return hasChannelId; }
  3378. public java.lang.String getChannelId() { return channelId_; }
  3379. private void initFields() {
  3380. delta_ = org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.getDefaultInstance();
  3381. }
  3382. public final boolean isInitialized() {
  3383. if (!hasWaveletName) return false;
  3384. if (!hasDelta) return false;
  3385. if (!getDelta().isInitialized()) return false;
  3386. return true;
  3387. }
  3388. public void writeTo(com.google.protobuf.CodedOutputStream output)
  3389. throws java.io.IOException {
  3390. getSerializedSize();
  3391. if (hasWaveletName()) {
  3392. output.writeString(1, getWaveletName());
  3393. }
  3394. if (hasDelta()) {
  3395. output.writeMessage(2, getDelta());
  3396. }
  3397. if (hasChannelId()) {
  3398. output.writeString(3, getChannelId());
  3399. }
  3400. getUnknownFields().writeTo(output);
  3401. }
  3402. private int memoizedSerializedSize = -1;
  3403. public int getSerializedSize() {
  3404. int size = memoizedSerializedSize;
  3405. if (size != -1) return size;
  3406. size = 0;
  3407. if (hasWaveletName()) {
  3408. size += com.google.protobuf.CodedOutputStream
  3409. .computeStringSize(1, getWaveletName());
  3410. }
  3411. if (hasDelta()) {
  3412. size += com.google.protobuf.CodedOutputStream
  3413. .computeMessageSize(2, getDelta());
  3414. }
  3415. if (hasChannelId()) {
  3416. size += com.google.protobuf.CodedOutputStream
  3417. .computeStringSize(3, getChannelId());
  3418. }
  3419. size += getUnknownFields().getSerializedSize();
  3420. memoizedSerializedSize = size;
  3421. return size;
  3422. }
  3423. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest parseFrom(
  3424. com.google.protobuf.ByteString data)
  3425. throws com.google.protobuf.InvalidProtocolBufferException {
  3426. return newBuilder().mergeFrom(data).buildParsed();
  3427. }
  3428. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest parseFrom(
  3429. com.google.protobuf.ByteString data,
  3430. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3431. throws com.google.protobuf.InvalidProtocolBufferException {
  3432. return newBuilder().mergeFrom(data, extensionRegistry)
  3433. .buildParsed();
  3434. }
  3435. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest parseFrom(byte[] data)
  3436. throws com.google.protobuf.InvalidProtocolBufferException {
  3437. return newBuilder().mergeFrom(data).buildParsed();
  3438. }
  3439. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest parseFrom(
  3440. byte[] data,
  3441. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3442. throws com.google.protobuf.InvalidProtocolBufferException {
  3443. return newBuilder().mergeFrom(data, extensionRegistry)
  3444. .buildParsed();
  3445. }
  3446. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest parseFrom(java.io.InputStream input)
  3447. throws java.io.IOException {
  3448. return newBuilder().mergeFrom(input).buildParsed();
  3449. }
  3450. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest parseFrom(
  3451. java.io.InputStream input,
  3452. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3453. throws java.io.IOException {
  3454. return newBuilder().mergeFrom(input, extensionRegistry)
  3455. .buildParsed();
  3456. }
  3457. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest parseDelimitedFrom(java.io.InputStream input)
  3458. throws java.io.IOException {
  3459. Builder builder = newBuilder();
  3460. if (builder.mergeDelimitedFrom(input)) {
  3461. return builder.buildParsed();
  3462. } else {
  3463. return null;
  3464. }
  3465. }
  3466. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest parseDelimitedFrom(
  3467. java.io.InputStream input,
  3468. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3469. throws java.io.IOException {
  3470. Builder builder = newBuilder();
  3471. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  3472. return builder.buildParsed();
  3473. } else {
  3474. return null;
  3475. }
  3476. }
  3477. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest parseFrom(
  3478. com.google.protobuf.CodedInputStream input)
  3479. throws java.io.IOException {
  3480. return newBuilder().mergeFrom(input).buildParsed();
  3481. }
  3482. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest parseFrom(
  3483. com.google.protobuf.CodedInputStream input,
  3484. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3485. throws java.io.IOException {
  3486. return newBuilder().mergeFrom(input, extensionRegistry)
  3487. .buildParsed();
  3488. }
  3489. public static Builder newBuilder() { return Builder.create(); }
  3490. public Builder newBuilderForType() { return newBuilder(); }
  3491. public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest prototype) {
  3492. return newBuilder().mergeFrom(prototype);
  3493. }
  3494. public Builder toBuilder() { return newBuilder(this); }
  3495. public static final class Builder extends
  3496. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  3497. private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest result;
  3498. // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest.newBuilder()
  3499. private Builder() {}
  3500. private static Builder create() {
  3501. Builder builder = new Builder();
  3502. builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest();
  3503. return builder;
  3504. }
  3505. protected org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest internalGetResult() {
  3506. return result;
  3507. }
  3508. public Builder clear() {
  3509. if (result == null) {
  3510. throw new IllegalStateException(
  3511. "Cannot call clear() after build().");
  3512. }
  3513. result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest();
  3514. return this;
  3515. }
  3516. public Builder clone() {
  3517. return create().mergeFrom(result);
  3518. }
  3519. public com.google.protobuf.Descriptors.Descriptor
  3520. getDescriptorForType() {
  3521. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest.getDescriptor();
  3522. }
  3523. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest getDefaultInstanceForType() {
  3524. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest.getDefaultInstance();
  3525. }
  3526. public boolean isInitialized() {
  3527. return result.isInitialized();
  3528. }
  3529. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest build() {
  3530. if (result != null && !isInitialized()) {
  3531. throw newUninitializedMessageException(result);
  3532. }
  3533. return buildPartial();
  3534. }
  3535. private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest buildParsed()
  3536. throws com.google.protobuf.InvalidProtocolBufferException {
  3537. if (!isInitialized()) {
  3538. throw newUninitializedMessageException(
  3539. result).asInvalidProtocolBufferException();
  3540. }
  3541. return buildPartial();
  3542. }
  3543. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest buildPartial() {
  3544. if (result == null) {
  3545. throw new IllegalStateException(
  3546. "build() has already been called on this Builder.");
  3547. }
  3548. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest returnMe = result;
  3549. result = null;
  3550. return returnMe;
  3551. }
  3552. public Builder mergeFrom(com.google.protobuf.Message other) {
  3553. if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest) {
  3554. return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest)other);
  3555. } else {
  3556. super.mergeFrom(other);
  3557. return this;
  3558. }
  3559. }
  3560. public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest other) {
  3561. if (other == org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest.getDefaultInstance()) return this;
  3562. if (other.hasWaveletName()) {
  3563. setWaveletName(other.getWaveletName());
  3564. }
  3565. if (other.hasDelta()) {
  3566. mergeDelta(other.getDelta());
  3567. }
  3568. if (other.hasChannelId()) {
  3569. setChannelId(other.getChannelId());
  3570. }
  3571. this.mergeUnknownFields(other.getUnknownFields());
  3572. return this;
  3573. }
  3574. public Builder mergeFrom(
  3575. com.google.protobuf.CodedInputStream input,
  3576. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3577. throws java.io.IOException {
  3578. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  3579. com.google.protobuf.UnknownFieldSet.newBuilder(
  3580. this.getUnknownFields());
  3581. while (true) {
  3582. int tag = input.readTag();
  3583. switch (tag) {
  3584. case 0:
  3585. this.setUnknownFields(unknownFields.build());
  3586. return this;
  3587. default: {
  3588. if (!parseUnknownField(input, unknownFields,
  3589. extensionRegistry, tag)) {
  3590. this.setUnknownFields(unknownFields.build());
  3591. return this;
  3592. }
  3593. break;
  3594. }
  3595. case 10: {
  3596. setWaveletName(input.readString());
  3597. break;
  3598. }
  3599. case 18: {
  3600. org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.newBuilder();
  3601. if (hasDelta()) {
  3602. subBuilder.mergeFrom(getDelta());
  3603. }
  3604. input.readMessage(subBuilder, extensionRegistry);
  3605. setDelta(subBuilder.buildPartial());
  3606. break;
  3607. }
  3608. case 26: {
  3609. setChannelId(input.readString());
  3610. break;
  3611. }
  3612. }
  3613. }
  3614. }
  3615. // required string wavelet_name = 1;
  3616. public boolean hasWaveletName() {
  3617. return result.hasWaveletName();
  3618. }
  3619. public java.lang.String getWaveletName() {
  3620. return result.getWaveletName();
  3621. }
  3622. public Builder setWaveletName(java.lang.String value) {
  3623. if (value == null) {
  3624. throw new NullPointerException();
  3625. }
  3626. result.hasWaveletName = true;
  3627. result.waveletName_ = value;
  3628. return this;
  3629. }
  3630. public Builder clearWaveletName() {
  3631. result.hasWaveletName = false;
  3632. result.waveletName_ = getDefaultInstance().getWaveletName();
  3633. return this;
  3634. }
  3635. // required .federation.ProtocolWaveletDelta delta = 2;
  3636. public boolean hasDelta() {
  3637. return result.hasDelta();
  3638. }
  3639. public org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta getDelta() {
  3640. return result.getDelta();
  3641. }
  3642. public Builder setDelta(org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta value) {
  3643. if (value == null) {
  3644. throw new NullPointerException();
  3645. }
  3646. result.hasDelta = true;
  3647. result.delta_ = value;
  3648. return this;
  3649. }
  3650. public Builder setDelta(org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.Builder builderForValue) {
  3651. result.hasDelta = true;
  3652. result.delta_ = builderForValue.build();
  3653. return this;
  3654. }
  3655. public Builder mergeDelta(org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta value) {
  3656. if (result.hasDelta() &&
  3657. result.delta_ != org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.getDefaultInstance()) {
  3658. result.delta_ =
  3659. org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.newBuilder(result.delta_).mergeFrom(value).buildPartial();
  3660. } else {
  3661. result.delta_ = value;
  3662. }
  3663. result.hasDelta = true;
  3664. return this;
  3665. }
  3666. public Builder clearDelta() {
  3667. result.hasDelta = false;
  3668. result.delta_ = org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.getDefaultInstance();
  3669. return this;
  3670. }
  3671. // optional string channel_id = 3;
  3672. public boolean hasChannelId() {
  3673. return result.hasChannelId();
  3674. }
  3675. public java.lang.String getChannelId() {
  3676. return result.getChannelId();
  3677. }
  3678. public Builder setChannelId(java.lang.String value) {
  3679. if (value == null) {
  3680. throw new NullPointerException();
  3681. }
  3682. result.hasChannelId = true;
  3683. result.channelId_ = value;
  3684. return this;
  3685. }
  3686. public Builder clearChannelId() {
  3687. result.hasChannelId = false;
  3688. result.channelId_ = getDefaultInstance().getChannelId();
  3689. return this;
  3690. }
  3691. // @@protoc_insertion_point(builder_scope:waveserver.ProtocolSubmitRequest)
  3692. }
  3693. static {
  3694. defaultInstance = new ProtocolSubmitRequest(true);
  3695. org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
  3696. defaultInstance.initFields();
  3697. }
  3698. // @@protoc_insertion_point(class_scope:waveserver.ProtocolSubmitRequest)
  3699. }
  3700. public static final class ProtocolSubmitResponse extends
  3701. com.google.protobuf.GeneratedMessage {
  3702. // Use ProtocolSubmitResponse.newBuilder() to construct.
  3703. private ProtocolSubmitResponse() {
  3704. initFields();
  3705. }
  3706. private ProtocolSubmitResponse(boolean noInit) {}
  3707. private static final ProtocolSubmitResponse defaultInstance;
  3708. public static ProtocolSubmitResponse getDefaultInstance() {
  3709. return defaultInstance;
  3710. }
  3711. public ProtocolSubmitResponse getDefaultInstanceForType() {
  3712. return defaultInstance;
  3713. }
  3714. public static final com.google.protobuf.Descriptors.Descriptor
  3715. getDescriptor() {
  3716. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolSubmitResponse_descriptor;
  3717. }
  3718. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  3719. internalGetFieldAccessorTable() {
  3720. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolSubmitResponse_fieldAccessorTable;
  3721. }
  3722. // required int32 operations_applied = 1;
  3723. public static final int OPERATIONS_APPLIED_FIELD_NUMBER = 1;
  3724. private boolean hasOperationsApplied;
  3725. private int operationsApplied_ = 0;
  3726. public boolean hasOperationsApplied() { return hasOperationsApplied; }
  3727. public int getOperationsApplied() { return operationsApplied_; }
  3728. // optional string error_message = 2;
  3729. public static final int ERROR_MESSAGE_FIELD_NUMBER = 2;
  3730. private boolean hasErrorMessage;
  3731. private java.lang.String errorMessage_ = "";
  3732. public boolean hasErrorMessage() { return hasErrorMessage; }
  3733. public java.lang.String getErrorMessage() { return errorMessage_; }
  3734. // optional .federation.ProtocolHashedVersion hashed_version_after_application = 3;
  3735. public static final int HASHED_VERSION_AFTER_APPLICATION_FIELD_NUMBER = 3;
  3736. private boolean hasHashedVersionAfterApplication;
  3737. private org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion hashedVersionAfterApplication_;
  3738. public boolean hasHashedVersionAfterApplication() { return hasHashedVersionAfterApplication; }
  3739. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getHashedVersionAfterApplication() { return hashedVersionAfterApplication_; }
  3740. private void initFields() {
  3741. hashedVersionAfterApplication_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  3742. }
  3743. public final boolean isInitialized() {
  3744. if (!hasOperationsApplied) return false;
  3745. if (hasHashedVersionAfterApplication()) {
  3746. if (!getHashedVersionAfterApplication().isInitialized()) return false;
  3747. }
  3748. return true;
  3749. }
  3750. public void writeTo(com.google.protobuf.CodedOutputStream output)
  3751. throws java.io.IOException {
  3752. getSerializedSize();
  3753. if (hasOperationsApplied()) {
  3754. output.writeInt32(1, getOperationsApplied());
  3755. }
  3756. if (hasErrorMessage()) {
  3757. output.writeString(2, getErrorMessage());
  3758. }
  3759. if (hasHashedVersionAfterApplication()) {
  3760. output.writeMessage(3, getHashedVersionAfterApplication());
  3761. }
  3762. getUnknownFields().writeTo(output);
  3763. }
  3764. private int memoizedSerializedSize = -1;
  3765. public int getSerializedSize() {
  3766. int size = memoizedSerializedSize;
  3767. if (size != -1) return size;
  3768. size = 0;
  3769. if (hasOperationsApplied()) {
  3770. size += com.google.protobuf.CodedOutputStream
  3771. .computeInt32Size(1, getOperationsApplied());
  3772. }
  3773. if (hasErrorMessage()) {
  3774. size += com.google.protobuf.CodedOutputStream
  3775. .computeStringSize(2, getErrorMessage());
  3776. }
  3777. if (hasHashedVersionAfterApplication()) {
  3778. size += com.google.protobuf.CodedOutputStream
  3779. .computeMessageSize(3, getHashedVersionAfterApplication());
  3780. }
  3781. size += getUnknownFields().getSerializedSize();
  3782. memoizedSerializedSize = size;
  3783. return size;
  3784. }
  3785. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse parseFrom(
  3786. com.google.protobuf.ByteString data)
  3787. throws com.google.protobuf.InvalidProtocolBufferException {
  3788. return newBuilder().mergeFrom(data).buildParsed();
  3789. }
  3790. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse parseFrom(
  3791. com.google.protobuf.ByteString data,
  3792. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3793. throws com.google.protobuf.InvalidProtocolBufferException {
  3794. return newBuilder().mergeFrom(data, extensionRegistry)
  3795. .buildParsed();
  3796. }
  3797. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse parseFrom(byte[] data)
  3798. throws com.google.protobuf.InvalidProtocolBufferException {
  3799. return newBuilder().mergeFrom(data).buildParsed();
  3800. }
  3801. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse parseFrom(
  3802. byte[] data,
  3803. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3804. throws com.google.protobuf.InvalidProtocolBufferException {
  3805. return newBuilder().mergeFrom(data, extensionRegistry)
  3806. .buildParsed();
  3807. }
  3808. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse parseFrom(java.io.InputStream input)
  3809. throws java.io.IOException {
  3810. return newBuilder().mergeFrom(input).buildParsed();
  3811. }
  3812. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse parseFrom(
  3813. java.io.InputStream input,
  3814. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3815. throws java.io.IOException {
  3816. return newBuilder().mergeFrom(input, extensionRegistry)
  3817. .buildParsed();
  3818. }
  3819. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse parseDelimitedFrom(java.io.InputStream input)
  3820. throws java.io.IOException {
  3821. Builder builder = newBuilder();
  3822. if (builder.mergeDelimitedFrom(input)) {
  3823. return builder.buildParsed();
  3824. } else {
  3825. return null;
  3826. }
  3827. }
  3828. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse parseDelimitedFrom(
  3829. java.io.InputStream input,
  3830. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3831. throws java.io.IOException {
  3832. Builder builder = newBuilder();
  3833. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  3834. return builder.buildParsed();
  3835. } else {
  3836. return null;
  3837. }
  3838. }
  3839. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse parseFrom(
  3840. com.google.protobuf.CodedInputStream input)
  3841. throws java.io.IOException {
  3842. return newBuilder().mergeFrom(input).buildParsed();
  3843. }
  3844. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse parseFrom(
  3845. com.google.protobuf.CodedInputStream input,
  3846. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3847. throws java.io.IOException {
  3848. return newBuilder().mergeFrom(input, extensionRegistry)
  3849. .buildParsed();
  3850. }
  3851. public static Builder newBuilder() { return Builder.create(); }
  3852. public Builder newBuilderForType() { return newBuilder(); }
  3853. public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse prototype) {
  3854. return newBuilder().mergeFrom(prototype);
  3855. }
  3856. public Builder toBuilder() { return newBuilder(this); }
  3857. public static final class Builder extends
  3858. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  3859. private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse result;
  3860. // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.newBuilder()
  3861. private Builder() {}
  3862. private static Builder create() {
  3863. Builder builder = new Builder();
  3864. builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse();
  3865. return builder;
  3866. }
  3867. protected org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse internalGetResult() {
  3868. return result;
  3869. }
  3870. public Builder clear() {
  3871. if (result == null) {
  3872. throw new IllegalStateException(
  3873. "Cannot call clear() after build().");
  3874. }
  3875. result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse();
  3876. return this;
  3877. }
  3878. public Builder clone() {
  3879. return create().mergeFrom(result);
  3880. }
  3881. public com.google.protobuf.Descriptors.Descriptor
  3882. getDescriptorForType() {
  3883. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.getDescriptor();
  3884. }
  3885. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse getDefaultInstanceForType() {
  3886. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.getDefaultInstance();
  3887. }
  3888. public boolean isInitialized() {
  3889. return result.isInitialized();
  3890. }
  3891. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse build() {
  3892. if (result != null && !isInitialized()) {
  3893. throw newUninitializedMessageException(result);
  3894. }
  3895. return buildPartial();
  3896. }
  3897. private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse buildParsed()
  3898. throws com.google.protobuf.InvalidProtocolBufferException {
  3899. if (!isInitialized()) {
  3900. throw newUninitializedMessageException(
  3901. result).asInvalidProtocolBufferException();
  3902. }
  3903. return buildPartial();
  3904. }
  3905. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse buildPartial() {
  3906. if (result == null) {
  3907. throw new IllegalStateException(
  3908. "build() has already been called on this Builder.");
  3909. }
  3910. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse returnMe = result;
  3911. result = null;
  3912. return returnMe;
  3913. }
  3914. public Builder mergeFrom(com.google.protobuf.Message other) {
  3915. if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse) {
  3916. return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse)other);
  3917. } else {
  3918. super.mergeFrom(other);
  3919. return this;
  3920. }
  3921. }
  3922. public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse other) {
  3923. if (other == org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.getDefaultInstance()) return this;
  3924. if (other.hasOperationsApplied()) {
  3925. setOperationsApplied(other.getOperationsApplied());
  3926. }
  3927. if (other.hasErrorMessage()) {
  3928. setErrorMessage(other.getErrorMessage());
  3929. }
  3930. if (other.hasHashedVersionAfterApplication()) {
  3931. mergeHashedVersionAfterApplication(other.getHashedVersionAfterApplication());
  3932. }
  3933. this.mergeUnknownFields(other.getUnknownFields());
  3934. return this;
  3935. }
  3936. public Builder mergeFrom(
  3937. com.google.protobuf.CodedInputStream input,
  3938. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3939. throws java.io.IOException {
  3940. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  3941. com.google.protobuf.UnknownFieldSet.newBuilder(
  3942. this.getUnknownFields());
  3943. while (true) {
  3944. int tag = input.readTag();
  3945. switch (tag) {
  3946. case 0:
  3947. this.setUnknownFields(unknownFields.build());
  3948. return this;
  3949. default: {
  3950. if (!parseUnknownField(input, unknownFields,
  3951. extensionRegistry, tag)) {
  3952. this.setUnknownFields(unknownFields.build());
  3953. return this;
  3954. }
  3955. break;
  3956. }
  3957. case 8: {
  3958. setOperationsApplied(input.readInt32());
  3959. break;
  3960. }
  3961. case 18: {
  3962. setErrorMessage(input.readString());
  3963. break;
  3964. }
  3965. case 26: {
  3966. org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder();
  3967. if (hasHashedVersionAfterApplication()) {
  3968. subBuilder.mergeFrom(getHashedVersionAfterApplication());
  3969. }
  3970. input.readMessage(subBuilder, extensionRegistry);
  3971. setHashedVersionAfterApplication(subBuilder.buildPartial());
  3972. break;
  3973. }
  3974. }
  3975. }
  3976. }
  3977. // required int32 operations_applied = 1;
  3978. public boolean hasOperationsApplied() {
  3979. return result.hasOperationsApplied();
  3980. }
  3981. public int getOperationsApplied() {
  3982. return result.getOperationsApplied();
  3983. }
  3984. public Builder setOperationsApplied(int value) {
  3985. result.hasOperationsApplied = true;
  3986. result.operationsApplied_ = value;
  3987. return this;
  3988. }
  3989. public Builder clearOperationsApplied() {
  3990. result.hasOperationsApplied = false;
  3991. result.operationsApplied_ = 0;
  3992. return this;
  3993. }
  3994. // optional string error_message = 2;
  3995. public boolean hasErrorMessage() {
  3996. return result.hasErrorMessage();
  3997. }
  3998. public java.lang.String getErrorMessage() {
  3999. return result.getErrorMessage();
  4000. }
  4001. public Builder setErrorMessage(java.lang.String value) {
  4002. if (value == null) {
  4003. throw new NullPointerException();
  4004. }
  4005. result.hasErrorMessage = true;
  4006. result.errorMessage_ = value;
  4007. return this;
  4008. }
  4009. public Builder clearErrorMessage() {
  4010. result.hasErrorMessage = false;
  4011. result.errorMessage_ = getDefaultInstance().getErrorMessage();
  4012. return this;
  4013. }
  4014. // optional .federation.ProtocolHashedVersion hashed_version_after_application = 3;
  4015. public boolean hasHashedVersionAfterApplication() {
  4016. return result.hasHashedVersionAfterApplication();
  4017. }
  4018. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getHashedVersionAfterApplication() {
  4019. return result.getHashedVersionAfterApplication();
  4020. }
  4021. public Builder setHashedVersionAfterApplication(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
  4022. if (value == null) {
  4023. throw new NullPointerException();
  4024. }
  4025. result.hasHashedVersionAfterApplication = true;
  4026. result.hashedVersionAfterApplication_ = value;
  4027. return this;
  4028. }
  4029. public Builder setHashedVersionAfterApplication(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder builderForValue) {
  4030. result.hasHashedVersionAfterApplication = true;
  4031. result.hashedVersionAfterApplication_ = builderForValue.build();
  4032. return this;
  4033. }
  4034. public Builder mergeHashedVersionAfterApplication(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
  4035. if (result.hasHashedVersionAfterApplication() &&
  4036. result.hashedVersionAfterApplication_ != org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance()) {
  4037. result.hashedVersionAfterApplication_ =
  4038. org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder(result.hashedVersionAfterApplication_).mergeFrom(value).buildPartial();
  4039. } else {
  4040. result.hashedVersionAfterApplication_ = value;
  4041. }
  4042. result.hasHashedVersionAfterApplication = true;
  4043. return this;
  4044. }
  4045. public Builder clearHashedVersionAfterApplication() {
  4046. result.hasHashedVersionAfterApplication = false;
  4047. result.hashedVersionAfterApplication_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  4048. return this;
  4049. }
  4050. // @@protoc_insertion_point(builder_scope:waveserver.ProtocolSubmitResponse)
  4051. }
  4052. static {
  4053. defaultInstance = new ProtocolSubmitResponse(true);
  4054. org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
  4055. defaultInstance.initFields();
  4056. }
  4057. // @@protoc_insertion_point(class_scope:waveserver.ProtocolSubmitResponse)
  4058. }
  4059. public static abstract class ProtocolWaveClientRpc
  4060. implements com.google.protobuf.Service {
  4061. protected ProtocolWaveClientRpc() {}
  4062. public interface Interface {
  4063. public abstract void open(
  4064. com.google.protobuf.RpcController controller,
  4065. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest request,
  4066. com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate> done);
  4067. public abstract void submit(
  4068. com.google.protobuf.RpcController controller,
  4069. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest request,
  4070. com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse> done);
  4071. public abstract void authenticate(
  4072. com.google.protobuf.RpcController controller,
  4073. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate request,
  4074. com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult> done);
  4075. }
  4076. public static com.google.protobuf.Service newReflectiveService(
  4077. final Interface impl) {
  4078. return new ProtocolWaveClientRpc() {
  4079. @Override
  4080. public void open(
  4081. com.google.protobuf.RpcController controller,
  4082. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest request,
  4083. com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate> done) {
  4084. impl.open(controller, request, done);
  4085. }
  4086. @Override
  4087. public void submit(
  4088. com.google.protobuf.RpcController controller,
  4089. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest request,
  4090. com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse> done) {
  4091. impl.submit(controller, request, done);
  4092. }
  4093. @Override
  4094. public void authenticate(
  4095. com.google.protobuf.RpcController controller,
  4096. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate request,
  4097. com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult> done) {
  4098. impl.authenticate(controller, request, done);
  4099. }
  4100. };
  4101. }
  4102. public static com.google.protobuf.BlockingService
  4103. newReflectiveBlockingService(final BlockingInterface impl) {
  4104. return new com.google.protobuf.BlockingService() {
  4105. public final com.google.protobuf.Descriptors.ServiceDescriptor
  4106. getDescriptorForType() {
  4107. return getDescriptor();
  4108. }
  4109. public final com.google.protobuf.Message callBlockingMethod(
  4110. com.google.protobuf.Descriptors.MethodDescriptor method,
  4111. com.google.protobuf.RpcController controller,
  4112. com.google.protobuf.Message request)
  4113. throws com.google.protobuf.ServiceException {
  4114. if (method.getService() != getDescriptor()) {
  4115. throw new java.lang.IllegalArgumentException(
  4116. "Service.callBlockingMethod() given method descriptor for " +
  4117. "wrong service type.");
  4118. }
  4119. switch(method.getIndex()) {
  4120. case 0:
  4121. return impl.open(controller, (org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest)request);
  4122. case 1:
  4123. return impl.submit(controller, (org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest)request);
  4124. case 2:
  4125. return impl.authenticate(controller, (org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate)request);
  4126. default:
  4127. throw new java.lang.AssertionError("Can't get here.");
  4128. }
  4129. }
  4130. public final com.google.protobuf.Message
  4131. getRequestPrototype(
  4132. com.google.protobuf.Descriptors.MethodDescriptor method) {
  4133. if (method.getService() != getDescriptor()) {
  4134. throw new java.lang.IllegalArgumentException(
  4135. "Service.getRequestPrototype() given method " +
  4136. "descriptor for wrong service type.");
  4137. }
  4138. switch(method.getIndex()) {
  4139. case 0:
  4140. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.getDefaultInstance();
  4141. case 1:
  4142. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest.getDefaultInstance();
  4143. case 2:
  4144. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.getDefaultInstance();
  4145. default:
  4146. throw new java.lang.AssertionError("Can't get here.");
  4147. }
  4148. }
  4149. public final com.google.protobuf.Message
  4150. getResponsePrototype(
  4151. com.google.protobuf.Descriptors.MethodDescriptor method) {
  4152. if (method.getService() != getDescriptor()) {
  4153. throw new java.lang.IllegalArgumentException(
  4154. "Service.getResponsePrototype() given method " +
  4155. "descriptor for wrong service type.");
  4156. }
  4157. switch(method.getIndex()) {
  4158. case 0:
  4159. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.getDefaultInstance();
  4160. case 1:
  4161. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.getDefaultInstance();
  4162. case 2:
  4163. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.getDefaultInstance();
  4164. default:
  4165. throw new java.lang.AssertionError("Can't get here.");
  4166. }
  4167. }
  4168. };
  4169. }
  4170. public abstract void open(
  4171. com.google.protobuf.RpcController controller,
  4172. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest request,
  4173. com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate> done);
  4174. public abstract void submit(
  4175. com.google.protobuf.RpcController controller,
  4176. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest request,
  4177. com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse> done);
  4178. public abstract void authenticate(
  4179. com.google.protobuf.RpcController controller,
  4180. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate request,
  4181. com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult> done);
  4182. public static final
  4183. com.google.protobuf.Descriptors.ServiceDescriptor
  4184. getDescriptor() {
  4185. return org.waveprotocol.box.common.comms.WaveClientRpc.getDescriptor().getServices().get(0);
  4186. }
  4187. public final com.google.protobuf.Descriptors.ServiceDescriptor
  4188. getDescriptorForType() {
  4189. return getDescriptor();
  4190. }
  4191. public final void callMethod(
  4192. com.google.protobuf.Descriptors.MethodDescriptor method,
  4193. com.google.protobuf.RpcController controller,
  4194. com.google.protobuf.Message request,
  4195. com.google.protobuf.RpcCallback<
  4196. com.google.protobuf.Message> done) {
  4197. if (method.getService() != getDescriptor()) {
  4198. throw new java.lang.IllegalArgumentException(
  4199. "Service.callMethod() given method descriptor for wrong " +
  4200. "service type.");
  4201. }
  4202. switch(method.getIndex()) {
  4203. case 0:
  4204. this.open(controller, (org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest)request,
  4205. com.google.protobuf.RpcUtil.<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate>specializeCallback(
  4206. done));
  4207. return;
  4208. case 1:
  4209. this.submit(controller, (org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest)request,
  4210. com.google.protobuf.RpcUtil.<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse>specializeCallback(
  4211. done));
  4212. return;
  4213. case 2:
  4214. this.authenticate(controller, (org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate)request,
  4215. com.google.protobuf.RpcUtil.<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult>specializeCallback(
  4216. done));
  4217. return;
  4218. default:
  4219. throw new java.lang.AssertionError("Can't get here.");
  4220. }
  4221. }
  4222. public final com.google.protobuf.Message
  4223. getRequestPrototype(
  4224. com.google.protobuf.Descriptors.MethodDescriptor method) {
  4225. if (method.getService() != getDescriptor()) {
  4226. throw new java.lang.IllegalArgumentException(
  4227. "Service.getRequestPrototype() given method " +
  4228. "descriptor for wrong service type.");
  4229. }
  4230. switch(method.getIndex()) {
  4231. case 0:
  4232. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.getDefaultInstance();
  4233. case 1:
  4234. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest.getDefaultInstance();
  4235. case 2:
  4236. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.getDefaultInstance();
  4237. default:
  4238. throw new java.lang.AssertionError("Can't get here.");
  4239. }
  4240. }
  4241. public final com.google.protobuf.Message
  4242. getResponsePrototype(
  4243. com.google.protobuf.Descriptors.MethodDescriptor method) {
  4244. if (method.getService() != getDescriptor()) {
  4245. throw new java.lang.IllegalArgumentException(
  4246. "Service.getResponsePrototype() given method " +
  4247. "descriptor for wrong service type.");
  4248. }
  4249. switch(method.getIndex()) {
  4250. case 0:
  4251. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.getDefaultInstance();
  4252. case 1:
  4253. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.getDefaultInstance();
  4254. case 2:
  4255. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.getDefaultInstance();
  4256. default:
  4257. throw new java.lang.AssertionError("Can't get here.");
  4258. }
  4259. }
  4260. public static Stub newStub(
  4261. com.google.protobuf.RpcChannel channel) {
  4262. return new Stub(channel);
  4263. }
  4264. public static final class Stub extends org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveClientRpc implements Interface {
  4265. private Stub(com.google.protobuf.RpcChannel channel) {
  4266. this.channel = channel;
  4267. }
  4268. private final com.google.protobuf.RpcChannel channel;
  4269. public com.google.protobuf.RpcChannel getChannel() {
  4270. return channel;
  4271. }
  4272. public void open(
  4273. com.google.protobuf.RpcController controller,
  4274. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest request,
  4275. com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate> done) {
  4276. channel.callMethod(
  4277. getDescriptor().getMethods().get(0),
  4278. controller,
  4279. request,
  4280. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.getDefaultInstance(),
  4281. com.google.protobuf.RpcUtil.generalizeCallback(
  4282. done,
  4283. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.class,
  4284. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.getDefaultInstance()));
  4285. }
  4286. public void submit(
  4287. com.google.protobuf.RpcController controller,
  4288. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest request,
  4289. com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse> done) {
  4290. channel.callMethod(
  4291. getDescriptor().getMethods().get(1),
  4292. controller,
  4293. request,
  4294. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.getDefaultInstance(),
  4295. com.google.protobuf.RpcUtil.generalizeCallback(
  4296. done,
  4297. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.class,
  4298. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.getDefaultInstance()));
  4299. }
  4300. public void authenticate(
  4301. com.google.protobuf.RpcController controller,
  4302. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate request,
  4303. com.google.protobuf.RpcCallback<org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult> done) {
  4304. channel.callMethod(
  4305. getDescriptor().getMethods().get(2),
  4306. controller,
  4307. request,
  4308. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.getDefaultInstance(),
  4309. com.google.protobuf.RpcUtil.generalizeCallback(
  4310. done,
  4311. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.class,
  4312. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.getDefaultInstance()));
  4313. }
  4314. }
  4315. public static BlockingInterface newBlockingStub(
  4316. com.google.protobuf.BlockingRpcChannel channel) {
  4317. return new BlockingStub(channel);
  4318. }
  4319. public interface BlockingInterface {
  4320. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate open(
  4321. com.google.protobuf.RpcController controller,
  4322. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest request)
  4323. throws com.google.protobuf.ServiceException;
  4324. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse submit(
  4325. com.google.protobuf.RpcController controller,
  4326. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest request)
  4327. throws com.google.protobuf.ServiceException;
  4328. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult authenticate(
  4329. com.google.protobuf.RpcController controller,
  4330. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate request)
  4331. throws com.google.protobuf.ServiceException;
  4332. }
  4333. private static final class BlockingStub implements BlockingInterface {
  4334. private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) {
  4335. this.channel = channel;
  4336. }
  4337. private final com.google.protobuf.BlockingRpcChannel channel;
  4338. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate open(
  4339. com.google.protobuf.RpcController controller,
  4340. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest request)
  4341. throws com.google.protobuf.ServiceException {
  4342. return (org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate) channel.callBlockingMethod(
  4343. getDescriptor().getMethods().get(0),
  4344. controller,
  4345. request,
  4346. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.getDefaultInstance());
  4347. }
  4348. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse submit(
  4349. com.google.protobuf.RpcController controller,
  4350. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest request)
  4351. throws com.google.protobuf.ServiceException {
  4352. return (org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse) channel.callBlockingMethod(
  4353. getDescriptor().getMethods().get(1),
  4354. controller,
  4355. request,
  4356. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.getDefaultInstance());
  4357. }
  4358. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult authenticate(
  4359. com.google.protobuf.RpcController controller,
  4360. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate request)
  4361. throws com.google.protobuf.ServiceException {
  4362. return (org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult) channel.callBlockingMethod(
  4363. getDescriptor().getMethods().get(2),
  4364. controller,
  4365. request,
  4366. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.getDefaultInstance());
  4367. }
  4368. }
  4369. }
  4370. private static com.google.protobuf.Descriptors.Descriptor
  4371. internal_static_waveserver_ProtocolAuthenticate_descriptor;
  4372. private static
  4373. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  4374. internal_static_waveserver_ProtocolAuthenticate_fieldAccessorTable;
  4375. private static com.google.protobuf.Descriptors.Descriptor
  4376. internal_static_waveserver_ProtocolAuthenticationResult_descriptor;
  4377. private static
  4378. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  4379. internal_static_waveserver_ProtocolAuthenticationResult_fieldAccessorTable;
  4380. private static com.google.protobuf.Descriptors.Descriptor
  4381. internal_static_waveserver_ProtocolOpenRequest_descriptor;
  4382. private static
  4383. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  4384. internal_static_waveserver_ProtocolOpenRequest_fieldAccessorTable;
  4385. private static com.google.protobuf.Descriptors.Descriptor
  4386. internal_static_waveserver_WaveletVersion_descriptor;
  4387. private static
  4388. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  4389. internal_static_waveserver_WaveletVersion_fieldAccessorTable;
  4390. private static com.google.protobuf.Descriptors.Descriptor
  4391. internal_static_waveserver_DocumentSnapshot_descriptor;
  4392. private static
  4393. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  4394. internal_static_waveserver_DocumentSnapshot_fieldAccessorTable;
  4395. private static com.google.protobuf.Descriptors.Descriptor
  4396. internal_static_waveserver_WaveletSnapshot_descriptor;
  4397. private static
  4398. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  4399. internal_static_waveserver_WaveletSnapshot_fieldAccessorTable;
  4400. private static com.google.protobuf.Descriptors.Descriptor
  4401. internal_static_waveserver_WaveViewSnapshot_descriptor;
  4402. private static
  4403. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  4404. internal_static_waveserver_WaveViewSnapshot_fieldAccessorTable;
  4405. private static com.google.protobuf.Descriptors.Descriptor
  4406. internal_static_waveserver_ProtocolWaveletUpdate_descriptor;
  4407. private static
  4408. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  4409. internal_static_waveserver_ProtocolWaveletUpdate_fieldAccessorTable;
  4410. private static com.google.protobuf.Descriptors.Descriptor
  4411. internal_static_waveserver_ProtocolSubmitRequest_descriptor;
  4412. private static
  4413. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  4414. internal_static_waveserver_ProtocolSubmitRequest_fieldAccessorTable;
  4415. private static com.google.protobuf.Descriptors.Descriptor
  4416. internal_static_waveserver_ProtocolSubmitResponse_descriptor;
  4417. private static
  4418. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  4419. internal_static_waveserver_ProtocolSubmitResponse_fieldAccessorTable;
  4420. public static com.google.protobuf.Descriptors.FileDescriptor
  4421. getDescriptor() {
  4422. return descriptor;
  4423. }
  4424. private static com.google.protobuf.Descriptors.FileDescriptor
  4425. descriptor;
  4426. static {
  4427. java.lang.String[] descriptorData = {
  4428. "\n6org/waveprotocol/box/common/comms/wave" +
  4429. "client-rpc.proto\022\nwaveserver\032)org/wavepr" +
  4430. "otocol/box/server/rpc/rpc.proto\0326org/wav" +
  4431. "eprotocol/wave/federation/federation.pro" +
  4432. "todevel\"%\n\024ProtocolAuthenticate\022\r\n\005token" +
  4433. "\030\001 \002(\t\"\036\n\034ProtocolAuthenticationResult\"\214" +
  4434. "\001\n\023ProtocolOpenRequest\022\026\n\016participant_id" +
  4435. "\030\001 \002(\t\022\017\n\007wave_id\030\002 \002(\t\022\031\n\021wavelet_id_pr" +
  4436. "efix\030\003 \003(\t\0221\n\rknown_wavelet\030\004 \003(\0132\032.wave" +
  4437. "server.WaveletVersion\"_\n\016WaveletVersion\022",
  4438. "\022\n\nwavelet_id\030\001 \002(\t\0229\n\016hashed_version\030\002 " +
  4439. "\002(\0132!.federation.ProtocolHashedVersion\"\312" +
  4440. "\001\n\020DocumentSnapshot\022\023\n\013document_id\030\001 \002(\t" +
  4441. "\022A\n\022document_operation\030\002 \002(\0132%.federatio" +
  4442. "n.ProtocolDocumentOperation\022\016\n\006author\030\003 " +
  4443. "\002(\t\022\023\n\013contributor\030\004 \003(\t\022\035\n\025last_modifie" +
  4444. "d_version\030\005 \002(\003\022\032\n\022last_modified_time\030\006 " +
  4445. "\002(\003\"\345\001\n\017WaveletSnapshot\022\022\n\nwavelet_id\030\001 " +
  4446. "\002(\t\022\026\n\016participant_id\030\002 \003(\t\022.\n\010document\030" +
  4447. "\003 \003(\0132\034.waveserver.DocumentSnapshot\0222\n\007v",
  4448. "ersion\030\004 \002(\0132!.federation.ProtocolHashed" +
  4449. "Version\022\032\n\022last_modified_time\030\005 \002(\003\022\017\n\007c" +
  4450. "reator\030\006 \002(\t\022\025\n\rcreation_time\030\007 \002(\003\"Q\n\020W" +
  4451. "aveViewSnapshot\022\017\n\007wave_id\030\001 \002(\t\022,\n\007wave" +
  4452. "let\030\002 \003(\0132\033.waveserver.WaveletSnapshot\"\270" +
  4453. "\002\n\025ProtocolWaveletUpdate\022\024\n\014wavelet_name" +
  4454. "\030\001 \002(\t\0227\n\rapplied_delta\030\002 \003(\0132 .federati" +
  4455. "on.ProtocolWaveletDelta\0228\n\rcommit_notice" +
  4456. "\030\003 \001(\0132!.federation.ProtocolHashedVersio" +
  4457. "n\022<\n\021resulting_version\030\004 \001(\0132!.federatio",
  4458. "n.ProtocolHashedVersion\022-\n\010snapshot\030\005 \001(" +
  4459. "\0132\033.waveserver.WaveletSnapshot\022\025\n\006marker" +
  4460. "\030\006 \001(\010:\005false\022\022\n\nchannel_id\030\007 \001(\t\"r\n\025Pro" +
  4461. "tocolSubmitRequest\022\024\n\014wavelet_name\030\001 \002(\t" +
  4462. "\022/\n\005delta\030\002 \002(\0132 .federation.ProtocolWav" +
  4463. "eletDelta\022\022\n\nchannel_id\030\003 \001(\t\"\230\001\n\026Protoc" +
  4464. "olSubmitResponse\022\032\n\022operations_applied\030\001" +
  4465. " \002(\005\022\025\n\rerror_message\030\002 \001(\t\022K\n hashed_ve" +
  4466. "rsion_after_application\030\003 \001(\0132!.federati" +
  4467. "on.ProtocolHashedVersion2\225\002\n\025ProtocolWav",
  4468. "eClientRpc\022O\n\004Open\022\037.waveserver.Protocol" +
  4469. "OpenRequest\032!.waveserver.ProtocolWavelet" +
  4470. "Update\"\003\330>\001\022O\n\006Submit\022!.waveserver.Proto" +
  4471. "colSubmitRequest\032\".waveserver.ProtocolSu" +
  4472. "bmitResponse\022Z\n\014Authenticate\022 .waveserve" +
  4473. "r.ProtocolAuthenticate\032(.waveserver.Prot" +
  4474. "ocolAuthenticationResultB2\n!org.waveprot" +
  4475. "ocol.box.common.commsB\rWaveClientRpc"
  4476. };
  4477. com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
  4478. new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
  4479. public com.google.protobuf.ExtensionRegistry assignDescriptors(
  4480. com.google.protobuf.Descriptors.FileDescriptor root) {
  4481. descriptor = root;
  4482. internal_static_waveserver_ProtocolAuthenticate_descriptor =
  4483. getDescriptor().getMessageTypes().get(0);
  4484. internal_static_waveserver_ProtocolAuthenticate_fieldAccessorTable = new
  4485. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  4486. internal_static_waveserver_ProtocolAuthenticate_descriptor,
  4487. new java.lang.String[] { "Token", },
  4488. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.class,
  4489. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.Builder.class);
  4490. internal_static_waveserver_ProtocolAuthenticationResult_descriptor =
  4491. getDescriptor().getMessageTypes().get(1);
  4492. internal_static_waveserver_ProtocolAuthenticationResult_fieldAccessorTable = new
  4493. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  4494. internal_static_waveserver_ProtocolAuthenticationResult_descriptor,
  4495. new java.lang.String[] { },
  4496. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.class,
  4497. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.Builder.class);
  4498. internal_static_waveserver_ProtocolOpenRequest_descriptor =
  4499. getDescriptor().getMessageTypes().get(2);
  4500. internal_static_waveserver_ProtocolOpenRequest_fieldAccessorTable = new
  4501. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  4502. internal_static_waveserver_ProtocolOpenRequest_descriptor,
  4503. new java.lang.String[] { "ParticipantId", "WaveId", "WaveletIdPrefix", "KnownWavelet", },
  4504. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.class,
  4505. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.Builder.class);
  4506. internal_static_waveserver_WaveletVersion_descriptor =
  4507. getDescriptor().getMessageTypes().get(3);
  4508. internal_static_waveserver_WaveletVersion_fieldAccessorTable = new
  4509. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  4510. internal_static_waveserver_WaveletVersion_descriptor,
  4511. new java.lang.String[] { "WaveletId", "HashedVersion", },
  4512. org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.class,
  4513. org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.Builder.class);
  4514. internal_static_waveserver_DocumentSnapshot_descriptor =
  4515. getDescriptor().getMessageTypes().get(4);
  4516. internal_static_waveserver_DocumentSnapshot_fieldAccessorTable = new
  4517. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  4518. internal_static_waveserver_DocumentSnapshot_descriptor,
  4519. new java.lang.String[] { "DocumentId", "DocumentOperation", "Author", "Contributor", "LastModifiedVersion", "LastModifiedTime", },
  4520. org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot.class,
  4521. org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot.Builder.class);
  4522. internal_static_waveserver_WaveletSnapshot_descriptor =
  4523. getDescriptor().getMessageTypes().get(5);
  4524. internal_static_waveserver_WaveletSnapshot_fieldAccessorTable = new
  4525. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  4526. internal_static_waveserver_WaveletSnapshot_descriptor,
  4527. new java.lang.String[] { "WaveletId", "ParticipantId", "Document", "Version", "LastModifiedTime", "Creator", "CreationTime", },
  4528. org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.class,
  4529. org.waveprotocol.box.common.comms.WaveClientRpc.WaveletSnapshot.Builder.class);
  4530. internal_static_waveserver_WaveViewSnapshot_descriptor =
  4531. getDescriptor().getMessageTypes().get(6);
  4532. internal_static_waveserver_WaveViewSnapshot_fieldAccessorTable = new
  4533. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  4534. internal_static_waveserver_WaveViewSnapshot_descriptor,
  4535. new java.lang.String[] { "WaveId", "Wavelet", },
  4536. org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot.class,
  4537. org.waveprotocol.box.common.comms.WaveClientRpc.WaveViewSnapshot.Builder.class);
  4538. internal_static_waveserver_ProtocolWaveletUpdate_descriptor =
  4539. getDescriptor().getMessageTypes().get(7);
  4540. internal_static_waveserver_ProtocolWaveletUpdate_fieldAccessorTable = new
  4541. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  4542. internal_static_waveserver_ProtocolWaveletUpdate_descriptor,
  4543. new java.lang.String[] { "WaveletName", "AppliedDelta", "CommitNotice", "ResultingVersion", "Snapshot", "Marker", "ChannelId", },
  4544. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.class,
  4545. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolWaveletUpdate.Builder.class);
  4546. internal_static_waveserver_ProtocolSubmitRequest_descriptor =
  4547. getDescriptor().getMessageTypes().get(8);
  4548. internal_static_waveserver_ProtocolSubmitRequest_fieldAccessorTable = new
  4549. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  4550. internal_static_waveserver_ProtocolSubmitRequest_descriptor,
  4551. new java.lang.String[] { "WaveletName", "Delta", "ChannelId", },
  4552. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest.class,
  4553. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitRequest.Builder.class);
  4554. internal_static_waveserver_ProtocolSubmitResponse_descriptor =
  4555. getDescriptor().getMessageTypes().get(9);
  4556. internal_static_waveserver_ProtocolSubmitResponse_fieldAccessorTable = new
  4557. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  4558. internal_static_waveserver_ProtocolSubmitResponse_descriptor,
  4559. new java.lang.String[] { "OperationsApplied", "ErrorMessage", "HashedVersionAfterApplication", },
  4560. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.class,
  4561. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolSubmitResponse.Builder.class);
  4562. com.google.protobuf.ExtensionRegistry registry =
  4563. com.google.protobuf.ExtensionRegistry.newInstance();
  4564. registerAllExtensions(registry);
  4565. org.waveprotocol.box.server.rpc.Rpc.registerAllExtensions(registry);
  4566. org.waveprotocol.wave.federation.Proto.registerAllExtensions(registry);
  4567. return registry;
  4568. }
  4569. };
  4570. com.google.protobuf.Descriptors.FileDescriptor
  4571. .internalBuildGeneratedFileFrom(descriptorData,
  4572. new com.google.protobuf.Descriptors.FileDescriptor[] {
  4573. org.waveprotocol.box.server.rpc.Rpc.getDescriptor(),
  4574. org.waveprotocol.wave.federation.Proto.getDescriptor(),
  4575. }, assigner);
  4576. }
  4577. public static void internalForceInit() {}
  4578. // @@protoc_insertion_point(outer_class_scope)
  4579. }