PageRenderTime 53ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 1ms

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

https://code.google.com/p/wave-protocol/
Java | 4984 lines | 4466 code | 405 blank | 113 comment | 510 complexity | 34591f86d7af5d6a58fd41bdb57d93f8 MD5 | raw file
Possible License(s): BSD-3-Clause, LGPL-3.0, CPL-1.0, Apache-2.0, MIT

Large files files are truncated, but you can click here to view the full file

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: org/waveprotocol/box/common/comms/waveclient-rpc.proto
  3. package org.waveprotocol.box.common.comms;
  4. public final class WaveClientRpc {
  5. private WaveClientRpc() {}
  6. public static void registerAllExtensions(
  7. com.google.protobuf.ExtensionRegistry registry) {
  8. }
  9. public static final class ProtocolAuthenticate extends
  10. com.google.protobuf.GeneratedMessage {
  11. // Use ProtocolAuthenticate.newBuilder() to construct.
  12. private ProtocolAuthenticate() {
  13. initFields();
  14. }
  15. private ProtocolAuthenticate(boolean noInit) {}
  16. private static final ProtocolAuthenticate defaultInstance;
  17. public static ProtocolAuthenticate getDefaultInstance() {
  18. return defaultInstance;
  19. }
  20. public ProtocolAuthenticate getDefaultInstanceForType() {
  21. return defaultInstance;
  22. }
  23. public static final com.google.protobuf.Descriptors.Descriptor
  24. getDescriptor() {
  25. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolAuthenticate_descriptor;
  26. }
  27. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  28. internalGetFieldAccessorTable() {
  29. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolAuthenticate_fieldAccessorTable;
  30. }
  31. // required string token = 1;
  32. public static final int TOKEN_FIELD_NUMBER = 1;
  33. private boolean hasToken;
  34. private java.lang.String token_ = "";
  35. public boolean hasToken() { return hasToken; }
  36. public java.lang.String getToken() { return token_; }
  37. private void initFields() {
  38. }
  39. public final boolean isInitialized() {
  40. if (!hasToken) return false;
  41. return true;
  42. }
  43. public void writeTo(com.google.protobuf.CodedOutputStream output)
  44. throws java.io.IOException {
  45. getSerializedSize();
  46. if (hasToken()) {
  47. output.writeString(1, getToken());
  48. }
  49. getUnknownFields().writeTo(output);
  50. }
  51. private int memoizedSerializedSize = -1;
  52. public int getSerializedSize() {
  53. int size = memoizedSerializedSize;
  54. if (size != -1) return size;
  55. size = 0;
  56. if (hasToken()) {
  57. size += com.google.protobuf.CodedOutputStream
  58. .computeStringSize(1, getToken());
  59. }
  60. size += getUnknownFields().getSerializedSize();
  61. memoizedSerializedSize = size;
  62. return size;
  63. }
  64. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(
  65. com.google.protobuf.ByteString data)
  66. throws com.google.protobuf.InvalidProtocolBufferException {
  67. return newBuilder().mergeFrom(data).buildParsed();
  68. }
  69. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(
  70. com.google.protobuf.ByteString data,
  71. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  72. throws com.google.protobuf.InvalidProtocolBufferException {
  73. return newBuilder().mergeFrom(data, extensionRegistry)
  74. .buildParsed();
  75. }
  76. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(byte[] data)
  77. throws com.google.protobuf.InvalidProtocolBufferException {
  78. return newBuilder().mergeFrom(data).buildParsed();
  79. }
  80. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(
  81. byte[] data,
  82. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  83. throws com.google.protobuf.InvalidProtocolBufferException {
  84. return newBuilder().mergeFrom(data, extensionRegistry)
  85. .buildParsed();
  86. }
  87. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(java.io.InputStream input)
  88. throws java.io.IOException {
  89. return newBuilder().mergeFrom(input).buildParsed();
  90. }
  91. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(
  92. java.io.InputStream input,
  93. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  94. throws java.io.IOException {
  95. return newBuilder().mergeFrom(input, extensionRegistry)
  96. .buildParsed();
  97. }
  98. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseDelimitedFrom(java.io.InputStream input)
  99. throws java.io.IOException {
  100. Builder builder = newBuilder();
  101. if (builder.mergeDelimitedFrom(input)) {
  102. return builder.buildParsed();
  103. } else {
  104. return null;
  105. }
  106. }
  107. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseDelimitedFrom(
  108. java.io.InputStream input,
  109. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  110. throws java.io.IOException {
  111. Builder builder = newBuilder();
  112. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  113. return builder.buildParsed();
  114. } else {
  115. return null;
  116. }
  117. }
  118. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(
  119. com.google.protobuf.CodedInputStream input)
  120. throws java.io.IOException {
  121. return newBuilder().mergeFrom(input).buildParsed();
  122. }
  123. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate parseFrom(
  124. com.google.protobuf.CodedInputStream input,
  125. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  126. throws java.io.IOException {
  127. return newBuilder().mergeFrom(input, extensionRegistry)
  128. .buildParsed();
  129. }
  130. public static Builder newBuilder() { return Builder.create(); }
  131. public Builder newBuilderForType() { return newBuilder(); }
  132. public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate prototype) {
  133. return newBuilder().mergeFrom(prototype);
  134. }
  135. public Builder toBuilder() { return newBuilder(this); }
  136. public static final class Builder extends
  137. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  138. private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate result;
  139. // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.newBuilder()
  140. private Builder() {}
  141. private static Builder create() {
  142. Builder builder = new Builder();
  143. builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate();
  144. return builder;
  145. }
  146. protected org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate internalGetResult() {
  147. return result;
  148. }
  149. public Builder clear() {
  150. if (result == null) {
  151. throw new IllegalStateException(
  152. "Cannot call clear() after build().");
  153. }
  154. result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate();
  155. return this;
  156. }
  157. public Builder clone() {
  158. return create().mergeFrom(result);
  159. }
  160. public com.google.protobuf.Descriptors.Descriptor
  161. getDescriptorForType() {
  162. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.getDescriptor();
  163. }
  164. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate getDefaultInstanceForType() {
  165. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.getDefaultInstance();
  166. }
  167. public boolean isInitialized() {
  168. return result.isInitialized();
  169. }
  170. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate build() {
  171. if (result != null && !isInitialized()) {
  172. throw newUninitializedMessageException(result);
  173. }
  174. return buildPartial();
  175. }
  176. private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate buildParsed()
  177. throws com.google.protobuf.InvalidProtocolBufferException {
  178. if (!isInitialized()) {
  179. throw newUninitializedMessageException(
  180. result).asInvalidProtocolBufferException();
  181. }
  182. return buildPartial();
  183. }
  184. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate buildPartial() {
  185. if (result == null) {
  186. throw new IllegalStateException(
  187. "build() has already been called on this Builder.");
  188. }
  189. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate returnMe = result;
  190. result = null;
  191. return returnMe;
  192. }
  193. public Builder mergeFrom(com.google.protobuf.Message other) {
  194. if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate) {
  195. return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate)other);
  196. } else {
  197. super.mergeFrom(other);
  198. return this;
  199. }
  200. }
  201. public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate other) {
  202. if (other == org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticate.getDefaultInstance()) return this;
  203. if (other.hasToken()) {
  204. setToken(other.getToken());
  205. }
  206. this.mergeUnknownFields(other.getUnknownFields());
  207. return this;
  208. }
  209. public Builder mergeFrom(
  210. com.google.protobuf.CodedInputStream input,
  211. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  212. throws java.io.IOException {
  213. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  214. com.google.protobuf.UnknownFieldSet.newBuilder(
  215. this.getUnknownFields());
  216. while (true) {
  217. int tag = input.readTag();
  218. switch (tag) {
  219. case 0:
  220. this.setUnknownFields(unknownFields.build());
  221. return this;
  222. default: {
  223. if (!parseUnknownField(input, unknownFields,
  224. extensionRegistry, tag)) {
  225. this.setUnknownFields(unknownFields.build());
  226. return this;
  227. }
  228. break;
  229. }
  230. case 10: {
  231. setToken(input.readString());
  232. break;
  233. }
  234. }
  235. }
  236. }
  237. // required string token = 1;
  238. public boolean hasToken() {
  239. return result.hasToken();
  240. }
  241. public java.lang.String getToken() {
  242. return result.getToken();
  243. }
  244. public Builder setToken(java.lang.String value) {
  245. if (value == null) {
  246. throw new NullPointerException();
  247. }
  248. result.hasToken = true;
  249. result.token_ = value;
  250. return this;
  251. }
  252. public Builder clearToken() {
  253. result.hasToken = false;
  254. result.token_ = getDefaultInstance().getToken();
  255. return this;
  256. }
  257. // @@protoc_insertion_point(builder_scope:waveserver.ProtocolAuthenticate)
  258. }
  259. static {
  260. defaultInstance = new ProtocolAuthenticate(true);
  261. org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
  262. defaultInstance.initFields();
  263. }
  264. // @@protoc_insertion_point(class_scope:waveserver.ProtocolAuthenticate)
  265. }
  266. public static final class ProtocolAuthenticationResult extends
  267. com.google.protobuf.GeneratedMessage {
  268. // Use ProtocolAuthenticationResult.newBuilder() to construct.
  269. private ProtocolAuthenticationResult() {
  270. initFields();
  271. }
  272. private ProtocolAuthenticationResult(boolean noInit) {}
  273. private static final ProtocolAuthenticationResult defaultInstance;
  274. public static ProtocolAuthenticationResult getDefaultInstance() {
  275. return defaultInstance;
  276. }
  277. public ProtocolAuthenticationResult getDefaultInstanceForType() {
  278. return defaultInstance;
  279. }
  280. public static final com.google.protobuf.Descriptors.Descriptor
  281. getDescriptor() {
  282. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolAuthenticationResult_descriptor;
  283. }
  284. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  285. internalGetFieldAccessorTable() {
  286. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolAuthenticationResult_fieldAccessorTable;
  287. }
  288. private void initFields() {
  289. }
  290. public final boolean isInitialized() {
  291. return true;
  292. }
  293. public void writeTo(com.google.protobuf.CodedOutputStream output)
  294. throws java.io.IOException {
  295. getSerializedSize();
  296. getUnknownFields().writeTo(output);
  297. }
  298. private int memoizedSerializedSize = -1;
  299. public int getSerializedSize() {
  300. int size = memoizedSerializedSize;
  301. if (size != -1) return size;
  302. size = 0;
  303. size += getUnknownFields().getSerializedSize();
  304. memoizedSerializedSize = size;
  305. return size;
  306. }
  307. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(
  308. com.google.protobuf.ByteString data)
  309. throws com.google.protobuf.InvalidProtocolBufferException {
  310. return newBuilder().mergeFrom(data).buildParsed();
  311. }
  312. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(
  313. com.google.protobuf.ByteString data,
  314. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  315. throws com.google.protobuf.InvalidProtocolBufferException {
  316. return newBuilder().mergeFrom(data, extensionRegistry)
  317. .buildParsed();
  318. }
  319. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(byte[] data)
  320. throws com.google.protobuf.InvalidProtocolBufferException {
  321. return newBuilder().mergeFrom(data).buildParsed();
  322. }
  323. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(
  324. byte[] data,
  325. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  326. throws com.google.protobuf.InvalidProtocolBufferException {
  327. return newBuilder().mergeFrom(data, extensionRegistry)
  328. .buildParsed();
  329. }
  330. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(java.io.InputStream input)
  331. throws java.io.IOException {
  332. return newBuilder().mergeFrom(input).buildParsed();
  333. }
  334. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(
  335. java.io.InputStream input,
  336. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  337. throws java.io.IOException {
  338. return newBuilder().mergeFrom(input, extensionRegistry)
  339. .buildParsed();
  340. }
  341. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseDelimitedFrom(java.io.InputStream input)
  342. throws java.io.IOException {
  343. Builder builder = newBuilder();
  344. if (builder.mergeDelimitedFrom(input)) {
  345. return builder.buildParsed();
  346. } else {
  347. return null;
  348. }
  349. }
  350. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseDelimitedFrom(
  351. java.io.InputStream input,
  352. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  353. throws java.io.IOException {
  354. Builder builder = newBuilder();
  355. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  356. return builder.buildParsed();
  357. } else {
  358. return null;
  359. }
  360. }
  361. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(
  362. com.google.protobuf.CodedInputStream input)
  363. throws java.io.IOException {
  364. return newBuilder().mergeFrom(input).buildParsed();
  365. }
  366. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult parseFrom(
  367. com.google.protobuf.CodedInputStream input,
  368. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  369. throws java.io.IOException {
  370. return newBuilder().mergeFrom(input, extensionRegistry)
  371. .buildParsed();
  372. }
  373. public static Builder newBuilder() { return Builder.create(); }
  374. public Builder newBuilderForType() { return newBuilder(); }
  375. public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult prototype) {
  376. return newBuilder().mergeFrom(prototype);
  377. }
  378. public Builder toBuilder() { return newBuilder(this); }
  379. public static final class Builder extends
  380. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  381. private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult result;
  382. // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.newBuilder()
  383. private Builder() {}
  384. private static Builder create() {
  385. Builder builder = new Builder();
  386. builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult();
  387. return builder;
  388. }
  389. protected org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult internalGetResult() {
  390. return result;
  391. }
  392. public Builder clear() {
  393. if (result == null) {
  394. throw new IllegalStateException(
  395. "Cannot call clear() after build().");
  396. }
  397. result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult();
  398. return this;
  399. }
  400. public Builder clone() {
  401. return create().mergeFrom(result);
  402. }
  403. public com.google.protobuf.Descriptors.Descriptor
  404. getDescriptorForType() {
  405. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.getDescriptor();
  406. }
  407. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult getDefaultInstanceForType() {
  408. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.getDefaultInstance();
  409. }
  410. public boolean isInitialized() {
  411. return result.isInitialized();
  412. }
  413. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult build() {
  414. if (result != null && !isInitialized()) {
  415. throw newUninitializedMessageException(result);
  416. }
  417. return buildPartial();
  418. }
  419. private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult buildParsed()
  420. throws com.google.protobuf.InvalidProtocolBufferException {
  421. if (!isInitialized()) {
  422. throw newUninitializedMessageException(
  423. result).asInvalidProtocolBufferException();
  424. }
  425. return buildPartial();
  426. }
  427. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult buildPartial() {
  428. if (result == null) {
  429. throw new IllegalStateException(
  430. "build() has already been called on this Builder.");
  431. }
  432. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult returnMe = result;
  433. result = null;
  434. return returnMe;
  435. }
  436. public Builder mergeFrom(com.google.protobuf.Message other) {
  437. if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult) {
  438. return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult)other);
  439. } else {
  440. super.mergeFrom(other);
  441. return this;
  442. }
  443. }
  444. public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult other) {
  445. if (other == org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolAuthenticationResult.getDefaultInstance()) return this;
  446. this.mergeUnknownFields(other.getUnknownFields());
  447. return this;
  448. }
  449. public Builder mergeFrom(
  450. com.google.protobuf.CodedInputStream input,
  451. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  452. throws java.io.IOException {
  453. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  454. com.google.protobuf.UnknownFieldSet.newBuilder(
  455. this.getUnknownFields());
  456. while (true) {
  457. int tag = input.readTag();
  458. switch (tag) {
  459. case 0:
  460. this.setUnknownFields(unknownFields.build());
  461. return this;
  462. default: {
  463. if (!parseUnknownField(input, unknownFields,
  464. extensionRegistry, tag)) {
  465. this.setUnknownFields(unknownFields.build());
  466. return this;
  467. }
  468. break;
  469. }
  470. }
  471. }
  472. }
  473. // @@protoc_insertion_point(builder_scope:waveserver.ProtocolAuthenticationResult)
  474. }
  475. static {
  476. defaultInstance = new ProtocolAuthenticationResult(true);
  477. org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
  478. defaultInstance.initFields();
  479. }
  480. // @@protoc_insertion_point(class_scope:waveserver.ProtocolAuthenticationResult)
  481. }
  482. public static final class ProtocolOpenRequest extends
  483. com.google.protobuf.GeneratedMessage {
  484. // Use ProtocolOpenRequest.newBuilder() to construct.
  485. private ProtocolOpenRequest() {
  486. initFields();
  487. }
  488. private ProtocolOpenRequest(boolean noInit) {}
  489. private static final ProtocolOpenRequest defaultInstance;
  490. public static ProtocolOpenRequest getDefaultInstance() {
  491. return defaultInstance;
  492. }
  493. public ProtocolOpenRequest getDefaultInstanceForType() {
  494. return defaultInstance;
  495. }
  496. public static final com.google.protobuf.Descriptors.Descriptor
  497. getDescriptor() {
  498. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolOpenRequest_descriptor;
  499. }
  500. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  501. internalGetFieldAccessorTable() {
  502. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_ProtocolOpenRequest_fieldAccessorTable;
  503. }
  504. // required string participant_id = 1;
  505. public static final int PARTICIPANT_ID_FIELD_NUMBER = 1;
  506. private boolean hasParticipantId;
  507. private java.lang.String participantId_ = "";
  508. public boolean hasParticipantId() { return hasParticipantId; }
  509. public java.lang.String getParticipantId() { return participantId_; }
  510. // required string wave_id = 2;
  511. public static final int WAVE_ID_FIELD_NUMBER = 2;
  512. private boolean hasWaveId;
  513. private java.lang.String waveId_ = "";
  514. public boolean hasWaveId() { return hasWaveId; }
  515. public java.lang.String getWaveId() { return waveId_; }
  516. // repeated string wavelet_id_prefix = 3;
  517. public static final int WAVELET_ID_PREFIX_FIELD_NUMBER = 3;
  518. private java.util.List<java.lang.String> waveletIdPrefix_ =
  519. java.util.Collections.emptyList();
  520. public java.util.List<java.lang.String> getWaveletIdPrefixList() {
  521. return waveletIdPrefix_;
  522. }
  523. public int getWaveletIdPrefixCount() { return waveletIdPrefix_.size(); }
  524. public java.lang.String getWaveletIdPrefix(int index) {
  525. return waveletIdPrefix_.get(index);
  526. }
  527. // repeated .waveserver.WaveletVersion known_wavelet = 4;
  528. public static final int KNOWN_WAVELET_FIELD_NUMBER = 4;
  529. private java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion> knownWavelet_ =
  530. java.util.Collections.emptyList();
  531. public java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion> getKnownWaveletList() {
  532. return knownWavelet_;
  533. }
  534. public int getKnownWaveletCount() { return knownWavelet_.size(); }
  535. public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion getKnownWavelet(int index) {
  536. return knownWavelet_.get(index);
  537. }
  538. private void initFields() {
  539. }
  540. public final boolean isInitialized() {
  541. if (!hasParticipantId) return false;
  542. if (!hasWaveId) return false;
  543. for (org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion element : getKnownWaveletList()) {
  544. if (!element.isInitialized()) return false;
  545. }
  546. return true;
  547. }
  548. public void writeTo(com.google.protobuf.CodedOutputStream output)
  549. throws java.io.IOException {
  550. getSerializedSize();
  551. if (hasParticipantId()) {
  552. output.writeString(1, getParticipantId());
  553. }
  554. if (hasWaveId()) {
  555. output.writeString(2, getWaveId());
  556. }
  557. for (java.lang.String element : getWaveletIdPrefixList()) {
  558. output.writeString(3, element);
  559. }
  560. for (org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion element : getKnownWaveletList()) {
  561. output.writeMessage(4, element);
  562. }
  563. getUnknownFields().writeTo(output);
  564. }
  565. private int memoizedSerializedSize = -1;
  566. public int getSerializedSize() {
  567. int size = memoizedSerializedSize;
  568. if (size != -1) return size;
  569. size = 0;
  570. if (hasParticipantId()) {
  571. size += com.google.protobuf.CodedOutputStream
  572. .computeStringSize(1, getParticipantId());
  573. }
  574. if (hasWaveId()) {
  575. size += com.google.protobuf.CodedOutputStream
  576. .computeStringSize(2, getWaveId());
  577. }
  578. {
  579. int dataSize = 0;
  580. for (java.lang.String element : getWaveletIdPrefixList()) {
  581. dataSize += com.google.protobuf.CodedOutputStream
  582. .computeStringSizeNoTag(element);
  583. }
  584. size += dataSize;
  585. size += 1 * getWaveletIdPrefixList().size();
  586. }
  587. for (org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion element : getKnownWaveletList()) {
  588. size += com.google.protobuf.CodedOutputStream
  589. .computeMessageSize(4, element);
  590. }
  591. size += getUnknownFields().getSerializedSize();
  592. memoizedSerializedSize = size;
  593. return size;
  594. }
  595. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(
  596. com.google.protobuf.ByteString data)
  597. throws com.google.protobuf.InvalidProtocolBufferException {
  598. return newBuilder().mergeFrom(data).buildParsed();
  599. }
  600. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(
  601. com.google.protobuf.ByteString data,
  602. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  603. throws com.google.protobuf.InvalidProtocolBufferException {
  604. return newBuilder().mergeFrom(data, extensionRegistry)
  605. .buildParsed();
  606. }
  607. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(byte[] data)
  608. throws com.google.protobuf.InvalidProtocolBufferException {
  609. return newBuilder().mergeFrom(data).buildParsed();
  610. }
  611. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(
  612. byte[] data,
  613. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  614. throws com.google.protobuf.InvalidProtocolBufferException {
  615. return newBuilder().mergeFrom(data, extensionRegistry)
  616. .buildParsed();
  617. }
  618. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(java.io.InputStream input)
  619. throws java.io.IOException {
  620. return newBuilder().mergeFrom(input).buildParsed();
  621. }
  622. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(
  623. java.io.InputStream input,
  624. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  625. throws java.io.IOException {
  626. return newBuilder().mergeFrom(input, extensionRegistry)
  627. .buildParsed();
  628. }
  629. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseDelimitedFrom(java.io.InputStream input)
  630. throws java.io.IOException {
  631. Builder builder = newBuilder();
  632. if (builder.mergeDelimitedFrom(input)) {
  633. return builder.buildParsed();
  634. } else {
  635. return null;
  636. }
  637. }
  638. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseDelimitedFrom(
  639. java.io.InputStream input,
  640. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  641. throws java.io.IOException {
  642. Builder builder = newBuilder();
  643. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  644. return builder.buildParsed();
  645. } else {
  646. return null;
  647. }
  648. }
  649. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(
  650. com.google.protobuf.CodedInputStream input)
  651. throws java.io.IOException {
  652. return newBuilder().mergeFrom(input).buildParsed();
  653. }
  654. public static org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest parseFrom(
  655. com.google.protobuf.CodedInputStream input,
  656. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  657. throws java.io.IOException {
  658. return newBuilder().mergeFrom(input, extensionRegistry)
  659. .buildParsed();
  660. }
  661. public static Builder newBuilder() { return Builder.create(); }
  662. public Builder newBuilderForType() { return newBuilder(); }
  663. public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest prototype) {
  664. return newBuilder().mergeFrom(prototype);
  665. }
  666. public Builder toBuilder() { return newBuilder(this); }
  667. public static final class Builder extends
  668. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  669. private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest result;
  670. // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.newBuilder()
  671. private Builder() {}
  672. private static Builder create() {
  673. Builder builder = new Builder();
  674. builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest();
  675. return builder;
  676. }
  677. protected org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest internalGetResult() {
  678. return result;
  679. }
  680. public Builder clear() {
  681. if (result == null) {
  682. throw new IllegalStateException(
  683. "Cannot call clear() after build().");
  684. }
  685. result = new org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest();
  686. return this;
  687. }
  688. public Builder clone() {
  689. return create().mergeFrom(result);
  690. }
  691. public com.google.protobuf.Descriptors.Descriptor
  692. getDescriptorForType() {
  693. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.getDescriptor();
  694. }
  695. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest getDefaultInstanceForType() {
  696. return org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.getDefaultInstance();
  697. }
  698. public boolean isInitialized() {
  699. return result.isInitialized();
  700. }
  701. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest build() {
  702. if (result != null && !isInitialized()) {
  703. throw newUninitializedMessageException(result);
  704. }
  705. return buildPartial();
  706. }
  707. private org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest buildParsed()
  708. throws com.google.protobuf.InvalidProtocolBufferException {
  709. if (!isInitialized()) {
  710. throw newUninitializedMessageException(
  711. result).asInvalidProtocolBufferException();
  712. }
  713. return buildPartial();
  714. }
  715. public org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest buildPartial() {
  716. if (result == null) {
  717. throw new IllegalStateException(
  718. "build() has already been called on this Builder.");
  719. }
  720. if (result.waveletIdPrefix_ != java.util.Collections.EMPTY_LIST) {
  721. result.waveletIdPrefix_ =
  722. java.util.Collections.unmodifiableList(result.waveletIdPrefix_);
  723. }
  724. if (result.knownWavelet_ != java.util.Collections.EMPTY_LIST) {
  725. result.knownWavelet_ =
  726. java.util.Collections.unmodifiableList(result.knownWavelet_);
  727. }
  728. org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest returnMe = result;
  729. result = null;
  730. return returnMe;
  731. }
  732. public Builder mergeFrom(com.google.protobuf.Message other) {
  733. if (other instanceof org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest) {
  734. return mergeFrom((org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest)other);
  735. } else {
  736. super.mergeFrom(other);
  737. return this;
  738. }
  739. }
  740. public Builder mergeFrom(org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest other) {
  741. if (other == org.waveprotocol.box.common.comms.WaveClientRpc.ProtocolOpenRequest.getDefaultInstance()) return this;
  742. if (other.hasParticipantId()) {
  743. setParticipantId(other.getParticipantId());
  744. }
  745. if (other.hasWaveId()) {
  746. setWaveId(other.getWaveId());
  747. }
  748. if (!other.waveletIdPrefix_.isEmpty()) {
  749. if (result.waveletIdPrefix_.isEmpty()) {
  750. result.waveletIdPrefix_ = new java.util.ArrayList<java.lang.String>();
  751. }
  752. result.waveletIdPrefix_.addAll(other.waveletIdPrefix_);
  753. }
  754. if (!other.knownWavelet_.isEmpty()) {
  755. if (result.knownWavelet_.isEmpty()) {
  756. result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion>();
  757. }
  758. result.knownWavelet_.addAll(other.knownWavelet_);
  759. }
  760. this.mergeUnknownFields(other.getUnknownFields());
  761. return this;
  762. }
  763. public Builder mergeFrom(
  764. com.google.protobuf.CodedInputStream input,
  765. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  766. throws java.io.IOException {
  767. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  768. com.google.protobuf.UnknownFieldSet.newBuilder(
  769. this.getUnknownFields());
  770. while (true) {
  771. int tag = input.readTag();
  772. switch (tag) {
  773. case 0:
  774. this.setUnknownFields(unknownFields.build());
  775. return this;
  776. default: {
  777. if (!parseUnknownField(input, unknownFields,
  778. extensionRegistry, tag)) {
  779. this.setUnknownFields(unknownFields.build());
  780. return this;
  781. }
  782. break;
  783. }
  784. case 10: {
  785. setParticipantId(input.readString());
  786. break;
  787. }
  788. case 18: {
  789. setWaveId(input.readString());
  790. break;
  791. }
  792. case 26: {
  793. addWaveletIdPrefix(input.readString());
  794. break;
  795. }
  796. case 34: {
  797. org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.Builder subBuilder = org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.newBuilder();
  798. input.readMessage(subBuilder, extensionRegistry);
  799. addKnownWavelet(subBuilder.buildPartial());
  800. break;
  801. }
  802. }
  803. }
  804. }
  805. // required string participant_id = 1;
  806. public boolean hasParticipantId() {
  807. return result.hasParticipantId();
  808. }
  809. public java.lang.String getParticipantId() {
  810. return result.getParticipantId();
  811. }
  812. public Builder setParticipantId(java.lang.String value) {
  813. if (value == null) {
  814. throw new NullPointerException();
  815. }
  816. result.hasParticipantId = true;
  817. result.participantId_ = value;
  818. return this;
  819. }
  820. public Builder clearParticipantId() {
  821. result.hasParticipantId = false;
  822. result.participantId_ = getDefaultInstance().getParticipantId();
  823. return this;
  824. }
  825. // required string wave_id = 2;
  826. public boolean hasWaveId() {
  827. return result.hasWaveId();
  828. }
  829. public java.lang.String getWaveId() {
  830. return result.getWaveId();
  831. }
  832. public Builder setWaveId(java.lang.String value) {
  833. if (value == null) {
  834. throw new NullPointerException();
  835. }
  836. result.hasWaveId = true;
  837. result.waveId_ = value;
  838. return this;
  839. }
  840. public Builder clearWaveId() {
  841. result.hasWaveId = false;
  842. result.waveId_ = getDefaultInstance().getWaveId();
  843. return this;
  844. }
  845. // repeated string wavelet_id_prefix = 3;
  846. public java.util.List<java.lang.String> getWaveletIdPrefixList() {
  847. return java.util.Collections.unmodifiableList(result.waveletIdPrefix_);
  848. }
  849. public int getWaveletIdPrefixCount() {
  850. return result.getWaveletIdPrefixCount();
  851. }
  852. public java.lang.String getWaveletIdPrefix(int index) {
  853. return result.getWaveletIdPrefix(index);
  854. }
  855. public Builder setWaveletIdPrefix(int index, java.lang.String value) {
  856. if (value == null) {
  857. throw new NullPointerException();
  858. }
  859. result.waveletIdPrefix_.set(index, value);
  860. return this;
  861. }
  862. public Builder addWaveletIdPrefix(java.lang.String value) {
  863. if (value == null) {
  864. throw new NullPointerException();
  865. }
  866. if (result.waveletIdPrefix_.isEmpty()) {
  867. result.waveletIdPrefix_ = new java.util.ArrayList<java.lang.String>();
  868. }
  869. result.waveletIdPrefix_.add(value);
  870. return this;
  871. }
  872. public Builder addAllWaveletIdPrefix(
  873. java.lang.Iterable<? extends java.lang.String> values) {
  874. if (result.waveletIdPrefix_.isEmpty()) {
  875. result.waveletIdPrefix_ = new java.util.ArrayList<java.lang.String>();
  876. }
  877. super.addAll(values, result.waveletIdPrefix_);
  878. return this;
  879. }
  880. public Builder clearWaveletIdPrefix() {
  881. result.waveletIdPrefix_ = java.util.Collections.emptyList();
  882. return this;
  883. }
  884. // repeated .waveserver.WaveletVersion known_wavelet = 4;
  885. public java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion> getKnownWaveletList() {
  886. return java.util.Collections.unmodifiableList(result.knownWavelet_);
  887. }
  888. public int getKnownWaveletCount() {
  889. return result.getKnownWaveletCount();
  890. }
  891. public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion getKnownWavelet(int index) {
  892. return result.getKnownWavelet(index);
  893. }
  894. public Builder setKnownWavelet(int index, org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion value) {
  895. if (value == null) {
  896. throw new NullPointerException();
  897. }
  898. result.knownWavelet_.set(index, value);
  899. return this;
  900. }
  901. public Builder setKnownWavelet(int index, org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.Builder builderForValue) {
  902. result.knownWavelet_.set(index, builderForValue.build());
  903. return this;
  904. }
  905. public Builder addKnownWavelet(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion value) {
  906. if (value == null) {
  907. throw new NullPointerException();
  908. }
  909. if (result.knownWavelet_.isEmpty()) {
  910. result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion>();
  911. }
  912. result.knownWavelet_.add(value);
  913. return this;
  914. }
  915. public Builder addKnownWavelet(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.Builder builderForValue) {
  916. if (result.knownWavelet_.isEmpty()) {
  917. result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion>();
  918. }
  919. result.knownWavelet_.add(builderForValue.build());
  920. return this;
  921. }
  922. public Builder addAllKnownWavelet(
  923. java.lang.Iterable<? extends org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion> values) {
  924. if (result.knownWavelet_.isEmpty()) {
  925. result.knownWavelet_ = new java.util.ArrayList<org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion>();
  926. }
  927. super.addAll(values, result.knownWavelet_);
  928. return this;
  929. }
  930. public Builder clearKnownWavelet() {
  931. result.knownWavelet_ = java.util.Collections.emptyList();
  932. return this;
  933. }
  934. // @@protoc_insertion_point(builder_scope:waveserver.ProtocolOpenRequest)
  935. }
  936. static {
  937. defaultInstance = new ProtocolOpenRequest(true);
  938. org.waveprotocol.box.common.comms.WaveClientRpc.internalForceInit();
  939. defaultInstance.initFields();
  940. }
  941. // @@protoc_insertion_point(class_scope:waveserver.ProtocolOpenRequest)
  942. }
  943. public static final class WaveletVersion extends
  944. com.google.protobuf.GeneratedMessage {
  945. // Use WaveletVersion.newBuilder() to construct.
  946. private WaveletVersion() {
  947. initFields();
  948. }
  949. private WaveletVersion(boolean noInit) {}
  950. private static final WaveletVersion defaultInstance;
  951. public static WaveletVersion getDefaultInstance() {
  952. return defaultInstance;
  953. }
  954. public WaveletVersion getDefaultInstanceForType() {
  955. return defaultInstance;
  956. }
  957. public static final com.google.protobuf.Descriptors.Descriptor
  958. getDescriptor() {
  959. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_WaveletVersion_descriptor;
  960. }
  961. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  962. internalGetFieldAccessorTable() {
  963. return org.waveprotocol.box.common.comms.WaveClientRpc.internal_static_waveserver_WaveletVersion_fieldAccessorTable;
  964. }
  965. // required string wavelet_id = 1;
  966. public static final int WAVELET_ID_FIELD_NUMBER = 1;
  967. private boolean hasWaveletId;
  968. private java.lang.String waveletId_ = "";
  969. public boolean hasWaveletId() { return hasWaveletId; }
  970. public java.lang.String getWaveletId() { return waveletId_; }
  971. // required .federation.ProtocolHashedVersion hashed_version = 2;
  972. public static final int HASHED_VERSION_FIELD_NUMBER = 2;
  973. private boolean hasHashedVersion;
  974. private org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion hashedVersion_;
  975. public boolean hasHashedVersion() { return hasHashedVersion; }
  976. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getHashedVersion() { return hashedVersion_; }
  977. private void initFields() {
  978. hashedVersion_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance();
  979. }
  980. public final boolean isInitialized() {
  981. if (!hasWaveletId) return false;
  982. if (!hasHashedVersion) return false;
  983. if (!getHashedVersion().isInitialized()) return false;
  984. return true;
  985. }
  986. public void writeTo(com.google.protobuf.CodedOutputStream output)
  987. throws java.io.IOException {
  988. getSerializedSize();
  989. if (hasWaveletId()) {
  990. output.writeString(1, getWaveletId());
  991. }
  992. if (hasHashedVersion()) {
  993. output.writeMessage(2, getHashedVersion());
  994. }
  995. getUnknownFields().writeTo(output);
  996. }
  997. private int memoizedSerializedSize = -1;
  998. public int getSerializedSize() {
  999. int size = memoizedSerializedSize;
  1000. if (size != -1) return size;
  1001. size = 0;
  1002. if (hasWaveletId()) {
  1003. size += com.google.protobuf.CodedOutputStream
  1004. .computeStringSize(1, getWaveletId());
  1005. }
  1006. if (hasHashedVersion()) {
  1007. size += com.google.protobuf.CodedOutputStream
  1008. .computeMessageSize(2, getHashedVersion());
  1009. }
  1010. size += getUnknownFields().getSerializedSize();
  1011. memoizedSerializedSize = size;
  1012. return size;
  1013. }
  1014. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(
  1015. com.google.protobuf.ByteString data)
  1016. throws com.google.protobuf.InvalidProtocolBufferException {
  1017. return newBuilder().mergeFrom(data).buildParsed();
  1018. }
  1019. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(
  1020. com.google.protobuf.ByteString data,
  1021. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1022. throws com.google.protobuf.InvalidProtocolBufferException {
  1023. return newBuilder().mergeFrom(data, extensionRegistry)
  1024. .buildParsed();
  1025. }
  1026. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(byte[] data)
  1027. throws com.google.protobuf.InvalidProtocolBufferException {
  1028. return newBuilder().mergeFrom(data).buildParsed();
  1029. }
  1030. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(
  1031. byte[] data,
  1032. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1033. throws com.google.protobuf.InvalidProtocolBufferException {
  1034. return newBuilder().mergeFrom(data, extensionRegistry)
  1035. .buildParsed();
  1036. }
  1037. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(java.io.InputStream input)
  1038. throws java.io.IOException {
  1039. return newBuilder().mergeFrom(input).buildParsed();
  1040. }
  1041. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(
  1042. java.io.InputStream input,
  1043. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1044. throws java.io.IOException {
  1045. return newBuilder().mergeFrom(input, extensionRegistry)
  1046. .buildParsed();
  1047. }
  1048. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseDelimitedFrom(java.io.InputStream input)
  1049. throws java.io.IOException {
  1050. Builder builder = newBuilder();
  1051. if (builder.mergeDelimitedFrom(input)) {
  1052. return builder.buildParsed();
  1053. } else {
  1054. return null;
  1055. }
  1056. }
  1057. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseDelimitedFrom(
  1058. java.io.InputStream input,
  1059. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1060. throws java.io.IOException {
  1061. Builder builder = newBuilder();
  1062. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  1063. return builder.buildParsed();
  1064. } else {
  1065. return null;
  1066. }
  1067. }
  1068. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(
  1069. com.google.protobuf.CodedInputStream input)
  1070. throws java.io.IOException {
  1071. return newBuilder().mergeFrom(input).buildParsed();
  1072. }
  1073. public static org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion parseFrom(
  1074. com.google.protobuf.CodedInputStream input,
  1075. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1076. throws java.io.IOException {
  1077. return newBuilder().mergeFrom(input, extensionRegistry)
  1078. .buildParsed();
  1079. }
  1080. public static Builder newBuilder() { return Builder.create(); }
  1081. public Builder newBuilderForType() { return newBuilder(); }
  1082. public static Builder newBuilder(org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion prototype) {
  1083. return newBuilder().mergeFrom(prototype);
  1084. }
  1085. public Builder toBuilder() { return newBuilder(this); }
  1086. public static final class Builder extends
  1087. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  1088. private org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion result;
  1089. // Construct using org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.newBuilder()
  1090. private Builder() {}
  1091. private static Builder create() {
  1092. Builder builder = new Builder();
  1093. builder.result = new org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion();
  1094. return builder;
  1095. }
  1096. protected org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion internalGetResult() {
  1097. return result;
  1098. }
  1099. public Builder clear() {
  1100. if (result == null) {
  1101. throw new IllegalStateException(
  1102. "Cannot call clear() after build().");
  1103. }
  1104. result = new org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion();
  1105. return this;
  1106. }
  1107. public Builder clone() {
  1108. return create().mergeFrom(result);
  1109. }
  1110. public com.google.protobuf.Descriptors.Descriptor
  1111. getDescriptorForType() {
  1112. return org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.getDescriptor();
  1113. }
  1114. public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion getDefaultInstanceForType() {
  1115. return org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion.getDefaultInstance();
  1116. }
  1117. public boolean isInitialized() {
  1118. return result.isInitialized();
  1119. }
  1120. public org.waveprotocol.box.common.comms.WaveClientRpc.WaveletVersion build() {
  1121. if (result != null && !isInitialized()) {
  1122. throw newUninitializedMessageException(result);
  1123. }
  1124. return buildPartial();
  1125. }
  1126. private org.waveprotocol.box.

Large files files are truncated, but you can click here to view the full file