PageRenderTime 247ms CodeModel.GetById 33ms RepoModel.GetById 2ms app.codeStats 3ms

/proto_src/org/waveprotocol/wave/concurrencycontrol/ClientServer.java

https://code.google.com/p/wave-protocol/
Java | 7716 lines | 6883 code | 677 blank | 156 comment | 751 complexity | aada35c21083b96d74900cb9894b6096 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/wave/concurrencycontrol/clientserver.proto
  3. package org.waveprotocol.wave.concurrencycontrol;
  4. public final class ClientServer {
  5. private ClientServer() {}
  6. public static void registerAllExtensions(
  7. com.google.protobuf.ExtensionRegistry registry) {
  8. }
  9. public static final class FetchWaveViewRequest extends
  10. com.google.protobuf.GeneratedMessage {
  11. // Use FetchWaveViewRequest.newBuilder() to construct.
  12. private FetchWaveViewRequest() {
  13. initFields();
  14. }
  15. private FetchWaveViewRequest(boolean noInit) {}
  16. private static final FetchWaveViewRequest defaultInstance;
  17. public static FetchWaveViewRequest getDefaultInstance() {
  18. return defaultInstance;
  19. }
  20. public FetchWaveViewRequest getDefaultInstanceForType() {
  21. return defaultInstance;
  22. }
  23. public static final com.google.protobuf.Descriptors.Descriptor
  24. getDescriptor() {
  25. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_FetchWaveViewRequest_descriptor;
  26. }
  27. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  28. internalGetFieldAccessorTable() {
  29. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_FetchWaveViewRequest_fieldAccessorTable;
  30. }
  31. // required string waveId = 1;
  32. public static final int WAVEID_FIELD_NUMBER = 1;
  33. private boolean hasWaveId;
  34. private java.lang.String waveId_ = "";
  35. public boolean hasWaveId() { return hasWaveId; }
  36. public java.lang.String getWaveId() { return waveId_; }
  37. // repeated .concurrencycontrol.WaveletVersion knownWavelet = 2;
  38. public static final int KNOWNWAVELET_FIELD_NUMBER = 2;
  39. private java.util.List<org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion> knownWavelet_ =
  40. java.util.Collections.emptyList();
  41. public java.util.List<org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion> getKnownWaveletList() {
  42. return knownWavelet_;
  43. }
  44. public int getKnownWaveletCount() { return knownWavelet_.size(); }
  45. public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion getKnownWavelet(int index) {
  46. return knownWavelet_.get(index);
  47. }
  48. private void initFields() {
  49. }
  50. public final boolean isInitialized() {
  51. if (!hasWaveId) return false;
  52. for (org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion element : getKnownWaveletList()) {
  53. if (!element.isInitialized()) return false;
  54. }
  55. return true;
  56. }
  57. public void writeTo(com.google.protobuf.CodedOutputStream output)
  58. throws java.io.IOException {
  59. getSerializedSize();
  60. if (hasWaveId()) {
  61. output.writeString(1, getWaveId());
  62. }
  63. for (org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion element : getKnownWaveletList()) {
  64. output.writeMessage(2, element);
  65. }
  66. getUnknownFields().writeTo(output);
  67. }
  68. private int memoizedSerializedSize = -1;
  69. public int getSerializedSize() {
  70. int size = memoizedSerializedSize;
  71. if (size != -1) return size;
  72. size = 0;
  73. if (hasWaveId()) {
  74. size += com.google.protobuf.CodedOutputStream
  75. .computeStringSize(1, getWaveId());
  76. }
  77. for (org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion element : getKnownWaveletList()) {
  78. size += com.google.protobuf.CodedOutputStream
  79. .computeMessageSize(2, element);
  80. }
  81. size += getUnknownFields().getSerializedSize();
  82. memoizedSerializedSize = size;
  83. return size;
  84. }
  85. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest parseFrom(
  86. com.google.protobuf.ByteString data)
  87. throws com.google.protobuf.InvalidProtocolBufferException {
  88. return newBuilder().mergeFrom(data).buildParsed();
  89. }
  90. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest parseFrom(
  91. com.google.protobuf.ByteString data,
  92. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  93. throws com.google.protobuf.InvalidProtocolBufferException {
  94. return newBuilder().mergeFrom(data, extensionRegistry)
  95. .buildParsed();
  96. }
  97. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest parseFrom(byte[] data)
  98. throws com.google.protobuf.InvalidProtocolBufferException {
  99. return newBuilder().mergeFrom(data).buildParsed();
  100. }
  101. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest parseFrom(
  102. byte[] data,
  103. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  104. throws com.google.protobuf.InvalidProtocolBufferException {
  105. return newBuilder().mergeFrom(data, extensionRegistry)
  106. .buildParsed();
  107. }
  108. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest parseFrom(java.io.InputStream input)
  109. throws java.io.IOException {
  110. return newBuilder().mergeFrom(input).buildParsed();
  111. }
  112. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest parseFrom(
  113. java.io.InputStream input,
  114. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  115. throws java.io.IOException {
  116. return newBuilder().mergeFrom(input, extensionRegistry)
  117. .buildParsed();
  118. }
  119. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest parseDelimitedFrom(java.io.InputStream input)
  120. throws java.io.IOException {
  121. Builder builder = newBuilder();
  122. if (builder.mergeDelimitedFrom(input)) {
  123. return builder.buildParsed();
  124. } else {
  125. return null;
  126. }
  127. }
  128. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest parseDelimitedFrom(
  129. java.io.InputStream input,
  130. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  131. throws java.io.IOException {
  132. Builder builder = newBuilder();
  133. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  134. return builder.buildParsed();
  135. } else {
  136. return null;
  137. }
  138. }
  139. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest parseFrom(
  140. com.google.protobuf.CodedInputStream input)
  141. throws java.io.IOException {
  142. return newBuilder().mergeFrom(input).buildParsed();
  143. }
  144. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest parseFrom(
  145. com.google.protobuf.CodedInputStream input,
  146. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  147. throws java.io.IOException {
  148. return newBuilder().mergeFrom(input, extensionRegistry)
  149. .buildParsed();
  150. }
  151. public static Builder newBuilder() { return Builder.create(); }
  152. public Builder newBuilderForType() { return newBuilder(); }
  153. public static Builder newBuilder(org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest prototype) {
  154. return newBuilder().mergeFrom(prototype);
  155. }
  156. public Builder toBuilder() { return newBuilder(this); }
  157. public static final class Builder extends
  158. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  159. private org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest result;
  160. // Construct using org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest.newBuilder()
  161. private Builder() {}
  162. private static Builder create() {
  163. Builder builder = new Builder();
  164. builder.result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest();
  165. return builder;
  166. }
  167. protected org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest internalGetResult() {
  168. return result;
  169. }
  170. public Builder clear() {
  171. if (result == null) {
  172. throw new IllegalStateException(
  173. "Cannot call clear() after build().");
  174. }
  175. result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest();
  176. return this;
  177. }
  178. public Builder clone() {
  179. return create().mergeFrom(result);
  180. }
  181. public com.google.protobuf.Descriptors.Descriptor
  182. getDescriptorForType() {
  183. return org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest.getDescriptor();
  184. }
  185. public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest getDefaultInstanceForType() {
  186. return org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest.getDefaultInstance();
  187. }
  188. public boolean isInitialized() {
  189. return result.isInitialized();
  190. }
  191. public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest build() {
  192. if (result != null && !isInitialized()) {
  193. throw newUninitializedMessageException(result);
  194. }
  195. return buildPartial();
  196. }
  197. private org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest buildParsed()
  198. throws com.google.protobuf.InvalidProtocolBufferException {
  199. if (!isInitialized()) {
  200. throw newUninitializedMessageException(
  201. result).asInvalidProtocolBufferException();
  202. }
  203. return buildPartial();
  204. }
  205. public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest buildPartial() {
  206. if (result == null) {
  207. throw new IllegalStateException(
  208. "build() has already been called on this Builder.");
  209. }
  210. if (result.knownWavelet_ != java.util.Collections.EMPTY_LIST) {
  211. result.knownWavelet_ =
  212. java.util.Collections.unmodifiableList(result.knownWavelet_);
  213. }
  214. org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest returnMe = result;
  215. result = null;
  216. return returnMe;
  217. }
  218. public Builder mergeFrom(com.google.protobuf.Message other) {
  219. if (other instanceof org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest) {
  220. return mergeFrom((org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest)other);
  221. } else {
  222. super.mergeFrom(other);
  223. return this;
  224. }
  225. }
  226. public Builder mergeFrom(org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest other) {
  227. if (other == org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest.getDefaultInstance()) return this;
  228. if (other.hasWaveId()) {
  229. setWaveId(other.getWaveId());
  230. }
  231. if (!other.knownWavelet_.isEmpty()) {
  232. if (result.knownWavelet_.isEmpty()) {
  233. result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion>();
  234. }
  235. result.knownWavelet_.addAll(other.knownWavelet_);
  236. }
  237. this.mergeUnknownFields(other.getUnknownFields());
  238. return this;
  239. }
  240. public Builder mergeFrom(
  241. com.google.protobuf.CodedInputStream input,
  242. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  243. throws java.io.IOException {
  244. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  245. com.google.protobuf.UnknownFieldSet.newBuilder(
  246. this.getUnknownFields());
  247. while (true) {
  248. int tag = input.readTag();
  249. switch (tag) {
  250. case 0:
  251. this.setUnknownFields(unknownFields.build());
  252. return this;
  253. default: {
  254. if (!parseUnknownField(input, unknownFields,
  255. extensionRegistry, tag)) {
  256. this.setUnknownFields(unknownFields.build());
  257. return this;
  258. }
  259. break;
  260. }
  261. case 10: {
  262. setWaveId(input.readString());
  263. break;
  264. }
  265. case 18: {
  266. org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion.Builder subBuilder = org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion.newBuilder();
  267. input.readMessage(subBuilder, extensionRegistry);
  268. addKnownWavelet(subBuilder.buildPartial());
  269. break;
  270. }
  271. }
  272. }
  273. }
  274. // required string waveId = 1;
  275. public boolean hasWaveId() {
  276. return result.hasWaveId();
  277. }
  278. public java.lang.String getWaveId() {
  279. return result.getWaveId();
  280. }
  281. public Builder setWaveId(java.lang.String value) {
  282. if (value == null) {
  283. throw new NullPointerException();
  284. }
  285. result.hasWaveId = true;
  286. result.waveId_ = value;
  287. return this;
  288. }
  289. public Builder clearWaveId() {
  290. result.hasWaveId = false;
  291. result.waveId_ = getDefaultInstance().getWaveId();
  292. return this;
  293. }
  294. // repeated .concurrencycontrol.WaveletVersion knownWavelet = 2;
  295. public java.util.List<org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion> getKnownWaveletList() {
  296. return java.util.Collections.unmodifiableList(result.knownWavelet_);
  297. }
  298. public int getKnownWaveletCount() {
  299. return result.getKnownWaveletCount();
  300. }
  301. public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion getKnownWavelet(int index) {
  302. return result.getKnownWavelet(index);
  303. }
  304. public Builder setKnownWavelet(int index, org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion value) {
  305. if (value == null) {
  306. throw new NullPointerException();
  307. }
  308. result.knownWavelet_.set(index, value);
  309. return this;
  310. }
  311. public Builder setKnownWavelet(int index, org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion.Builder builderForValue) {
  312. result.knownWavelet_.set(index, builderForValue.build());
  313. return this;
  314. }
  315. public Builder addKnownWavelet(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion value) {
  316. if (value == null) {
  317. throw new NullPointerException();
  318. }
  319. if (result.knownWavelet_.isEmpty()) {
  320. result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion>();
  321. }
  322. result.knownWavelet_.add(value);
  323. return this;
  324. }
  325. public Builder addKnownWavelet(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion.Builder builderForValue) {
  326. if (result.knownWavelet_.isEmpty()) {
  327. result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion>();
  328. }
  329. result.knownWavelet_.add(builderForValue.build());
  330. return this;
  331. }
  332. public Builder addAllKnownWavelet(
  333. java.lang.Iterable<? extends org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion> values) {
  334. if (result.knownWavelet_.isEmpty()) {
  335. result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion>();
  336. }
  337. super.addAll(values, result.knownWavelet_);
  338. return this;
  339. }
  340. public Builder clearKnownWavelet() {
  341. result.knownWavelet_ = java.util.Collections.emptyList();
  342. return this;
  343. }
  344. // @@protoc_insertion_point(builder_scope:concurrencycontrol.FetchWaveViewRequest)
  345. }
  346. static {
  347. defaultInstance = new FetchWaveViewRequest(true);
  348. org.waveprotocol.wave.concurrencycontrol.ClientServer.internalForceInit();
  349. defaultInstance.initFields();
  350. }
  351. // @@protoc_insertion_point(class_scope:concurrencycontrol.FetchWaveViewRequest)
  352. }
  353. public static final class FetchWaveViewResponse extends
  354. com.google.protobuf.GeneratedMessage {
  355. // Use FetchWaveViewResponse.newBuilder() to construct.
  356. private FetchWaveViewResponse() {
  357. initFields();
  358. }
  359. private FetchWaveViewResponse(boolean noInit) {}
  360. private static final FetchWaveViewResponse defaultInstance;
  361. public static FetchWaveViewResponse getDefaultInstance() {
  362. return defaultInstance;
  363. }
  364. public FetchWaveViewResponse getDefaultInstanceForType() {
  365. return defaultInstance;
  366. }
  367. public static final com.google.protobuf.Descriptors.Descriptor
  368. getDescriptor() {
  369. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_FetchWaveViewResponse_descriptor;
  370. }
  371. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  372. internalGetFieldAccessorTable() {
  373. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_FetchWaveViewResponse_fieldAccessorTable;
  374. }
  375. public static final class Wavelet extends
  376. com.google.protobuf.GeneratedMessage {
  377. // Use Wavelet.newBuilder() to construct.
  378. private Wavelet() {
  379. initFields();
  380. }
  381. private Wavelet(boolean noInit) {}
  382. private static final Wavelet defaultInstance;
  383. public static Wavelet getDefaultInstance() {
  384. return defaultInstance;
  385. }
  386. public Wavelet getDefaultInstanceForType() {
  387. return defaultInstance;
  388. }
  389. public static final com.google.protobuf.Descriptors.Descriptor
  390. getDescriptor() {
  391. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_FetchWaveViewResponse_Wavelet_descriptor;
  392. }
  393. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  394. internalGetFieldAccessorTable() {
  395. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_FetchWaveViewResponse_Wavelet_fieldAccessorTable;
  396. }
  397. // required string waveletId = 1;
  398. public static final int WAVELETID_FIELD_NUMBER = 1;
  399. private boolean hasWaveletId;
  400. private java.lang.String waveletId_ = "";
  401. public boolean hasWaveletId() { return hasWaveletId; }
  402. public java.lang.String getWaveletId() { return waveletId_; }
  403. // optional .concurrencycontrol.WaveletSnapshot snapshot = 2;
  404. public static final int SNAPSHOT_FIELD_NUMBER = 2;
  405. private boolean hasSnapshot;
  406. private org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot snapshot_;
  407. public boolean hasSnapshot() { return hasSnapshot; }
  408. public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot getSnapshot() { return snapshot_; }
  409. private void initFields() {
  410. snapshot_ = org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot.getDefaultInstance();
  411. }
  412. public final boolean isInitialized() {
  413. if (!hasWaveletId) return false;
  414. if (hasSnapshot()) {
  415. if (!getSnapshot().isInitialized()) return false;
  416. }
  417. return true;
  418. }
  419. public void writeTo(com.google.protobuf.CodedOutputStream output)
  420. throws java.io.IOException {
  421. getSerializedSize();
  422. if (hasWaveletId()) {
  423. output.writeString(1, getWaveletId());
  424. }
  425. if (hasSnapshot()) {
  426. output.writeMessage(2, getSnapshot());
  427. }
  428. getUnknownFields().writeTo(output);
  429. }
  430. private int memoizedSerializedSize = -1;
  431. public int getSerializedSize() {
  432. int size = memoizedSerializedSize;
  433. if (size != -1) return size;
  434. size = 0;
  435. if (hasWaveletId()) {
  436. size += com.google.protobuf.CodedOutputStream
  437. .computeStringSize(1, getWaveletId());
  438. }
  439. if (hasSnapshot()) {
  440. size += com.google.protobuf.CodedOutputStream
  441. .computeMessageSize(2, getSnapshot());
  442. }
  443. size += getUnknownFields().getSerializedSize();
  444. memoizedSerializedSize = size;
  445. return size;
  446. }
  447. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet parseFrom(
  448. com.google.protobuf.ByteString data)
  449. throws com.google.protobuf.InvalidProtocolBufferException {
  450. return newBuilder().mergeFrom(data).buildParsed();
  451. }
  452. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet parseFrom(
  453. com.google.protobuf.ByteString data,
  454. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  455. throws com.google.protobuf.InvalidProtocolBufferException {
  456. return newBuilder().mergeFrom(data, extensionRegistry)
  457. .buildParsed();
  458. }
  459. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet parseFrom(byte[] data)
  460. throws com.google.protobuf.InvalidProtocolBufferException {
  461. return newBuilder().mergeFrom(data).buildParsed();
  462. }
  463. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet parseFrom(
  464. byte[] data,
  465. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  466. throws com.google.protobuf.InvalidProtocolBufferException {
  467. return newBuilder().mergeFrom(data, extensionRegistry)
  468. .buildParsed();
  469. }
  470. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet parseFrom(java.io.InputStream input)
  471. throws java.io.IOException {
  472. return newBuilder().mergeFrom(input).buildParsed();
  473. }
  474. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet parseFrom(
  475. java.io.InputStream input,
  476. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  477. throws java.io.IOException {
  478. return newBuilder().mergeFrom(input, extensionRegistry)
  479. .buildParsed();
  480. }
  481. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet parseDelimitedFrom(java.io.InputStream input)
  482. throws java.io.IOException {
  483. Builder builder = newBuilder();
  484. if (builder.mergeDelimitedFrom(input)) {
  485. return builder.buildParsed();
  486. } else {
  487. return null;
  488. }
  489. }
  490. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet parseDelimitedFrom(
  491. java.io.InputStream input,
  492. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  493. throws java.io.IOException {
  494. Builder builder = newBuilder();
  495. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  496. return builder.buildParsed();
  497. } else {
  498. return null;
  499. }
  500. }
  501. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet parseFrom(
  502. com.google.protobuf.CodedInputStream input)
  503. throws java.io.IOException {
  504. return newBuilder().mergeFrom(input).buildParsed();
  505. }
  506. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet parseFrom(
  507. com.google.protobuf.CodedInputStream input,
  508. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  509. throws java.io.IOException {
  510. return newBuilder().mergeFrom(input, extensionRegistry)
  511. .buildParsed();
  512. }
  513. public static Builder newBuilder() { return Builder.create(); }
  514. public Builder newBuilderForType() { return newBuilder(); }
  515. public static Builder newBuilder(org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet prototype) {
  516. return newBuilder().mergeFrom(prototype);
  517. }
  518. public Builder toBuilder() { return newBuilder(this); }
  519. public static final class Builder extends
  520. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  521. private org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet result;
  522. // Construct using org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet.newBuilder()
  523. private Builder() {}
  524. private static Builder create() {
  525. Builder builder = new Builder();
  526. builder.result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet();
  527. return builder;
  528. }
  529. protected org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet internalGetResult() {
  530. return result;
  531. }
  532. public Builder clear() {
  533. if (result == null) {
  534. throw new IllegalStateException(
  535. "Cannot call clear() after build().");
  536. }
  537. result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet();
  538. return this;
  539. }
  540. public Builder clone() {
  541. return create().mergeFrom(result);
  542. }
  543. public com.google.protobuf.Descriptors.Descriptor
  544. getDescriptorForType() {
  545. return org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet.getDescriptor();
  546. }
  547. public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet getDefaultInstanceForType() {
  548. return org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet.getDefaultInstance();
  549. }
  550. public boolean isInitialized() {
  551. return result.isInitialized();
  552. }
  553. public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet build() {
  554. if (result != null && !isInitialized()) {
  555. throw newUninitializedMessageException(result);
  556. }
  557. return buildPartial();
  558. }
  559. private org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet buildParsed()
  560. throws com.google.protobuf.InvalidProtocolBufferException {
  561. if (!isInitialized()) {
  562. throw newUninitializedMessageException(
  563. result).asInvalidProtocolBufferException();
  564. }
  565. return buildPartial();
  566. }
  567. public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet buildPartial() {
  568. if (result == null) {
  569. throw new IllegalStateException(
  570. "build() has already been called on this Builder.");
  571. }
  572. org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet returnMe = result;
  573. result = null;
  574. return returnMe;
  575. }
  576. public Builder mergeFrom(com.google.protobuf.Message other) {
  577. if (other instanceof org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet) {
  578. return mergeFrom((org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet)other);
  579. } else {
  580. super.mergeFrom(other);
  581. return this;
  582. }
  583. }
  584. public Builder mergeFrom(org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet other) {
  585. if (other == org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet.getDefaultInstance()) return this;
  586. if (other.hasWaveletId()) {
  587. setWaveletId(other.getWaveletId());
  588. }
  589. if (other.hasSnapshot()) {
  590. mergeSnapshot(other.getSnapshot());
  591. }
  592. this.mergeUnknownFields(other.getUnknownFields());
  593. return this;
  594. }
  595. public Builder mergeFrom(
  596. com.google.protobuf.CodedInputStream input,
  597. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  598. throws java.io.IOException {
  599. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  600. com.google.protobuf.UnknownFieldSet.newBuilder(
  601. this.getUnknownFields());
  602. while (true) {
  603. int tag = input.readTag();
  604. switch (tag) {
  605. case 0:
  606. this.setUnknownFields(unknownFields.build());
  607. return this;
  608. default: {
  609. if (!parseUnknownField(input, unknownFields,
  610. extensionRegistry, tag)) {
  611. this.setUnknownFields(unknownFields.build());
  612. return this;
  613. }
  614. break;
  615. }
  616. case 10: {
  617. setWaveletId(input.readString());
  618. break;
  619. }
  620. case 18: {
  621. org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot.Builder subBuilder = org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot.newBuilder();
  622. if (hasSnapshot()) {
  623. subBuilder.mergeFrom(getSnapshot());
  624. }
  625. input.readMessage(subBuilder, extensionRegistry);
  626. setSnapshot(subBuilder.buildPartial());
  627. break;
  628. }
  629. }
  630. }
  631. }
  632. // required string waveletId = 1;
  633. public boolean hasWaveletId() {
  634. return result.hasWaveletId();
  635. }
  636. public java.lang.String getWaveletId() {
  637. return result.getWaveletId();
  638. }
  639. public Builder setWaveletId(java.lang.String value) {
  640. if (value == null) {
  641. throw new NullPointerException();
  642. }
  643. result.hasWaveletId = true;
  644. result.waveletId_ = value;
  645. return this;
  646. }
  647. public Builder clearWaveletId() {
  648. result.hasWaveletId = false;
  649. result.waveletId_ = getDefaultInstance().getWaveletId();
  650. return this;
  651. }
  652. // optional .concurrencycontrol.WaveletSnapshot snapshot = 2;
  653. public boolean hasSnapshot() {
  654. return result.hasSnapshot();
  655. }
  656. public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot getSnapshot() {
  657. return result.getSnapshot();
  658. }
  659. public Builder setSnapshot(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot value) {
  660. if (value == null) {
  661. throw new NullPointerException();
  662. }
  663. result.hasSnapshot = true;
  664. result.snapshot_ = value;
  665. return this;
  666. }
  667. public Builder setSnapshot(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot.Builder builderForValue) {
  668. result.hasSnapshot = true;
  669. result.snapshot_ = builderForValue.build();
  670. return this;
  671. }
  672. public Builder mergeSnapshot(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot value) {
  673. if (result.hasSnapshot() &&
  674. result.snapshot_ != org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot.getDefaultInstance()) {
  675. result.snapshot_ =
  676. org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot.newBuilder(result.snapshot_).mergeFrom(value).buildPartial();
  677. } else {
  678. result.snapshot_ = value;
  679. }
  680. result.hasSnapshot = true;
  681. return this;
  682. }
  683. public Builder clearSnapshot() {
  684. result.hasSnapshot = false;
  685. result.snapshot_ = org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot.getDefaultInstance();
  686. return this;
  687. }
  688. // @@protoc_insertion_point(builder_scope:concurrencycontrol.FetchWaveViewResponse.Wavelet)
  689. }
  690. static {
  691. defaultInstance = new Wavelet(true);
  692. org.waveprotocol.wave.concurrencycontrol.ClientServer.internalForceInit();
  693. defaultInstance.initFields();
  694. }
  695. // @@protoc_insertion_point(class_scope:concurrencycontrol.FetchWaveViewResponse.Wavelet)
  696. }
  697. // required .concurrencycontrol.ResponseStatus status = 1;
  698. public static final int STATUS_FIELD_NUMBER = 1;
  699. private boolean hasStatus;
  700. private org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus status_;
  701. public boolean hasStatus() { return hasStatus; }
  702. public org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus getStatus() { return status_; }
  703. // repeated .concurrencycontrol.FetchWaveViewResponse.Wavelet wavelet = 2;
  704. public static final int WAVELET_FIELD_NUMBER = 2;
  705. private java.util.List<org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet> wavelet_ =
  706. java.util.Collections.emptyList();
  707. public java.util.List<org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet> getWaveletList() {
  708. return wavelet_;
  709. }
  710. public int getWaveletCount() { return wavelet_.size(); }
  711. public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet getWavelet(int index) {
  712. return wavelet_.get(index);
  713. }
  714. private void initFields() {
  715. status_ = org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.getDefaultInstance();
  716. }
  717. public final boolean isInitialized() {
  718. if (!hasStatus) return false;
  719. if (!getStatus().isInitialized()) return false;
  720. for (org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet element : getWaveletList()) {
  721. if (!element.isInitialized()) return false;
  722. }
  723. return true;
  724. }
  725. public void writeTo(com.google.protobuf.CodedOutputStream output)
  726. throws java.io.IOException {
  727. getSerializedSize();
  728. if (hasStatus()) {
  729. output.writeMessage(1, getStatus());
  730. }
  731. for (org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet element : getWaveletList()) {
  732. output.writeMessage(2, element);
  733. }
  734. getUnknownFields().writeTo(output);
  735. }
  736. private int memoizedSerializedSize = -1;
  737. public int getSerializedSize() {
  738. int size = memoizedSerializedSize;
  739. if (size != -1) return size;
  740. size = 0;
  741. if (hasStatus()) {
  742. size += com.google.protobuf.CodedOutputStream
  743. .computeMessageSize(1, getStatus());
  744. }
  745. for (org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet element : getWaveletList()) {
  746. size += com.google.protobuf.CodedOutputStream
  747. .computeMessageSize(2, element);
  748. }
  749. size += getUnknownFields().getSerializedSize();
  750. memoizedSerializedSize = size;
  751. return size;
  752. }
  753. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse parseFrom(
  754. com.google.protobuf.ByteString data)
  755. throws com.google.protobuf.InvalidProtocolBufferException {
  756. return newBuilder().mergeFrom(data).buildParsed();
  757. }
  758. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse parseFrom(
  759. com.google.protobuf.ByteString data,
  760. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  761. throws com.google.protobuf.InvalidProtocolBufferException {
  762. return newBuilder().mergeFrom(data, extensionRegistry)
  763. .buildParsed();
  764. }
  765. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse parseFrom(byte[] data)
  766. throws com.google.protobuf.InvalidProtocolBufferException {
  767. return newBuilder().mergeFrom(data).buildParsed();
  768. }
  769. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse parseFrom(
  770. byte[] data,
  771. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  772. throws com.google.protobuf.InvalidProtocolBufferException {
  773. return newBuilder().mergeFrom(data, extensionRegistry)
  774. .buildParsed();
  775. }
  776. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse parseFrom(java.io.InputStream input)
  777. throws java.io.IOException {
  778. return newBuilder().mergeFrom(input).buildParsed();
  779. }
  780. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse parseFrom(
  781. java.io.InputStream input,
  782. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  783. throws java.io.IOException {
  784. return newBuilder().mergeFrom(input, extensionRegistry)
  785. .buildParsed();
  786. }
  787. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse parseDelimitedFrom(java.io.InputStream input)
  788. throws java.io.IOException {
  789. Builder builder = newBuilder();
  790. if (builder.mergeDelimitedFrom(input)) {
  791. return builder.buildParsed();
  792. } else {
  793. return null;
  794. }
  795. }
  796. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse parseDelimitedFrom(
  797. java.io.InputStream input,
  798. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  799. throws java.io.IOException {
  800. Builder builder = newBuilder();
  801. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  802. return builder.buildParsed();
  803. } else {
  804. return null;
  805. }
  806. }
  807. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse parseFrom(
  808. com.google.protobuf.CodedInputStream input)
  809. throws java.io.IOException {
  810. return newBuilder().mergeFrom(input).buildParsed();
  811. }
  812. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse parseFrom(
  813. com.google.protobuf.CodedInputStream input,
  814. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  815. throws java.io.IOException {
  816. return newBuilder().mergeFrom(input, extensionRegistry)
  817. .buildParsed();
  818. }
  819. public static Builder newBuilder() { return Builder.create(); }
  820. public Builder newBuilderForType() { return newBuilder(); }
  821. public static Builder newBuilder(org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse prototype) {
  822. return newBuilder().mergeFrom(prototype);
  823. }
  824. public Builder toBuilder() { return newBuilder(this); }
  825. public static final class Builder extends
  826. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  827. private org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse result;
  828. // Construct using org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.newBuilder()
  829. private Builder() {}
  830. private static Builder create() {
  831. Builder builder = new Builder();
  832. builder.result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse();
  833. return builder;
  834. }
  835. protected org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse internalGetResult() {
  836. return result;
  837. }
  838. public Builder clear() {
  839. if (result == null) {
  840. throw new IllegalStateException(
  841. "Cannot call clear() after build().");
  842. }
  843. result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse();
  844. return this;
  845. }
  846. public Builder clone() {
  847. return create().mergeFrom(result);
  848. }
  849. public com.google.protobuf.Descriptors.Descriptor
  850. getDescriptorForType() {
  851. return org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.getDescriptor();
  852. }
  853. public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse getDefaultInstanceForType() {
  854. return org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.getDefaultInstance();
  855. }
  856. public boolean isInitialized() {
  857. return result.isInitialized();
  858. }
  859. public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse build() {
  860. if (result != null && !isInitialized()) {
  861. throw newUninitializedMessageException(result);
  862. }
  863. return buildPartial();
  864. }
  865. private org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse buildParsed()
  866. throws com.google.protobuf.InvalidProtocolBufferException {
  867. if (!isInitialized()) {
  868. throw newUninitializedMessageException(
  869. result).asInvalidProtocolBufferException();
  870. }
  871. return buildPartial();
  872. }
  873. public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse buildPartial() {
  874. if (result == null) {
  875. throw new IllegalStateException(
  876. "build() has already been called on this Builder.");
  877. }
  878. if (result.wavelet_ != java.util.Collections.EMPTY_LIST) {
  879. result.wavelet_ =
  880. java.util.Collections.unmodifiableList(result.wavelet_);
  881. }
  882. org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse returnMe = result;
  883. result = null;
  884. return returnMe;
  885. }
  886. public Builder mergeFrom(com.google.protobuf.Message other) {
  887. if (other instanceof org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse) {
  888. return mergeFrom((org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse)other);
  889. } else {
  890. super.mergeFrom(other);
  891. return this;
  892. }
  893. }
  894. public Builder mergeFrom(org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse other) {
  895. if (other == org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.getDefaultInstance()) return this;
  896. if (other.hasStatus()) {
  897. mergeStatus(other.getStatus());
  898. }
  899. if (!other.wavelet_.isEmpty()) {
  900. if (result.wavelet_.isEmpty()) {
  901. result.wavelet_ = new java.util.ArrayList<org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet>();
  902. }
  903. result.wavelet_.addAll(other.wavelet_);
  904. }
  905. this.mergeUnknownFields(other.getUnknownFields());
  906. return this;
  907. }
  908. public Builder mergeFrom(
  909. com.google.protobuf.CodedInputStream input,
  910. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  911. throws java.io.IOException {
  912. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  913. com.google.protobuf.UnknownFieldSet.newBuilder(
  914. this.getUnknownFields());
  915. while (true) {
  916. int tag = input.readTag();
  917. switch (tag) {
  918. case 0:
  919. this.setUnknownFields(unknownFields.build());
  920. return this;
  921. default: {
  922. if (!parseUnknownField(input, unknownFields,
  923. extensionRegistry, tag)) {
  924. this.setUnknownFields(unknownFields.build());
  925. return this;
  926. }
  927. break;
  928. }
  929. case 10: {
  930. org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.Builder subBuilder = org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.newBuilder();
  931. if (hasStatus()) {
  932. subBuilder.mergeFrom(getStatus());
  933. }
  934. input.readMessage(subBuilder, extensionRegistry);
  935. setStatus(subBuilder.buildPartial());
  936. break;
  937. }
  938. case 18: {
  939. org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet.Builder subBuilder = org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet.newBuilder();
  940. input.readMessage(subBuilder, extensionRegistry);
  941. addWavelet(subBuilder.buildPartial());
  942. break;
  943. }
  944. }
  945. }
  946. }
  947. // required .concurrencycontrol.ResponseStatus status = 1;
  948. public boolean hasStatus() {
  949. return result.hasStatus();
  950. }
  951. public org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus getStatus() {
  952. return result.getStatus();
  953. }
  954. public Builder setStatus(org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus value) {
  955. if (value == null) {
  956. throw new NullPointerException();
  957. }
  958. result.hasStatus = true;
  959. result.status_ = value;
  960. return this;
  961. }
  962. public Builder setStatus(org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.Builder builderForValue) {
  963. result.hasStatus = true;
  964. result.status_ = builderForValue.build();
  965. return this;
  966. }
  967. public Builder mergeStatus(org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus value) {
  968. if (result.hasStatus() &&
  969. result.status_ != org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.getDefaultInstance()) {
  970. result.status_ =
  971. org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.newBuilder(result.status_).mergeFrom(value).buildPartial();
  972. } else {
  973. result.status_ = value;
  974. }
  975. result.hasStatus = true;
  976. return this;
  977. }
  978. public Builder clearStatus() {
  979. result.hasStatus = false;
  980. result.status_ = org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.getDefaultInstance();
  981. return this;
  982. }
  983. // repeated .concurrencycontrol.FetchWaveViewResponse.Wavelet wavelet = 2;
  984. public java.util.List<org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet> getWaveletList() {
  985. return java.util.Collections.unmodifiableList(result.wavelet_);
  986. }
  987. public int getWaveletCount() {
  988. return result.getWaveletCount();
  989. }
  990. public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet getWavelet(int index) {
  991. return result.getWavelet(index);
  992. }
  993. public Builder setWavelet(int index, org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet value) {
  994. if (value == null) {
  995. throw new NullPointerException();
  996. }
  997. result.wavelet_.set(index, value);
  998. return this;
  999. }
  1000. public Builder setWavelet(int index, org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet.Builder builderForValue) {
  1001. result.wavelet_.set(index, builderForValue.build());
  1002. return this;
  1003. }
  1004. public Builder addWavelet(org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet value) {
  1005. if (value == null) {
  1006. throw new NullPointerException();
  1007. }
  1008. if (result.wavelet_.isEmpty()) {
  1009. result.wavelet_ = new java.util.ArrayList<org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet>();
  1010. }
  1011. result.wavelet_.add(value);
  1012. return this;
  1013. }
  1014. public Builder addWavelet(org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet.Builder builderForValue) {
  1015. if (result.wavelet_.isEmpty()) {
  1016. result.wavelet_ = new java.util.ArrayList<org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet>();
  1017. }
  1018. result.wavelet_.add(builderForValue.build());
  1019. return this;
  1020. }
  1021. public Builder addAllWavelet(
  1022. java.lang.Iterable<? extends org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet> values) {
  1023. if (result.wavelet_.isEmpty()) {
  1024. result.wavelet_ = new java.util.ArrayList<org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet>();
  1025. }
  1026. super.addAll(values, result.wavelet_);
  1027. return this;
  1028. }
  1029. public Builder clearWavelet() {
  1030. result.wavelet_ = java.util.Collections.emptyList();
  1031. return this;
  1032. }
  1033. // @@protoc_insertion_point(builder_scope:concurrencycontrol.FetchWaveViewResponse)
  1034. }
  1035. static {
  1036. defaultInstance = new FetchWaveViewResponse(true);
  1037. org.waveprotocol.wave.concurrencycontrol.ClientServer.internalForceInit();
  1038. defaultInstance.initFields();
  1039. }
  1040. // @@protoc_insertion_point(class_scope:concurrencycontrol.FetchWaveViewResponse)
  1041. }
  1042. public static final class WaveletVersion extends
  1043. com.google.protobuf.GeneratedMessage {
  1044. // Use WaveletVersion.newBuilder() to construct.
  1045. private WaveletVersion() {
  1046. initFields();
  1047. }
  1048. private WaveletVersion(boolean noInit) {}
  1049. private static final WaveletVersion defaultInstance;
  1050. public static WaveletVersion getDefaultInstance() {
  1051. return defaultInstance;
  1052. }
  1053. public WaveletVersion getDefaultInstanceForType() {
  1054. return defaultInstance;
  1055. }
  1056. public static final com.google.protobuf.Descriptors.Descriptor
  1057. getDescriptor() {
  1058. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_WaveletVersion_descriptor;
  1059. }
  1060. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  1061. internalGetFieldAccessorTable() {
  1062. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_WaveletVersion_fieldAccessorTable;
  1063. }
  1064. // required string waveletId = 1;
  1065. public static final int WAVELETID_FIELD_NUMBER = 1;
  1066. private boolean hasWaveletId;
  1067. private java.lang.String waveletId_ = "";
  1068. public boolean hasWaveletId() { return hasWaveletId; }
  1069. public java.lang.String getWaveletId() { return waveletId_; }
  1070. // required .federation.ProtocolHashedVersion version = 2;
  1071. public static final int VERSION_FIELD_NUMBER = 2;
  1072. private boolean hasVersion;
  1073. private org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion version_;
  1074. public boolean hasVersion() { return hasVersion; }
  1075. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getVersion() { return version_; }
  1076. private void initFields() {
  1077. version_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  1078. }
  1079. public final boolean isInitialized() {
  1080. if (!hasWaveletId) return false;
  1081. if (!hasVersion) return false;
  1082. if (!getVersion().isInitialized()) return false;
  1083. return true;
  1084. }
  1085. public void writeTo(com.google.protobuf.CodedOutputStream output)
  1086. throws java.io.IOException {
  1087. getSerializedSize();
  1088. if (hasWaveletId()) {
  1089. output.writeString(1, getWaveletId());
  1090. }
  1091. if (hasVersion()) {
  1092. output.writeMessage(2, getVersion());
  1093. }
  1094. getUnknownFields().writeTo(output);
  1095. }
  1096. private int memoizedSerializedSize = -1;
  1097. public int getSerializedSize() {
  1098. int size = memoizedSerializedSize;
  1099. if (size != -1) return size;
  1100. size = 0;
  1101. if (hasWaveletId()) {
  1102. size += com.google.protobuf.CodedOutputStream
  1103. .computeStringSize(1, getWaveletId());
  1104. }
  1105. if (hasVersion()) {
  1106. size += com.google.protobuf.CodedOutputStream
  1107. .computeMessageSize(2, getVersion());
  1108. }
  1109. size += getUnknownFields().getSerializedSize();
  1110. memoizedSerializedSize = size;
  1111. return size;
  1112. }
  1113. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion parseFrom(
  1114. com.google.protobuf.ByteString data)
  1115. throws com.google.protobuf.InvalidProtocolBufferException {
  1116. return newBuilder().mergeFrom(data).buildParsed();
  1117. }
  1118. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion parseFrom(
  1119. com.google.protobuf.ByteString data,
  1120. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1121. throws com.google.protobuf.InvalidProtocolBufferException {
  1122. return newBuilder().mergeFrom(data, extensionRegistry)
  1123. .buildParsed();
  1124. }
  1125. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion parseFrom(byte[] data)
  1126. throws com.google.protobuf.InvalidProtocolBufferException {
  1127. return newBuilder().mergeFrom(data).buildParsed();
  1128. }
  1129. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion parseFrom(
  1130. byte[] data,
  1131. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1132. throws com.google.protobuf.InvalidProtocolBufferException {
  1133. return newBuilder().mergeFrom(data, extensionRegistry)
  1134. .buildParsed();
  1135. }
  1136. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion parseFrom(java.io.InputStream input)
  1137. throws java.io.IOException {
  1138. return newBuilder().mergeFrom(input).buildParsed();
  1139. }
  1140. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion parseFrom(
  1141. java.io.InputStream input,
  1142. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1143. throws java.io.IOException {
  1144. return newBuilder().mergeFrom(input, extensionRegistry)
  1145. .buildParsed();
  1146. }
  1147. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion parseDelimitedFrom(java.io.InputStream input)
  1148. throws java.io.IOException {
  1149. Builder builder = newBuilder();
  1150. if (builder.mergeDelimitedFrom(input)) {
  1151. return builder.buildParsed();
  1152. } else {
  1153. return null;
  1154. }
  1155. }
  1156. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion parseDelimitedFrom(
  1157. java.io.InputStream input,
  1158. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1159. throws java.io.IOException {
  1160. Builder builder = newBuilder();
  1161. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  1162. return builder.buildParsed();
  1163. } else {
  1164. return null;
  1165. }
  1166. }
  1167. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion parseFrom(
  1168. com.google.protobuf.CodedInputStream input)
  1169. throws java.io.IOException {
  1170. return newBuilder().mergeFrom(input).buildParsed();
  1171. }
  1172. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion parseFrom(
  1173. com.google.protobuf.CodedInputStream input,
  1174. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1175. throws java.io.IOException {
  1176. return newBuilder().mergeFrom(input, extensionRegistry)
  1177. .buildParsed();
  1178. }
  1179. public static Builder newBuilder() { return Builder.create(); }
  1180. public Builder newBuilderForType() { return newBuilder(); }
  1181. public static Builder newBuilder(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion prototype) {
  1182. return newBuilder().mergeFrom(prototype);
  1183. }
  1184. public Builder toBuilder() { return newBuilder(this); }
  1185. public static final class Builder extends
  1186. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  1187. private org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion result;
  1188. // Construct using org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion.newBuilder()
  1189. private Builder() {}
  1190. private static Builder create() {
  1191. Builder builder = new Builder();
  1192. builder.result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion();
  1193. return builder;
  1194. }
  1195. protected org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion internalGetResult() {
  1196. return result;
  1197. }
  1198. public Builder clear() {
  1199. if (result == null) {
  1200. throw new IllegalStateException(
  1201. "Cannot call clear() after build().");
  1202. }
  1203. result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion();
  1204. return this;
  1205. }
  1206. public Builder clone() {
  1207. return create().mergeFrom(result);
  1208. }
  1209. public com.google.protobuf.Descriptors.Descriptor
  1210. getDescriptorForType() {
  1211. return org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion.getDescriptor();
  1212. }
  1213. public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion getDefaultInstanceForType() {
  1214. return org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion.getDefaultInstance();
  1215. }
  1216. public boolean isInitialized() {
  1217. return result.isInitialized();
  1218. }
  1219. public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion build() {
  1220. if (result != null && !isInitialized()) {
  1221. throw newUninitializedMessageException(result);
  1222. }
  1223. return buildPartial();
  1224. }
  1225. private org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion buildParsed()
  1226. throws com.google.protobuf.InvalidProtocolBufferException {
  1227. if (!isInitialized()) {
  1228. throw newUninitializedMessageException(
  1229. result).asInvalidProtocolBufferException();
  1230. }
  1231. return buildPartial();
  1232. }
  1233. public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion buildPartial() {
  1234. if (result == null) {
  1235. throw new IllegalStateException(
  1236. "build() has already been called on this Builder.");
  1237. }
  1238. org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion returnMe = result;
  1239. result = null;
  1240. return returnMe;
  1241. }
  1242. public Builder mergeFrom(com.google.protobuf.Message other) {
  1243. if (other instanceof org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion) {
  1244. return mergeFrom((org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion)other);
  1245. } else {
  1246. super.mergeFrom(other);
  1247. return this;
  1248. }
  1249. }
  1250. public Builder mergeFrom(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion other) {
  1251. if (other == org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion.getDefaultInstance()) return this;
  1252. if (other.hasWaveletId()) {
  1253. setWaveletId(other.getWaveletId());
  1254. }
  1255. if (other.hasVersion()) {
  1256. mergeVersion(other.getVersion());
  1257. }
  1258. this.mergeUnknownFields(other.getUnknownFields());
  1259. return this;
  1260. }
  1261. public Builder mergeFrom(
  1262. com.google.protobuf.CodedInputStream input,
  1263. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1264. throws java.io.IOException {
  1265. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  1266. com.google.protobuf.UnknownFieldSet.newBuilder(
  1267. this.getUnknownFields());
  1268. while (true) {
  1269. int tag = input.readTag();
  1270. switch (tag) {
  1271. case 0:
  1272. this.setUnknownFields(unknownFields.build());
  1273. return this;
  1274. default: {
  1275. if (!parseUnknownField(input, unknownFields,
  1276. extensionRegistry, tag)) {
  1277. this.setUnknownFields(unknownFields.build());
  1278. return this;
  1279. }
  1280. break;
  1281. }
  1282. case 10: {
  1283. setWaveletId(input.readString());
  1284. break;
  1285. }
  1286. case 18: {
  1287. org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder();
  1288. if (hasVersion()) {
  1289. subBuilder.mergeFrom(getVersion());
  1290. }
  1291. input.readMessage(subBuilder, extensionRegistry);
  1292. setVersion(subBuilder.buildPartial());
  1293. break;
  1294. }
  1295. }
  1296. }
  1297. }
  1298. // required string waveletId = 1;
  1299. public boolean hasWaveletId() {
  1300. return result.hasWaveletId();
  1301. }
  1302. public java.lang.String getWaveletId() {
  1303. return result.getWaveletId();
  1304. }
  1305. public Builder setWaveletId(java.lang.String value) {
  1306. if (value == null) {
  1307. throw new NullPointerException();
  1308. }
  1309. result.hasWaveletId = true;
  1310. result.waveletId_ = value;
  1311. return this;
  1312. }
  1313. public Builder clearWaveletId() {
  1314. result.hasWaveletId = false;
  1315. result.waveletId_ = getDefaultInstance().getWaveletId();
  1316. return this;
  1317. }
  1318. // required .federation.ProtocolHashedVersion version = 2;
  1319. public boolean hasVersion() {
  1320. return result.hasVersion();
  1321. }
  1322. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getVersion() {
  1323. return result.getVersion();
  1324. }
  1325. public Builder setVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
  1326. if (value == null) {
  1327. throw new NullPointerException();
  1328. }
  1329. result.hasVersion = true;
  1330. result.version_ = value;
  1331. return this;
  1332. }
  1333. public Builder setVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder builderForValue) {
  1334. result.hasVersion = true;
  1335. result.version_ = builderForValue.build();
  1336. return this;
  1337. }
  1338. public Builder mergeVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
  1339. if (result.hasVersion() &&
  1340. result.version_ != org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance()) {
  1341. result.version_ =
  1342. org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder(result.version_).mergeFrom(value).buildPartial();
  1343. } else {
  1344. result.version_ = value;
  1345. }
  1346. result.hasVersion = true;
  1347. return this;
  1348. }
  1349. public Builder clearVersion() {
  1350. result.hasVersion = false;
  1351. result.version_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  1352. return this;
  1353. }
  1354. // @@protoc_insertion_point(builder_scope:concurrencycontrol.WaveletVersion)
  1355. }
  1356. static {
  1357. defaultInstance = new WaveletVersion(true);
  1358. org.waveprotocol.wave.concurrencycontrol.ClientServer.internalForceInit();
  1359. defaultInstance.initFields();
  1360. }
  1361. // @@protoc_insertion_point(class_scope:concurrencycontrol.WaveletVersion)
  1362. }
  1363. public static final class WaveletSnapshot extends
  1364. com.google.protobuf.GeneratedMessage {
  1365. // Use WaveletSnapshot.newBuilder() to construct.
  1366. private WaveletSnapshot() {
  1367. initFields();
  1368. }
  1369. private WaveletSnapshot(boolean noInit) {}
  1370. private static final WaveletSnapshot defaultInstance;
  1371. public static WaveletSnapshot getDefaultInstance() {
  1372. return defaultInstance;
  1373. }
  1374. public WaveletSnapshot getDefaultInstanceForType() {
  1375. return defaultInstance;
  1376. }
  1377. public static final com.google.protobuf.Descriptors.Descriptor
  1378. getDescriptor() {
  1379. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_WaveletSnapshot_descriptor;
  1380. }
  1381. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  1382. internalGetFieldAccessorTable() {
  1383. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_WaveletSnapshot_fieldAccessorTable;
  1384. }
  1385. // required string waveletId = 1;
  1386. public static final int WAVELETID_FIELD_NUMBER = 1;
  1387. private boolean hasWaveletId;
  1388. private java.lang.String waveletId_ = "";
  1389. public boolean hasWaveletId() { return hasWaveletId; }
  1390. public java.lang.String getWaveletId() { return waveletId_; }
  1391. // repeated string participant = 2;
  1392. public static final int PARTICIPANT_FIELD_NUMBER = 2;
  1393. private java.util.List<java.lang.String> participant_ =
  1394. java.util.Collections.emptyList();
  1395. public java.util.List<java.lang.String> getParticipantList() {
  1396. return participant_;
  1397. }
  1398. public int getParticipantCount() { return participant_.size(); }
  1399. public java.lang.String getParticipant(int index) {
  1400. return participant_.get(index);
  1401. }
  1402. // repeated .concurrencycontrol.DocumentSnapshot document = 3;
  1403. public static final int DOCUMENT_FIELD_NUMBER = 3;
  1404. private java.util.List<org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot> document_ =
  1405. java.util.Collections.emptyList();
  1406. public java.util.List<org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot> getDocumentList() {
  1407. return document_;
  1408. }
  1409. public int getDocumentCount() { return document_.size(); }
  1410. public org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot getDocument(int index) {
  1411. return document_.get(index);
  1412. }
  1413. // required .federation.ProtocolHashedVersion version = 4;
  1414. public static final int VERSION_FIELD_NUMBER = 4;
  1415. private boolean hasVersion;
  1416. private org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion version_;
  1417. public boolean hasVersion() { return hasVersion; }
  1418. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getVersion() { return version_; }
  1419. // required int64 lastModifiedTime = 5;
  1420. public static final int LASTMODIFIEDTIME_FIELD_NUMBER = 5;
  1421. private boolean hasLastModifiedTime;
  1422. private long lastModifiedTime_ = 0L;
  1423. public boolean hasLastModifiedTime() { return hasLastModifiedTime; }
  1424. public long getLastModifiedTime() { return lastModifiedTime_; }
  1425. // required string creator = 6;
  1426. public static final int CREATOR_FIELD_NUMBER = 6;
  1427. private boolean hasCreator;
  1428. private java.lang.String creator_ = "";
  1429. public boolean hasCreator() { return hasCreator; }
  1430. public java.lang.String getCreator() { return creator_; }
  1431. // required int64 creationTime = 7;
  1432. public static final int CREATIONTIME_FIELD_NUMBER = 7;
  1433. private boolean hasCreationTime;
  1434. private long creationTime_ = 0L;
  1435. public boolean hasCreationTime() { return hasCreationTime; }
  1436. public long getCreationTime() { return creationTime_; }
  1437. private void initFields() {
  1438. version_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  1439. }
  1440. public final boolean isInitialized() {
  1441. if (!hasWaveletId) return false;
  1442. if (!hasVersion) return false;
  1443. if (!hasLastModifiedTime) return false;
  1444. if (!hasCreator) return false;
  1445. if (!hasCreationTime) return false;
  1446. for (org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot element : getDocumentList()) {
  1447. if (!element.isInitialized()) return false;
  1448. }
  1449. if (!getVersion().isInitialized()) return false;
  1450. return true;
  1451. }
  1452. public void writeTo(com.google.protobuf.CodedOutputStream output)
  1453. throws java.io.IOException {
  1454. getSerializedSize();
  1455. if (hasWaveletId()) {
  1456. output.writeString(1, getWaveletId());
  1457. }
  1458. for (java.lang.String element : getParticipantList()) {
  1459. output.writeString(2, element);
  1460. }
  1461. for (org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot element : getDocumentList()) {
  1462. output.writeMessage(3, element);
  1463. }
  1464. if (hasVersion()) {
  1465. output.writeMessage(4, getVersion());
  1466. }
  1467. if (hasLastModifiedTime()) {
  1468. output.writeInt64(5, getLastModifiedTime());
  1469. }
  1470. if (hasCreator()) {
  1471. output.writeString(6, getCreator());
  1472. }
  1473. if (hasCreationTime()) {
  1474. output.writeInt64(7, getCreationTime());
  1475. }
  1476. getUnknownFields().writeTo(output);
  1477. }
  1478. private int memoizedSerializedSize = -1;
  1479. public int getSerializedSize() {
  1480. int size = memoizedSerializedSize;
  1481. if (size != -1) return size;
  1482. size = 0;
  1483. if (hasWaveletId()) {
  1484. size += com.google.protobuf.CodedOutputStream
  1485. .computeStringSize(1, getWaveletId());
  1486. }
  1487. {
  1488. int dataSize = 0;
  1489. for (java.lang.String element : getParticipantList()) {
  1490. dataSize += com.google.protobuf.CodedOutputStream
  1491. .computeStringSizeNoTag(element);
  1492. }
  1493. size += dataSize;
  1494. size += 1 * getParticipantList().size();
  1495. }
  1496. for (org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot element : getDocumentList()) {
  1497. size += com.google.protobuf.CodedOutputStream
  1498. .computeMessageSize(3, element);
  1499. }
  1500. if (hasVersion()) {
  1501. size += com.google.protobuf.CodedOutputStream
  1502. .computeMessageSize(4, getVersion());
  1503. }
  1504. if (hasLastModifiedTime()) {
  1505. size += com.google.protobuf.CodedOutputStream
  1506. .computeInt64Size(5, getLastModifiedTime());
  1507. }
  1508. if (hasCreator()) {
  1509. size += com.google.protobuf.CodedOutputStream
  1510. .computeStringSize(6, getCreator());
  1511. }
  1512. if (hasCreationTime()) {
  1513. size += com.google.protobuf.CodedOutputStream
  1514. .computeInt64Size(7, getCreationTime());
  1515. }
  1516. size += getUnknownFields().getSerializedSize();
  1517. memoizedSerializedSize = size;
  1518. return size;
  1519. }
  1520. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot parseFrom(
  1521. com.google.protobuf.ByteString data)
  1522. throws com.google.protobuf.InvalidProtocolBufferException {
  1523. return newBuilder().mergeFrom(data).buildParsed();
  1524. }
  1525. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot parseFrom(
  1526. com.google.protobuf.ByteString data,
  1527. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1528. throws com.google.protobuf.InvalidProtocolBufferException {
  1529. return newBuilder().mergeFrom(data, extensionRegistry)
  1530. .buildParsed();
  1531. }
  1532. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot parseFrom(byte[] data)
  1533. throws com.google.protobuf.InvalidProtocolBufferException {
  1534. return newBuilder().mergeFrom(data).buildParsed();
  1535. }
  1536. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot parseFrom(
  1537. byte[] data,
  1538. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1539. throws com.google.protobuf.InvalidProtocolBufferException {
  1540. return newBuilder().mergeFrom(data, extensionRegistry)
  1541. .buildParsed();
  1542. }
  1543. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot parseFrom(java.io.InputStream input)
  1544. throws java.io.IOException {
  1545. return newBuilder().mergeFrom(input).buildParsed();
  1546. }
  1547. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot parseFrom(
  1548. java.io.InputStream input,
  1549. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1550. throws java.io.IOException {
  1551. return newBuilder().mergeFrom(input, extensionRegistry)
  1552. .buildParsed();
  1553. }
  1554. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot parseDelimitedFrom(java.io.InputStream input)
  1555. throws java.io.IOException {
  1556. Builder builder = newBuilder();
  1557. if (builder.mergeDelimitedFrom(input)) {
  1558. return builder.buildParsed();
  1559. } else {
  1560. return null;
  1561. }
  1562. }
  1563. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot parseDelimitedFrom(
  1564. java.io.InputStream input,
  1565. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1566. throws java.io.IOException {
  1567. Builder builder = newBuilder();
  1568. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  1569. return builder.buildParsed();
  1570. } else {
  1571. return null;
  1572. }
  1573. }
  1574. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot parseFrom(
  1575. com.google.protobuf.CodedInputStream input)
  1576. throws java.io.IOException {
  1577. return newBuilder().mergeFrom(input).buildParsed();
  1578. }
  1579. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot parseFrom(
  1580. com.google.protobuf.CodedInputStream input,
  1581. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1582. throws java.io.IOException {
  1583. return newBuilder().mergeFrom(input, extensionRegistry)
  1584. .buildParsed();
  1585. }
  1586. public static Builder newBuilder() { return Builder.create(); }
  1587. public Builder newBuilderForType() { return newBuilder(); }
  1588. public static Builder newBuilder(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot prototype) {
  1589. return newBuilder().mergeFrom(prototype);
  1590. }
  1591. public Builder toBuilder() { return newBuilder(this); }
  1592. public static final class Builder extends
  1593. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  1594. private org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot result;
  1595. // Construct using org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot.newBuilder()
  1596. private Builder() {}
  1597. private static Builder create() {
  1598. Builder builder = new Builder();
  1599. builder.result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot();
  1600. return builder;
  1601. }
  1602. protected org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot internalGetResult() {
  1603. return result;
  1604. }
  1605. public Builder clear() {
  1606. if (result == null) {
  1607. throw new IllegalStateException(
  1608. "Cannot call clear() after build().");
  1609. }
  1610. result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot();
  1611. return this;
  1612. }
  1613. public Builder clone() {
  1614. return create().mergeFrom(result);
  1615. }
  1616. public com.google.protobuf.Descriptors.Descriptor
  1617. getDescriptorForType() {
  1618. return org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot.getDescriptor();
  1619. }
  1620. public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot getDefaultInstanceForType() {
  1621. return org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot.getDefaultInstance();
  1622. }
  1623. public boolean isInitialized() {
  1624. return result.isInitialized();
  1625. }
  1626. public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot build() {
  1627. if (result != null && !isInitialized()) {
  1628. throw newUninitializedMessageException(result);
  1629. }
  1630. return buildPartial();
  1631. }
  1632. private org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot buildParsed()
  1633. throws com.google.protobuf.InvalidProtocolBufferException {
  1634. if (!isInitialized()) {
  1635. throw newUninitializedMessageException(
  1636. result).asInvalidProtocolBufferException();
  1637. }
  1638. return buildPartial();
  1639. }
  1640. public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot buildPartial() {
  1641. if (result == null) {
  1642. throw new IllegalStateException(
  1643. "build() has already been called on this Builder.");
  1644. }
  1645. if (result.participant_ != java.util.Collections.EMPTY_LIST) {
  1646. result.participant_ =
  1647. java.util.Collections.unmodifiableList(result.participant_);
  1648. }
  1649. if (result.document_ != java.util.Collections.EMPTY_LIST) {
  1650. result.document_ =
  1651. java.util.Collections.unmodifiableList(result.document_);
  1652. }
  1653. org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot returnMe = result;
  1654. result = null;
  1655. return returnMe;
  1656. }
  1657. public Builder mergeFrom(com.google.protobuf.Message other) {
  1658. if (other instanceof org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot) {
  1659. return mergeFrom((org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot)other);
  1660. } else {
  1661. super.mergeFrom(other);
  1662. return this;
  1663. }
  1664. }
  1665. public Builder mergeFrom(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot other) {
  1666. if (other == org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot.getDefaultInstance()) return this;
  1667. if (other.hasWaveletId()) {
  1668. setWaveletId(other.getWaveletId());
  1669. }
  1670. if (!other.participant_.isEmpty()) {
  1671. if (result.participant_.isEmpty()) {
  1672. result.participant_ = new java.util.ArrayList<java.lang.String>();
  1673. }
  1674. result.participant_.addAll(other.participant_);
  1675. }
  1676. if (!other.document_.isEmpty()) {
  1677. if (result.document_.isEmpty()) {
  1678. result.document_ = new java.util.ArrayList<org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot>();
  1679. }
  1680. result.document_.addAll(other.document_);
  1681. }
  1682. if (other.hasVersion()) {
  1683. mergeVersion(other.getVersion());
  1684. }
  1685. if (other.hasLastModifiedTime()) {
  1686. setLastModifiedTime(other.getLastModifiedTime());
  1687. }
  1688. if (other.hasCreator()) {
  1689. setCreator(other.getCreator());
  1690. }
  1691. if (other.hasCreationTime()) {
  1692. setCreationTime(other.getCreationTime());
  1693. }
  1694. this.mergeUnknownFields(other.getUnknownFields());
  1695. return this;
  1696. }
  1697. public Builder mergeFrom(
  1698. com.google.protobuf.CodedInputStream input,
  1699. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1700. throws java.io.IOException {
  1701. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  1702. com.google.protobuf.UnknownFieldSet.newBuilder(
  1703. this.getUnknownFields());
  1704. while (true) {
  1705. int tag = input.readTag();
  1706. switch (tag) {
  1707. case 0:
  1708. this.setUnknownFields(unknownFields.build());
  1709. return this;
  1710. default: {
  1711. if (!parseUnknownField(input, unknownFields,
  1712. extensionRegistry, tag)) {
  1713. this.setUnknownFields(unknownFields.build());
  1714. return this;
  1715. }
  1716. break;
  1717. }
  1718. case 10: {
  1719. setWaveletId(input.readString());
  1720. break;
  1721. }
  1722. case 18: {
  1723. addParticipant(input.readString());
  1724. break;
  1725. }
  1726. case 26: {
  1727. org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot.Builder subBuilder = org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot.newBuilder();
  1728. input.readMessage(subBuilder, extensionRegistry);
  1729. addDocument(subBuilder.buildPartial());
  1730. break;
  1731. }
  1732. case 34: {
  1733. org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder();
  1734. if (hasVersion()) {
  1735. subBuilder.mergeFrom(getVersion());
  1736. }
  1737. input.readMessage(subBuilder, extensionRegistry);
  1738. setVersion(subBuilder.buildPartial());
  1739. break;
  1740. }
  1741. case 40: {
  1742. setLastModifiedTime(input.readInt64());
  1743. break;
  1744. }
  1745. case 50: {
  1746. setCreator(input.readString());
  1747. break;
  1748. }
  1749. case 56: {
  1750. setCreationTime(input.readInt64());
  1751. break;
  1752. }
  1753. }
  1754. }
  1755. }
  1756. // required string waveletId = 1;
  1757. public boolean hasWaveletId() {
  1758. return result.hasWaveletId();
  1759. }
  1760. public java.lang.String getWaveletId() {
  1761. return result.getWaveletId();
  1762. }
  1763. public Builder setWaveletId(java.lang.String value) {
  1764. if (value == null) {
  1765. throw new NullPointerException();
  1766. }
  1767. result.hasWaveletId = true;
  1768. result.waveletId_ = value;
  1769. return this;
  1770. }
  1771. public Builder clearWaveletId() {
  1772. result.hasWaveletId = false;
  1773. result.waveletId_ = getDefaultInstance().getWaveletId();
  1774. return this;
  1775. }
  1776. // repeated string participant = 2;
  1777. public java.util.List<java.lang.String> getParticipantList() {
  1778. return java.util.Collections.unmodifiableList(result.participant_);
  1779. }
  1780. public int getParticipantCount() {
  1781. return result.getParticipantCount();
  1782. }
  1783. public java.lang.String getParticipant(int index) {
  1784. return result.getParticipant(index);
  1785. }
  1786. public Builder setParticipant(int index, java.lang.String value) {
  1787. if (value == null) {
  1788. throw new NullPointerException();
  1789. }
  1790. result.participant_.set(index, value);
  1791. return this;
  1792. }
  1793. public Builder addParticipant(java.lang.String value) {
  1794. if (value == null) {
  1795. throw new NullPointerException();
  1796. }
  1797. if (result.participant_.isEmpty()) {
  1798. result.participant_ = new java.util.ArrayList<java.lang.String>();
  1799. }
  1800. result.participant_.add(value);
  1801. return this;
  1802. }
  1803. public Builder addAllParticipant(
  1804. java.lang.Iterable<? extends java.lang.String> values) {
  1805. if (result.participant_.isEmpty()) {
  1806. result.participant_ = new java.util.ArrayList<java.lang.String>();
  1807. }
  1808. super.addAll(values, result.participant_);
  1809. return this;
  1810. }
  1811. public Builder clearParticipant() {
  1812. result.participant_ = java.util.Collections.emptyList();
  1813. return this;
  1814. }
  1815. // repeated .concurrencycontrol.DocumentSnapshot document = 3;
  1816. public java.util.List<org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot> getDocumentList() {
  1817. return java.util.Collections.unmodifiableList(result.document_);
  1818. }
  1819. public int getDocumentCount() {
  1820. return result.getDocumentCount();
  1821. }
  1822. public org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot getDocument(int index) {
  1823. return result.getDocument(index);
  1824. }
  1825. public Builder setDocument(int index, org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot value) {
  1826. if (value == null) {
  1827. throw new NullPointerException();
  1828. }
  1829. result.document_.set(index, value);
  1830. return this;
  1831. }
  1832. public Builder setDocument(int index, org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot.Builder builderForValue) {
  1833. result.document_.set(index, builderForValue.build());
  1834. return this;
  1835. }
  1836. public Builder addDocument(org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot value) {
  1837. if (value == null) {
  1838. throw new NullPointerException();
  1839. }
  1840. if (result.document_.isEmpty()) {
  1841. result.document_ = new java.util.ArrayList<org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot>();
  1842. }
  1843. result.document_.add(value);
  1844. return this;
  1845. }
  1846. public Builder addDocument(org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot.Builder builderForValue) {
  1847. if (result.document_.isEmpty()) {
  1848. result.document_ = new java.util.ArrayList<org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot>();
  1849. }
  1850. result.document_.add(builderForValue.build());
  1851. return this;
  1852. }
  1853. public Builder addAllDocument(
  1854. java.lang.Iterable<? extends org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot> values) {
  1855. if (result.document_.isEmpty()) {
  1856. result.document_ = new java.util.ArrayList<org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot>();
  1857. }
  1858. super.addAll(values, result.document_);
  1859. return this;
  1860. }
  1861. public Builder clearDocument() {
  1862. result.document_ = java.util.Collections.emptyList();
  1863. return this;
  1864. }
  1865. // required .federation.ProtocolHashedVersion version = 4;
  1866. public boolean hasVersion() {
  1867. return result.hasVersion();
  1868. }
  1869. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getVersion() {
  1870. return result.getVersion();
  1871. }
  1872. public Builder setVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
  1873. if (value == null) {
  1874. throw new NullPointerException();
  1875. }
  1876. result.hasVersion = true;
  1877. result.version_ = value;
  1878. return this;
  1879. }
  1880. public Builder setVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder builderForValue) {
  1881. result.hasVersion = true;
  1882. result.version_ = builderForValue.build();
  1883. return this;
  1884. }
  1885. public Builder mergeVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
  1886. if (result.hasVersion() &&
  1887. result.version_ != org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance()) {
  1888. result.version_ =
  1889. org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder(result.version_).mergeFrom(value).buildPartial();
  1890. } else {
  1891. result.version_ = value;
  1892. }
  1893. result.hasVersion = true;
  1894. return this;
  1895. }
  1896. public Builder clearVersion() {
  1897. result.hasVersion = false;
  1898. result.version_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  1899. return this;
  1900. }
  1901. // required int64 lastModifiedTime = 5;
  1902. public boolean hasLastModifiedTime() {
  1903. return result.hasLastModifiedTime();
  1904. }
  1905. public long getLastModifiedTime() {
  1906. return result.getLastModifiedTime();
  1907. }
  1908. public Builder setLastModifiedTime(long value) {
  1909. result.hasLastModifiedTime = true;
  1910. result.lastModifiedTime_ = value;
  1911. return this;
  1912. }
  1913. public Builder clearLastModifiedTime() {
  1914. result.hasLastModifiedTime = false;
  1915. result.lastModifiedTime_ = 0L;
  1916. return this;
  1917. }
  1918. // required string creator = 6;
  1919. public boolean hasCreator() {
  1920. return result.hasCreator();
  1921. }
  1922. public java.lang.String getCreator() {
  1923. return result.getCreator();
  1924. }
  1925. public Builder setCreator(java.lang.String value) {
  1926. if (value == null) {
  1927. throw new NullPointerException();
  1928. }
  1929. result.hasCreator = true;
  1930. result.creator_ = value;
  1931. return this;
  1932. }
  1933. public Builder clearCreator() {
  1934. result.hasCreator = false;
  1935. result.creator_ = getDefaultInstance().getCreator();
  1936. return this;
  1937. }
  1938. // required int64 creationTime = 7;
  1939. public boolean hasCreationTime() {
  1940. return result.hasCreationTime();
  1941. }
  1942. public long getCreationTime() {
  1943. return result.getCreationTime();
  1944. }
  1945. public Builder setCreationTime(long value) {
  1946. result.hasCreationTime = true;
  1947. result.creationTime_ = value;
  1948. return this;
  1949. }
  1950. public Builder clearCreationTime() {
  1951. result.hasCreationTime = false;
  1952. result.creationTime_ = 0L;
  1953. return this;
  1954. }
  1955. // @@protoc_insertion_point(builder_scope:concurrencycontrol.WaveletSnapshot)
  1956. }
  1957. static {
  1958. defaultInstance = new WaveletSnapshot(true);
  1959. org.waveprotocol.wave.concurrencycontrol.ClientServer.internalForceInit();
  1960. defaultInstance.initFields();
  1961. }
  1962. // @@protoc_insertion_point(class_scope:concurrencycontrol.WaveletSnapshot)
  1963. }
  1964. public static final class DocumentSnapshot extends
  1965. com.google.protobuf.GeneratedMessage {
  1966. // Use DocumentSnapshot.newBuilder() to construct.
  1967. private DocumentSnapshot() {
  1968. initFields();
  1969. }
  1970. private DocumentSnapshot(boolean noInit) {}
  1971. private static final DocumentSnapshot defaultInstance;
  1972. public static DocumentSnapshot getDefaultInstance() {
  1973. return defaultInstance;
  1974. }
  1975. public DocumentSnapshot getDefaultInstanceForType() {
  1976. return defaultInstance;
  1977. }
  1978. public static final com.google.protobuf.Descriptors.Descriptor
  1979. getDescriptor() {
  1980. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_DocumentSnapshot_descriptor;
  1981. }
  1982. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  1983. internalGetFieldAccessorTable() {
  1984. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_DocumentSnapshot_fieldAccessorTable;
  1985. }
  1986. // required string documentId = 1;
  1987. public static final int DOCUMENTID_FIELD_NUMBER = 1;
  1988. private boolean hasDocumentId;
  1989. private java.lang.String documentId_ = "";
  1990. public boolean hasDocumentId() { return hasDocumentId; }
  1991. public java.lang.String getDocumentId() { return documentId_; }
  1992. // required .federation.ProtocolDocumentOperation documentOperation = 2;
  1993. public static final int DOCUMENTOPERATION_FIELD_NUMBER = 2;
  1994. private boolean hasDocumentOperation;
  1995. private org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation documentOperation_;
  1996. public boolean hasDocumentOperation() { return hasDocumentOperation; }
  1997. public org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation getDocumentOperation() { return documentOperation_; }
  1998. // required string author = 3;
  1999. public static final int AUTHOR_FIELD_NUMBER = 3;
  2000. private boolean hasAuthor;
  2001. private java.lang.String author_ = "";
  2002. public boolean hasAuthor() { return hasAuthor; }
  2003. public java.lang.String getAuthor() { return author_; }
  2004. // repeated string contributor = 4;
  2005. public static final int CONTRIBUTOR_FIELD_NUMBER = 4;
  2006. private java.util.List<java.lang.String> contributor_ =
  2007. java.util.Collections.emptyList();
  2008. public java.util.List<java.lang.String> getContributorList() {
  2009. return contributor_;
  2010. }
  2011. public int getContributorCount() { return contributor_.size(); }
  2012. public java.lang.String getContributor(int index) {
  2013. return contributor_.get(index);
  2014. }
  2015. // required int64 lastModifiedVersion = 5;
  2016. public static final int LASTMODIFIEDVERSION_FIELD_NUMBER = 5;
  2017. private boolean hasLastModifiedVersion;
  2018. private long lastModifiedVersion_ = 0L;
  2019. public boolean hasLastModifiedVersion() { return hasLastModifiedVersion; }
  2020. public long getLastModifiedVersion() { return lastModifiedVersion_; }
  2021. // required int64 lastModifiedTime = 6;
  2022. public static final int LASTMODIFIEDTIME_FIELD_NUMBER = 6;
  2023. private boolean hasLastModifiedTime;
  2024. private long lastModifiedTime_ = 0L;
  2025. public boolean hasLastModifiedTime() { return hasLastModifiedTime; }
  2026. public long getLastModifiedTime() { return lastModifiedTime_; }
  2027. private void initFields() {
  2028. documentOperation_ = org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation.getDefaultInstance();
  2029. }
  2030. public final boolean isInitialized() {
  2031. if (!hasDocumentId) return false;
  2032. if (!hasDocumentOperation) return false;
  2033. if (!hasAuthor) return false;
  2034. if (!hasLastModifiedVersion) return false;
  2035. if (!hasLastModifiedTime) return false;
  2036. if (!getDocumentOperation().isInitialized()) return false;
  2037. return true;
  2038. }
  2039. public void writeTo(com.google.protobuf.CodedOutputStream output)
  2040. throws java.io.IOException {
  2041. getSerializedSize();
  2042. if (hasDocumentId()) {
  2043. output.writeString(1, getDocumentId());
  2044. }
  2045. if (hasDocumentOperation()) {
  2046. output.writeMessage(2, getDocumentOperation());
  2047. }
  2048. if (hasAuthor()) {
  2049. output.writeString(3, getAuthor());
  2050. }
  2051. for (java.lang.String element : getContributorList()) {
  2052. output.writeString(4, element);
  2053. }
  2054. if (hasLastModifiedVersion()) {
  2055. output.writeInt64(5, getLastModifiedVersion());
  2056. }
  2057. if (hasLastModifiedTime()) {
  2058. output.writeInt64(6, getLastModifiedTime());
  2059. }
  2060. getUnknownFields().writeTo(output);
  2061. }
  2062. private int memoizedSerializedSize = -1;
  2063. public int getSerializedSize() {
  2064. int size = memoizedSerializedSize;
  2065. if (size != -1) return size;
  2066. size = 0;
  2067. if (hasDocumentId()) {
  2068. size += com.google.protobuf.CodedOutputStream
  2069. .computeStringSize(1, getDocumentId());
  2070. }
  2071. if (hasDocumentOperation()) {
  2072. size += com.google.protobuf.CodedOutputStream
  2073. .computeMessageSize(2, getDocumentOperation());
  2074. }
  2075. if (hasAuthor()) {
  2076. size += com.google.protobuf.CodedOutputStream
  2077. .computeStringSize(3, getAuthor());
  2078. }
  2079. {
  2080. int dataSize = 0;
  2081. for (java.lang.String element : getContributorList()) {
  2082. dataSize += com.google.protobuf.CodedOutputStream
  2083. .computeStringSizeNoTag(element);
  2084. }
  2085. size += dataSize;
  2086. size += 1 * getContributorList().size();
  2087. }
  2088. if (hasLastModifiedVersion()) {
  2089. size += com.google.protobuf.CodedOutputStream
  2090. .computeInt64Size(5, getLastModifiedVersion());
  2091. }
  2092. if (hasLastModifiedTime()) {
  2093. size += com.google.protobuf.CodedOutputStream
  2094. .computeInt64Size(6, getLastModifiedTime());
  2095. }
  2096. size += getUnknownFields().getSerializedSize();
  2097. memoizedSerializedSize = size;
  2098. return size;
  2099. }
  2100. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot parseFrom(
  2101. com.google.protobuf.ByteString data)
  2102. throws com.google.protobuf.InvalidProtocolBufferException {
  2103. return newBuilder().mergeFrom(data).buildParsed();
  2104. }
  2105. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot parseFrom(
  2106. com.google.protobuf.ByteString data,
  2107. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2108. throws com.google.protobuf.InvalidProtocolBufferException {
  2109. return newBuilder().mergeFrom(data, extensionRegistry)
  2110. .buildParsed();
  2111. }
  2112. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot parseFrom(byte[] data)
  2113. throws com.google.protobuf.InvalidProtocolBufferException {
  2114. return newBuilder().mergeFrom(data).buildParsed();
  2115. }
  2116. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot parseFrom(
  2117. byte[] data,
  2118. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2119. throws com.google.protobuf.InvalidProtocolBufferException {
  2120. return newBuilder().mergeFrom(data, extensionRegistry)
  2121. .buildParsed();
  2122. }
  2123. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot parseFrom(java.io.InputStream input)
  2124. throws java.io.IOException {
  2125. return newBuilder().mergeFrom(input).buildParsed();
  2126. }
  2127. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot parseFrom(
  2128. java.io.InputStream input,
  2129. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2130. throws java.io.IOException {
  2131. return newBuilder().mergeFrom(input, extensionRegistry)
  2132. .buildParsed();
  2133. }
  2134. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot parseDelimitedFrom(java.io.InputStream input)
  2135. throws java.io.IOException {
  2136. Builder builder = newBuilder();
  2137. if (builder.mergeDelimitedFrom(input)) {
  2138. return builder.buildParsed();
  2139. } else {
  2140. return null;
  2141. }
  2142. }
  2143. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot parseDelimitedFrom(
  2144. java.io.InputStream input,
  2145. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2146. throws java.io.IOException {
  2147. Builder builder = newBuilder();
  2148. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  2149. return builder.buildParsed();
  2150. } else {
  2151. return null;
  2152. }
  2153. }
  2154. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot parseFrom(
  2155. com.google.protobuf.CodedInputStream input)
  2156. throws java.io.IOException {
  2157. return newBuilder().mergeFrom(input).buildParsed();
  2158. }
  2159. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot parseFrom(
  2160. com.google.protobuf.CodedInputStream input,
  2161. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2162. throws java.io.IOException {
  2163. return newBuilder().mergeFrom(input, extensionRegistry)
  2164. .buildParsed();
  2165. }
  2166. public static Builder newBuilder() { return Builder.create(); }
  2167. public Builder newBuilderForType() { return newBuilder(); }
  2168. public static Builder newBuilder(org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot prototype) {
  2169. return newBuilder().mergeFrom(prototype);
  2170. }
  2171. public Builder toBuilder() { return newBuilder(this); }
  2172. public static final class Builder extends
  2173. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  2174. private org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot result;
  2175. // Construct using org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot.newBuilder()
  2176. private Builder() {}
  2177. private static Builder create() {
  2178. Builder builder = new Builder();
  2179. builder.result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot();
  2180. return builder;
  2181. }
  2182. protected org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot internalGetResult() {
  2183. return result;
  2184. }
  2185. public Builder clear() {
  2186. if (result == null) {
  2187. throw new IllegalStateException(
  2188. "Cannot call clear() after build().");
  2189. }
  2190. result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot();
  2191. return this;
  2192. }
  2193. public Builder clone() {
  2194. return create().mergeFrom(result);
  2195. }
  2196. public com.google.protobuf.Descriptors.Descriptor
  2197. getDescriptorForType() {
  2198. return org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot.getDescriptor();
  2199. }
  2200. public org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot getDefaultInstanceForType() {
  2201. return org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot.getDefaultInstance();
  2202. }
  2203. public boolean isInitialized() {
  2204. return result.isInitialized();
  2205. }
  2206. public org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot build() {
  2207. if (result != null && !isInitialized()) {
  2208. throw newUninitializedMessageException(result);
  2209. }
  2210. return buildPartial();
  2211. }
  2212. private org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot buildParsed()
  2213. throws com.google.protobuf.InvalidProtocolBufferException {
  2214. if (!isInitialized()) {
  2215. throw newUninitializedMessageException(
  2216. result).asInvalidProtocolBufferException();
  2217. }
  2218. return buildPartial();
  2219. }
  2220. public org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot buildPartial() {
  2221. if (result == null) {
  2222. throw new IllegalStateException(
  2223. "build() has already been called on this Builder.");
  2224. }
  2225. if (result.contributor_ != java.util.Collections.EMPTY_LIST) {
  2226. result.contributor_ =
  2227. java.util.Collections.unmodifiableList(result.contributor_);
  2228. }
  2229. org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot returnMe = result;
  2230. result = null;
  2231. return returnMe;
  2232. }
  2233. public Builder mergeFrom(com.google.protobuf.Message other) {
  2234. if (other instanceof org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot) {
  2235. return mergeFrom((org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot)other);
  2236. } else {
  2237. super.mergeFrom(other);
  2238. return this;
  2239. }
  2240. }
  2241. public Builder mergeFrom(org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot other) {
  2242. if (other == org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot.getDefaultInstance()) return this;
  2243. if (other.hasDocumentId()) {
  2244. setDocumentId(other.getDocumentId());
  2245. }
  2246. if (other.hasDocumentOperation()) {
  2247. mergeDocumentOperation(other.getDocumentOperation());
  2248. }
  2249. if (other.hasAuthor()) {
  2250. setAuthor(other.getAuthor());
  2251. }
  2252. if (!other.contributor_.isEmpty()) {
  2253. if (result.contributor_.isEmpty()) {
  2254. result.contributor_ = new java.util.ArrayList<java.lang.String>();
  2255. }
  2256. result.contributor_.addAll(other.contributor_);
  2257. }
  2258. if (other.hasLastModifiedVersion()) {
  2259. setLastModifiedVersion(other.getLastModifiedVersion());
  2260. }
  2261. if (other.hasLastModifiedTime()) {
  2262. setLastModifiedTime(other.getLastModifiedTime());
  2263. }
  2264. this.mergeUnknownFields(other.getUnknownFields());
  2265. return this;
  2266. }
  2267. public Builder mergeFrom(
  2268. com.google.protobuf.CodedInputStream input,
  2269. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2270. throws java.io.IOException {
  2271. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  2272. com.google.protobuf.UnknownFieldSet.newBuilder(
  2273. this.getUnknownFields());
  2274. while (true) {
  2275. int tag = input.readTag();
  2276. switch (tag) {
  2277. case 0:
  2278. this.setUnknownFields(unknownFields.build());
  2279. return this;
  2280. default: {
  2281. if (!parseUnknownField(input, unknownFields,
  2282. extensionRegistry, tag)) {
  2283. this.setUnknownFields(unknownFields.build());
  2284. return this;
  2285. }
  2286. break;
  2287. }
  2288. case 10: {
  2289. setDocumentId(input.readString());
  2290. break;
  2291. }
  2292. case 18: {
  2293. org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation.newBuilder();
  2294. if (hasDocumentOperation()) {
  2295. subBuilder.mergeFrom(getDocumentOperation());
  2296. }
  2297. input.readMessage(subBuilder, extensionRegistry);
  2298. setDocumentOperation(subBuilder.buildPartial());
  2299. break;
  2300. }
  2301. case 26: {
  2302. setAuthor(input.readString());
  2303. break;
  2304. }
  2305. case 34: {
  2306. addContributor(input.readString());
  2307. break;
  2308. }
  2309. case 40: {
  2310. setLastModifiedVersion(input.readInt64());
  2311. break;
  2312. }
  2313. case 48: {
  2314. setLastModifiedTime(input.readInt64());
  2315. break;
  2316. }
  2317. }
  2318. }
  2319. }
  2320. // required string documentId = 1;
  2321. public boolean hasDocumentId() {
  2322. return result.hasDocumentId();
  2323. }
  2324. public java.lang.String getDocumentId() {
  2325. return result.getDocumentId();
  2326. }
  2327. public Builder setDocumentId(java.lang.String value) {
  2328. if (value == null) {
  2329. throw new NullPointerException();
  2330. }
  2331. result.hasDocumentId = true;
  2332. result.documentId_ = value;
  2333. return this;
  2334. }
  2335. public Builder clearDocumentId() {
  2336. result.hasDocumentId = false;
  2337. result.documentId_ = getDefaultInstance().getDocumentId();
  2338. return this;
  2339. }
  2340. // required .federation.ProtocolDocumentOperation documentOperation = 2;
  2341. public boolean hasDocumentOperation() {
  2342. return result.hasDocumentOperation();
  2343. }
  2344. public org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation getDocumentOperation() {
  2345. return result.getDocumentOperation();
  2346. }
  2347. public Builder setDocumentOperation(org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation value) {
  2348. if (value == null) {
  2349. throw new NullPointerException();
  2350. }
  2351. result.hasDocumentOperation = true;
  2352. result.documentOperation_ = value;
  2353. return this;
  2354. }
  2355. public Builder setDocumentOperation(org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation.Builder builderForValue) {
  2356. result.hasDocumentOperation = true;
  2357. result.documentOperation_ = builderForValue.build();
  2358. return this;
  2359. }
  2360. public Builder mergeDocumentOperation(org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation value) {
  2361. if (result.hasDocumentOperation() &&
  2362. result.documentOperation_ != org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation.getDefaultInstance()) {
  2363. result.documentOperation_ =
  2364. org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation.newBuilder(result.documentOperation_).mergeFrom(value).buildPartial();
  2365. } else {
  2366. result.documentOperation_ = value;
  2367. }
  2368. result.hasDocumentOperation = true;
  2369. return this;
  2370. }
  2371. public Builder clearDocumentOperation() {
  2372. result.hasDocumentOperation = false;
  2373. result.documentOperation_ = org.waveprotocol.wave.federation.Proto.ProtocolDocumentOperation.getDefaultInstance();
  2374. return this;
  2375. }
  2376. // required string author = 3;
  2377. public boolean hasAuthor() {
  2378. return result.hasAuthor();
  2379. }
  2380. public java.lang.String getAuthor() {
  2381. return result.getAuthor();
  2382. }
  2383. public Builder setAuthor(java.lang.String value) {
  2384. if (value == null) {
  2385. throw new NullPointerException();
  2386. }
  2387. result.hasAuthor = true;
  2388. result.author_ = value;
  2389. return this;
  2390. }
  2391. public Builder clearAuthor() {
  2392. result.hasAuthor = false;
  2393. result.author_ = getDefaultInstance().getAuthor();
  2394. return this;
  2395. }
  2396. // repeated string contributor = 4;
  2397. public java.util.List<java.lang.String> getContributorList() {
  2398. return java.util.Collections.unmodifiableList(result.contributor_);
  2399. }
  2400. public int getContributorCount() {
  2401. return result.getContributorCount();
  2402. }
  2403. public java.lang.String getContributor(int index) {
  2404. return result.getContributor(index);
  2405. }
  2406. public Builder setContributor(int index, java.lang.String value) {
  2407. if (value == null) {
  2408. throw new NullPointerException();
  2409. }
  2410. result.contributor_.set(index, value);
  2411. return this;
  2412. }
  2413. public Builder addContributor(java.lang.String value) {
  2414. if (value == null) {
  2415. throw new NullPointerException();
  2416. }
  2417. if (result.contributor_.isEmpty()) {
  2418. result.contributor_ = new java.util.ArrayList<java.lang.String>();
  2419. }
  2420. result.contributor_.add(value);
  2421. return this;
  2422. }
  2423. public Builder addAllContributor(
  2424. java.lang.Iterable<? extends java.lang.String> values) {
  2425. if (result.contributor_.isEmpty()) {
  2426. result.contributor_ = new java.util.ArrayList<java.lang.String>();
  2427. }
  2428. super.addAll(values, result.contributor_);
  2429. return this;
  2430. }
  2431. public Builder clearContributor() {
  2432. result.contributor_ = java.util.Collections.emptyList();
  2433. return this;
  2434. }
  2435. // required int64 lastModifiedVersion = 5;
  2436. public boolean hasLastModifiedVersion() {
  2437. return result.hasLastModifiedVersion();
  2438. }
  2439. public long getLastModifiedVersion() {
  2440. return result.getLastModifiedVersion();
  2441. }
  2442. public Builder setLastModifiedVersion(long value) {
  2443. result.hasLastModifiedVersion = true;
  2444. result.lastModifiedVersion_ = value;
  2445. return this;
  2446. }
  2447. public Builder clearLastModifiedVersion() {
  2448. result.hasLastModifiedVersion = false;
  2449. result.lastModifiedVersion_ = 0L;
  2450. return this;
  2451. }
  2452. // required int64 lastModifiedTime = 6;
  2453. public boolean hasLastModifiedTime() {
  2454. return result.hasLastModifiedTime();
  2455. }
  2456. public long getLastModifiedTime() {
  2457. return result.getLastModifiedTime();
  2458. }
  2459. public Builder setLastModifiedTime(long value) {
  2460. result.hasLastModifiedTime = true;
  2461. result.lastModifiedTime_ = value;
  2462. return this;
  2463. }
  2464. public Builder clearLastModifiedTime() {
  2465. result.hasLastModifiedTime = false;
  2466. result.lastModifiedTime_ = 0L;
  2467. return this;
  2468. }
  2469. // @@protoc_insertion_point(builder_scope:concurrencycontrol.DocumentSnapshot)
  2470. }
  2471. static {
  2472. defaultInstance = new DocumentSnapshot(true);
  2473. org.waveprotocol.wave.concurrencycontrol.ClientServer.internalForceInit();
  2474. defaultInstance.initFields();
  2475. }
  2476. // @@protoc_insertion_point(class_scope:concurrencycontrol.DocumentSnapshot)
  2477. }
  2478. public static final class OpenWaveletChannelRequest extends
  2479. com.google.protobuf.GeneratedMessage {
  2480. // Use OpenWaveletChannelRequest.newBuilder() to construct.
  2481. private OpenWaveletChannelRequest() {
  2482. initFields();
  2483. }
  2484. private OpenWaveletChannelRequest(boolean noInit) {}
  2485. private static final OpenWaveletChannelRequest defaultInstance;
  2486. public static OpenWaveletChannelRequest getDefaultInstance() {
  2487. return defaultInstance;
  2488. }
  2489. public OpenWaveletChannelRequest getDefaultInstanceForType() {
  2490. return defaultInstance;
  2491. }
  2492. public static final com.google.protobuf.Descriptors.Descriptor
  2493. getDescriptor() {
  2494. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_OpenWaveletChannelRequest_descriptor;
  2495. }
  2496. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  2497. internalGetFieldAccessorTable() {
  2498. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_OpenWaveletChannelRequest_fieldAccessorTable;
  2499. }
  2500. // required string waveId = 1;
  2501. public static final int WAVEID_FIELD_NUMBER = 1;
  2502. private boolean hasWaveId;
  2503. private java.lang.String waveId_ = "";
  2504. public boolean hasWaveId() { return hasWaveId; }
  2505. public java.lang.String getWaveId() { return waveId_; }
  2506. // required string waveletId = 2;
  2507. public static final int WAVELETID_FIELD_NUMBER = 2;
  2508. private boolean hasWaveletId;
  2509. private java.lang.String waveletId_ = "";
  2510. public boolean hasWaveletId() { return hasWaveletId; }
  2511. public java.lang.String getWaveletId() { return waveletId_; }
  2512. // required .federation.ProtocolHashedVersion beginVersion = 3;
  2513. public static final int BEGINVERSION_FIELD_NUMBER = 3;
  2514. private boolean hasBeginVersion;
  2515. private org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion beginVersion_;
  2516. public boolean hasBeginVersion() { return hasBeginVersion; }
  2517. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getBeginVersion() { return beginVersion_; }
  2518. private void initFields() {
  2519. beginVersion_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  2520. }
  2521. public final boolean isInitialized() {
  2522. if (!hasWaveId) return false;
  2523. if (!hasWaveletId) return false;
  2524. if (!hasBeginVersion) return false;
  2525. if (!getBeginVersion().isInitialized()) return false;
  2526. return true;
  2527. }
  2528. public void writeTo(com.google.protobuf.CodedOutputStream output)
  2529. throws java.io.IOException {
  2530. getSerializedSize();
  2531. if (hasWaveId()) {
  2532. output.writeString(1, getWaveId());
  2533. }
  2534. if (hasWaveletId()) {
  2535. output.writeString(2, getWaveletId());
  2536. }
  2537. if (hasBeginVersion()) {
  2538. output.writeMessage(3, getBeginVersion());
  2539. }
  2540. getUnknownFields().writeTo(output);
  2541. }
  2542. private int memoizedSerializedSize = -1;
  2543. public int getSerializedSize() {
  2544. int size = memoizedSerializedSize;
  2545. if (size != -1) return size;
  2546. size = 0;
  2547. if (hasWaveId()) {
  2548. size += com.google.protobuf.CodedOutputStream
  2549. .computeStringSize(1, getWaveId());
  2550. }
  2551. if (hasWaveletId()) {
  2552. size += com.google.protobuf.CodedOutputStream
  2553. .computeStringSize(2, getWaveletId());
  2554. }
  2555. if (hasBeginVersion()) {
  2556. size += com.google.protobuf.CodedOutputStream
  2557. .computeMessageSize(3, getBeginVersion());
  2558. }
  2559. size += getUnknownFields().getSerializedSize();
  2560. memoizedSerializedSize = size;
  2561. return size;
  2562. }
  2563. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest parseFrom(
  2564. com.google.protobuf.ByteString data)
  2565. throws com.google.protobuf.InvalidProtocolBufferException {
  2566. return newBuilder().mergeFrom(data).buildParsed();
  2567. }
  2568. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest parseFrom(
  2569. com.google.protobuf.ByteString data,
  2570. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2571. throws com.google.protobuf.InvalidProtocolBufferException {
  2572. return newBuilder().mergeFrom(data, extensionRegistry)
  2573. .buildParsed();
  2574. }
  2575. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest parseFrom(byte[] data)
  2576. throws com.google.protobuf.InvalidProtocolBufferException {
  2577. return newBuilder().mergeFrom(data).buildParsed();
  2578. }
  2579. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest parseFrom(
  2580. byte[] data,
  2581. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2582. throws com.google.protobuf.InvalidProtocolBufferException {
  2583. return newBuilder().mergeFrom(data, extensionRegistry)
  2584. .buildParsed();
  2585. }
  2586. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest parseFrom(java.io.InputStream input)
  2587. throws java.io.IOException {
  2588. return newBuilder().mergeFrom(input).buildParsed();
  2589. }
  2590. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest parseFrom(
  2591. java.io.InputStream input,
  2592. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2593. throws java.io.IOException {
  2594. return newBuilder().mergeFrom(input, extensionRegistry)
  2595. .buildParsed();
  2596. }
  2597. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest parseDelimitedFrom(java.io.InputStream input)
  2598. throws java.io.IOException {
  2599. Builder builder = newBuilder();
  2600. if (builder.mergeDelimitedFrom(input)) {
  2601. return builder.buildParsed();
  2602. } else {
  2603. return null;
  2604. }
  2605. }
  2606. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest parseDelimitedFrom(
  2607. java.io.InputStream input,
  2608. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2609. throws java.io.IOException {
  2610. Builder builder = newBuilder();
  2611. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  2612. return builder.buildParsed();
  2613. } else {
  2614. return null;
  2615. }
  2616. }
  2617. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest parseFrom(
  2618. com.google.protobuf.CodedInputStream input)
  2619. throws java.io.IOException {
  2620. return newBuilder().mergeFrom(input).buildParsed();
  2621. }
  2622. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest parseFrom(
  2623. com.google.protobuf.CodedInputStream input,
  2624. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2625. throws java.io.IOException {
  2626. return newBuilder().mergeFrom(input, extensionRegistry)
  2627. .buildParsed();
  2628. }
  2629. public static Builder newBuilder() { return Builder.create(); }
  2630. public Builder newBuilderForType() { return newBuilder(); }
  2631. public static Builder newBuilder(org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest prototype) {
  2632. return newBuilder().mergeFrom(prototype);
  2633. }
  2634. public Builder toBuilder() { return newBuilder(this); }
  2635. public static final class Builder extends
  2636. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  2637. private org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest result;
  2638. // Construct using org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest.newBuilder()
  2639. private Builder() {}
  2640. private static Builder create() {
  2641. Builder builder = new Builder();
  2642. builder.result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest();
  2643. return builder;
  2644. }
  2645. protected org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest internalGetResult() {
  2646. return result;
  2647. }
  2648. public Builder clear() {
  2649. if (result == null) {
  2650. throw new IllegalStateException(
  2651. "Cannot call clear() after build().");
  2652. }
  2653. result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest();
  2654. return this;
  2655. }
  2656. public Builder clone() {
  2657. return create().mergeFrom(result);
  2658. }
  2659. public com.google.protobuf.Descriptors.Descriptor
  2660. getDescriptorForType() {
  2661. return org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest.getDescriptor();
  2662. }
  2663. public org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest getDefaultInstanceForType() {
  2664. return org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest.getDefaultInstance();
  2665. }
  2666. public boolean isInitialized() {
  2667. return result.isInitialized();
  2668. }
  2669. public org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest build() {
  2670. if (result != null && !isInitialized()) {
  2671. throw newUninitializedMessageException(result);
  2672. }
  2673. return buildPartial();
  2674. }
  2675. private org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest buildParsed()
  2676. throws com.google.protobuf.InvalidProtocolBufferException {
  2677. if (!isInitialized()) {
  2678. throw newUninitializedMessageException(
  2679. result).asInvalidProtocolBufferException();
  2680. }
  2681. return buildPartial();
  2682. }
  2683. public org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest buildPartial() {
  2684. if (result == null) {
  2685. throw new IllegalStateException(
  2686. "build() has already been called on this Builder.");
  2687. }
  2688. org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest returnMe = result;
  2689. result = null;
  2690. return returnMe;
  2691. }
  2692. public Builder mergeFrom(com.google.protobuf.Message other) {
  2693. if (other instanceof org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest) {
  2694. return mergeFrom((org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest)other);
  2695. } else {
  2696. super.mergeFrom(other);
  2697. return this;
  2698. }
  2699. }
  2700. public Builder mergeFrom(org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest other) {
  2701. if (other == org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest.getDefaultInstance()) return this;
  2702. if (other.hasWaveId()) {
  2703. setWaveId(other.getWaveId());
  2704. }
  2705. if (other.hasWaveletId()) {
  2706. setWaveletId(other.getWaveletId());
  2707. }
  2708. if (other.hasBeginVersion()) {
  2709. mergeBeginVersion(other.getBeginVersion());
  2710. }
  2711. this.mergeUnknownFields(other.getUnknownFields());
  2712. return this;
  2713. }
  2714. public Builder mergeFrom(
  2715. com.google.protobuf.CodedInputStream input,
  2716. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2717. throws java.io.IOException {
  2718. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  2719. com.google.protobuf.UnknownFieldSet.newBuilder(
  2720. this.getUnknownFields());
  2721. while (true) {
  2722. int tag = input.readTag();
  2723. switch (tag) {
  2724. case 0:
  2725. this.setUnknownFields(unknownFields.build());
  2726. return this;
  2727. default: {
  2728. if (!parseUnknownField(input, unknownFields,
  2729. extensionRegistry, tag)) {
  2730. this.setUnknownFields(unknownFields.build());
  2731. return this;
  2732. }
  2733. break;
  2734. }
  2735. case 10: {
  2736. setWaveId(input.readString());
  2737. break;
  2738. }
  2739. case 18: {
  2740. setWaveletId(input.readString());
  2741. break;
  2742. }
  2743. case 26: {
  2744. org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder();
  2745. if (hasBeginVersion()) {
  2746. subBuilder.mergeFrom(getBeginVersion());
  2747. }
  2748. input.readMessage(subBuilder, extensionRegistry);
  2749. setBeginVersion(subBuilder.buildPartial());
  2750. break;
  2751. }
  2752. }
  2753. }
  2754. }
  2755. // required string waveId = 1;
  2756. public boolean hasWaveId() {
  2757. return result.hasWaveId();
  2758. }
  2759. public java.lang.String getWaveId() {
  2760. return result.getWaveId();
  2761. }
  2762. public Builder setWaveId(java.lang.String value) {
  2763. if (value == null) {
  2764. throw new NullPointerException();
  2765. }
  2766. result.hasWaveId = true;
  2767. result.waveId_ = value;
  2768. return this;
  2769. }
  2770. public Builder clearWaveId() {
  2771. result.hasWaveId = false;
  2772. result.waveId_ = getDefaultInstance().getWaveId();
  2773. return this;
  2774. }
  2775. // required string waveletId = 2;
  2776. public boolean hasWaveletId() {
  2777. return result.hasWaveletId();
  2778. }
  2779. public java.lang.String getWaveletId() {
  2780. return result.getWaveletId();
  2781. }
  2782. public Builder setWaveletId(java.lang.String value) {
  2783. if (value == null) {
  2784. throw new NullPointerException();
  2785. }
  2786. result.hasWaveletId = true;
  2787. result.waveletId_ = value;
  2788. return this;
  2789. }
  2790. public Builder clearWaveletId() {
  2791. result.hasWaveletId = false;
  2792. result.waveletId_ = getDefaultInstance().getWaveletId();
  2793. return this;
  2794. }
  2795. // required .federation.ProtocolHashedVersion beginVersion = 3;
  2796. public boolean hasBeginVersion() {
  2797. return result.hasBeginVersion();
  2798. }
  2799. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getBeginVersion() {
  2800. return result.getBeginVersion();
  2801. }
  2802. public Builder setBeginVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
  2803. if (value == null) {
  2804. throw new NullPointerException();
  2805. }
  2806. result.hasBeginVersion = true;
  2807. result.beginVersion_ = value;
  2808. return this;
  2809. }
  2810. public Builder setBeginVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder builderForValue) {
  2811. result.hasBeginVersion = true;
  2812. result.beginVersion_ = builderForValue.build();
  2813. return this;
  2814. }
  2815. public Builder mergeBeginVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
  2816. if (result.hasBeginVersion() &&
  2817. result.beginVersion_ != org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance()) {
  2818. result.beginVersion_ =
  2819. org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder(result.beginVersion_).mergeFrom(value).buildPartial();
  2820. } else {
  2821. result.beginVersion_ = value;
  2822. }
  2823. result.hasBeginVersion = true;
  2824. return this;
  2825. }
  2826. public Builder clearBeginVersion() {
  2827. result.hasBeginVersion = false;
  2828. result.beginVersion_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  2829. return this;
  2830. }
  2831. // @@protoc_insertion_point(builder_scope:concurrencycontrol.OpenWaveletChannelRequest)
  2832. }
  2833. static {
  2834. defaultInstance = new OpenWaveletChannelRequest(true);
  2835. org.waveprotocol.wave.concurrencycontrol.ClientServer.internalForceInit();
  2836. defaultInstance.initFields();
  2837. }
  2838. // @@protoc_insertion_point(class_scope:concurrencycontrol.OpenWaveletChannelRequest)
  2839. }
  2840. public static final class OpenWaveletChannelStream extends
  2841. com.google.protobuf.GeneratedMessage {
  2842. // Use OpenWaveletChannelStream.newBuilder() to construct.
  2843. private OpenWaveletChannelStream() {
  2844. initFields();
  2845. }
  2846. private OpenWaveletChannelStream(boolean noInit) {}
  2847. private static final OpenWaveletChannelStream defaultInstance;
  2848. public static OpenWaveletChannelStream getDefaultInstance() {
  2849. return defaultInstance;
  2850. }
  2851. public OpenWaveletChannelStream getDefaultInstanceForType() {
  2852. return defaultInstance;
  2853. }
  2854. public static final com.google.protobuf.Descriptors.Descriptor
  2855. getDescriptor() {
  2856. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_OpenWaveletChannelStream_descriptor;
  2857. }
  2858. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  2859. internalGetFieldAccessorTable() {
  2860. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_OpenWaveletChannelStream_fieldAccessorTable;
  2861. }
  2862. // optional string channelId = 1;
  2863. public static final int CHANNELID_FIELD_NUMBER = 1;
  2864. private boolean hasChannelId;
  2865. private java.lang.String channelId_ = "";
  2866. public boolean hasChannelId() { return hasChannelId; }
  2867. public java.lang.String getChannelId() { return channelId_; }
  2868. // optional .concurrencycontrol.WaveletUpdate delta = 2;
  2869. public static final int DELTA_FIELD_NUMBER = 2;
  2870. private boolean hasDelta;
  2871. private org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate delta_;
  2872. public boolean hasDelta() { return hasDelta; }
  2873. public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate getDelta() { return delta_; }
  2874. // optional .federation.ProtocolHashedVersion commitVersion = 3;
  2875. public static final int COMMITVERSION_FIELD_NUMBER = 3;
  2876. private boolean hasCommitVersion;
  2877. private org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion commitVersion_;
  2878. public boolean hasCommitVersion() { return hasCommitVersion; }
  2879. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getCommitVersion() { return commitVersion_; }
  2880. // optional .concurrencycontrol.WaveletChannelTerminator terminator = 4;
  2881. public static final int TERMINATOR_FIELD_NUMBER = 4;
  2882. private boolean hasTerminator;
  2883. private org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator terminator_;
  2884. public boolean hasTerminator() { return hasTerminator; }
  2885. public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator getTerminator() { return terminator_; }
  2886. private void initFields() {
  2887. delta_ = org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate.getDefaultInstance();
  2888. commitVersion_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  2889. terminator_ = org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator.getDefaultInstance();
  2890. }
  2891. public final boolean isInitialized() {
  2892. if (hasDelta()) {
  2893. if (!getDelta().isInitialized()) return false;
  2894. }
  2895. if (hasCommitVersion()) {
  2896. if (!getCommitVersion().isInitialized()) return false;
  2897. }
  2898. if (hasTerminator()) {
  2899. if (!getTerminator().isInitialized()) return false;
  2900. }
  2901. return true;
  2902. }
  2903. public void writeTo(com.google.protobuf.CodedOutputStream output)
  2904. throws java.io.IOException {
  2905. getSerializedSize();
  2906. if (hasChannelId()) {
  2907. output.writeString(1, getChannelId());
  2908. }
  2909. if (hasDelta()) {
  2910. output.writeMessage(2, getDelta());
  2911. }
  2912. if (hasCommitVersion()) {
  2913. output.writeMessage(3, getCommitVersion());
  2914. }
  2915. if (hasTerminator()) {
  2916. output.writeMessage(4, getTerminator());
  2917. }
  2918. getUnknownFields().writeTo(output);
  2919. }
  2920. private int memoizedSerializedSize = -1;
  2921. public int getSerializedSize() {
  2922. int size = memoizedSerializedSize;
  2923. if (size != -1) return size;
  2924. size = 0;
  2925. if (hasChannelId()) {
  2926. size += com.google.protobuf.CodedOutputStream
  2927. .computeStringSize(1, getChannelId());
  2928. }
  2929. if (hasDelta()) {
  2930. size += com.google.protobuf.CodedOutputStream
  2931. .computeMessageSize(2, getDelta());
  2932. }
  2933. if (hasCommitVersion()) {
  2934. size += com.google.protobuf.CodedOutputStream
  2935. .computeMessageSize(3, getCommitVersion());
  2936. }
  2937. if (hasTerminator()) {
  2938. size += com.google.protobuf.CodedOutputStream
  2939. .computeMessageSize(4, getTerminator());
  2940. }
  2941. size += getUnknownFields().getSerializedSize();
  2942. memoizedSerializedSize = size;
  2943. return size;
  2944. }
  2945. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream parseFrom(
  2946. com.google.protobuf.ByteString data)
  2947. throws com.google.protobuf.InvalidProtocolBufferException {
  2948. return newBuilder().mergeFrom(data).buildParsed();
  2949. }
  2950. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream parseFrom(
  2951. com.google.protobuf.ByteString data,
  2952. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2953. throws com.google.protobuf.InvalidProtocolBufferException {
  2954. return newBuilder().mergeFrom(data, extensionRegistry)
  2955. .buildParsed();
  2956. }
  2957. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream parseFrom(byte[] data)
  2958. throws com.google.protobuf.InvalidProtocolBufferException {
  2959. return newBuilder().mergeFrom(data).buildParsed();
  2960. }
  2961. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream parseFrom(
  2962. byte[] data,
  2963. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2964. throws com.google.protobuf.InvalidProtocolBufferException {
  2965. return newBuilder().mergeFrom(data, extensionRegistry)
  2966. .buildParsed();
  2967. }
  2968. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream parseFrom(java.io.InputStream input)
  2969. throws java.io.IOException {
  2970. return newBuilder().mergeFrom(input).buildParsed();
  2971. }
  2972. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream parseFrom(
  2973. java.io.InputStream input,
  2974. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2975. throws java.io.IOException {
  2976. return newBuilder().mergeFrom(input, extensionRegistry)
  2977. .buildParsed();
  2978. }
  2979. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream parseDelimitedFrom(java.io.InputStream input)
  2980. throws java.io.IOException {
  2981. Builder builder = newBuilder();
  2982. if (builder.mergeDelimitedFrom(input)) {
  2983. return builder.buildParsed();
  2984. } else {
  2985. return null;
  2986. }
  2987. }
  2988. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream parseDelimitedFrom(
  2989. java.io.InputStream input,
  2990. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2991. throws java.io.IOException {
  2992. Builder builder = newBuilder();
  2993. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  2994. return builder.buildParsed();
  2995. } else {
  2996. return null;
  2997. }
  2998. }
  2999. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream parseFrom(
  3000. com.google.protobuf.CodedInputStream input)
  3001. throws java.io.IOException {
  3002. return newBuilder().mergeFrom(input).buildParsed();
  3003. }
  3004. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream parseFrom(
  3005. com.google.protobuf.CodedInputStream input,
  3006. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3007. throws java.io.IOException {
  3008. return newBuilder().mergeFrom(input, extensionRegistry)
  3009. .buildParsed();
  3010. }
  3011. public static Builder newBuilder() { return Builder.create(); }
  3012. public Builder newBuilderForType() { return newBuilder(); }
  3013. public static Builder newBuilder(org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream prototype) {
  3014. return newBuilder().mergeFrom(prototype);
  3015. }
  3016. public Builder toBuilder() { return newBuilder(this); }
  3017. public static final class Builder extends
  3018. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  3019. private org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream result;
  3020. // Construct using org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream.newBuilder()
  3021. private Builder() {}
  3022. private static Builder create() {
  3023. Builder builder = new Builder();
  3024. builder.result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream();
  3025. return builder;
  3026. }
  3027. protected org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream internalGetResult() {
  3028. return result;
  3029. }
  3030. public Builder clear() {
  3031. if (result == null) {
  3032. throw new IllegalStateException(
  3033. "Cannot call clear() after build().");
  3034. }
  3035. result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream();
  3036. return this;
  3037. }
  3038. public Builder clone() {
  3039. return create().mergeFrom(result);
  3040. }
  3041. public com.google.protobuf.Descriptors.Descriptor
  3042. getDescriptorForType() {
  3043. return org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream.getDescriptor();
  3044. }
  3045. public org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream getDefaultInstanceForType() {
  3046. return org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream.getDefaultInstance();
  3047. }
  3048. public boolean isInitialized() {
  3049. return result.isInitialized();
  3050. }
  3051. public org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream build() {
  3052. if (result != null && !isInitialized()) {
  3053. throw newUninitializedMessageException(result);
  3054. }
  3055. return buildPartial();
  3056. }
  3057. private org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream buildParsed()
  3058. throws com.google.protobuf.InvalidProtocolBufferException {
  3059. if (!isInitialized()) {
  3060. throw newUninitializedMessageException(
  3061. result).asInvalidProtocolBufferException();
  3062. }
  3063. return buildPartial();
  3064. }
  3065. public org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream buildPartial() {
  3066. if (result == null) {
  3067. throw new IllegalStateException(
  3068. "build() has already been called on this Builder.");
  3069. }
  3070. org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream returnMe = result;
  3071. result = null;
  3072. return returnMe;
  3073. }
  3074. public Builder mergeFrom(com.google.protobuf.Message other) {
  3075. if (other instanceof org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream) {
  3076. return mergeFrom((org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream)other);
  3077. } else {
  3078. super.mergeFrom(other);
  3079. return this;
  3080. }
  3081. }
  3082. public Builder mergeFrom(org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream other) {
  3083. if (other == org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream.getDefaultInstance()) return this;
  3084. if (other.hasChannelId()) {
  3085. setChannelId(other.getChannelId());
  3086. }
  3087. if (other.hasDelta()) {
  3088. mergeDelta(other.getDelta());
  3089. }
  3090. if (other.hasCommitVersion()) {
  3091. mergeCommitVersion(other.getCommitVersion());
  3092. }
  3093. if (other.hasTerminator()) {
  3094. mergeTerminator(other.getTerminator());
  3095. }
  3096. this.mergeUnknownFields(other.getUnknownFields());
  3097. return this;
  3098. }
  3099. public Builder mergeFrom(
  3100. com.google.protobuf.CodedInputStream input,
  3101. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3102. throws java.io.IOException {
  3103. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  3104. com.google.protobuf.UnknownFieldSet.newBuilder(
  3105. this.getUnknownFields());
  3106. while (true) {
  3107. int tag = input.readTag();
  3108. switch (tag) {
  3109. case 0:
  3110. this.setUnknownFields(unknownFields.build());
  3111. return this;
  3112. default: {
  3113. if (!parseUnknownField(input, unknownFields,
  3114. extensionRegistry, tag)) {
  3115. this.setUnknownFields(unknownFields.build());
  3116. return this;
  3117. }
  3118. break;
  3119. }
  3120. case 10: {
  3121. setChannelId(input.readString());
  3122. break;
  3123. }
  3124. case 18: {
  3125. org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate.Builder subBuilder = org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate.newBuilder();
  3126. if (hasDelta()) {
  3127. subBuilder.mergeFrom(getDelta());
  3128. }
  3129. input.readMessage(subBuilder, extensionRegistry);
  3130. setDelta(subBuilder.buildPartial());
  3131. break;
  3132. }
  3133. case 26: {
  3134. org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder();
  3135. if (hasCommitVersion()) {
  3136. subBuilder.mergeFrom(getCommitVersion());
  3137. }
  3138. input.readMessage(subBuilder, extensionRegistry);
  3139. setCommitVersion(subBuilder.buildPartial());
  3140. break;
  3141. }
  3142. case 34: {
  3143. org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator.Builder subBuilder = org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator.newBuilder();
  3144. if (hasTerminator()) {
  3145. subBuilder.mergeFrom(getTerminator());
  3146. }
  3147. input.readMessage(subBuilder, extensionRegistry);
  3148. setTerminator(subBuilder.buildPartial());
  3149. break;
  3150. }
  3151. }
  3152. }
  3153. }
  3154. // optional string channelId = 1;
  3155. public boolean hasChannelId() {
  3156. return result.hasChannelId();
  3157. }
  3158. public java.lang.String getChannelId() {
  3159. return result.getChannelId();
  3160. }
  3161. public Builder setChannelId(java.lang.String value) {
  3162. if (value == null) {
  3163. throw new NullPointerException();
  3164. }
  3165. result.hasChannelId = true;
  3166. result.channelId_ = value;
  3167. return this;
  3168. }
  3169. public Builder clearChannelId() {
  3170. result.hasChannelId = false;
  3171. result.channelId_ = getDefaultInstance().getChannelId();
  3172. return this;
  3173. }
  3174. // optional .concurrencycontrol.WaveletUpdate delta = 2;
  3175. public boolean hasDelta() {
  3176. return result.hasDelta();
  3177. }
  3178. public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate getDelta() {
  3179. return result.getDelta();
  3180. }
  3181. public Builder setDelta(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate value) {
  3182. if (value == null) {
  3183. throw new NullPointerException();
  3184. }
  3185. result.hasDelta = true;
  3186. result.delta_ = value;
  3187. return this;
  3188. }
  3189. public Builder setDelta(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate.Builder builderForValue) {
  3190. result.hasDelta = true;
  3191. result.delta_ = builderForValue.build();
  3192. return this;
  3193. }
  3194. public Builder mergeDelta(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate value) {
  3195. if (result.hasDelta() &&
  3196. result.delta_ != org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate.getDefaultInstance()) {
  3197. result.delta_ =
  3198. org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate.newBuilder(result.delta_).mergeFrom(value).buildPartial();
  3199. } else {
  3200. result.delta_ = value;
  3201. }
  3202. result.hasDelta = true;
  3203. return this;
  3204. }
  3205. public Builder clearDelta() {
  3206. result.hasDelta = false;
  3207. result.delta_ = org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate.getDefaultInstance();
  3208. return this;
  3209. }
  3210. // optional .federation.ProtocolHashedVersion commitVersion = 3;
  3211. public boolean hasCommitVersion() {
  3212. return result.hasCommitVersion();
  3213. }
  3214. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getCommitVersion() {
  3215. return result.getCommitVersion();
  3216. }
  3217. public Builder setCommitVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
  3218. if (value == null) {
  3219. throw new NullPointerException();
  3220. }
  3221. result.hasCommitVersion = true;
  3222. result.commitVersion_ = value;
  3223. return this;
  3224. }
  3225. public Builder setCommitVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder builderForValue) {
  3226. result.hasCommitVersion = true;
  3227. result.commitVersion_ = builderForValue.build();
  3228. return this;
  3229. }
  3230. public Builder mergeCommitVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
  3231. if (result.hasCommitVersion() &&
  3232. result.commitVersion_ != org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance()) {
  3233. result.commitVersion_ =
  3234. org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder(result.commitVersion_).mergeFrom(value).buildPartial();
  3235. } else {
  3236. result.commitVersion_ = value;
  3237. }
  3238. result.hasCommitVersion = true;
  3239. return this;
  3240. }
  3241. public Builder clearCommitVersion() {
  3242. result.hasCommitVersion = false;
  3243. result.commitVersion_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  3244. return this;
  3245. }
  3246. // optional .concurrencycontrol.WaveletChannelTerminator terminator = 4;
  3247. public boolean hasTerminator() {
  3248. return result.hasTerminator();
  3249. }
  3250. public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator getTerminator() {
  3251. return result.getTerminator();
  3252. }
  3253. public Builder setTerminator(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator value) {
  3254. if (value == null) {
  3255. throw new NullPointerException();
  3256. }
  3257. result.hasTerminator = true;
  3258. result.terminator_ = value;
  3259. return this;
  3260. }
  3261. public Builder setTerminator(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator.Builder builderForValue) {
  3262. result.hasTerminator = true;
  3263. result.terminator_ = builderForValue.build();
  3264. return this;
  3265. }
  3266. public Builder mergeTerminator(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator value) {
  3267. if (result.hasTerminator() &&
  3268. result.terminator_ != org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator.getDefaultInstance()) {
  3269. result.terminator_ =
  3270. org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator.newBuilder(result.terminator_).mergeFrom(value).buildPartial();
  3271. } else {
  3272. result.terminator_ = value;
  3273. }
  3274. result.hasTerminator = true;
  3275. return this;
  3276. }
  3277. public Builder clearTerminator() {
  3278. result.hasTerminator = false;
  3279. result.terminator_ = org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator.getDefaultInstance();
  3280. return this;
  3281. }
  3282. // @@protoc_insertion_point(builder_scope:concurrencycontrol.OpenWaveletChannelStream)
  3283. }
  3284. static {
  3285. defaultInstance = new OpenWaveletChannelStream(true);
  3286. org.waveprotocol.wave.concurrencycontrol.ClientServer.internalForceInit();
  3287. defaultInstance.initFields();
  3288. }
  3289. // @@protoc_insertion_point(class_scope:concurrencycontrol.OpenWaveletChannelStream)
  3290. }
  3291. public static final class CloseWaveletChannelRequest extends
  3292. com.google.protobuf.GeneratedMessage {
  3293. // Use CloseWaveletChannelRequest.newBuilder() to construct.
  3294. private CloseWaveletChannelRequest() {
  3295. initFields();
  3296. }
  3297. private CloseWaveletChannelRequest(boolean noInit) {}
  3298. private static final CloseWaveletChannelRequest defaultInstance;
  3299. public static CloseWaveletChannelRequest getDefaultInstance() {
  3300. return defaultInstance;
  3301. }
  3302. public CloseWaveletChannelRequest getDefaultInstanceForType() {
  3303. return defaultInstance;
  3304. }
  3305. public static final com.google.protobuf.Descriptors.Descriptor
  3306. getDescriptor() {
  3307. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_CloseWaveletChannelRequest_descriptor;
  3308. }
  3309. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  3310. internalGetFieldAccessorTable() {
  3311. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_CloseWaveletChannelRequest_fieldAccessorTable;
  3312. }
  3313. // required string channelId = 1;
  3314. public static final int CHANNELID_FIELD_NUMBER = 1;
  3315. private boolean hasChannelId;
  3316. private java.lang.String channelId_ = "";
  3317. public boolean hasChannelId() { return hasChannelId; }
  3318. public java.lang.String getChannelId() { return channelId_; }
  3319. private void initFields() {
  3320. }
  3321. public final boolean isInitialized() {
  3322. if (!hasChannelId) return false;
  3323. return true;
  3324. }
  3325. public void writeTo(com.google.protobuf.CodedOutputStream output)
  3326. throws java.io.IOException {
  3327. getSerializedSize();
  3328. if (hasChannelId()) {
  3329. output.writeString(1, getChannelId());
  3330. }
  3331. getUnknownFields().writeTo(output);
  3332. }
  3333. private int memoizedSerializedSize = -1;
  3334. public int getSerializedSize() {
  3335. int size = memoizedSerializedSize;
  3336. if (size != -1) return size;
  3337. size = 0;
  3338. if (hasChannelId()) {
  3339. size += com.google.protobuf.CodedOutputStream
  3340. .computeStringSize(1, getChannelId());
  3341. }
  3342. size += getUnknownFields().getSerializedSize();
  3343. memoizedSerializedSize = size;
  3344. return size;
  3345. }
  3346. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest parseFrom(
  3347. com.google.protobuf.ByteString data)
  3348. throws com.google.protobuf.InvalidProtocolBufferException {
  3349. return newBuilder().mergeFrom(data).buildParsed();
  3350. }
  3351. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest parseFrom(
  3352. com.google.protobuf.ByteString data,
  3353. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3354. throws com.google.protobuf.InvalidProtocolBufferException {
  3355. return newBuilder().mergeFrom(data, extensionRegistry)
  3356. .buildParsed();
  3357. }
  3358. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest parseFrom(byte[] data)
  3359. throws com.google.protobuf.InvalidProtocolBufferException {
  3360. return newBuilder().mergeFrom(data).buildParsed();
  3361. }
  3362. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest parseFrom(
  3363. byte[] data,
  3364. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3365. throws com.google.protobuf.InvalidProtocolBufferException {
  3366. return newBuilder().mergeFrom(data, extensionRegistry)
  3367. .buildParsed();
  3368. }
  3369. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest parseFrom(java.io.InputStream input)
  3370. throws java.io.IOException {
  3371. return newBuilder().mergeFrom(input).buildParsed();
  3372. }
  3373. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest parseFrom(
  3374. java.io.InputStream input,
  3375. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3376. throws java.io.IOException {
  3377. return newBuilder().mergeFrom(input, extensionRegistry)
  3378. .buildParsed();
  3379. }
  3380. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest parseDelimitedFrom(java.io.InputStream input)
  3381. throws java.io.IOException {
  3382. Builder builder = newBuilder();
  3383. if (builder.mergeDelimitedFrom(input)) {
  3384. return builder.buildParsed();
  3385. } else {
  3386. return null;
  3387. }
  3388. }
  3389. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest parseDelimitedFrom(
  3390. java.io.InputStream input,
  3391. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3392. throws java.io.IOException {
  3393. Builder builder = newBuilder();
  3394. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  3395. return builder.buildParsed();
  3396. } else {
  3397. return null;
  3398. }
  3399. }
  3400. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest parseFrom(
  3401. com.google.protobuf.CodedInputStream input)
  3402. throws java.io.IOException {
  3403. return newBuilder().mergeFrom(input).buildParsed();
  3404. }
  3405. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest parseFrom(
  3406. com.google.protobuf.CodedInputStream input,
  3407. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3408. throws java.io.IOException {
  3409. return newBuilder().mergeFrom(input, extensionRegistry)
  3410. .buildParsed();
  3411. }
  3412. public static Builder newBuilder() { return Builder.create(); }
  3413. public Builder newBuilderForType() { return newBuilder(); }
  3414. public static Builder newBuilder(org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest prototype) {
  3415. return newBuilder().mergeFrom(prototype);
  3416. }
  3417. public Builder toBuilder() { return newBuilder(this); }
  3418. public static final class Builder extends
  3419. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  3420. private org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest result;
  3421. // Construct using org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest.newBuilder()
  3422. private Builder() {}
  3423. private static Builder create() {
  3424. Builder builder = new Builder();
  3425. builder.result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest();
  3426. return builder;
  3427. }
  3428. protected org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest internalGetResult() {
  3429. return result;
  3430. }
  3431. public Builder clear() {
  3432. if (result == null) {
  3433. throw new IllegalStateException(
  3434. "Cannot call clear() after build().");
  3435. }
  3436. result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest();
  3437. return this;
  3438. }
  3439. public Builder clone() {
  3440. return create().mergeFrom(result);
  3441. }
  3442. public com.google.protobuf.Descriptors.Descriptor
  3443. getDescriptorForType() {
  3444. return org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest.getDescriptor();
  3445. }
  3446. public org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest getDefaultInstanceForType() {
  3447. return org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest.getDefaultInstance();
  3448. }
  3449. public boolean isInitialized() {
  3450. return result.isInitialized();
  3451. }
  3452. public org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest build() {
  3453. if (result != null && !isInitialized()) {
  3454. throw newUninitializedMessageException(result);
  3455. }
  3456. return buildPartial();
  3457. }
  3458. private org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest buildParsed()
  3459. throws com.google.protobuf.InvalidProtocolBufferException {
  3460. if (!isInitialized()) {
  3461. throw newUninitializedMessageException(
  3462. result).asInvalidProtocolBufferException();
  3463. }
  3464. return buildPartial();
  3465. }
  3466. public org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest buildPartial() {
  3467. if (result == null) {
  3468. throw new IllegalStateException(
  3469. "build() has already been called on this Builder.");
  3470. }
  3471. org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest returnMe = result;
  3472. result = null;
  3473. return returnMe;
  3474. }
  3475. public Builder mergeFrom(com.google.protobuf.Message other) {
  3476. if (other instanceof org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest) {
  3477. return mergeFrom((org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest)other);
  3478. } else {
  3479. super.mergeFrom(other);
  3480. return this;
  3481. }
  3482. }
  3483. public Builder mergeFrom(org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest other) {
  3484. if (other == org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest.getDefaultInstance()) return this;
  3485. if (other.hasChannelId()) {
  3486. setChannelId(other.getChannelId());
  3487. }
  3488. this.mergeUnknownFields(other.getUnknownFields());
  3489. return this;
  3490. }
  3491. public Builder mergeFrom(
  3492. com.google.protobuf.CodedInputStream input,
  3493. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3494. throws java.io.IOException {
  3495. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  3496. com.google.protobuf.UnknownFieldSet.newBuilder(
  3497. this.getUnknownFields());
  3498. while (true) {
  3499. int tag = input.readTag();
  3500. switch (tag) {
  3501. case 0:
  3502. this.setUnknownFields(unknownFields.build());
  3503. return this;
  3504. default: {
  3505. if (!parseUnknownField(input, unknownFields,
  3506. extensionRegistry, tag)) {
  3507. this.setUnknownFields(unknownFields.build());
  3508. return this;
  3509. }
  3510. break;
  3511. }
  3512. case 10: {
  3513. setChannelId(input.readString());
  3514. break;
  3515. }
  3516. }
  3517. }
  3518. }
  3519. // required string channelId = 1;
  3520. public boolean hasChannelId() {
  3521. return result.hasChannelId();
  3522. }
  3523. public java.lang.String getChannelId() {
  3524. return result.getChannelId();
  3525. }
  3526. public Builder setChannelId(java.lang.String value) {
  3527. if (value == null) {
  3528. throw new NullPointerException();
  3529. }
  3530. result.hasChannelId = true;
  3531. result.channelId_ = value;
  3532. return this;
  3533. }
  3534. public Builder clearChannelId() {
  3535. result.hasChannelId = false;
  3536. result.channelId_ = getDefaultInstance().getChannelId();
  3537. return this;
  3538. }
  3539. // @@protoc_insertion_point(builder_scope:concurrencycontrol.CloseWaveletChannelRequest)
  3540. }
  3541. static {
  3542. defaultInstance = new CloseWaveletChannelRequest(true);
  3543. org.waveprotocol.wave.concurrencycontrol.ClientServer.internalForceInit();
  3544. defaultInstance.initFields();
  3545. }
  3546. // @@protoc_insertion_point(class_scope:concurrencycontrol.CloseWaveletChannelRequest)
  3547. }
  3548. public static final class WaveletUpdate extends
  3549. com.google.protobuf.GeneratedMessage {
  3550. // Use WaveletUpdate.newBuilder() to construct.
  3551. private WaveletUpdate() {
  3552. initFields();
  3553. }
  3554. private WaveletUpdate(boolean noInit) {}
  3555. private static final WaveletUpdate defaultInstance;
  3556. public static WaveletUpdate getDefaultInstance() {
  3557. return defaultInstance;
  3558. }
  3559. public WaveletUpdate getDefaultInstanceForType() {
  3560. return defaultInstance;
  3561. }
  3562. public static final com.google.protobuf.Descriptors.Descriptor
  3563. getDescriptor() {
  3564. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_WaveletUpdate_descriptor;
  3565. }
  3566. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  3567. internalGetFieldAccessorTable() {
  3568. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_WaveletUpdate_fieldAccessorTable;
  3569. }
  3570. // required .federation.ProtocolWaveletDelta delta = 1;
  3571. public static final int DELTA_FIELD_NUMBER = 1;
  3572. private boolean hasDelta;
  3573. private org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta delta_;
  3574. public boolean hasDelta() { return hasDelta; }
  3575. public org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta getDelta() { return delta_; }
  3576. // required .federation.ProtocolHashedVersion resultingVersion = 2;
  3577. public static final int RESULTINGVERSION_FIELD_NUMBER = 2;
  3578. private boolean hasResultingVersion;
  3579. private org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion resultingVersion_;
  3580. public boolean hasResultingVersion() { return hasResultingVersion; }
  3581. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getResultingVersion() { return resultingVersion_; }
  3582. // required int64 applicationTimpstamp = 3;
  3583. public static final int APPLICATIONTIMPSTAMP_FIELD_NUMBER = 3;
  3584. private boolean hasApplicationTimpstamp;
  3585. private long applicationTimpstamp_ = 0L;
  3586. public boolean hasApplicationTimpstamp() { return hasApplicationTimpstamp; }
  3587. public long getApplicationTimpstamp() { return applicationTimpstamp_; }
  3588. private void initFields() {
  3589. delta_ = org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.getDefaultInstance();
  3590. resultingVersion_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  3591. }
  3592. public final boolean isInitialized() {
  3593. if (!hasDelta) return false;
  3594. if (!hasResultingVersion) return false;
  3595. if (!hasApplicationTimpstamp) return false;
  3596. if (!getDelta().isInitialized()) return false;
  3597. if (!getResultingVersion().isInitialized()) return false;
  3598. return true;
  3599. }
  3600. public void writeTo(com.google.protobuf.CodedOutputStream output)
  3601. throws java.io.IOException {
  3602. getSerializedSize();
  3603. if (hasDelta()) {
  3604. output.writeMessage(1, getDelta());
  3605. }
  3606. if (hasResultingVersion()) {
  3607. output.writeMessage(2, getResultingVersion());
  3608. }
  3609. if (hasApplicationTimpstamp()) {
  3610. output.writeInt64(3, getApplicationTimpstamp());
  3611. }
  3612. getUnknownFields().writeTo(output);
  3613. }
  3614. private int memoizedSerializedSize = -1;
  3615. public int getSerializedSize() {
  3616. int size = memoizedSerializedSize;
  3617. if (size != -1) return size;
  3618. size = 0;
  3619. if (hasDelta()) {
  3620. size += com.google.protobuf.CodedOutputStream
  3621. .computeMessageSize(1, getDelta());
  3622. }
  3623. if (hasResultingVersion()) {
  3624. size += com.google.protobuf.CodedOutputStream
  3625. .computeMessageSize(2, getResultingVersion());
  3626. }
  3627. if (hasApplicationTimpstamp()) {
  3628. size += com.google.protobuf.CodedOutputStream
  3629. .computeInt64Size(3, getApplicationTimpstamp());
  3630. }
  3631. size += getUnknownFields().getSerializedSize();
  3632. memoizedSerializedSize = size;
  3633. return size;
  3634. }
  3635. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate parseFrom(
  3636. com.google.protobuf.ByteString data)
  3637. throws com.google.protobuf.InvalidProtocolBufferException {
  3638. return newBuilder().mergeFrom(data).buildParsed();
  3639. }
  3640. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate parseFrom(
  3641. com.google.protobuf.ByteString data,
  3642. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3643. throws com.google.protobuf.InvalidProtocolBufferException {
  3644. return newBuilder().mergeFrom(data, extensionRegistry)
  3645. .buildParsed();
  3646. }
  3647. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate parseFrom(byte[] data)
  3648. throws com.google.protobuf.InvalidProtocolBufferException {
  3649. return newBuilder().mergeFrom(data).buildParsed();
  3650. }
  3651. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate parseFrom(
  3652. byte[] data,
  3653. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3654. throws com.google.protobuf.InvalidProtocolBufferException {
  3655. return newBuilder().mergeFrom(data, extensionRegistry)
  3656. .buildParsed();
  3657. }
  3658. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate parseFrom(java.io.InputStream input)
  3659. throws java.io.IOException {
  3660. return newBuilder().mergeFrom(input).buildParsed();
  3661. }
  3662. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate parseFrom(
  3663. java.io.InputStream input,
  3664. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3665. throws java.io.IOException {
  3666. return newBuilder().mergeFrom(input, extensionRegistry)
  3667. .buildParsed();
  3668. }
  3669. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate parseDelimitedFrom(java.io.InputStream input)
  3670. throws java.io.IOException {
  3671. Builder builder = newBuilder();
  3672. if (builder.mergeDelimitedFrom(input)) {
  3673. return builder.buildParsed();
  3674. } else {
  3675. return null;
  3676. }
  3677. }
  3678. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate parseDelimitedFrom(
  3679. java.io.InputStream input,
  3680. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3681. throws java.io.IOException {
  3682. Builder builder = newBuilder();
  3683. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  3684. return builder.buildParsed();
  3685. } else {
  3686. return null;
  3687. }
  3688. }
  3689. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate parseFrom(
  3690. com.google.protobuf.CodedInputStream input)
  3691. throws java.io.IOException {
  3692. return newBuilder().mergeFrom(input).buildParsed();
  3693. }
  3694. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate parseFrom(
  3695. com.google.protobuf.CodedInputStream input,
  3696. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3697. throws java.io.IOException {
  3698. return newBuilder().mergeFrom(input, extensionRegistry)
  3699. .buildParsed();
  3700. }
  3701. public static Builder newBuilder() { return Builder.create(); }
  3702. public Builder newBuilderForType() { return newBuilder(); }
  3703. public static Builder newBuilder(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate prototype) {
  3704. return newBuilder().mergeFrom(prototype);
  3705. }
  3706. public Builder toBuilder() { return newBuilder(this); }
  3707. public static final class Builder extends
  3708. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  3709. private org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate result;
  3710. // Construct using org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate.newBuilder()
  3711. private Builder() {}
  3712. private static Builder create() {
  3713. Builder builder = new Builder();
  3714. builder.result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate();
  3715. return builder;
  3716. }
  3717. protected org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate internalGetResult() {
  3718. return result;
  3719. }
  3720. public Builder clear() {
  3721. if (result == null) {
  3722. throw new IllegalStateException(
  3723. "Cannot call clear() after build().");
  3724. }
  3725. result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate();
  3726. return this;
  3727. }
  3728. public Builder clone() {
  3729. return create().mergeFrom(result);
  3730. }
  3731. public com.google.protobuf.Descriptors.Descriptor
  3732. getDescriptorForType() {
  3733. return org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate.getDescriptor();
  3734. }
  3735. public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate getDefaultInstanceForType() {
  3736. return org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate.getDefaultInstance();
  3737. }
  3738. public boolean isInitialized() {
  3739. return result.isInitialized();
  3740. }
  3741. public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate build() {
  3742. if (result != null && !isInitialized()) {
  3743. throw newUninitializedMessageException(result);
  3744. }
  3745. return buildPartial();
  3746. }
  3747. private org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate buildParsed()
  3748. throws com.google.protobuf.InvalidProtocolBufferException {
  3749. if (!isInitialized()) {
  3750. throw newUninitializedMessageException(
  3751. result).asInvalidProtocolBufferException();
  3752. }
  3753. return buildPartial();
  3754. }
  3755. public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate buildPartial() {
  3756. if (result == null) {
  3757. throw new IllegalStateException(
  3758. "build() has already been called on this Builder.");
  3759. }
  3760. org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate returnMe = result;
  3761. result = null;
  3762. return returnMe;
  3763. }
  3764. public Builder mergeFrom(com.google.protobuf.Message other) {
  3765. if (other instanceof org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate) {
  3766. return mergeFrom((org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate)other);
  3767. } else {
  3768. super.mergeFrom(other);
  3769. return this;
  3770. }
  3771. }
  3772. public Builder mergeFrom(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate other) {
  3773. if (other == org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate.getDefaultInstance()) return this;
  3774. if (other.hasDelta()) {
  3775. mergeDelta(other.getDelta());
  3776. }
  3777. if (other.hasResultingVersion()) {
  3778. mergeResultingVersion(other.getResultingVersion());
  3779. }
  3780. if (other.hasApplicationTimpstamp()) {
  3781. setApplicationTimpstamp(other.getApplicationTimpstamp());
  3782. }
  3783. this.mergeUnknownFields(other.getUnknownFields());
  3784. return this;
  3785. }
  3786. public Builder mergeFrom(
  3787. com.google.protobuf.CodedInputStream input,
  3788. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3789. throws java.io.IOException {
  3790. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  3791. com.google.protobuf.UnknownFieldSet.newBuilder(
  3792. this.getUnknownFields());
  3793. while (true) {
  3794. int tag = input.readTag();
  3795. switch (tag) {
  3796. case 0:
  3797. this.setUnknownFields(unknownFields.build());
  3798. return this;
  3799. default: {
  3800. if (!parseUnknownField(input, unknownFields,
  3801. extensionRegistry, tag)) {
  3802. this.setUnknownFields(unknownFields.build());
  3803. return this;
  3804. }
  3805. break;
  3806. }
  3807. case 10: {
  3808. org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.newBuilder();
  3809. if (hasDelta()) {
  3810. subBuilder.mergeFrom(getDelta());
  3811. }
  3812. input.readMessage(subBuilder, extensionRegistry);
  3813. setDelta(subBuilder.buildPartial());
  3814. break;
  3815. }
  3816. case 18: {
  3817. org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder();
  3818. if (hasResultingVersion()) {
  3819. subBuilder.mergeFrom(getResultingVersion());
  3820. }
  3821. input.readMessage(subBuilder, extensionRegistry);
  3822. setResultingVersion(subBuilder.buildPartial());
  3823. break;
  3824. }
  3825. case 24: {
  3826. setApplicationTimpstamp(input.readInt64());
  3827. break;
  3828. }
  3829. }
  3830. }
  3831. }
  3832. // required .federation.ProtocolWaveletDelta delta = 1;
  3833. public boolean hasDelta() {
  3834. return result.hasDelta();
  3835. }
  3836. public org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta getDelta() {
  3837. return result.getDelta();
  3838. }
  3839. public Builder setDelta(org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta value) {
  3840. if (value == null) {
  3841. throw new NullPointerException();
  3842. }
  3843. result.hasDelta = true;
  3844. result.delta_ = value;
  3845. return this;
  3846. }
  3847. public Builder setDelta(org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.Builder builderForValue) {
  3848. result.hasDelta = true;
  3849. result.delta_ = builderForValue.build();
  3850. return this;
  3851. }
  3852. public Builder mergeDelta(org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta value) {
  3853. if (result.hasDelta() &&
  3854. result.delta_ != org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.getDefaultInstance()) {
  3855. result.delta_ =
  3856. org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.newBuilder(result.delta_).mergeFrom(value).buildPartial();
  3857. } else {
  3858. result.delta_ = value;
  3859. }
  3860. result.hasDelta = true;
  3861. return this;
  3862. }
  3863. public Builder clearDelta() {
  3864. result.hasDelta = false;
  3865. result.delta_ = org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.getDefaultInstance();
  3866. return this;
  3867. }
  3868. // required .federation.ProtocolHashedVersion resultingVersion = 2;
  3869. public boolean hasResultingVersion() {
  3870. return result.hasResultingVersion();
  3871. }
  3872. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getResultingVersion() {
  3873. return result.getResultingVersion();
  3874. }
  3875. public Builder setResultingVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
  3876. if (value == null) {
  3877. throw new NullPointerException();
  3878. }
  3879. result.hasResultingVersion = true;
  3880. result.resultingVersion_ = value;
  3881. return this;
  3882. }
  3883. public Builder setResultingVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder builderForValue) {
  3884. result.hasResultingVersion = true;
  3885. result.resultingVersion_ = builderForValue.build();
  3886. return this;
  3887. }
  3888. public Builder mergeResultingVersion(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
  3889. if (result.hasResultingVersion() &&
  3890. result.resultingVersion_ != org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance()) {
  3891. result.resultingVersion_ =
  3892. org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder(result.resultingVersion_).mergeFrom(value).buildPartial();
  3893. } else {
  3894. result.resultingVersion_ = value;
  3895. }
  3896. result.hasResultingVersion = true;
  3897. return this;
  3898. }
  3899. public Builder clearResultingVersion() {
  3900. result.hasResultingVersion = false;
  3901. result.resultingVersion_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  3902. return this;
  3903. }
  3904. // required int64 applicationTimpstamp = 3;
  3905. public boolean hasApplicationTimpstamp() {
  3906. return result.hasApplicationTimpstamp();
  3907. }
  3908. public long getApplicationTimpstamp() {
  3909. return result.getApplicationTimpstamp();
  3910. }
  3911. public Builder setApplicationTimpstamp(long value) {
  3912. result.hasApplicationTimpstamp = true;
  3913. result.applicationTimpstamp_ = value;
  3914. return this;
  3915. }
  3916. public Builder clearApplicationTimpstamp() {
  3917. result.hasApplicationTimpstamp = false;
  3918. result.applicationTimpstamp_ = 0L;
  3919. return this;
  3920. }
  3921. // @@protoc_insertion_point(builder_scope:concurrencycontrol.WaveletUpdate)
  3922. }
  3923. static {
  3924. defaultInstance = new WaveletUpdate(true);
  3925. org.waveprotocol.wave.concurrencycontrol.ClientServer.internalForceInit();
  3926. defaultInstance.initFields();
  3927. }
  3928. // @@protoc_insertion_point(class_scope:concurrencycontrol.WaveletUpdate)
  3929. }
  3930. public static final class WaveletChannelTerminator extends
  3931. com.google.protobuf.GeneratedMessage {
  3932. // Use WaveletChannelTerminator.newBuilder() to construct.
  3933. private WaveletChannelTerminator() {
  3934. initFields();
  3935. }
  3936. private WaveletChannelTerminator(boolean noInit) {}
  3937. private static final WaveletChannelTerminator defaultInstance;
  3938. public static WaveletChannelTerminator getDefaultInstance() {
  3939. return defaultInstance;
  3940. }
  3941. public WaveletChannelTerminator getDefaultInstanceForType() {
  3942. return defaultInstance;
  3943. }
  3944. public static final com.google.protobuf.Descriptors.Descriptor
  3945. getDescriptor() {
  3946. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_WaveletChannelTerminator_descriptor;
  3947. }
  3948. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  3949. internalGetFieldAccessorTable() {
  3950. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_WaveletChannelTerminator_fieldAccessorTable;
  3951. }
  3952. // required .concurrencycontrol.ResponseStatus status = 1;
  3953. public static final int STATUS_FIELD_NUMBER = 1;
  3954. private boolean hasStatus;
  3955. private org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus status_;
  3956. public boolean hasStatus() { return hasStatus; }
  3957. public org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus getStatus() { return status_; }
  3958. private void initFields() {
  3959. status_ = org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.getDefaultInstance();
  3960. }
  3961. public final boolean isInitialized() {
  3962. if (!hasStatus) return false;
  3963. if (!getStatus().isInitialized()) return false;
  3964. return true;
  3965. }
  3966. public void writeTo(com.google.protobuf.CodedOutputStream output)
  3967. throws java.io.IOException {
  3968. getSerializedSize();
  3969. if (hasStatus()) {
  3970. output.writeMessage(1, getStatus());
  3971. }
  3972. getUnknownFields().writeTo(output);
  3973. }
  3974. private int memoizedSerializedSize = -1;
  3975. public int getSerializedSize() {
  3976. int size = memoizedSerializedSize;
  3977. if (size != -1) return size;
  3978. size = 0;
  3979. if (hasStatus()) {
  3980. size += com.google.protobuf.CodedOutputStream
  3981. .computeMessageSize(1, getStatus());
  3982. }
  3983. size += getUnknownFields().getSerializedSize();
  3984. memoizedSerializedSize = size;
  3985. return size;
  3986. }
  3987. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator parseFrom(
  3988. com.google.protobuf.ByteString data)
  3989. throws com.google.protobuf.InvalidProtocolBufferException {
  3990. return newBuilder().mergeFrom(data).buildParsed();
  3991. }
  3992. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator parseFrom(
  3993. com.google.protobuf.ByteString data,
  3994. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3995. throws com.google.protobuf.InvalidProtocolBufferException {
  3996. return newBuilder().mergeFrom(data, extensionRegistry)
  3997. .buildParsed();
  3998. }
  3999. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator parseFrom(byte[] data)
  4000. throws com.google.protobuf.InvalidProtocolBufferException {
  4001. return newBuilder().mergeFrom(data).buildParsed();
  4002. }
  4003. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator parseFrom(
  4004. byte[] data,
  4005. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4006. throws com.google.protobuf.InvalidProtocolBufferException {
  4007. return newBuilder().mergeFrom(data, extensionRegistry)
  4008. .buildParsed();
  4009. }
  4010. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator parseFrom(java.io.InputStream input)
  4011. throws java.io.IOException {
  4012. return newBuilder().mergeFrom(input).buildParsed();
  4013. }
  4014. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator parseFrom(
  4015. java.io.InputStream input,
  4016. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4017. throws java.io.IOException {
  4018. return newBuilder().mergeFrom(input, extensionRegistry)
  4019. .buildParsed();
  4020. }
  4021. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator parseDelimitedFrom(java.io.InputStream input)
  4022. throws java.io.IOException {
  4023. Builder builder = newBuilder();
  4024. if (builder.mergeDelimitedFrom(input)) {
  4025. return builder.buildParsed();
  4026. } else {
  4027. return null;
  4028. }
  4029. }
  4030. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator parseDelimitedFrom(
  4031. java.io.InputStream input,
  4032. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4033. throws java.io.IOException {
  4034. Builder builder = newBuilder();
  4035. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  4036. return builder.buildParsed();
  4037. } else {
  4038. return null;
  4039. }
  4040. }
  4041. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator parseFrom(
  4042. com.google.protobuf.CodedInputStream input)
  4043. throws java.io.IOException {
  4044. return newBuilder().mergeFrom(input).buildParsed();
  4045. }
  4046. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator parseFrom(
  4047. com.google.protobuf.CodedInputStream input,
  4048. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4049. throws java.io.IOException {
  4050. return newBuilder().mergeFrom(input, extensionRegistry)
  4051. .buildParsed();
  4052. }
  4053. public static Builder newBuilder() { return Builder.create(); }
  4054. public Builder newBuilderForType() { return newBuilder(); }
  4055. public static Builder newBuilder(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator prototype) {
  4056. return newBuilder().mergeFrom(prototype);
  4057. }
  4058. public Builder toBuilder() { return newBuilder(this); }
  4059. public static final class Builder extends
  4060. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  4061. private org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator result;
  4062. // Construct using org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator.newBuilder()
  4063. private Builder() {}
  4064. private static Builder create() {
  4065. Builder builder = new Builder();
  4066. builder.result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator();
  4067. return builder;
  4068. }
  4069. protected org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator internalGetResult() {
  4070. return result;
  4071. }
  4072. public Builder clear() {
  4073. if (result == null) {
  4074. throw new IllegalStateException(
  4075. "Cannot call clear() after build().");
  4076. }
  4077. result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator();
  4078. return this;
  4079. }
  4080. public Builder clone() {
  4081. return create().mergeFrom(result);
  4082. }
  4083. public com.google.protobuf.Descriptors.Descriptor
  4084. getDescriptorForType() {
  4085. return org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator.getDescriptor();
  4086. }
  4087. public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator getDefaultInstanceForType() {
  4088. return org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator.getDefaultInstance();
  4089. }
  4090. public boolean isInitialized() {
  4091. return result.isInitialized();
  4092. }
  4093. public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator build() {
  4094. if (result != null && !isInitialized()) {
  4095. throw newUninitializedMessageException(result);
  4096. }
  4097. return buildPartial();
  4098. }
  4099. private org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator buildParsed()
  4100. throws com.google.protobuf.InvalidProtocolBufferException {
  4101. if (!isInitialized()) {
  4102. throw newUninitializedMessageException(
  4103. result).asInvalidProtocolBufferException();
  4104. }
  4105. return buildPartial();
  4106. }
  4107. public org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator buildPartial() {
  4108. if (result == null) {
  4109. throw new IllegalStateException(
  4110. "build() has already been called on this Builder.");
  4111. }
  4112. org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator returnMe = result;
  4113. result = null;
  4114. return returnMe;
  4115. }
  4116. public Builder mergeFrom(com.google.protobuf.Message other) {
  4117. if (other instanceof org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator) {
  4118. return mergeFrom((org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator)other);
  4119. } else {
  4120. super.mergeFrom(other);
  4121. return this;
  4122. }
  4123. }
  4124. public Builder mergeFrom(org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator other) {
  4125. if (other == org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator.getDefaultInstance()) return this;
  4126. if (other.hasStatus()) {
  4127. mergeStatus(other.getStatus());
  4128. }
  4129. this.mergeUnknownFields(other.getUnknownFields());
  4130. return this;
  4131. }
  4132. public Builder mergeFrom(
  4133. com.google.protobuf.CodedInputStream input,
  4134. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4135. throws java.io.IOException {
  4136. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  4137. com.google.protobuf.UnknownFieldSet.newBuilder(
  4138. this.getUnknownFields());
  4139. while (true) {
  4140. int tag = input.readTag();
  4141. switch (tag) {
  4142. case 0:
  4143. this.setUnknownFields(unknownFields.build());
  4144. return this;
  4145. default: {
  4146. if (!parseUnknownField(input, unknownFields,
  4147. extensionRegistry, tag)) {
  4148. this.setUnknownFields(unknownFields.build());
  4149. return this;
  4150. }
  4151. break;
  4152. }
  4153. case 10: {
  4154. org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.Builder subBuilder = org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.newBuilder();
  4155. if (hasStatus()) {
  4156. subBuilder.mergeFrom(getStatus());
  4157. }
  4158. input.readMessage(subBuilder, extensionRegistry);
  4159. setStatus(subBuilder.buildPartial());
  4160. break;
  4161. }
  4162. }
  4163. }
  4164. }
  4165. // required .concurrencycontrol.ResponseStatus status = 1;
  4166. public boolean hasStatus() {
  4167. return result.hasStatus();
  4168. }
  4169. public org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus getStatus() {
  4170. return result.getStatus();
  4171. }
  4172. public Builder setStatus(org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus value) {
  4173. if (value == null) {
  4174. throw new NullPointerException();
  4175. }
  4176. result.hasStatus = true;
  4177. result.status_ = value;
  4178. return this;
  4179. }
  4180. public Builder setStatus(org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.Builder builderForValue) {
  4181. result.hasStatus = true;
  4182. result.status_ = builderForValue.build();
  4183. return this;
  4184. }
  4185. public Builder mergeStatus(org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus value) {
  4186. if (result.hasStatus() &&
  4187. result.status_ != org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.getDefaultInstance()) {
  4188. result.status_ =
  4189. org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.newBuilder(result.status_).mergeFrom(value).buildPartial();
  4190. } else {
  4191. result.status_ = value;
  4192. }
  4193. result.hasStatus = true;
  4194. return this;
  4195. }
  4196. public Builder clearStatus() {
  4197. result.hasStatus = false;
  4198. result.status_ = org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.getDefaultInstance();
  4199. return this;
  4200. }
  4201. // @@protoc_insertion_point(builder_scope:concurrencycontrol.WaveletChannelTerminator)
  4202. }
  4203. static {
  4204. defaultInstance = new WaveletChannelTerminator(true);
  4205. org.waveprotocol.wave.concurrencycontrol.ClientServer.internalForceInit();
  4206. defaultInstance.initFields();
  4207. }
  4208. // @@protoc_insertion_point(class_scope:concurrencycontrol.WaveletChannelTerminator)
  4209. }
  4210. public static final class SubmitDeltaRequest extends
  4211. com.google.protobuf.GeneratedMessage {
  4212. // Use SubmitDeltaRequest.newBuilder() to construct.
  4213. private SubmitDeltaRequest() {
  4214. initFields();
  4215. }
  4216. private SubmitDeltaRequest(boolean noInit) {}
  4217. private static final SubmitDeltaRequest defaultInstance;
  4218. public static SubmitDeltaRequest getDefaultInstance() {
  4219. return defaultInstance;
  4220. }
  4221. public SubmitDeltaRequest getDefaultInstanceForType() {
  4222. return defaultInstance;
  4223. }
  4224. public static final com.google.protobuf.Descriptors.Descriptor
  4225. getDescriptor() {
  4226. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_SubmitDeltaRequest_descriptor;
  4227. }
  4228. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  4229. internalGetFieldAccessorTable() {
  4230. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_SubmitDeltaRequest_fieldAccessorTable;
  4231. }
  4232. // required string waveId = 1;
  4233. public static final int WAVEID_FIELD_NUMBER = 1;
  4234. private boolean hasWaveId;
  4235. private java.lang.String waveId_ = "";
  4236. public boolean hasWaveId() { return hasWaveId; }
  4237. public java.lang.String getWaveId() { return waveId_; }
  4238. // required string waveletId = 2;
  4239. public static final int WAVELETID_FIELD_NUMBER = 2;
  4240. private boolean hasWaveletId;
  4241. private java.lang.String waveletId_ = "";
  4242. public boolean hasWaveletId() { return hasWaveletId; }
  4243. public java.lang.String getWaveletId() { return waveletId_; }
  4244. // required .federation.ProtocolWaveletDelta delta = 3;
  4245. public static final int DELTA_FIELD_NUMBER = 3;
  4246. private boolean hasDelta;
  4247. private org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta delta_;
  4248. public boolean hasDelta() { return hasDelta; }
  4249. public org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta getDelta() { return delta_; }
  4250. // required string channelId = 4;
  4251. public static final int CHANNELID_FIELD_NUMBER = 4;
  4252. private boolean hasChannelId;
  4253. private java.lang.String channelId_ = "";
  4254. public boolean hasChannelId() { return hasChannelId; }
  4255. public java.lang.String getChannelId() { return channelId_; }
  4256. private void initFields() {
  4257. delta_ = org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.getDefaultInstance();
  4258. }
  4259. public final boolean isInitialized() {
  4260. if (!hasWaveId) return false;
  4261. if (!hasWaveletId) return false;
  4262. if (!hasDelta) return false;
  4263. if (!hasChannelId) return false;
  4264. if (!getDelta().isInitialized()) return false;
  4265. return true;
  4266. }
  4267. public void writeTo(com.google.protobuf.CodedOutputStream output)
  4268. throws java.io.IOException {
  4269. getSerializedSize();
  4270. if (hasWaveId()) {
  4271. output.writeString(1, getWaveId());
  4272. }
  4273. if (hasWaveletId()) {
  4274. output.writeString(2, getWaveletId());
  4275. }
  4276. if (hasDelta()) {
  4277. output.writeMessage(3, getDelta());
  4278. }
  4279. if (hasChannelId()) {
  4280. output.writeString(4, getChannelId());
  4281. }
  4282. getUnknownFields().writeTo(output);
  4283. }
  4284. private int memoizedSerializedSize = -1;
  4285. public int getSerializedSize() {
  4286. int size = memoizedSerializedSize;
  4287. if (size != -1) return size;
  4288. size = 0;
  4289. if (hasWaveId()) {
  4290. size += com.google.protobuf.CodedOutputStream
  4291. .computeStringSize(1, getWaveId());
  4292. }
  4293. if (hasWaveletId()) {
  4294. size += com.google.protobuf.CodedOutputStream
  4295. .computeStringSize(2, getWaveletId());
  4296. }
  4297. if (hasDelta()) {
  4298. size += com.google.protobuf.CodedOutputStream
  4299. .computeMessageSize(3, getDelta());
  4300. }
  4301. if (hasChannelId()) {
  4302. size += com.google.protobuf.CodedOutputStream
  4303. .computeStringSize(4, getChannelId());
  4304. }
  4305. size += getUnknownFields().getSerializedSize();
  4306. memoizedSerializedSize = size;
  4307. return size;
  4308. }
  4309. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest parseFrom(
  4310. com.google.protobuf.ByteString data)
  4311. throws com.google.protobuf.InvalidProtocolBufferException {
  4312. return newBuilder().mergeFrom(data).buildParsed();
  4313. }
  4314. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest parseFrom(
  4315. com.google.protobuf.ByteString data,
  4316. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4317. throws com.google.protobuf.InvalidProtocolBufferException {
  4318. return newBuilder().mergeFrom(data, extensionRegistry)
  4319. .buildParsed();
  4320. }
  4321. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest parseFrom(byte[] data)
  4322. throws com.google.protobuf.InvalidProtocolBufferException {
  4323. return newBuilder().mergeFrom(data).buildParsed();
  4324. }
  4325. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest parseFrom(
  4326. byte[] data,
  4327. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4328. throws com.google.protobuf.InvalidProtocolBufferException {
  4329. return newBuilder().mergeFrom(data, extensionRegistry)
  4330. .buildParsed();
  4331. }
  4332. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest parseFrom(java.io.InputStream input)
  4333. throws java.io.IOException {
  4334. return newBuilder().mergeFrom(input).buildParsed();
  4335. }
  4336. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest parseFrom(
  4337. java.io.InputStream input,
  4338. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4339. throws java.io.IOException {
  4340. return newBuilder().mergeFrom(input, extensionRegistry)
  4341. .buildParsed();
  4342. }
  4343. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest parseDelimitedFrom(java.io.InputStream input)
  4344. throws java.io.IOException {
  4345. Builder builder = newBuilder();
  4346. if (builder.mergeDelimitedFrom(input)) {
  4347. return builder.buildParsed();
  4348. } else {
  4349. return null;
  4350. }
  4351. }
  4352. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest parseDelimitedFrom(
  4353. java.io.InputStream input,
  4354. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4355. throws java.io.IOException {
  4356. Builder builder = newBuilder();
  4357. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  4358. return builder.buildParsed();
  4359. } else {
  4360. return null;
  4361. }
  4362. }
  4363. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest parseFrom(
  4364. com.google.protobuf.CodedInputStream input)
  4365. throws java.io.IOException {
  4366. return newBuilder().mergeFrom(input).buildParsed();
  4367. }
  4368. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest parseFrom(
  4369. com.google.protobuf.CodedInputStream input,
  4370. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4371. throws java.io.IOException {
  4372. return newBuilder().mergeFrom(input, extensionRegistry)
  4373. .buildParsed();
  4374. }
  4375. public static Builder newBuilder() { return Builder.create(); }
  4376. public Builder newBuilderForType() { return newBuilder(); }
  4377. public static Builder newBuilder(org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest prototype) {
  4378. return newBuilder().mergeFrom(prototype);
  4379. }
  4380. public Builder toBuilder() { return newBuilder(this); }
  4381. public static final class Builder extends
  4382. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  4383. private org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest result;
  4384. // Construct using org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest.newBuilder()
  4385. private Builder() {}
  4386. private static Builder create() {
  4387. Builder builder = new Builder();
  4388. builder.result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest();
  4389. return builder;
  4390. }
  4391. protected org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest internalGetResult() {
  4392. return result;
  4393. }
  4394. public Builder clear() {
  4395. if (result == null) {
  4396. throw new IllegalStateException(
  4397. "Cannot call clear() after build().");
  4398. }
  4399. result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest();
  4400. return this;
  4401. }
  4402. public Builder clone() {
  4403. return create().mergeFrom(result);
  4404. }
  4405. public com.google.protobuf.Descriptors.Descriptor
  4406. getDescriptorForType() {
  4407. return org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest.getDescriptor();
  4408. }
  4409. public org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest getDefaultInstanceForType() {
  4410. return org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest.getDefaultInstance();
  4411. }
  4412. public boolean isInitialized() {
  4413. return result.isInitialized();
  4414. }
  4415. public org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest build() {
  4416. if (result != null && !isInitialized()) {
  4417. throw newUninitializedMessageException(result);
  4418. }
  4419. return buildPartial();
  4420. }
  4421. private org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest buildParsed()
  4422. throws com.google.protobuf.InvalidProtocolBufferException {
  4423. if (!isInitialized()) {
  4424. throw newUninitializedMessageException(
  4425. result).asInvalidProtocolBufferException();
  4426. }
  4427. return buildPartial();
  4428. }
  4429. public org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest buildPartial() {
  4430. if (result == null) {
  4431. throw new IllegalStateException(
  4432. "build() has already been called on this Builder.");
  4433. }
  4434. org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest returnMe = result;
  4435. result = null;
  4436. return returnMe;
  4437. }
  4438. public Builder mergeFrom(com.google.protobuf.Message other) {
  4439. if (other instanceof org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest) {
  4440. return mergeFrom((org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest)other);
  4441. } else {
  4442. super.mergeFrom(other);
  4443. return this;
  4444. }
  4445. }
  4446. public Builder mergeFrom(org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest other) {
  4447. if (other == org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest.getDefaultInstance()) return this;
  4448. if (other.hasWaveId()) {
  4449. setWaveId(other.getWaveId());
  4450. }
  4451. if (other.hasWaveletId()) {
  4452. setWaveletId(other.getWaveletId());
  4453. }
  4454. if (other.hasDelta()) {
  4455. mergeDelta(other.getDelta());
  4456. }
  4457. if (other.hasChannelId()) {
  4458. setChannelId(other.getChannelId());
  4459. }
  4460. this.mergeUnknownFields(other.getUnknownFields());
  4461. return this;
  4462. }
  4463. public Builder mergeFrom(
  4464. com.google.protobuf.CodedInputStream input,
  4465. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4466. throws java.io.IOException {
  4467. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  4468. com.google.protobuf.UnknownFieldSet.newBuilder(
  4469. this.getUnknownFields());
  4470. while (true) {
  4471. int tag = input.readTag();
  4472. switch (tag) {
  4473. case 0:
  4474. this.setUnknownFields(unknownFields.build());
  4475. return this;
  4476. default: {
  4477. if (!parseUnknownField(input, unknownFields,
  4478. extensionRegistry, tag)) {
  4479. this.setUnknownFields(unknownFields.build());
  4480. return this;
  4481. }
  4482. break;
  4483. }
  4484. case 10: {
  4485. setWaveId(input.readString());
  4486. break;
  4487. }
  4488. case 18: {
  4489. setWaveletId(input.readString());
  4490. break;
  4491. }
  4492. case 26: {
  4493. org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.newBuilder();
  4494. if (hasDelta()) {
  4495. subBuilder.mergeFrom(getDelta());
  4496. }
  4497. input.readMessage(subBuilder, extensionRegistry);
  4498. setDelta(subBuilder.buildPartial());
  4499. break;
  4500. }
  4501. case 34: {
  4502. setChannelId(input.readString());
  4503. break;
  4504. }
  4505. }
  4506. }
  4507. }
  4508. // required string waveId = 1;
  4509. public boolean hasWaveId() {
  4510. return result.hasWaveId();
  4511. }
  4512. public java.lang.String getWaveId() {
  4513. return result.getWaveId();
  4514. }
  4515. public Builder setWaveId(java.lang.String value) {
  4516. if (value == null) {
  4517. throw new NullPointerException();
  4518. }
  4519. result.hasWaveId = true;
  4520. result.waveId_ = value;
  4521. return this;
  4522. }
  4523. public Builder clearWaveId() {
  4524. result.hasWaveId = false;
  4525. result.waveId_ = getDefaultInstance().getWaveId();
  4526. return this;
  4527. }
  4528. // required string waveletId = 2;
  4529. public boolean hasWaveletId() {
  4530. return result.hasWaveletId();
  4531. }
  4532. public java.lang.String getWaveletId() {
  4533. return result.getWaveletId();
  4534. }
  4535. public Builder setWaveletId(java.lang.String value) {
  4536. if (value == null) {
  4537. throw new NullPointerException();
  4538. }
  4539. result.hasWaveletId = true;
  4540. result.waveletId_ = value;
  4541. return this;
  4542. }
  4543. public Builder clearWaveletId() {
  4544. result.hasWaveletId = false;
  4545. result.waveletId_ = getDefaultInstance().getWaveletId();
  4546. return this;
  4547. }
  4548. // required .federation.ProtocolWaveletDelta delta = 3;
  4549. public boolean hasDelta() {
  4550. return result.hasDelta();
  4551. }
  4552. public org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta getDelta() {
  4553. return result.getDelta();
  4554. }
  4555. public Builder setDelta(org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta value) {
  4556. if (value == null) {
  4557. throw new NullPointerException();
  4558. }
  4559. result.hasDelta = true;
  4560. result.delta_ = value;
  4561. return this;
  4562. }
  4563. public Builder setDelta(org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.Builder builderForValue) {
  4564. result.hasDelta = true;
  4565. result.delta_ = builderForValue.build();
  4566. return this;
  4567. }
  4568. public Builder mergeDelta(org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta value) {
  4569. if (result.hasDelta() &&
  4570. result.delta_ != org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.getDefaultInstance()) {
  4571. result.delta_ =
  4572. org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.newBuilder(result.delta_).mergeFrom(value).buildPartial();
  4573. } else {
  4574. result.delta_ = value;
  4575. }
  4576. result.hasDelta = true;
  4577. return this;
  4578. }
  4579. public Builder clearDelta() {
  4580. result.hasDelta = false;
  4581. result.delta_ = org.waveprotocol.wave.federation.Proto.ProtocolWaveletDelta.getDefaultInstance();
  4582. return this;
  4583. }
  4584. // required string channelId = 4;
  4585. public boolean hasChannelId() {
  4586. return result.hasChannelId();
  4587. }
  4588. public java.lang.String getChannelId() {
  4589. return result.getChannelId();
  4590. }
  4591. public Builder setChannelId(java.lang.String value) {
  4592. if (value == null) {
  4593. throw new NullPointerException();
  4594. }
  4595. result.hasChannelId = true;
  4596. result.channelId_ = value;
  4597. return this;
  4598. }
  4599. public Builder clearChannelId() {
  4600. result.hasChannelId = false;
  4601. result.channelId_ = getDefaultInstance().getChannelId();
  4602. return this;
  4603. }
  4604. // @@protoc_insertion_point(builder_scope:concurrencycontrol.SubmitDeltaRequest)
  4605. }
  4606. static {
  4607. defaultInstance = new SubmitDeltaRequest(true);
  4608. org.waveprotocol.wave.concurrencycontrol.ClientServer.internalForceInit();
  4609. defaultInstance.initFields();
  4610. }
  4611. // @@protoc_insertion_point(class_scope:concurrencycontrol.SubmitDeltaRequest)
  4612. }
  4613. public static final class SubmitDeltaResponse extends
  4614. com.google.protobuf.GeneratedMessage {
  4615. // Use SubmitDeltaResponse.newBuilder() to construct.
  4616. private SubmitDeltaResponse() {
  4617. initFields();
  4618. }
  4619. private SubmitDeltaResponse(boolean noInit) {}
  4620. private static final SubmitDeltaResponse defaultInstance;
  4621. public static SubmitDeltaResponse getDefaultInstance() {
  4622. return defaultInstance;
  4623. }
  4624. public SubmitDeltaResponse getDefaultInstanceForType() {
  4625. return defaultInstance;
  4626. }
  4627. public static final com.google.protobuf.Descriptors.Descriptor
  4628. getDescriptor() {
  4629. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_SubmitDeltaResponse_descriptor;
  4630. }
  4631. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  4632. internalGetFieldAccessorTable() {
  4633. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_SubmitDeltaResponse_fieldAccessorTable;
  4634. }
  4635. // required .concurrencycontrol.ResponseStatus status = 1;
  4636. public static final int STATUS_FIELD_NUMBER = 1;
  4637. private boolean hasStatus;
  4638. private org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus status_;
  4639. public boolean hasStatus() { return hasStatus; }
  4640. public org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus getStatus() { return status_; }
  4641. // required int32 operationsApplied = 2;
  4642. public static final int OPERATIONSAPPLIED_FIELD_NUMBER = 2;
  4643. private boolean hasOperationsApplied;
  4644. private int operationsApplied_ = 0;
  4645. public boolean hasOperationsApplied() { return hasOperationsApplied; }
  4646. public int getOperationsApplied() { return operationsApplied_; }
  4647. // optional .federation.ProtocolHashedVersion hashedVersionAfterApplication = 3;
  4648. public static final int HASHEDVERSIONAFTERAPPLICATION_FIELD_NUMBER = 3;
  4649. private boolean hasHashedVersionAfterApplication;
  4650. private org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion hashedVersionAfterApplication_;
  4651. public boolean hasHashedVersionAfterApplication() { return hasHashedVersionAfterApplication; }
  4652. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getHashedVersionAfterApplication() { return hashedVersionAfterApplication_; }
  4653. // optional int64 timestampAfterApplication = 4;
  4654. public static final int TIMESTAMPAFTERAPPLICATION_FIELD_NUMBER = 4;
  4655. private boolean hasTimestampAfterApplication;
  4656. private long timestampAfterApplication_ = 0L;
  4657. public boolean hasTimestampAfterApplication() { return hasTimestampAfterApplication; }
  4658. public long getTimestampAfterApplication() { return timestampAfterApplication_; }
  4659. private void initFields() {
  4660. status_ = org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.getDefaultInstance();
  4661. hashedVersionAfterApplication_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  4662. }
  4663. public final boolean isInitialized() {
  4664. if (!hasStatus) return false;
  4665. if (!hasOperationsApplied) return false;
  4666. if (!getStatus().isInitialized()) return false;
  4667. if (hasHashedVersionAfterApplication()) {
  4668. if (!getHashedVersionAfterApplication().isInitialized()) return false;
  4669. }
  4670. return true;
  4671. }
  4672. public void writeTo(com.google.protobuf.CodedOutputStream output)
  4673. throws java.io.IOException {
  4674. getSerializedSize();
  4675. if (hasStatus()) {
  4676. output.writeMessage(1, getStatus());
  4677. }
  4678. if (hasOperationsApplied()) {
  4679. output.writeInt32(2, getOperationsApplied());
  4680. }
  4681. if (hasHashedVersionAfterApplication()) {
  4682. output.writeMessage(3, getHashedVersionAfterApplication());
  4683. }
  4684. if (hasTimestampAfterApplication()) {
  4685. output.writeInt64(4, getTimestampAfterApplication());
  4686. }
  4687. getUnknownFields().writeTo(output);
  4688. }
  4689. private int memoizedSerializedSize = -1;
  4690. public int getSerializedSize() {
  4691. int size = memoizedSerializedSize;
  4692. if (size != -1) return size;
  4693. size = 0;
  4694. if (hasStatus()) {
  4695. size += com.google.protobuf.CodedOutputStream
  4696. .computeMessageSize(1, getStatus());
  4697. }
  4698. if (hasOperationsApplied()) {
  4699. size += com.google.protobuf.CodedOutputStream
  4700. .computeInt32Size(2, getOperationsApplied());
  4701. }
  4702. if (hasHashedVersionAfterApplication()) {
  4703. size += com.google.protobuf.CodedOutputStream
  4704. .computeMessageSize(3, getHashedVersionAfterApplication());
  4705. }
  4706. if (hasTimestampAfterApplication()) {
  4707. size += com.google.protobuf.CodedOutputStream
  4708. .computeInt64Size(4, getTimestampAfterApplication());
  4709. }
  4710. size += getUnknownFields().getSerializedSize();
  4711. memoizedSerializedSize = size;
  4712. return size;
  4713. }
  4714. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse parseFrom(
  4715. com.google.protobuf.ByteString data)
  4716. throws com.google.protobuf.InvalidProtocolBufferException {
  4717. return newBuilder().mergeFrom(data).buildParsed();
  4718. }
  4719. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse parseFrom(
  4720. com.google.protobuf.ByteString data,
  4721. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4722. throws com.google.protobuf.InvalidProtocolBufferException {
  4723. return newBuilder().mergeFrom(data, extensionRegistry)
  4724. .buildParsed();
  4725. }
  4726. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse parseFrom(byte[] data)
  4727. throws com.google.protobuf.InvalidProtocolBufferException {
  4728. return newBuilder().mergeFrom(data).buildParsed();
  4729. }
  4730. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse parseFrom(
  4731. byte[] data,
  4732. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4733. throws com.google.protobuf.InvalidProtocolBufferException {
  4734. return newBuilder().mergeFrom(data, extensionRegistry)
  4735. .buildParsed();
  4736. }
  4737. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse parseFrom(java.io.InputStream input)
  4738. throws java.io.IOException {
  4739. return newBuilder().mergeFrom(input).buildParsed();
  4740. }
  4741. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse parseFrom(
  4742. java.io.InputStream input,
  4743. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4744. throws java.io.IOException {
  4745. return newBuilder().mergeFrom(input, extensionRegistry)
  4746. .buildParsed();
  4747. }
  4748. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse parseDelimitedFrom(java.io.InputStream input)
  4749. throws java.io.IOException {
  4750. Builder builder = newBuilder();
  4751. if (builder.mergeDelimitedFrom(input)) {
  4752. return builder.buildParsed();
  4753. } else {
  4754. return null;
  4755. }
  4756. }
  4757. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse parseDelimitedFrom(
  4758. java.io.InputStream input,
  4759. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4760. throws java.io.IOException {
  4761. Builder builder = newBuilder();
  4762. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  4763. return builder.buildParsed();
  4764. } else {
  4765. return null;
  4766. }
  4767. }
  4768. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse parseFrom(
  4769. com.google.protobuf.CodedInputStream input)
  4770. throws java.io.IOException {
  4771. return newBuilder().mergeFrom(input).buildParsed();
  4772. }
  4773. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse parseFrom(
  4774. com.google.protobuf.CodedInputStream input,
  4775. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4776. throws java.io.IOException {
  4777. return newBuilder().mergeFrom(input, extensionRegistry)
  4778. .buildParsed();
  4779. }
  4780. public static Builder newBuilder() { return Builder.create(); }
  4781. public Builder newBuilderForType() { return newBuilder(); }
  4782. public static Builder newBuilder(org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse prototype) {
  4783. return newBuilder().mergeFrom(prototype);
  4784. }
  4785. public Builder toBuilder() { return newBuilder(this); }
  4786. public static final class Builder extends
  4787. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  4788. private org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse result;
  4789. // Construct using org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse.newBuilder()
  4790. private Builder() {}
  4791. private static Builder create() {
  4792. Builder builder = new Builder();
  4793. builder.result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse();
  4794. return builder;
  4795. }
  4796. protected org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse internalGetResult() {
  4797. return result;
  4798. }
  4799. public Builder clear() {
  4800. if (result == null) {
  4801. throw new IllegalStateException(
  4802. "Cannot call clear() after build().");
  4803. }
  4804. result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse();
  4805. return this;
  4806. }
  4807. public Builder clone() {
  4808. return create().mergeFrom(result);
  4809. }
  4810. public com.google.protobuf.Descriptors.Descriptor
  4811. getDescriptorForType() {
  4812. return org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse.getDescriptor();
  4813. }
  4814. public org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse getDefaultInstanceForType() {
  4815. return org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse.getDefaultInstance();
  4816. }
  4817. public boolean isInitialized() {
  4818. return result.isInitialized();
  4819. }
  4820. public org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse build() {
  4821. if (result != null && !isInitialized()) {
  4822. throw newUninitializedMessageException(result);
  4823. }
  4824. return buildPartial();
  4825. }
  4826. private org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse buildParsed()
  4827. throws com.google.protobuf.InvalidProtocolBufferException {
  4828. if (!isInitialized()) {
  4829. throw newUninitializedMessageException(
  4830. result).asInvalidProtocolBufferException();
  4831. }
  4832. return buildPartial();
  4833. }
  4834. public org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse buildPartial() {
  4835. if (result == null) {
  4836. throw new IllegalStateException(
  4837. "build() has already been called on this Builder.");
  4838. }
  4839. org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse returnMe = result;
  4840. result = null;
  4841. return returnMe;
  4842. }
  4843. public Builder mergeFrom(com.google.protobuf.Message other) {
  4844. if (other instanceof org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse) {
  4845. return mergeFrom((org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse)other);
  4846. } else {
  4847. super.mergeFrom(other);
  4848. return this;
  4849. }
  4850. }
  4851. public Builder mergeFrom(org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse other) {
  4852. if (other == org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse.getDefaultInstance()) return this;
  4853. if (other.hasStatus()) {
  4854. mergeStatus(other.getStatus());
  4855. }
  4856. if (other.hasOperationsApplied()) {
  4857. setOperationsApplied(other.getOperationsApplied());
  4858. }
  4859. if (other.hasHashedVersionAfterApplication()) {
  4860. mergeHashedVersionAfterApplication(other.getHashedVersionAfterApplication());
  4861. }
  4862. if (other.hasTimestampAfterApplication()) {
  4863. setTimestampAfterApplication(other.getTimestampAfterApplication());
  4864. }
  4865. this.mergeUnknownFields(other.getUnknownFields());
  4866. return this;
  4867. }
  4868. public Builder mergeFrom(
  4869. com.google.protobuf.CodedInputStream input,
  4870. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4871. throws java.io.IOException {
  4872. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  4873. com.google.protobuf.UnknownFieldSet.newBuilder(
  4874. this.getUnknownFields());
  4875. while (true) {
  4876. int tag = input.readTag();
  4877. switch (tag) {
  4878. case 0:
  4879. this.setUnknownFields(unknownFields.build());
  4880. return this;
  4881. default: {
  4882. if (!parseUnknownField(input, unknownFields,
  4883. extensionRegistry, tag)) {
  4884. this.setUnknownFields(unknownFields.build());
  4885. return this;
  4886. }
  4887. break;
  4888. }
  4889. case 10: {
  4890. org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.Builder subBuilder = org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.newBuilder();
  4891. if (hasStatus()) {
  4892. subBuilder.mergeFrom(getStatus());
  4893. }
  4894. input.readMessage(subBuilder, extensionRegistry);
  4895. setStatus(subBuilder.buildPartial());
  4896. break;
  4897. }
  4898. case 16: {
  4899. setOperationsApplied(input.readInt32());
  4900. break;
  4901. }
  4902. case 26: {
  4903. org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder subBuilder = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder();
  4904. if (hasHashedVersionAfterApplication()) {
  4905. subBuilder.mergeFrom(getHashedVersionAfterApplication());
  4906. }
  4907. input.readMessage(subBuilder, extensionRegistry);
  4908. setHashedVersionAfterApplication(subBuilder.buildPartial());
  4909. break;
  4910. }
  4911. case 32: {
  4912. setTimestampAfterApplication(input.readInt64());
  4913. break;
  4914. }
  4915. }
  4916. }
  4917. }
  4918. // required .concurrencycontrol.ResponseStatus status = 1;
  4919. public boolean hasStatus() {
  4920. return result.hasStatus();
  4921. }
  4922. public org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus getStatus() {
  4923. return result.getStatus();
  4924. }
  4925. public Builder setStatus(org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus value) {
  4926. if (value == null) {
  4927. throw new NullPointerException();
  4928. }
  4929. result.hasStatus = true;
  4930. result.status_ = value;
  4931. return this;
  4932. }
  4933. public Builder setStatus(org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.Builder builderForValue) {
  4934. result.hasStatus = true;
  4935. result.status_ = builderForValue.build();
  4936. return this;
  4937. }
  4938. public Builder mergeStatus(org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus value) {
  4939. if (result.hasStatus() &&
  4940. result.status_ != org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.getDefaultInstance()) {
  4941. result.status_ =
  4942. org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.newBuilder(result.status_).mergeFrom(value).buildPartial();
  4943. } else {
  4944. result.status_ = value;
  4945. }
  4946. result.hasStatus = true;
  4947. return this;
  4948. }
  4949. public Builder clearStatus() {
  4950. result.hasStatus = false;
  4951. result.status_ = org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.getDefaultInstance();
  4952. return this;
  4953. }
  4954. // required int32 operationsApplied = 2;
  4955. public boolean hasOperationsApplied() {
  4956. return result.hasOperationsApplied();
  4957. }
  4958. public int getOperationsApplied() {
  4959. return result.getOperationsApplied();
  4960. }
  4961. public Builder setOperationsApplied(int value) {
  4962. result.hasOperationsApplied = true;
  4963. result.operationsApplied_ = value;
  4964. return this;
  4965. }
  4966. public Builder clearOperationsApplied() {
  4967. result.hasOperationsApplied = false;
  4968. result.operationsApplied_ = 0;
  4969. return this;
  4970. }
  4971. // optional .federation.ProtocolHashedVersion hashedVersionAfterApplication = 3;
  4972. public boolean hasHashedVersionAfterApplication() {
  4973. return result.hasHashedVersionAfterApplication();
  4974. }
  4975. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getHashedVersionAfterApplication() {
  4976. return result.getHashedVersionAfterApplication();
  4977. }
  4978. public Builder setHashedVersionAfterApplication(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
  4979. if (value == null) {
  4980. throw new NullPointerException();
  4981. }
  4982. result.hasHashedVersionAfterApplication = true;
  4983. result.hashedVersionAfterApplication_ = value;
  4984. return this;
  4985. }
  4986. public Builder setHashedVersionAfterApplication(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder builderForValue) {
  4987. result.hasHashedVersionAfterApplication = true;
  4988. result.hashedVersionAfterApplication_ = builderForValue.build();
  4989. return this;
  4990. }
  4991. public Builder mergeHashedVersionAfterApplication(org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) {
  4992. if (result.hasHashedVersionAfterApplication() &&
  4993. result.hashedVersionAfterApplication_ != org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance()) {
  4994. result.hashedVersionAfterApplication_ =
  4995. org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder(result.hashedVersionAfterApplication_).mergeFrom(value).buildPartial();
  4996. } else {
  4997. result.hashedVersionAfterApplication_ = value;
  4998. }
  4999. result.hasHashedVersionAfterApplication = true;
  5000. return this;
  5001. }
  5002. public Builder clearHashedVersionAfterApplication() {
  5003. result.hasHashedVersionAfterApplication = false;
  5004. result.hashedVersionAfterApplication_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  5005. return this;
  5006. }
  5007. // optional int64 timestampAfterApplication = 4;
  5008. public boolean hasTimestampAfterApplication() {
  5009. return result.hasTimestampAfterApplication();
  5010. }
  5011. public long getTimestampAfterApplication() {
  5012. return result.getTimestampAfterApplication();
  5013. }
  5014. public Builder setTimestampAfterApplication(long value) {
  5015. result.hasTimestampAfterApplication = true;
  5016. result.timestampAfterApplication_ = value;
  5017. return this;
  5018. }
  5019. public Builder clearTimestampAfterApplication() {
  5020. result.hasTimestampAfterApplication = false;
  5021. result.timestampAfterApplication_ = 0L;
  5022. return this;
  5023. }
  5024. // @@protoc_insertion_point(builder_scope:concurrencycontrol.SubmitDeltaResponse)
  5025. }
  5026. static {
  5027. defaultInstance = new SubmitDeltaResponse(true);
  5028. org.waveprotocol.wave.concurrencycontrol.ClientServer.internalForceInit();
  5029. defaultInstance.initFields();
  5030. }
  5031. // @@protoc_insertion_point(class_scope:concurrencycontrol.SubmitDeltaResponse)
  5032. }
  5033. public static final class TransportAuthenticationRequest extends
  5034. com.google.protobuf.GeneratedMessage {
  5035. // Use TransportAuthenticationRequest.newBuilder() to construct.
  5036. private TransportAuthenticationRequest() {
  5037. initFields();
  5038. }
  5039. private TransportAuthenticationRequest(boolean noInit) {}
  5040. private static final TransportAuthenticationRequest defaultInstance;
  5041. public static TransportAuthenticationRequest getDefaultInstance() {
  5042. return defaultInstance;
  5043. }
  5044. public TransportAuthenticationRequest getDefaultInstanceForType() {
  5045. return defaultInstance;
  5046. }
  5047. public static final com.google.protobuf.Descriptors.Descriptor
  5048. getDescriptor() {
  5049. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_TransportAuthenticationRequest_descriptor;
  5050. }
  5051. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  5052. internalGetFieldAccessorTable() {
  5053. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_TransportAuthenticationRequest_fieldAccessorTable;
  5054. }
  5055. // required string token = 1;
  5056. public static final int TOKEN_FIELD_NUMBER = 1;
  5057. private boolean hasToken;
  5058. private java.lang.String token_ = "";
  5059. public boolean hasToken() { return hasToken; }
  5060. public java.lang.String getToken() { return token_; }
  5061. private void initFields() {
  5062. }
  5063. public final boolean isInitialized() {
  5064. if (!hasToken) return false;
  5065. return true;
  5066. }
  5067. public void writeTo(com.google.protobuf.CodedOutputStream output)
  5068. throws java.io.IOException {
  5069. getSerializedSize();
  5070. if (hasToken()) {
  5071. output.writeString(1, getToken());
  5072. }
  5073. getUnknownFields().writeTo(output);
  5074. }
  5075. private int memoizedSerializedSize = -1;
  5076. public int getSerializedSize() {
  5077. int size = memoizedSerializedSize;
  5078. if (size != -1) return size;
  5079. size = 0;
  5080. if (hasToken()) {
  5081. size += com.google.protobuf.CodedOutputStream
  5082. .computeStringSize(1, getToken());
  5083. }
  5084. size += getUnknownFields().getSerializedSize();
  5085. memoizedSerializedSize = size;
  5086. return size;
  5087. }
  5088. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest parseFrom(
  5089. com.google.protobuf.ByteString data)
  5090. throws com.google.protobuf.InvalidProtocolBufferException {
  5091. return newBuilder().mergeFrom(data).buildParsed();
  5092. }
  5093. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest parseFrom(
  5094. com.google.protobuf.ByteString data,
  5095. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5096. throws com.google.protobuf.InvalidProtocolBufferException {
  5097. return newBuilder().mergeFrom(data, extensionRegistry)
  5098. .buildParsed();
  5099. }
  5100. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest parseFrom(byte[] data)
  5101. throws com.google.protobuf.InvalidProtocolBufferException {
  5102. return newBuilder().mergeFrom(data).buildParsed();
  5103. }
  5104. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest parseFrom(
  5105. byte[] data,
  5106. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5107. throws com.google.protobuf.InvalidProtocolBufferException {
  5108. return newBuilder().mergeFrom(data, extensionRegistry)
  5109. .buildParsed();
  5110. }
  5111. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest parseFrom(java.io.InputStream input)
  5112. throws java.io.IOException {
  5113. return newBuilder().mergeFrom(input).buildParsed();
  5114. }
  5115. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest parseFrom(
  5116. java.io.InputStream input,
  5117. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5118. throws java.io.IOException {
  5119. return newBuilder().mergeFrom(input, extensionRegistry)
  5120. .buildParsed();
  5121. }
  5122. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest parseDelimitedFrom(java.io.InputStream input)
  5123. throws java.io.IOException {
  5124. Builder builder = newBuilder();
  5125. if (builder.mergeDelimitedFrom(input)) {
  5126. return builder.buildParsed();
  5127. } else {
  5128. return null;
  5129. }
  5130. }
  5131. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest parseDelimitedFrom(
  5132. java.io.InputStream input,
  5133. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5134. throws java.io.IOException {
  5135. Builder builder = newBuilder();
  5136. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  5137. return builder.buildParsed();
  5138. } else {
  5139. return null;
  5140. }
  5141. }
  5142. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest parseFrom(
  5143. com.google.protobuf.CodedInputStream input)
  5144. throws java.io.IOException {
  5145. return newBuilder().mergeFrom(input).buildParsed();
  5146. }
  5147. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest parseFrom(
  5148. com.google.protobuf.CodedInputStream input,
  5149. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5150. throws java.io.IOException {
  5151. return newBuilder().mergeFrom(input, extensionRegistry)
  5152. .buildParsed();
  5153. }
  5154. public static Builder newBuilder() { return Builder.create(); }
  5155. public Builder newBuilderForType() { return newBuilder(); }
  5156. public static Builder newBuilder(org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest prototype) {
  5157. return newBuilder().mergeFrom(prototype);
  5158. }
  5159. public Builder toBuilder() { return newBuilder(this); }
  5160. public static final class Builder extends
  5161. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  5162. private org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest result;
  5163. // Construct using org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest.newBuilder()
  5164. private Builder() {}
  5165. private static Builder create() {
  5166. Builder builder = new Builder();
  5167. builder.result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest();
  5168. return builder;
  5169. }
  5170. protected org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest internalGetResult() {
  5171. return result;
  5172. }
  5173. public Builder clear() {
  5174. if (result == null) {
  5175. throw new IllegalStateException(
  5176. "Cannot call clear() after build().");
  5177. }
  5178. result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest();
  5179. return this;
  5180. }
  5181. public Builder clone() {
  5182. return create().mergeFrom(result);
  5183. }
  5184. public com.google.protobuf.Descriptors.Descriptor
  5185. getDescriptorForType() {
  5186. return org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest.getDescriptor();
  5187. }
  5188. public org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest getDefaultInstanceForType() {
  5189. return org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest.getDefaultInstance();
  5190. }
  5191. public boolean isInitialized() {
  5192. return result.isInitialized();
  5193. }
  5194. public org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest build() {
  5195. if (result != null && !isInitialized()) {
  5196. throw newUninitializedMessageException(result);
  5197. }
  5198. return buildPartial();
  5199. }
  5200. private org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest buildParsed()
  5201. throws com.google.protobuf.InvalidProtocolBufferException {
  5202. if (!isInitialized()) {
  5203. throw newUninitializedMessageException(
  5204. result).asInvalidProtocolBufferException();
  5205. }
  5206. return buildPartial();
  5207. }
  5208. public org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest buildPartial() {
  5209. if (result == null) {
  5210. throw new IllegalStateException(
  5211. "build() has already been called on this Builder.");
  5212. }
  5213. org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest returnMe = result;
  5214. result = null;
  5215. return returnMe;
  5216. }
  5217. public Builder mergeFrom(com.google.protobuf.Message other) {
  5218. if (other instanceof org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest) {
  5219. return mergeFrom((org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest)other);
  5220. } else {
  5221. super.mergeFrom(other);
  5222. return this;
  5223. }
  5224. }
  5225. public Builder mergeFrom(org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest other) {
  5226. if (other == org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest.getDefaultInstance()) return this;
  5227. if (other.hasToken()) {
  5228. setToken(other.getToken());
  5229. }
  5230. this.mergeUnknownFields(other.getUnknownFields());
  5231. return this;
  5232. }
  5233. public Builder mergeFrom(
  5234. com.google.protobuf.CodedInputStream input,
  5235. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5236. throws java.io.IOException {
  5237. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  5238. com.google.protobuf.UnknownFieldSet.newBuilder(
  5239. this.getUnknownFields());
  5240. while (true) {
  5241. int tag = input.readTag();
  5242. switch (tag) {
  5243. case 0:
  5244. this.setUnknownFields(unknownFields.build());
  5245. return this;
  5246. default: {
  5247. if (!parseUnknownField(input, unknownFields,
  5248. extensionRegistry, tag)) {
  5249. this.setUnknownFields(unknownFields.build());
  5250. return this;
  5251. }
  5252. break;
  5253. }
  5254. case 10: {
  5255. setToken(input.readString());
  5256. break;
  5257. }
  5258. }
  5259. }
  5260. }
  5261. // required string token = 1;
  5262. public boolean hasToken() {
  5263. return result.hasToken();
  5264. }
  5265. public java.lang.String getToken() {
  5266. return result.getToken();
  5267. }
  5268. public Builder setToken(java.lang.String value) {
  5269. if (value == null) {
  5270. throw new NullPointerException();
  5271. }
  5272. result.hasToken = true;
  5273. result.token_ = value;
  5274. return this;
  5275. }
  5276. public Builder clearToken() {
  5277. result.hasToken = false;
  5278. result.token_ = getDefaultInstance().getToken();
  5279. return this;
  5280. }
  5281. // @@protoc_insertion_point(builder_scope:concurrencycontrol.TransportAuthenticationRequest)
  5282. }
  5283. static {
  5284. defaultInstance = new TransportAuthenticationRequest(true);
  5285. org.waveprotocol.wave.concurrencycontrol.ClientServer.internalForceInit();
  5286. defaultInstance.initFields();
  5287. }
  5288. // @@protoc_insertion_point(class_scope:concurrencycontrol.TransportAuthenticationRequest)
  5289. }
  5290. public static final class EmptyResponse extends
  5291. com.google.protobuf.GeneratedMessage {
  5292. // Use EmptyResponse.newBuilder() to construct.
  5293. private EmptyResponse() {
  5294. initFields();
  5295. }
  5296. private EmptyResponse(boolean noInit) {}
  5297. private static final EmptyResponse defaultInstance;
  5298. public static EmptyResponse getDefaultInstance() {
  5299. return defaultInstance;
  5300. }
  5301. public EmptyResponse getDefaultInstanceForType() {
  5302. return defaultInstance;
  5303. }
  5304. public static final com.google.protobuf.Descriptors.Descriptor
  5305. getDescriptor() {
  5306. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_EmptyResponse_descriptor;
  5307. }
  5308. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  5309. internalGetFieldAccessorTable() {
  5310. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_EmptyResponse_fieldAccessorTable;
  5311. }
  5312. private void initFields() {
  5313. }
  5314. public final boolean isInitialized() {
  5315. return true;
  5316. }
  5317. public void writeTo(com.google.protobuf.CodedOutputStream output)
  5318. throws java.io.IOException {
  5319. getSerializedSize();
  5320. getUnknownFields().writeTo(output);
  5321. }
  5322. private int memoizedSerializedSize = -1;
  5323. public int getSerializedSize() {
  5324. int size = memoizedSerializedSize;
  5325. if (size != -1) return size;
  5326. size = 0;
  5327. size += getUnknownFields().getSerializedSize();
  5328. memoizedSerializedSize = size;
  5329. return size;
  5330. }
  5331. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse parseFrom(
  5332. com.google.protobuf.ByteString data)
  5333. throws com.google.protobuf.InvalidProtocolBufferException {
  5334. return newBuilder().mergeFrom(data).buildParsed();
  5335. }
  5336. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse parseFrom(
  5337. com.google.protobuf.ByteString data,
  5338. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5339. throws com.google.protobuf.InvalidProtocolBufferException {
  5340. return newBuilder().mergeFrom(data, extensionRegistry)
  5341. .buildParsed();
  5342. }
  5343. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse parseFrom(byte[] data)
  5344. throws com.google.protobuf.InvalidProtocolBufferException {
  5345. return newBuilder().mergeFrom(data).buildParsed();
  5346. }
  5347. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse parseFrom(
  5348. byte[] data,
  5349. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5350. throws com.google.protobuf.InvalidProtocolBufferException {
  5351. return newBuilder().mergeFrom(data, extensionRegistry)
  5352. .buildParsed();
  5353. }
  5354. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse parseFrom(java.io.InputStream input)
  5355. throws java.io.IOException {
  5356. return newBuilder().mergeFrom(input).buildParsed();
  5357. }
  5358. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse parseFrom(
  5359. java.io.InputStream input,
  5360. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5361. throws java.io.IOException {
  5362. return newBuilder().mergeFrom(input, extensionRegistry)
  5363. .buildParsed();
  5364. }
  5365. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse parseDelimitedFrom(java.io.InputStream input)
  5366. throws java.io.IOException {
  5367. Builder builder = newBuilder();
  5368. if (builder.mergeDelimitedFrom(input)) {
  5369. return builder.buildParsed();
  5370. } else {
  5371. return null;
  5372. }
  5373. }
  5374. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse parseDelimitedFrom(
  5375. java.io.InputStream input,
  5376. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5377. throws java.io.IOException {
  5378. Builder builder = newBuilder();
  5379. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  5380. return builder.buildParsed();
  5381. } else {
  5382. return null;
  5383. }
  5384. }
  5385. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse parseFrom(
  5386. com.google.protobuf.CodedInputStream input)
  5387. throws java.io.IOException {
  5388. return newBuilder().mergeFrom(input).buildParsed();
  5389. }
  5390. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse parseFrom(
  5391. com.google.protobuf.CodedInputStream input,
  5392. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5393. throws java.io.IOException {
  5394. return newBuilder().mergeFrom(input, extensionRegistry)
  5395. .buildParsed();
  5396. }
  5397. public static Builder newBuilder() { return Builder.create(); }
  5398. public Builder newBuilderForType() { return newBuilder(); }
  5399. public static Builder newBuilder(org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse prototype) {
  5400. return newBuilder().mergeFrom(prototype);
  5401. }
  5402. public Builder toBuilder() { return newBuilder(this); }
  5403. public static final class Builder extends
  5404. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  5405. private org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse result;
  5406. // Construct using org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse.newBuilder()
  5407. private Builder() {}
  5408. private static Builder create() {
  5409. Builder builder = new Builder();
  5410. builder.result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse();
  5411. return builder;
  5412. }
  5413. protected org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse internalGetResult() {
  5414. return result;
  5415. }
  5416. public Builder clear() {
  5417. if (result == null) {
  5418. throw new IllegalStateException(
  5419. "Cannot call clear() after build().");
  5420. }
  5421. result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse();
  5422. return this;
  5423. }
  5424. public Builder clone() {
  5425. return create().mergeFrom(result);
  5426. }
  5427. public com.google.protobuf.Descriptors.Descriptor
  5428. getDescriptorForType() {
  5429. return org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse.getDescriptor();
  5430. }
  5431. public org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse getDefaultInstanceForType() {
  5432. return org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse.getDefaultInstance();
  5433. }
  5434. public boolean isInitialized() {
  5435. return result.isInitialized();
  5436. }
  5437. public org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse build() {
  5438. if (result != null && !isInitialized()) {
  5439. throw newUninitializedMessageException(result);
  5440. }
  5441. return buildPartial();
  5442. }
  5443. private org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse buildParsed()
  5444. throws com.google.protobuf.InvalidProtocolBufferException {
  5445. if (!isInitialized()) {
  5446. throw newUninitializedMessageException(
  5447. result).asInvalidProtocolBufferException();
  5448. }
  5449. return buildPartial();
  5450. }
  5451. public org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse buildPartial() {
  5452. if (result == null) {
  5453. throw new IllegalStateException(
  5454. "build() has already been called on this Builder.");
  5455. }
  5456. org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse returnMe = result;
  5457. result = null;
  5458. return returnMe;
  5459. }
  5460. public Builder mergeFrom(com.google.protobuf.Message other) {
  5461. if (other instanceof org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse) {
  5462. return mergeFrom((org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse)other);
  5463. } else {
  5464. super.mergeFrom(other);
  5465. return this;
  5466. }
  5467. }
  5468. public Builder mergeFrom(org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse other) {
  5469. if (other == org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse.getDefaultInstance()) return this;
  5470. this.mergeUnknownFields(other.getUnknownFields());
  5471. return this;
  5472. }
  5473. public Builder mergeFrom(
  5474. com.google.protobuf.CodedInputStream input,
  5475. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5476. throws java.io.IOException {
  5477. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  5478. com.google.protobuf.UnknownFieldSet.newBuilder(
  5479. this.getUnknownFields());
  5480. while (true) {
  5481. int tag = input.readTag();
  5482. switch (tag) {
  5483. case 0:
  5484. this.setUnknownFields(unknownFields.build());
  5485. return this;
  5486. default: {
  5487. if (!parseUnknownField(input, unknownFields,
  5488. extensionRegistry, tag)) {
  5489. this.setUnknownFields(unknownFields.build());
  5490. return this;
  5491. }
  5492. break;
  5493. }
  5494. }
  5495. }
  5496. }
  5497. // @@protoc_insertion_point(builder_scope:concurrencycontrol.EmptyResponse)
  5498. }
  5499. static {
  5500. defaultInstance = new EmptyResponse(true);
  5501. org.waveprotocol.wave.concurrencycontrol.ClientServer.internalForceInit();
  5502. defaultInstance.initFields();
  5503. }
  5504. // @@protoc_insertion_point(class_scope:concurrencycontrol.EmptyResponse)
  5505. }
  5506. public static final class ResponseStatus extends
  5507. com.google.protobuf.GeneratedMessage {
  5508. // Use ResponseStatus.newBuilder() to construct.
  5509. private ResponseStatus() {
  5510. initFields();
  5511. }
  5512. private ResponseStatus(boolean noInit) {}
  5513. private static final ResponseStatus defaultInstance;
  5514. public static ResponseStatus getDefaultInstance() {
  5515. return defaultInstance;
  5516. }
  5517. public ResponseStatus getDefaultInstanceForType() {
  5518. return defaultInstance;
  5519. }
  5520. public static final com.google.protobuf.Descriptors.Descriptor
  5521. getDescriptor() {
  5522. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_ResponseStatus_descriptor;
  5523. }
  5524. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  5525. internalGetFieldAccessorTable() {
  5526. return org.waveprotocol.wave.concurrencycontrol.ClientServer.internal_static_concurrencycontrol_ResponseStatus_fieldAccessorTable;
  5527. }
  5528. public enum ResponseCode
  5529. implements com.google.protobuf.ProtocolMessageEnum {
  5530. OK(0, 0),
  5531. BAD_REQUEST(1, 1),
  5532. INTERNAL_ERROR(2, 2),
  5533. NOT_AUTHORIZED(3, 3),
  5534. VERSION_ERROR(4, 4),
  5535. INVALID_OPERATION(5, 5),
  5536. SCHEMA_VIOLATION(6, 6),
  5537. SIZE_LIMIT_EXCEEDED(7, 7),
  5538. POLICY_VIOLATION(8, 8),
  5539. QUARANTINED(9, 9),
  5540. TOO_OLD(10, 10),
  5541. ;
  5542. public final int getNumber() { return value; }
  5543. public static ResponseCode valueOf(int value) {
  5544. switch (value) {
  5545. case 0: return OK;
  5546. case 1: return BAD_REQUEST;
  5547. case 2: return INTERNAL_ERROR;
  5548. case 3: return NOT_AUTHORIZED;
  5549. case 4: return VERSION_ERROR;
  5550. case 5: return INVALID_OPERATION;
  5551. case 6: return SCHEMA_VIOLATION;
  5552. case 7: return SIZE_LIMIT_EXCEEDED;
  5553. case 8: return POLICY_VIOLATION;
  5554. case 9: return QUARANTINED;
  5555. case 10: return TOO_OLD;
  5556. default: return null;
  5557. }
  5558. }
  5559. public static com.google.protobuf.Internal.EnumLiteMap<ResponseCode>
  5560. internalGetValueMap() {
  5561. return internalValueMap;
  5562. }
  5563. private static com.google.protobuf.Internal.EnumLiteMap<ResponseCode>
  5564. internalValueMap =
  5565. new com.google.protobuf.Internal.EnumLiteMap<ResponseCode>() {
  5566. public ResponseCode findValueByNumber(int number) {
  5567. return ResponseCode.valueOf(number)
  5568. ; }
  5569. };
  5570. public final com.google.protobuf.Descriptors.EnumValueDescriptor
  5571. getValueDescriptor() {
  5572. return getDescriptor().getValues().get(index);
  5573. }
  5574. public final com.google.protobuf.Descriptors.EnumDescriptor
  5575. getDescriptorForType() {
  5576. return getDescriptor();
  5577. }
  5578. public static final com.google.protobuf.Descriptors.EnumDescriptor
  5579. getDescriptor() {
  5580. return org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.getDescriptor().getEnumTypes().get(0);
  5581. }
  5582. private static final ResponseCode[] VALUES = {
  5583. OK, BAD_REQUEST, INTERNAL_ERROR, NOT_AUTHORIZED, VERSION_ERROR, INVALID_OPERATION, SCHEMA_VIOLATION, SIZE_LIMIT_EXCEEDED, POLICY_VIOLATION, QUARANTINED, TOO_OLD,
  5584. };
  5585. public static ResponseCode valueOf(
  5586. com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
  5587. if (desc.getType() != getDescriptor()) {
  5588. throw new java.lang.IllegalArgumentException(
  5589. "EnumValueDescriptor is not for this type.");
  5590. }
  5591. return VALUES[desc.getIndex()];
  5592. }
  5593. private final int index;
  5594. private final int value;
  5595. private ResponseCode(int index, int value) {
  5596. this.index = index;
  5597. this.value = value;
  5598. }
  5599. static {
  5600. org.waveprotocol.wave.concurrencycontrol.ClientServer.getDescriptor();
  5601. }
  5602. // @@protoc_insertion_point(enum_scope:concurrencycontrol.ResponseStatus.ResponseCode)
  5603. }
  5604. // required .concurrencycontrol.ResponseStatus.ResponseCode status = 1;
  5605. public static final int STATUS_FIELD_NUMBER = 1;
  5606. private boolean hasStatus;
  5607. private org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.ResponseCode status_;
  5608. public boolean hasStatus() { return hasStatus; }
  5609. public org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.ResponseCode getStatus() { return status_; }
  5610. // optional string failureReason = 2;
  5611. public static final int FAILUREREASON_FIELD_NUMBER = 2;
  5612. private boolean hasFailureReason;
  5613. private java.lang.String failureReason_ = "";
  5614. public boolean hasFailureReason() { return hasFailureReason; }
  5615. public java.lang.String getFailureReason() { return failureReason_; }
  5616. private void initFields() {
  5617. status_ = org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.ResponseCode.OK;
  5618. }
  5619. public final boolean isInitialized() {
  5620. if (!hasStatus) return false;
  5621. return true;
  5622. }
  5623. public void writeTo(com.google.protobuf.CodedOutputStream output)
  5624. throws java.io.IOException {
  5625. getSerializedSize();
  5626. if (hasStatus()) {
  5627. output.writeEnum(1, getStatus().getNumber());
  5628. }
  5629. if (hasFailureReason()) {
  5630. output.writeString(2, getFailureReason());
  5631. }
  5632. getUnknownFields().writeTo(output);
  5633. }
  5634. private int memoizedSerializedSize = -1;
  5635. public int getSerializedSize() {
  5636. int size = memoizedSerializedSize;
  5637. if (size != -1) return size;
  5638. size = 0;
  5639. if (hasStatus()) {
  5640. size += com.google.protobuf.CodedOutputStream
  5641. .computeEnumSize(1, getStatus().getNumber());
  5642. }
  5643. if (hasFailureReason()) {
  5644. size += com.google.protobuf.CodedOutputStream
  5645. .computeStringSize(2, getFailureReason());
  5646. }
  5647. size += getUnknownFields().getSerializedSize();
  5648. memoizedSerializedSize = size;
  5649. return size;
  5650. }
  5651. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus parseFrom(
  5652. com.google.protobuf.ByteString data)
  5653. throws com.google.protobuf.InvalidProtocolBufferException {
  5654. return newBuilder().mergeFrom(data).buildParsed();
  5655. }
  5656. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus parseFrom(
  5657. com.google.protobuf.ByteString data,
  5658. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5659. throws com.google.protobuf.InvalidProtocolBufferException {
  5660. return newBuilder().mergeFrom(data, extensionRegistry)
  5661. .buildParsed();
  5662. }
  5663. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus parseFrom(byte[] data)
  5664. throws com.google.protobuf.InvalidProtocolBufferException {
  5665. return newBuilder().mergeFrom(data).buildParsed();
  5666. }
  5667. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus parseFrom(
  5668. byte[] data,
  5669. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5670. throws com.google.protobuf.InvalidProtocolBufferException {
  5671. return newBuilder().mergeFrom(data, extensionRegistry)
  5672. .buildParsed();
  5673. }
  5674. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus parseFrom(java.io.InputStream input)
  5675. throws java.io.IOException {
  5676. return newBuilder().mergeFrom(input).buildParsed();
  5677. }
  5678. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus parseFrom(
  5679. java.io.InputStream input,
  5680. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5681. throws java.io.IOException {
  5682. return newBuilder().mergeFrom(input, extensionRegistry)
  5683. .buildParsed();
  5684. }
  5685. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus parseDelimitedFrom(java.io.InputStream input)
  5686. throws java.io.IOException {
  5687. Builder builder = newBuilder();
  5688. if (builder.mergeDelimitedFrom(input)) {
  5689. return builder.buildParsed();
  5690. } else {
  5691. return null;
  5692. }
  5693. }
  5694. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus parseDelimitedFrom(
  5695. java.io.InputStream input,
  5696. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5697. throws java.io.IOException {
  5698. Builder builder = newBuilder();
  5699. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  5700. return builder.buildParsed();
  5701. } else {
  5702. return null;
  5703. }
  5704. }
  5705. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus parseFrom(
  5706. com.google.protobuf.CodedInputStream input)
  5707. throws java.io.IOException {
  5708. return newBuilder().mergeFrom(input).buildParsed();
  5709. }
  5710. public static org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus parseFrom(
  5711. com.google.protobuf.CodedInputStream input,
  5712. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5713. throws java.io.IOException {
  5714. return newBuilder().mergeFrom(input, extensionRegistry)
  5715. .buildParsed();
  5716. }
  5717. public static Builder newBuilder() { return Builder.create(); }
  5718. public Builder newBuilderForType() { return newBuilder(); }
  5719. public static Builder newBuilder(org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus prototype) {
  5720. return newBuilder().mergeFrom(prototype);
  5721. }
  5722. public Builder toBuilder() { return newBuilder(this); }
  5723. public static final class Builder extends
  5724. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  5725. private org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus result;
  5726. // Construct using org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.newBuilder()
  5727. private Builder() {}
  5728. private static Builder create() {
  5729. Builder builder = new Builder();
  5730. builder.result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus();
  5731. return builder;
  5732. }
  5733. protected org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus internalGetResult() {
  5734. return result;
  5735. }
  5736. public Builder clear() {
  5737. if (result == null) {
  5738. throw new IllegalStateException(
  5739. "Cannot call clear() after build().");
  5740. }
  5741. result = new org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus();
  5742. return this;
  5743. }
  5744. public Builder clone() {
  5745. return create().mergeFrom(result);
  5746. }
  5747. public com.google.protobuf.Descriptors.Descriptor
  5748. getDescriptorForType() {
  5749. return org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.getDescriptor();
  5750. }
  5751. public org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus getDefaultInstanceForType() {
  5752. return org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.getDefaultInstance();
  5753. }
  5754. public boolean isInitialized() {
  5755. return result.isInitialized();
  5756. }
  5757. public org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus build() {
  5758. if (result != null && !isInitialized()) {
  5759. throw newUninitializedMessageException(result);
  5760. }
  5761. return buildPartial();
  5762. }
  5763. private org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus buildParsed()
  5764. throws com.google.protobuf.InvalidProtocolBufferException {
  5765. if (!isInitialized()) {
  5766. throw newUninitializedMessageException(
  5767. result).asInvalidProtocolBufferException();
  5768. }
  5769. return buildPartial();
  5770. }
  5771. public org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus buildPartial() {
  5772. if (result == null) {
  5773. throw new IllegalStateException(
  5774. "build() has already been called on this Builder.");
  5775. }
  5776. org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus returnMe = result;
  5777. result = null;
  5778. return returnMe;
  5779. }
  5780. public Builder mergeFrom(com.google.protobuf.Message other) {
  5781. if (other instanceof org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus) {
  5782. return mergeFrom((org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus)other);
  5783. } else {
  5784. super.mergeFrom(other);
  5785. return this;
  5786. }
  5787. }
  5788. public Builder mergeFrom(org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus other) {
  5789. if (other == org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.getDefaultInstance()) return this;
  5790. if (other.hasStatus()) {
  5791. setStatus(other.getStatus());
  5792. }
  5793. if (other.hasFailureReason()) {
  5794. setFailureReason(other.getFailureReason());
  5795. }
  5796. this.mergeUnknownFields(other.getUnknownFields());
  5797. return this;
  5798. }
  5799. public Builder mergeFrom(
  5800. com.google.protobuf.CodedInputStream input,
  5801. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5802. throws java.io.IOException {
  5803. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  5804. com.google.protobuf.UnknownFieldSet.newBuilder(
  5805. this.getUnknownFields());
  5806. while (true) {
  5807. int tag = input.readTag();
  5808. switch (tag) {
  5809. case 0:
  5810. this.setUnknownFields(unknownFields.build());
  5811. return this;
  5812. default: {
  5813. if (!parseUnknownField(input, unknownFields,
  5814. extensionRegistry, tag)) {
  5815. this.setUnknownFields(unknownFields.build());
  5816. return this;
  5817. }
  5818. break;
  5819. }
  5820. case 8: {
  5821. int rawValue = input.readEnum();
  5822. org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.ResponseCode value = org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.ResponseCode.valueOf(rawValue);
  5823. if (value == null) {
  5824. unknownFields.mergeVarintField(1, rawValue);
  5825. } else {
  5826. setStatus(value);
  5827. }
  5828. break;
  5829. }
  5830. case 18: {
  5831. setFailureReason(input.readString());
  5832. break;
  5833. }
  5834. }
  5835. }
  5836. }
  5837. // required .concurrencycontrol.ResponseStatus.ResponseCode status = 1;
  5838. public boolean hasStatus() {
  5839. return result.hasStatus();
  5840. }
  5841. public org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.ResponseCode getStatus() {
  5842. return result.getStatus();
  5843. }
  5844. public Builder setStatus(org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.ResponseCode value) {
  5845. if (value == null) {
  5846. throw new NullPointerException();
  5847. }
  5848. result.hasStatus = true;
  5849. result.status_ = value;
  5850. return this;
  5851. }
  5852. public Builder clearStatus() {
  5853. result.hasStatus = false;
  5854. result.status_ = org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.ResponseCode.OK;
  5855. return this;
  5856. }
  5857. // optional string failureReason = 2;
  5858. public boolean hasFailureReason() {
  5859. return result.hasFailureReason();
  5860. }
  5861. public java.lang.String getFailureReason() {
  5862. return result.getFailureReason();
  5863. }
  5864. public Builder setFailureReason(java.lang.String value) {
  5865. if (value == null) {
  5866. throw new NullPointerException();
  5867. }
  5868. result.hasFailureReason = true;
  5869. result.failureReason_ = value;
  5870. return this;
  5871. }
  5872. public Builder clearFailureReason() {
  5873. result.hasFailureReason = false;
  5874. result.failureReason_ = getDefaultInstance().getFailureReason();
  5875. return this;
  5876. }
  5877. // @@protoc_insertion_point(builder_scope:concurrencycontrol.ResponseStatus)
  5878. }
  5879. static {
  5880. defaultInstance = new ResponseStatus(true);
  5881. org.waveprotocol.wave.concurrencycontrol.ClientServer.internalForceInit();
  5882. defaultInstance.initFields();
  5883. }
  5884. // @@protoc_insertion_point(class_scope:concurrencycontrol.ResponseStatus)
  5885. }
  5886. public static abstract class FetchService
  5887. implements com.google.protobuf.Service {
  5888. protected FetchService() {}
  5889. public interface Interface {
  5890. public abstract void fetch(
  5891. com.google.protobuf.RpcController controller,
  5892. org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest request,
  5893. com.google.protobuf.RpcCallback<org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse> done);
  5894. }
  5895. public static com.google.protobuf.Service newReflectiveService(
  5896. final Interface impl) {
  5897. return new FetchService() {
  5898. @Override
  5899. public void fetch(
  5900. com.google.protobuf.RpcController controller,
  5901. org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest request,
  5902. com.google.protobuf.RpcCallback<org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse> done) {
  5903. impl.fetch(controller, request, done);
  5904. }
  5905. };
  5906. }
  5907. public static com.google.protobuf.BlockingService
  5908. newReflectiveBlockingService(final BlockingInterface impl) {
  5909. return new com.google.protobuf.BlockingService() {
  5910. public final com.google.protobuf.Descriptors.ServiceDescriptor
  5911. getDescriptorForType() {
  5912. return getDescriptor();
  5913. }
  5914. public final com.google.protobuf.Message callBlockingMethod(
  5915. com.google.protobuf.Descriptors.MethodDescriptor method,
  5916. com.google.protobuf.RpcController controller,
  5917. com.google.protobuf.Message request)
  5918. throws com.google.protobuf.ServiceException {
  5919. if (method.getService() != getDescriptor()) {
  5920. throw new java.lang.IllegalArgumentException(
  5921. "Service.callBlockingMethod() given method descriptor for " +
  5922. "wrong service type.");
  5923. }
  5924. switch(method.getIndex()) {
  5925. case 0:
  5926. return impl.fetch(controller, (org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest)request);
  5927. default:
  5928. throw new java.lang.AssertionError("Can't get here.");
  5929. }
  5930. }
  5931. public final com.google.protobuf.Message
  5932. getRequestPrototype(
  5933. com.google.protobuf.Descriptors.MethodDescriptor method) {
  5934. if (method.getService() != getDescriptor()) {
  5935. throw new java.lang.IllegalArgumentException(
  5936. "Service.getRequestPrototype() given method " +
  5937. "descriptor for wrong service type.");
  5938. }
  5939. switch(method.getIndex()) {
  5940. case 0:
  5941. return org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest.getDefaultInstance();
  5942. default:
  5943. throw new java.lang.AssertionError("Can't get here.");
  5944. }
  5945. }
  5946. public final com.google.protobuf.Message
  5947. getResponsePrototype(
  5948. com.google.protobuf.Descriptors.MethodDescriptor method) {
  5949. if (method.getService() != getDescriptor()) {
  5950. throw new java.lang.IllegalArgumentException(
  5951. "Service.getResponsePrototype() given method " +
  5952. "descriptor for wrong service type.");
  5953. }
  5954. switch(method.getIndex()) {
  5955. case 0:
  5956. return org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.getDefaultInstance();
  5957. default:
  5958. throw new java.lang.AssertionError("Can't get here.");
  5959. }
  5960. }
  5961. };
  5962. }
  5963. public abstract void fetch(
  5964. com.google.protobuf.RpcController controller,
  5965. org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest request,
  5966. com.google.protobuf.RpcCallback<org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse> done);
  5967. public static final
  5968. com.google.protobuf.Descriptors.ServiceDescriptor
  5969. getDescriptor() {
  5970. return org.waveprotocol.wave.concurrencycontrol.ClientServer.getDescriptor().getServices().get(0);
  5971. }
  5972. public final com.google.protobuf.Descriptors.ServiceDescriptor
  5973. getDescriptorForType() {
  5974. return getDescriptor();
  5975. }
  5976. public final void callMethod(
  5977. com.google.protobuf.Descriptors.MethodDescriptor method,
  5978. com.google.protobuf.RpcController controller,
  5979. com.google.protobuf.Message request,
  5980. com.google.protobuf.RpcCallback<
  5981. com.google.protobuf.Message> done) {
  5982. if (method.getService() != getDescriptor()) {
  5983. throw new java.lang.IllegalArgumentException(
  5984. "Service.callMethod() given method descriptor for wrong " +
  5985. "service type.");
  5986. }
  5987. switch(method.getIndex()) {
  5988. case 0:
  5989. this.fetch(controller, (org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest)request,
  5990. com.google.protobuf.RpcUtil.<org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse>specializeCallback(
  5991. done));
  5992. return;
  5993. default:
  5994. throw new java.lang.AssertionError("Can't get here.");
  5995. }
  5996. }
  5997. public final com.google.protobuf.Message
  5998. getRequestPrototype(
  5999. com.google.protobuf.Descriptors.MethodDescriptor method) {
  6000. if (method.getService() != getDescriptor()) {
  6001. throw new java.lang.IllegalArgumentException(
  6002. "Service.getRequestPrototype() given method " +
  6003. "descriptor for wrong service type.");
  6004. }
  6005. switch(method.getIndex()) {
  6006. case 0:
  6007. return org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest.getDefaultInstance();
  6008. default:
  6009. throw new java.lang.AssertionError("Can't get here.");
  6010. }
  6011. }
  6012. public final com.google.protobuf.Message
  6013. getResponsePrototype(
  6014. com.google.protobuf.Descriptors.MethodDescriptor method) {
  6015. if (method.getService() != getDescriptor()) {
  6016. throw new java.lang.IllegalArgumentException(
  6017. "Service.getResponsePrototype() given method " +
  6018. "descriptor for wrong service type.");
  6019. }
  6020. switch(method.getIndex()) {
  6021. case 0:
  6022. return org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.getDefaultInstance();
  6023. default:
  6024. throw new java.lang.AssertionError("Can't get here.");
  6025. }
  6026. }
  6027. public static Stub newStub(
  6028. com.google.protobuf.RpcChannel channel) {
  6029. return new Stub(channel);
  6030. }
  6031. public static final class Stub extends org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchService implements Interface {
  6032. private Stub(com.google.protobuf.RpcChannel channel) {
  6033. this.channel = channel;
  6034. }
  6035. private final com.google.protobuf.RpcChannel channel;
  6036. public com.google.protobuf.RpcChannel getChannel() {
  6037. return channel;
  6038. }
  6039. public void fetch(
  6040. com.google.protobuf.RpcController controller,
  6041. org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest request,
  6042. com.google.protobuf.RpcCallback<org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse> done) {
  6043. channel.callMethod(
  6044. getDescriptor().getMethods().get(0),
  6045. controller,
  6046. request,
  6047. org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.getDefaultInstance(),
  6048. com.google.protobuf.RpcUtil.generalizeCallback(
  6049. done,
  6050. org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.class,
  6051. org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.getDefaultInstance()));
  6052. }
  6053. }
  6054. public static BlockingInterface newBlockingStub(
  6055. com.google.protobuf.BlockingRpcChannel channel) {
  6056. return new BlockingStub(channel);
  6057. }
  6058. public interface BlockingInterface {
  6059. public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse fetch(
  6060. com.google.protobuf.RpcController controller,
  6061. org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest request)
  6062. throws com.google.protobuf.ServiceException;
  6063. }
  6064. private static final class BlockingStub implements BlockingInterface {
  6065. private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) {
  6066. this.channel = channel;
  6067. }
  6068. private final com.google.protobuf.BlockingRpcChannel channel;
  6069. public org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse fetch(
  6070. com.google.protobuf.RpcController controller,
  6071. org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest request)
  6072. throws com.google.protobuf.ServiceException {
  6073. return (org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse) channel.callBlockingMethod(
  6074. getDescriptor().getMethods().get(0),
  6075. controller,
  6076. request,
  6077. org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.getDefaultInstance());
  6078. }
  6079. }
  6080. }
  6081. public static abstract class WaveletChannelService
  6082. implements com.google.protobuf.Service {
  6083. protected WaveletChannelService() {}
  6084. public interface Interface {
  6085. public abstract void open(
  6086. com.google.protobuf.RpcController controller,
  6087. org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest request,
  6088. com.google.protobuf.RpcCallback<org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream> done);
  6089. public abstract void close(
  6090. com.google.protobuf.RpcController controller,
  6091. org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest request,
  6092. com.google.protobuf.RpcCallback<org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse> done);
  6093. }
  6094. public static com.google.protobuf.Service newReflectiveService(
  6095. final Interface impl) {
  6096. return new WaveletChannelService() {
  6097. @Override
  6098. public void open(
  6099. com.google.protobuf.RpcController controller,
  6100. org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest request,
  6101. com.google.protobuf.RpcCallback<org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream> done) {
  6102. impl.open(controller, request, done);
  6103. }
  6104. @Override
  6105. public void close(
  6106. com.google.protobuf.RpcController controller,
  6107. org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest request,
  6108. com.google.protobuf.RpcCallback<org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse> done) {
  6109. impl.close(controller, request, done);
  6110. }
  6111. };
  6112. }
  6113. public static com.google.protobuf.BlockingService
  6114. newReflectiveBlockingService(final BlockingInterface impl) {
  6115. return new com.google.protobuf.BlockingService() {
  6116. public final com.google.protobuf.Descriptors.ServiceDescriptor
  6117. getDescriptorForType() {
  6118. return getDescriptor();
  6119. }
  6120. public final com.google.protobuf.Message callBlockingMethod(
  6121. com.google.protobuf.Descriptors.MethodDescriptor method,
  6122. com.google.protobuf.RpcController controller,
  6123. com.google.protobuf.Message request)
  6124. throws com.google.protobuf.ServiceException {
  6125. if (method.getService() != getDescriptor()) {
  6126. throw new java.lang.IllegalArgumentException(
  6127. "Service.callBlockingMethod() given method descriptor for " +
  6128. "wrong service type.");
  6129. }
  6130. switch(method.getIndex()) {
  6131. case 0:
  6132. return impl.open(controller, (org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest)request);
  6133. case 1:
  6134. return impl.close(controller, (org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest)request);
  6135. default:
  6136. throw new java.lang.AssertionError("Can't get here.");
  6137. }
  6138. }
  6139. public final com.google.protobuf.Message
  6140. getRequestPrototype(
  6141. com.google.protobuf.Descriptors.MethodDescriptor method) {
  6142. if (method.getService() != getDescriptor()) {
  6143. throw new java.lang.IllegalArgumentException(
  6144. "Service.getRequestPrototype() given method " +
  6145. "descriptor for wrong service type.");
  6146. }
  6147. switch(method.getIndex()) {
  6148. case 0:
  6149. return org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest.getDefaultInstance();
  6150. case 1:
  6151. return org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest.getDefaultInstance();
  6152. default:
  6153. throw new java.lang.AssertionError("Can't get here.");
  6154. }
  6155. }
  6156. public final com.google.protobuf.Message
  6157. getResponsePrototype(
  6158. com.google.protobuf.Descriptors.MethodDescriptor method) {
  6159. if (method.getService() != getDescriptor()) {
  6160. throw new java.lang.IllegalArgumentException(
  6161. "Service.getResponsePrototype() given method " +
  6162. "descriptor for wrong service type.");
  6163. }
  6164. switch(method.getIndex()) {
  6165. case 0:
  6166. return org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream.getDefaultInstance();
  6167. case 1:
  6168. return org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse.getDefaultInstance();
  6169. default:
  6170. throw new java.lang.AssertionError("Can't get here.");
  6171. }
  6172. }
  6173. };
  6174. }
  6175. public abstract void open(
  6176. com.google.protobuf.RpcController controller,
  6177. org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest request,
  6178. com.google.protobuf.RpcCallback<org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream> done);
  6179. public abstract void close(
  6180. com.google.protobuf.RpcController controller,
  6181. org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest request,
  6182. com.google.protobuf.RpcCallback<org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse> done);
  6183. public static final
  6184. com.google.protobuf.Descriptors.ServiceDescriptor
  6185. getDescriptor() {
  6186. return org.waveprotocol.wave.concurrencycontrol.ClientServer.getDescriptor().getServices().get(1);
  6187. }
  6188. public final com.google.protobuf.Descriptors.ServiceDescriptor
  6189. getDescriptorForType() {
  6190. return getDescriptor();
  6191. }
  6192. public final void callMethod(
  6193. com.google.protobuf.Descriptors.MethodDescriptor method,
  6194. com.google.protobuf.RpcController controller,
  6195. com.google.protobuf.Message request,
  6196. com.google.protobuf.RpcCallback<
  6197. com.google.protobuf.Message> done) {
  6198. if (method.getService() != getDescriptor()) {
  6199. throw new java.lang.IllegalArgumentException(
  6200. "Service.callMethod() given method descriptor for wrong " +
  6201. "service type.");
  6202. }
  6203. switch(method.getIndex()) {
  6204. case 0:
  6205. this.open(controller, (org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest)request,
  6206. com.google.protobuf.RpcUtil.<org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream>specializeCallback(
  6207. done));
  6208. return;
  6209. case 1:
  6210. this.close(controller, (org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest)request,
  6211. com.google.protobuf.RpcUtil.<org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse>specializeCallback(
  6212. done));
  6213. return;
  6214. default:
  6215. throw new java.lang.AssertionError("Can't get here.");
  6216. }
  6217. }
  6218. public final com.google.protobuf.Message
  6219. getRequestPrototype(
  6220. com.google.protobuf.Descriptors.MethodDescriptor method) {
  6221. if (method.getService() != getDescriptor()) {
  6222. throw new java.lang.IllegalArgumentException(
  6223. "Service.getRequestPrototype() given method " +
  6224. "descriptor for wrong service type.");
  6225. }
  6226. switch(method.getIndex()) {
  6227. case 0:
  6228. return org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest.getDefaultInstance();
  6229. case 1:
  6230. return org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest.getDefaultInstance();
  6231. default:
  6232. throw new java.lang.AssertionError("Can't get here.");
  6233. }
  6234. }
  6235. public final com.google.protobuf.Message
  6236. getResponsePrototype(
  6237. com.google.protobuf.Descriptors.MethodDescriptor method) {
  6238. if (method.getService() != getDescriptor()) {
  6239. throw new java.lang.IllegalArgumentException(
  6240. "Service.getResponsePrototype() given method " +
  6241. "descriptor for wrong service type.");
  6242. }
  6243. switch(method.getIndex()) {
  6244. case 0:
  6245. return org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream.getDefaultInstance();
  6246. case 1:
  6247. return org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse.getDefaultInstance();
  6248. default:
  6249. throw new java.lang.AssertionError("Can't get here.");
  6250. }
  6251. }
  6252. public static Stub newStub(
  6253. com.google.protobuf.RpcChannel channel) {
  6254. return new Stub(channel);
  6255. }
  6256. public static final class Stub extends org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelService implements Interface {
  6257. private Stub(com.google.protobuf.RpcChannel channel) {
  6258. this.channel = channel;
  6259. }
  6260. private final com.google.protobuf.RpcChannel channel;
  6261. public com.google.protobuf.RpcChannel getChannel() {
  6262. return channel;
  6263. }
  6264. public void open(
  6265. com.google.protobuf.RpcController controller,
  6266. org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest request,
  6267. com.google.protobuf.RpcCallback<org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream> done) {
  6268. channel.callMethod(
  6269. getDescriptor().getMethods().get(0),
  6270. controller,
  6271. request,
  6272. org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream.getDefaultInstance(),
  6273. com.google.protobuf.RpcUtil.generalizeCallback(
  6274. done,
  6275. org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream.class,
  6276. org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream.getDefaultInstance()));
  6277. }
  6278. public void close(
  6279. com.google.protobuf.RpcController controller,
  6280. org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest request,
  6281. com.google.protobuf.RpcCallback<org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse> done) {
  6282. channel.callMethod(
  6283. getDescriptor().getMethods().get(1),
  6284. controller,
  6285. request,
  6286. org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse.getDefaultInstance(),
  6287. com.google.protobuf.RpcUtil.generalizeCallback(
  6288. done,
  6289. org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse.class,
  6290. org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse.getDefaultInstance()));
  6291. }
  6292. }
  6293. public static BlockingInterface newBlockingStub(
  6294. com.google.protobuf.BlockingRpcChannel channel) {
  6295. return new BlockingStub(channel);
  6296. }
  6297. public interface BlockingInterface {
  6298. public org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream open(
  6299. com.google.protobuf.RpcController controller,
  6300. org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest request)
  6301. throws com.google.protobuf.ServiceException;
  6302. public org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse close(
  6303. com.google.protobuf.RpcController controller,
  6304. org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest request)
  6305. throws com.google.protobuf.ServiceException;
  6306. }
  6307. private static final class BlockingStub implements BlockingInterface {
  6308. private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) {
  6309. this.channel = channel;
  6310. }
  6311. private final com.google.protobuf.BlockingRpcChannel channel;
  6312. public org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream open(
  6313. com.google.protobuf.RpcController controller,
  6314. org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest request)
  6315. throws com.google.protobuf.ServiceException {
  6316. return (org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream) channel.callBlockingMethod(
  6317. getDescriptor().getMethods().get(0),
  6318. controller,
  6319. request,
  6320. org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream.getDefaultInstance());
  6321. }
  6322. public org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse close(
  6323. com.google.protobuf.RpcController controller,
  6324. org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest request)
  6325. throws com.google.protobuf.ServiceException {
  6326. return (org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse) channel.callBlockingMethod(
  6327. getDescriptor().getMethods().get(1),
  6328. controller,
  6329. request,
  6330. org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse.getDefaultInstance());
  6331. }
  6332. }
  6333. }
  6334. public static abstract class DeltaSubmissionService
  6335. implements com.google.protobuf.Service {
  6336. protected DeltaSubmissionService() {}
  6337. public interface Interface {
  6338. public abstract void submit(
  6339. com.google.protobuf.RpcController controller,
  6340. org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest request,
  6341. com.google.protobuf.RpcCallback<org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse> done);
  6342. }
  6343. public static com.google.protobuf.Service newReflectiveService(
  6344. final Interface impl) {
  6345. return new DeltaSubmissionService() {
  6346. @Override
  6347. public void submit(
  6348. com.google.protobuf.RpcController controller,
  6349. org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest request,
  6350. com.google.protobuf.RpcCallback<org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse> done) {
  6351. impl.submit(controller, request, done);
  6352. }
  6353. };
  6354. }
  6355. public static com.google.protobuf.BlockingService
  6356. newReflectiveBlockingService(final BlockingInterface impl) {
  6357. return new com.google.protobuf.BlockingService() {
  6358. public final com.google.protobuf.Descriptors.ServiceDescriptor
  6359. getDescriptorForType() {
  6360. return getDescriptor();
  6361. }
  6362. public final com.google.protobuf.Message callBlockingMethod(
  6363. com.google.protobuf.Descriptors.MethodDescriptor method,
  6364. com.google.protobuf.RpcController controller,
  6365. com.google.protobuf.Message request)
  6366. throws com.google.protobuf.ServiceException {
  6367. if (method.getService() != getDescriptor()) {
  6368. throw new java.lang.IllegalArgumentException(
  6369. "Service.callBlockingMethod() given method descriptor for " +
  6370. "wrong service type.");
  6371. }
  6372. switch(method.getIndex()) {
  6373. case 0:
  6374. return impl.submit(controller, (org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest)request);
  6375. default:
  6376. throw new java.lang.AssertionError("Can't get here.");
  6377. }
  6378. }
  6379. public final com.google.protobuf.Message
  6380. getRequestPrototype(
  6381. com.google.protobuf.Descriptors.MethodDescriptor method) {
  6382. if (method.getService() != getDescriptor()) {
  6383. throw new java.lang.IllegalArgumentException(
  6384. "Service.getRequestPrototype() given method " +
  6385. "descriptor for wrong service type.");
  6386. }
  6387. switch(method.getIndex()) {
  6388. case 0:
  6389. return org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest.getDefaultInstance();
  6390. default:
  6391. throw new java.lang.AssertionError("Can't get here.");
  6392. }
  6393. }
  6394. public final com.google.protobuf.Message
  6395. getResponsePrototype(
  6396. com.google.protobuf.Descriptors.MethodDescriptor method) {
  6397. if (method.getService() != getDescriptor()) {
  6398. throw new java.lang.IllegalArgumentException(
  6399. "Service.getResponsePrototype() given method " +
  6400. "descriptor for wrong service type.");
  6401. }
  6402. switch(method.getIndex()) {
  6403. case 0:
  6404. return org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse.getDefaultInstance();
  6405. default:
  6406. throw new java.lang.AssertionError("Can't get here.");
  6407. }
  6408. }
  6409. };
  6410. }
  6411. public abstract void submit(
  6412. com.google.protobuf.RpcController controller,
  6413. org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest request,
  6414. com.google.protobuf.RpcCallback<org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse> done);
  6415. public static final
  6416. com.google.protobuf.Descriptors.ServiceDescriptor
  6417. getDescriptor() {
  6418. return org.waveprotocol.wave.concurrencycontrol.ClientServer.getDescriptor().getServices().get(2);
  6419. }
  6420. public final com.google.protobuf.Descriptors.ServiceDescriptor
  6421. getDescriptorForType() {
  6422. return getDescriptor();
  6423. }
  6424. public final void callMethod(
  6425. com.google.protobuf.Descriptors.MethodDescriptor method,
  6426. com.google.protobuf.RpcController controller,
  6427. com.google.protobuf.Message request,
  6428. com.google.protobuf.RpcCallback<
  6429. com.google.protobuf.Message> done) {
  6430. if (method.getService() != getDescriptor()) {
  6431. throw new java.lang.IllegalArgumentException(
  6432. "Service.callMethod() given method descriptor for wrong " +
  6433. "service type.");
  6434. }
  6435. switch(method.getIndex()) {
  6436. case 0:
  6437. this.submit(controller, (org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest)request,
  6438. com.google.protobuf.RpcUtil.<org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse>specializeCallback(
  6439. done));
  6440. return;
  6441. default:
  6442. throw new java.lang.AssertionError("Can't get here.");
  6443. }
  6444. }
  6445. public final com.google.protobuf.Message
  6446. getRequestPrototype(
  6447. com.google.protobuf.Descriptors.MethodDescriptor method) {
  6448. if (method.getService() != getDescriptor()) {
  6449. throw new java.lang.IllegalArgumentException(
  6450. "Service.getRequestPrototype() given method " +
  6451. "descriptor for wrong service type.");
  6452. }
  6453. switch(method.getIndex()) {
  6454. case 0:
  6455. return org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest.getDefaultInstance();
  6456. default:
  6457. throw new java.lang.AssertionError("Can't get here.");
  6458. }
  6459. }
  6460. public final com.google.protobuf.Message
  6461. getResponsePrototype(
  6462. com.google.protobuf.Descriptors.MethodDescriptor method) {
  6463. if (method.getService() != getDescriptor()) {
  6464. throw new java.lang.IllegalArgumentException(
  6465. "Service.getResponsePrototype() given method " +
  6466. "descriptor for wrong service type.");
  6467. }
  6468. switch(method.getIndex()) {
  6469. case 0:
  6470. return org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse.getDefaultInstance();
  6471. default:
  6472. throw new java.lang.AssertionError("Can't get here.");
  6473. }
  6474. }
  6475. public static Stub newStub(
  6476. com.google.protobuf.RpcChannel channel) {
  6477. return new Stub(channel);
  6478. }
  6479. public static final class Stub extends org.waveprotocol.wave.concurrencycontrol.ClientServer.DeltaSubmissionService implements Interface {
  6480. private Stub(com.google.protobuf.RpcChannel channel) {
  6481. this.channel = channel;
  6482. }
  6483. private final com.google.protobuf.RpcChannel channel;
  6484. public com.google.protobuf.RpcChannel getChannel() {
  6485. return channel;
  6486. }
  6487. public void submit(
  6488. com.google.protobuf.RpcController controller,
  6489. org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest request,
  6490. com.google.protobuf.RpcCallback<org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse> done) {
  6491. channel.callMethod(
  6492. getDescriptor().getMethods().get(0),
  6493. controller,
  6494. request,
  6495. org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse.getDefaultInstance(),
  6496. com.google.protobuf.RpcUtil.generalizeCallback(
  6497. done,
  6498. org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse.class,
  6499. org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse.getDefaultInstance()));
  6500. }
  6501. }
  6502. public static BlockingInterface newBlockingStub(
  6503. com.google.protobuf.BlockingRpcChannel channel) {
  6504. return new BlockingStub(channel);
  6505. }
  6506. public interface BlockingInterface {
  6507. public org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse submit(
  6508. com.google.protobuf.RpcController controller,
  6509. org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest request)
  6510. throws com.google.protobuf.ServiceException;
  6511. }
  6512. private static final class BlockingStub implements BlockingInterface {
  6513. private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) {
  6514. this.channel = channel;
  6515. }
  6516. private final com.google.protobuf.BlockingRpcChannel channel;
  6517. public org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse submit(
  6518. com.google.protobuf.RpcController controller,
  6519. org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest request)
  6520. throws com.google.protobuf.ServiceException {
  6521. return (org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse) channel.callBlockingMethod(
  6522. getDescriptor().getMethods().get(0),
  6523. controller,
  6524. request,
  6525. org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse.getDefaultInstance());
  6526. }
  6527. }
  6528. }
  6529. public static abstract class TransportAuthenticationService
  6530. implements com.google.protobuf.Service {
  6531. protected TransportAuthenticationService() {}
  6532. public interface Interface {
  6533. public abstract void authenticate(
  6534. com.google.protobuf.RpcController controller,
  6535. org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest request,
  6536. com.google.protobuf.RpcCallback<org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse> done);
  6537. }
  6538. public static com.google.protobuf.Service newReflectiveService(
  6539. final Interface impl) {
  6540. return new TransportAuthenticationService() {
  6541. @Override
  6542. public void authenticate(
  6543. com.google.protobuf.RpcController controller,
  6544. org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest request,
  6545. com.google.protobuf.RpcCallback<org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse> done) {
  6546. impl.authenticate(controller, request, done);
  6547. }
  6548. };
  6549. }
  6550. public static com.google.protobuf.BlockingService
  6551. newReflectiveBlockingService(final BlockingInterface impl) {
  6552. return new com.google.protobuf.BlockingService() {
  6553. public final com.google.protobuf.Descriptors.ServiceDescriptor
  6554. getDescriptorForType() {
  6555. return getDescriptor();
  6556. }
  6557. public final com.google.protobuf.Message callBlockingMethod(
  6558. com.google.protobuf.Descriptors.MethodDescriptor method,
  6559. com.google.protobuf.RpcController controller,
  6560. com.google.protobuf.Message request)
  6561. throws com.google.protobuf.ServiceException {
  6562. if (method.getService() != getDescriptor()) {
  6563. throw new java.lang.IllegalArgumentException(
  6564. "Service.callBlockingMethod() given method descriptor for " +
  6565. "wrong service type.");
  6566. }
  6567. switch(method.getIndex()) {
  6568. case 0:
  6569. return impl.authenticate(controller, (org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest)request);
  6570. default:
  6571. throw new java.lang.AssertionError("Can't get here.");
  6572. }
  6573. }
  6574. public final com.google.protobuf.Message
  6575. getRequestPrototype(
  6576. com.google.protobuf.Descriptors.MethodDescriptor method) {
  6577. if (method.getService() != getDescriptor()) {
  6578. throw new java.lang.IllegalArgumentException(
  6579. "Service.getRequestPrototype() given method " +
  6580. "descriptor for wrong service type.");
  6581. }
  6582. switch(method.getIndex()) {
  6583. case 0:
  6584. return org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest.getDefaultInstance();
  6585. default:
  6586. throw new java.lang.AssertionError("Can't get here.");
  6587. }
  6588. }
  6589. public final com.google.protobuf.Message
  6590. getResponsePrototype(
  6591. com.google.protobuf.Descriptors.MethodDescriptor method) {
  6592. if (method.getService() != getDescriptor()) {
  6593. throw new java.lang.IllegalArgumentException(
  6594. "Service.getResponsePrototype() given method " +
  6595. "descriptor for wrong service type.");
  6596. }
  6597. switch(method.getIndex()) {
  6598. case 0:
  6599. return org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse.getDefaultInstance();
  6600. default:
  6601. throw new java.lang.AssertionError("Can't get here.");
  6602. }
  6603. }
  6604. };
  6605. }
  6606. public abstract void authenticate(
  6607. com.google.protobuf.RpcController controller,
  6608. org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest request,
  6609. com.google.protobuf.RpcCallback<org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse> done);
  6610. public static final
  6611. com.google.protobuf.Descriptors.ServiceDescriptor
  6612. getDescriptor() {
  6613. return org.waveprotocol.wave.concurrencycontrol.ClientServer.getDescriptor().getServices().get(3);
  6614. }
  6615. public final com.google.protobuf.Descriptors.ServiceDescriptor
  6616. getDescriptorForType() {
  6617. return getDescriptor();
  6618. }
  6619. public final void callMethod(
  6620. com.google.protobuf.Descriptors.MethodDescriptor method,
  6621. com.google.protobuf.RpcController controller,
  6622. com.google.protobuf.Message request,
  6623. com.google.protobuf.RpcCallback<
  6624. com.google.protobuf.Message> done) {
  6625. if (method.getService() != getDescriptor()) {
  6626. throw new java.lang.IllegalArgumentException(
  6627. "Service.callMethod() given method descriptor for wrong " +
  6628. "service type.");
  6629. }
  6630. switch(method.getIndex()) {
  6631. case 0:
  6632. this.authenticate(controller, (org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest)request,
  6633. com.google.protobuf.RpcUtil.<org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse>specializeCallback(
  6634. done));
  6635. return;
  6636. default:
  6637. throw new java.lang.AssertionError("Can't get here.");
  6638. }
  6639. }
  6640. public final com.google.protobuf.Message
  6641. getRequestPrototype(
  6642. com.google.protobuf.Descriptors.MethodDescriptor method) {
  6643. if (method.getService() != getDescriptor()) {
  6644. throw new java.lang.IllegalArgumentException(
  6645. "Service.getRequestPrototype() given method " +
  6646. "descriptor for wrong service type.");
  6647. }
  6648. switch(method.getIndex()) {
  6649. case 0:
  6650. return org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest.getDefaultInstance();
  6651. default:
  6652. throw new java.lang.AssertionError("Can't get here.");
  6653. }
  6654. }
  6655. public final com.google.protobuf.Message
  6656. getResponsePrototype(
  6657. com.google.protobuf.Descriptors.MethodDescriptor method) {
  6658. if (method.getService() != getDescriptor()) {
  6659. throw new java.lang.IllegalArgumentException(
  6660. "Service.getResponsePrototype() given method " +
  6661. "descriptor for wrong service type.");
  6662. }
  6663. switch(method.getIndex()) {
  6664. case 0:
  6665. return org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse.getDefaultInstance();
  6666. default:
  6667. throw new java.lang.AssertionError("Can't get here.");
  6668. }
  6669. }
  6670. public static Stub newStub(
  6671. com.google.protobuf.RpcChannel channel) {
  6672. return new Stub(channel);
  6673. }
  6674. public static final class Stub extends org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationService implements Interface {
  6675. private Stub(com.google.protobuf.RpcChannel channel) {
  6676. this.channel = channel;
  6677. }
  6678. private final com.google.protobuf.RpcChannel channel;
  6679. public com.google.protobuf.RpcChannel getChannel() {
  6680. return channel;
  6681. }
  6682. public void authenticate(
  6683. com.google.protobuf.RpcController controller,
  6684. org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest request,
  6685. com.google.protobuf.RpcCallback<org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse> done) {
  6686. channel.callMethod(
  6687. getDescriptor().getMethods().get(0),
  6688. controller,
  6689. request,
  6690. org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse.getDefaultInstance(),
  6691. com.google.protobuf.RpcUtil.generalizeCallback(
  6692. done,
  6693. org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse.class,
  6694. org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse.getDefaultInstance()));
  6695. }
  6696. }
  6697. public static BlockingInterface newBlockingStub(
  6698. com.google.protobuf.BlockingRpcChannel channel) {
  6699. return new BlockingStub(channel);
  6700. }
  6701. public interface BlockingInterface {
  6702. public org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse authenticate(
  6703. com.google.protobuf.RpcController controller,
  6704. org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest request)
  6705. throws com.google.protobuf.ServiceException;
  6706. }
  6707. private static final class BlockingStub implements BlockingInterface {
  6708. private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) {
  6709. this.channel = channel;
  6710. }
  6711. private final com.google.protobuf.BlockingRpcChannel channel;
  6712. public org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse authenticate(
  6713. com.google.protobuf.RpcController controller,
  6714. org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest request)
  6715. throws com.google.protobuf.ServiceException {
  6716. return (org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse) channel.callBlockingMethod(
  6717. getDescriptor().getMethods().get(0),
  6718. controller,
  6719. request,
  6720. org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse.getDefaultInstance());
  6721. }
  6722. }
  6723. }
  6724. private static com.google.protobuf.Descriptors.Descriptor
  6725. internal_static_concurrencycontrol_FetchWaveViewRequest_descriptor;
  6726. private static
  6727. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  6728. internal_static_concurrencycontrol_FetchWaveViewRequest_fieldAccessorTable;
  6729. private static com.google.protobuf.Descriptors.Descriptor
  6730. internal_static_concurrencycontrol_FetchWaveViewResponse_descriptor;
  6731. private static
  6732. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  6733. internal_static_concurrencycontrol_FetchWaveViewResponse_fieldAccessorTable;
  6734. private static com.google.protobuf.Descriptors.Descriptor
  6735. internal_static_concurrencycontrol_FetchWaveViewResponse_Wavelet_descriptor;
  6736. private static
  6737. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  6738. internal_static_concurrencycontrol_FetchWaveViewResponse_Wavelet_fieldAccessorTable;
  6739. private static com.google.protobuf.Descriptors.Descriptor
  6740. internal_static_concurrencycontrol_WaveletVersion_descriptor;
  6741. private static
  6742. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  6743. internal_static_concurrencycontrol_WaveletVersion_fieldAccessorTable;
  6744. private static com.google.protobuf.Descriptors.Descriptor
  6745. internal_static_concurrencycontrol_WaveletSnapshot_descriptor;
  6746. private static
  6747. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  6748. internal_static_concurrencycontrol_WaveletSnapshot_fieldAccessorTable;
  6749. private static com.google.protobuf.Descriptors.Descriptor
  6750. internal_static_concurrencycontrol_DocumentSnapshot_descriptor;
  6751. private static
  6752. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  6753. internal_static_concurrencycontrol_DocumentSnapshot_fieldAccessorTable;
  6754. private static com.google.protobuf.Descriptors.Descriptor
  6755. internal_static_concurrencycontrol_OpenWaveletChannelRequest_descriptor;
  6756. private static
  6757. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  6758. internal_static_concurrencycontrol_OpenWaveletChannelRequest_fieldAccessorTable;
  6759. private static com.google.protobuf.Descriptors.Descriptor
  6760. internal_static_concurrencycontrol_OpenWaveletChannelStream_descriptor;
  6761. private static
  6762. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  6763. internal_static_concurrencycontrol_OpenWaveletChannelStream_fieldAccessorTable;
  6764. private static com.google.protobuf.Descriptors.Descriptor
  6765. internal_static_concurrencycontrol_CloseWaveletChannelRequest_descriptor;
  6766. private static
  6767. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  6768. internal_static_concurrencycontrol_CloseWaveletChannelRequest_fieldAccessorTable;
  6769. private static com.google.protobuf.Descriptors.Descriptor
  6770. internal_static_concurrencycontrol_WaveletUpdate_descriptor;
  6771. private static
  6772. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  6773. internal_static_concurrencycontrol_WaveletUpdate_fieldAccessorTable;
  6774. private static com.google.protobuf.Descriptors.Descriptor
  6775. internal_static_concurrencycontrol_WaveletChannelTerminator_descriptor;
  6776. private static
  6777. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  6778. internal_static_concurrencycontrol_WaveletChannelTerminator_fieldAccessorTable;
  6779. private static com.google.protobuf.Descriptors.Descriptor
  6780. internal_static_concurrencycontrol_SubmitDeltaRequest_descriptor;
  6781. private static
  6782. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  6783. internal_static_concurrencycontrol_SubmitDeltaRequest_fieldAccessorTable;
  6784. private static com.google.protobuf.Descriptors.Descriptor
  6785. internal_static_concurrencycontrol_SubmitDeltaResponse_descriptor;
  6786. private static
  6787. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  6788. internal_static_concurrencycontrol_SubmitDeltaResponse_fieldAccessorTable;
  6789. private static com.google.protobuf.Descriptors.Descriptor
  6790. internal_static_concurrencycontrol_TransportAuthenticationRequest_descriptor;
  6791. private static
  6792. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  6793. internal_static_concurrencycontrol_TransportAuthenticationRequest_fieldAccessorTable;
  6794. private static com.google.protobuf.Descriptors.Descriptor
  6795. internal_static_concurrencycontrol_EmptyResponse_descriptor;
  6796. private static
  6797. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  6798. internal_static_concurrencycontrol_EmptyResponse_fieldAccessorTable;
  6799. private static com.google.protobuf.Descriptors.Descriptor
  6800. internal_static_concurrencycontrol_ResponseStatus_descriptor;
  6801. private static
  6802. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  6803. internal_static_concurrencycontrol_ResponseStatus_fieldAccessorTable;
  6804. public static com.google.protobuf.Descriptors.FileDescriptor
  6805. getDescriptor() {
  6806. return descriptor;
  6807. }
  6808. private static com.google.protobuf.Descriptors.FileDescriptor
  6809. descriptor;
  6810. static {
  6811. java.lang.String[] descriptorData = {
  6812. "\n;org/waveprotocol/wave/concurrencycontr" +
  6813. "ol/clientserver.proto\022\022concurrencycontro" +
  6814. "l\032)org/waveprotocol/box/server/rpc/rpc.p" +
  6815. "roto\0326org/waveprotocol/wave/federation/f" +
  6816. "ederation.protodevel\"`\n\024FetchWaveViewReq" +
  6817. "uest\022\016\n\006waveId\030\001 \002(\t\0228\n\014knownWavelet\030\002 \003" +
  6818. "(\0132\".concurrencycontrol.WaveletVersion\"\344" +
  6819. "\001\n\025FetchWaveViewResponse\0222\n\006status\030\001 \002(\013" +
  6820. "2\".concurrencycontrol.ResponseStatus\022B\n\007" +
  6821. "wavelet\030\002 \003(\01321.concurrencycontrol.Fetch",
  6822. "WaveViewResponse.Wavelet\032S\n\007Wavelet\022\021\n\tw" +
  6823. "aveletId\030\001 \002(\t\0225\n\010snapshot\030\002 \001(\0132#.concu" +
  6824. "rrencycontrol.WaveletSnapshot\"W\n\016Wavelet" +
  6825. "Version\022\021\n\twaveletId\030\001 \002(\t\0222\n\007version\030\002 " +
  6826. "\002(\0132!.federation.ProtocolHashedVersion\"\346" +
  6827. "\001\n\017WaveletSnapshot\022\021\n\twaveletId\030\001 \002(\t\022\023\n" +
  6828. "\013participant\030\002 \003(\t\0226\n\010document\030\003 \003(\0132$.c" +
  6829. "oncurrencycontrol.DocumentSnapshot\0222\n\007ve" +
  6830. "rsion\030\004 \002(\0132!.federation.ProtocolHashedV" +
  6831. "ersion\022\030\n\020lastModifiedTime\030\005 \002(\003\022\017\n\007crea",
  6832. "tor\030\006 \002(\t\022\024\n\014creationTime\030\007 \002(\003\"\304\001\n\020Docu" +
  6833. "mentSnapshot\022\022\n\ndocumentId\030\001 \002(\t\022@\n\021docu" +
  6834. "mentOperation\030\002 \002(\0132%.federation.Protoco" +
  6835. "lDocumentOperation\022\016\n\006author\030\003 \002(\t\022\023\n\013co" +
  6836. "ntributor\030\004 \003(\t\022\033\n\023lastModifiedVersion\030\005" +
  6837. " \002(\003\022\030\n\020lastModifiedTime\030\006 \002(\003\"w\n\031OpenWa" +
  6838. "veletChannelRequest\022\016\n\006waveId\030\001 \002(\t\022\021\n\tw" +
  6839. "aveletId\030\002 \002(\t\0227\n\014beginVersion\030\003 \002(\0132!.f" +
  6840. "ederation.ProtocolHashedVersion\"\333\001\n\030Open" +
  6841. "WaveletChannelStream\022\021\n\tchannelId\030\001 \001(\t\022",
  6842. "0\n\005delta\030\002 \001(\0132!.concurrencycontrol.Wave" +
  6843. "letUpdate\0228\n\rcommitVersion\030\003 \001(\0132!.feder" +
  6844. "ation.ProtocolHashedVersion\022@\n\nterminato" +
  6845. "r\030\004 \001(\0132,.concurrencycontrol.WaveletChan" +
  6846. "nelTerminator\"/\n\032CloseWaveletChannelRequ" +
  6847. "est\022\021\n\tchannelId\030\001 \002(\t\"\233\001\n\rWaveletUpdate" +
  6848. "\022/\n\005delta\030\001 \002(\0132 .federation.ProtocolWav" +
  6849. "eletDelta\022;\n\020resultingVersion\030\002 \002(\0132!.fe" +
  6850. "deration.ProtocolHashedVersion\022\034\n\024applic" +
  6851. "ationTimpstamp\030\003 \002(\003\"N\n\030WaveletChannelTe",
  6852. "rminator\0222\n\006status\030\001 \002(\0132\".concurrencyco" +
  6853. "ntrol.ResponseStatus\"{\n\022SubmitDeltaReque" +
  6854. "st\022\016\n\006waveId\030\001 \002(\t\022\021\n\twaveletId\030\002 \002(\t\022/\n" +
  6855. "\005delta\030\003 \002(\0132 .federation.ProtocolWavele" +
  6856. "tDelta\022\021\n\tchannelId\030\004 \002(\t\"\321\001\n\023SubmitDelt" +
  6857. "aResponse\0222\n\006status\030\001 \002(\0132\".concurrencyc" +
  6858. "ontrol.ResponseStatus\022\031\n\021operationsAppli" +
  6859. "ed\030\002 \002(\005\022H\n\035hashedVersionAfterApplicatio" +
  6860. "n\030\003 \001(\0132!.federation.ProtocolHashedVersi" +
  6861. "on\022!\n\031timestampAfterApplication\030\004 \001(\003\"/\n",
  6862. "\036TransportAuthenticationRequest\022\r\n\005token" +
  6863. "\030\001 \002(\t\"\017\n\rEmptyResponse\"\307\002\n\016ResponseStat" +
  6864. "us\022?\n\006status\030\001 \002(\0162/.concurrencycontrol." +
  6865. "ResponseStatus.ResponseCode\022\025\n\rfailureRe" +
  6866. "ason\030\002 \001(\t\"\334\001\n\014ResponseCode\022\006\n\002OK\020\000\022\017\n\013B" +
  6867. "AD_REQUEST\020\001\022\022\n\016INTERNAL_ERROR\020\002\022\022\n\016NOT_" +
  6868. "AUTHORIZED\020\003\022\021\n\rVERSION_ERROR\020\004\022\025\n\021INVAL" +
  6869. "ID_OPERATION\020\005\022\024\n\020SCHEMA_VIOLATION\020\006\022\027\n\023" +
  6870. "SIZE_LIMIT_EXCEEDED\020\007\022\024\n\020POLICY_VIOLATIO" +
  6871. "N\020\010\022\017\n\013QUARANTINED\020\t\022\013\n\007TOO_OLD\020\n2l\n\014Fet",
  6872. "chService\022\\\n\005Fetch\022(.concurrencycontrol." +
  6873. "FetchWaveViewRequest\032).concurrencycontro" +
  6874. "l.FetchWaveViewResponse2\335\001\n\025WaveletChann" +
  6875. "elService\022h\n\004Open\022-.concurrencycontrol.O" +
  6876. "penWaveletChannelRequest\032,.concurrencyco" +
  6877. "ntrol.OpenWaveletChannelStream\"\003\330>\001\022Z\n\005C" +
  6878. "lose\022..concurrencycontrol.CloseWaveletCh" +
  6879. "annelRequest\032!.concurrencycontrol.EmptyR" +
  6880. "esponse2s\n\026DeltaSubmissionService\022Y\n\006Sub" +
  6881. "mit\022&.concurrencycontrol.SubmitDeltaRequ",
  6882. "est\032\'.concurrencycontrol.SubmitDeltaResp" +
  6883. "onse2\207\001\n\036TransportAuthenticationService\022" +
  6884. "e\n\014Authenticate\0222.concurrencycontrol.Tra" +
  6885. "nsportAuthenticationRequest\032!.concurrenc" +
  6886. "ycontrol.EmptyResponseB8\n(org.waveprotoc" +
  6887. "ol.wave.concurrencycontrolB\014ClientServer"
  6888. };
  6889. com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
  6890. new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
  6891. public com.google.protobuf.ExtensionRegistry assignDescriptors(
  6892. com.google.protobuf.Descriptors.FileDescriptor root) {
  6893. descriptor = root;
  6894. internal_static_concurrencycontrol_FetchWaveViewRequest_descriptor =
  6895. getDescriptor().getMessageTypes().get(0);
  6896. internal_static_concurrencycontrol_FetchWaveViewRequest_fieldAccessorTable = new
  6897. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  6898. internal_static_concurrencycontrol_FetchWaveViewRequest_descriptor,
  6899. new java.lang.String[] { "WaveId", "KnownWavelet", },
  6900. org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest.class,
  6901. org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewRequest.Builder.class);
  6902. internal_static_concurrencycontrol_FetchWaveViewResponse_descriptor =
  6903. getDescriptor().getMessageTypes().get(1);
  6904. internal_static_concurrencycontrol_FetchWaveViewResponse_fieldAccessorTable = new
  6905. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  6906. internal_static_concurrencycontrol_FetchWaveViewResponse_descriptor,
  6907. new java.lang.String[] { "Status", "Wavelet", },
  6908. org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.class,
  6909. org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Builder.class);
  6910. internal_static_concurrencycontrol_FetchWaveViewResponse_Wavelet_descriptor =
  6911. internal_static_concurrencycontrol_FetchWaveViewResponse_descriptor.getNestedTypes().get(0);
  6912. internal_static_concurrencycontrol_FetchWaveViewResponse_Wavelet_fieldAccessorTable = new
  6913. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  6914. internal_static_concurrencycontrol_FetchWaveViewResponse_Wavelet_descriptor,
  6915. new java.lang.String[] { "WaveletId", "Snapshot", },
  6916. org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet.class,
  6917. org.waveprotocol.wave.concurrencycontrol.ClientServer.FetchWaveViewResponse.Wavelet.Builder.class);
  6918. internal_static_concurrencycontrol_WaveletVersion_descriptor =
  6919. getDescriptor().getMessageTypes().get(2);
  6920. internal_static_concurrencycontrol_WaveletVersion_fieldAccessorTable = new
  6921. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  6922. internal_static_concurrencycontrol_WaveletVersion_descriptor,
  6923. new java.lang.String[] { "WaveletId", "Version", },
  6924. org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion.class,
  6925. org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletVersion.Builder.class);
  6926. internal_static_concurrencycontrol_WaveletSnapshot_descriptor =
  6927. getDescriptor().getMessageTypes().get(3);
  6928. internal_static_concurrencycontrol_WaveletSnapshot_fieldAccessorTable = new
  6929. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  6930. internal_static_concurrencycontrol_WaveletSnapshot_descriptor,
  6931. new java.lang.String[] { "WaveletId", "Participant", "Document", "Version", "LastModifiedTime", "Creator", "CreationTime", },
  6932. org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot.class,
  6933. org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletSnapshot.Builder.class);
  6934. internal_static_concurrencycontrol_DocumentSnapshot_descriptor =
  6935. getDescriptor().getMessageTypes().get(4);
  6936. internal_static_concurrencycontrol_DocumentSnapshot_fieldAccessorTable = new
  6937. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  6938. internal_static_concurrencycontrol_DocumentSnapshot_descriptor,
  6939. new java.lang.String[] { "DocumentId", "DocumentOperation", "Author", "Contributor", "LastModifiedVersion", "LastModifiedTime", },
  6940. org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot.class,
  6941. org.waveprotocol.wave.concurrencycontrol.ClientServer.DocumentSnapshot.Builder.class);
  6942. internal_static_concurrencycontrol_OpenWaveletChannelRequest_descriptor =
  6943. getDescriptor().getMessageTypes().get(5);
  6944. internal_static_concurrencycontrol_OpenWaveletChannelRequest_fieldAccessorTable = new
  6945. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  6946. internal_static_concurrencycontrol_OpenWaveletChannelRequest_descriptor,
  6947. new java.lang.String[] { "WaveId", "WaveletId", "BeginVersion", },
  6948. org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest.class,
  6949. org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelRequest.Builder.class);
  6950. internal_static_concurrencycontrol_OpenWaveletChannelStream_descriptor =
  6951. getDescriptor().getMessageTypes().get(6);
  6952. internal_static_concurrencycontrol_OpenWaveletChannelStream_fieldAccessorTable = new
  6953. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  6954. internal_static_concurrencycontrol_OpenWaveletChannelStream_descriptor,
  6955. new java.lang.String[] { "ChannelId", "Delta", "CommitVersion", "Terminator", },
  6956. org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream.class,
  6957. org.waveprotocol.wave.concurrencycontrol.ClientServer.OpenWaveletChannelStream.Builder.class);
  6958. internal_static_concurrencycontrol_CloseWaveletChannelRequest_descriptor =
  6959. getDescriptor().getMessageTypes().get(7);
  6960. internal_static_concurrencycontrol_CloseWaveletChannelRequest_fieldAccessorTable = new
  6961. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  6962. internal_static_concurrencycontrol_CloseWaveletChannelRequest_descriptor,
  6963. new java.lang.String[] { "ChannelId", },
  6964. org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest.class,
  6965. org.waveprotocol.wave.concurrencycontrol.ClientServer.CloseWaveletChannelRequest.Builder.class);
  6966. internal_static_concurrencycontrol_WaveletUpdate_descriptor =
  6967. getDescriptor().getMessageTypes().get(8);
  6968. internal_static_concurrencycontrol_WaveletUpdate_fieldAccessorTable = new
  6969. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  6970. internal_static_concurrencycontrol_WaveletUpdate_descriptor,
  6971. new java.lang.String[] { "Delta", "ResultingVersion", "ApplicationTimpstamp", },
  6972. org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate.class,
  6973. org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletUpdate.Builder.class);
  6974. internal_static_concurrencycontrol_WaveletChannelTerminator_descriptor =
  6975. getDescriptor().getMessageTypes().get(9);
  6976. internal_static_concurrencycontrol_WaveletChannelTerminator_fieldAccessorTable = new
  6977. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  6978. internal_static_concurrencycontrol_WaveletChannelTerminator_descriptor,
  6979. new java.lang.String[] { "Status", },
  6980. org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator.class,
  6981. org.waveprotocol.wave.concurrencycontrol.ClientServer.WaveletChannelTerminator.Builder.class);
  6982. internal_static_concurrencycontrol_SubmitDeltaRequest_descriptor =
  6983. getDescriptor().getMessageTypes().get(10);
  6984. internal_static_concurrencycontrol_SubmitDeltaRequest_fieldAccessorTable = new
  6985. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  6986. internal_static_concurrencycontrol_SubmitDeltaRequest_descriptor,
  6987. new java.lang.String[] { "WaveId", "WaveletId", "Delta", "ChannelId", },
  6988. org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest.class,
  6989. org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaRequest.Builder.class);
  6990. internal_static_concurrencycontrol_SubmitDeltaResponse_descriptor =
  6991. getDescriptor().getMessageTypes().get(11);
  6992. internal_static_concurrencycontrol_SubmitDeltaResponse_fieldAccessorTable = new
  6993. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  6994. internal_static_concurrencycontrol_SubmitDeltaResponse_descriptor,
  6995. new java.lang.String[] { "Status", "OperationsApplied", "HashedVersionAfterApplication", "TimestampAfterApplication", },
  6996. org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse.class,
  6997. org.waveprotocol.wave.concurrencycontrol.ClientServer.SubmitDeltaResponse.Builder.class);
  6998. internal_static_concurrencycontrol_TransportAuthenticationRequest_descriptor =
  6999. getDescriptor().getMessageTypes().get(12);
  7000. internal_static_concurrencycontrol_TransportAuthenticationRequest_fieldAccessorTable = new
  7001. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  7002. internal_static_concurrencycontrol_TransportAuthenticationRequest_descriptor,
  7003. new java.lang.String[] { "Token", },
  7004. org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest.class,
  7005. org.waveprotocol.wave.concurrencycontrol.ClientServer.TransportAuthenticationRequest.Builder.class);
  7006. internal_static_concurrencycontrol_EmptyResponse_descriptor =
  7007. getDescriptor().getMessageTypes().get(13);
  7008. internal_static_concurrencycontrol_EmptyResponse_fieldAccessorTable = new
  7009. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  7010. internal_static_concurrencycontrol_EmptyResponse_descriptor,
  7011. new java.lang.String[] { },
  7012. org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse.class,
  7013. org.waveprotocol.wave.concurrencycontrol.ClientServer.EmptyResponse.Builder.class);
  7014. internal_static_concurrencycontrol_ResponseStatus_descriptor =
  7015. getDescriptor().getMessageTypes().get(14);
  7016. internal_static_concurrencycontrol_ResponseStatus_fieldAccessorTable = new
  7017. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  7018. internal_static_concurrencycontrol_ResponseStatus_descriptor,
  7019. new java.lang.String[] { "Status", "FailureReason", },
  7020. org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.class,
  7021. org.waveprotocol.wave.concurrencycontrol.ClientServer.ResponseStatus.Builder.class);
  7022. com.google.protobuf.ExtensionRegistry registry =
  7023. com.google.protobuf.ExtensionRegistry.newInstance();
  7024. registerAllExtensions(registry);
  7025. org.waveprotocol.box.server.rpc.Rpc.registerAllExtensions(registry);
  7026. org.waveprotocol.wave.federation.Proto.registerAllExtensions(registry);
  7027. return registry;
  7028. }
  7029. };
  7030. com.google.protobuf.Descriptors.FileDescriptor
  7031. .internalBuildGeneratedFileFrom(descriptorData,
  7032. new com.google.protobuf.Descriptors.FileDescriptor[] {
  7033. org.waveprotocol.box.server.rpc.Rpc.getDescriptor(),
  7034. org.waveprotocol.wave.federation.Proto.getDescriptor(),
  7035. }, assigner);
  7036. }
  7037. public static void internalForceInit() {}
  7038. // @@protoc_insertion_point(outer_class_scope)
  7039. }