PageRenderTime 52ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 1ms

/proto_src/org/waveprotocol/wave/diff/Diff.java

https://code.google.com/p/wave-protocol/
Java | 3078 lines | 2783 code | 224 blank | 71 comment | 341 complexity | 3078dce2185fd5050fdfe648f0a83f25 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/wave/diff/diff.proto
  3. package org.waveprotocol.wave.diff;
  4. public final class Diff {
  5. private Diff() {}
  6. public static void registerAllExtensions(
  7. com.google.protobuf.ExtensionRegistry registry) {
  8. }
  9. public static final class FetchDiffRequest extends
  10. com.google.protobuf.GeneratedMessage {
  11. // Use FetchDiffRequest.newBuilder() to construct.
  12. private FetchDiffRequest() {
  13. initFields();
  14. }
  15. private FetchDiffRequest(boolean noInit) {}
  16. private static final FetchDiffRequest defaultInstance;
  17. public static FetchDiffRequest getDefaultInstance() {
  18. return defaultInstance;
  19. }
  20. public FetchDiffRequest getDefaultInstanceForType() {
  21. return defaultInstance;
  22. }
  23. public static final com.google.protobuf.Descriptors.Descriptor
  24. getDescriptor() {
  25. return org.waveprotocol.wave.diff.Diff.internal_static_diff_FetchDiffRequest_descriptor;
  26. }
  27. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  28. internalGetFieldAccessorTable() {
  29. return org.waveprotocol.wave.diff.Diff.internal_static_diff_FetchDiffRequest_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.diff.Diff.FetchDiffRequest 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.diff.Diff.FetchDiffRequest 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.diff.Diff.FetchDiffRequest parseFrom(byte[] data)
  98. throws com.google.protobuf.InvalidProtocolBufferException {
  99. return newBuilder().mergeFrom(data).buildParsed();
  100. }
  101. public static org.waveprotocol.wave.diff.Diff.FetchDiffRequest 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.diff.Diff.FetchDiffRequest parseFrom(java.io.InputStream input)
  109. throws java.io.IOException {
  110. return newBuilder().mergeFrom(input).buildParsed();
  111. }
  112. public static org.waveprotocol.wave.diff.Diff.FetchDiffRequest 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.diff.Diff.FetchDiffRequest 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.diff.Diff.FetchDiffRequest 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.diff.Diff.FetchDiffRequest 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.diff.Diff.FetchDiffRequest 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.diff.Diff.FetchDiffRequest 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.diff.Diff.FetchDiffRequest result;
  160. // Construct using org.waveprotocol.wave.diff.Diff.FetchDiffRequest.newBuilder()
  161. private Builder() {}
  162. private static Builder create() {
  163. Builder builder = new Builder();
  164. builder.result = new org.waveprotocol.wave.diff.Diff.FetchDiffRequest();
  165. return builder;
  166. }
  167. protected org.waveprotocol.wave.diff.Diff.FetchDiffRequest 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.diff.Diff.FetchDiffRequest();
  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.diff.Diff.FetchDiffRequest.getDescriptor();
  184. }
  185. public org.waveprotocol.wave.diff.Diff.FetchDiffRequest getDefaultInstanceForType() {
  186. return org.waveprotocol.wave.diff.Diff.FetchDiffRequest.getDefaultInstance();
  187. }
  188. public boolean isInitialized() {
  189. return result.isInitialized();
  190. }
  191. public org.waveprotocol.wave.diff.Diff.FetchDiffRequest build() {
  192. if (result != null && !isInitialized()) {
  193. throw newUninitializedMessageException(result);
  194. }
  195. return buildPartial();
  196. }
  197. private org.waveprotocol.wave.diff.Diff.FetchDiffRequest 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.diff.Diff.FetchDiffRequest 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.diff.Diff.FetchDiffRequest 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.diff.Diff.FetchDiffRequest) {
  220. return mergeFrom((org.waveprotocol.wave.diff.Diff.FetchDiffRequest)other);
  221. } else {
  222. super.mergeFrom(other);
  223. return this;
  224. }
  225. }
  226. public Builder mergeFrom(org.waveprotocol.wave.diff.Diff.FetchDiffRequest other) {
  227. if (other == org.waveprotocol.wave.diff.Diff.FetchDiffRequest.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:diff.FetchDiffRequest)
  345. }
  346. static {
  347. defaultInstance = new FetchDiffRequest(true);
  348. org.waveprotocol.wave.diff.Diff.internalForceInit();
  349. defaultInstance.initFields();
  350. }
  351. // @@protoc_insertion_point(class_scope:diff.FetchDiffRequest)
  352. }
  353. public static final class FetchDiffResponse extends
  354. com.google.protobuf.GeneratedMessage {
  355. // Use FetchDiffResponse.newBuilder() to construct.
  356. private FetchDiffResponse() {
  357. initFields();
  358. }
  359. private FetchDiffResponse(boolean noInit) {}
  360. private static final FetchDiffResponse defaultInstance;
  361. public static FetchDiffResponse getDefaultInstance() {
  362. return defaultInstance;
  363. }
  364. public FetchDiffResponse getDefaultInstanceForType() {
  365. return defaultInstance;
  366. }
  367. public static final com.google.protobuf.Descriptors.Descriptor
  368. getDescriptor() {
  369. return org.waveprotocol.wave.diff.Diff.internal_static_diff_FetchDiffResponse_descriptor;
  370. }
  371. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  372. internalGetFieldAccessorTable() {
  373. return org.waveprotocol.wave.diff.Diff.internal_static_diff_FetchDiffResponse_fieldAccessorTable;
  374. }
  375. public static final class WaveletDiff extends
  376. com.google.protobuf.GeneratedMessage {
  377. // Use WaveletDiff.newBuilder() to construct.
  378. private WaveletDiff() {
  379. initFields();
  380. }
  381. private WaveletDiff(boolean noInit) {}
  382. private static final WaveletDiff defaultInstance;
  383. public static WaveletDiff getDefaultInstance() {
  384. return defaultInstance;
  385. }
  386. public WaveletDiff getDefaultInstanceForType() {
  387. return defaultInstance;
  388. }
  389. public static final com.google.protobuf.Descriptors.Descriptor
  390. getDescriptor() {
  391. return org.waveprotocol.wave.diff.Diff.internal_static_diff_FetchDiffResponse_WaveletDiff_descriptor;
  392. }
  393. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  394. internalGetFieldAccessorTable() {
  395. return org.waveprotocol.wave.diff.Diff.internal_static_diff_FetchDiffResponse_WaveletDiff_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 .diff.WaveletDiffSnapshot snapshot = 2;
  404. public static final int SNAPSHOT_FIELD_NUMBER = 2;
  405. private boolean hasSnapshot;
  406. private org.waveprotocol.wave.diff.Diff.WaveletDiffSnapshot snapshot_;
  407. public boolean hasSnapshot() { return hasSnapshot; }
  408. public org.waveprotocol.wave.diff.Diff.WaveletDiffSnapshot getSnapshot() { return snapshot_; }
  409. private void initFields() {
  410. snapshot_ = org.waveprotocol.wave.diff.Diff.WaveletDiffSnapshot.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.diff.Diff.FetchDiffResponse.WaveletDiff 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.diff.Diff.FetchDiffResponse.WaveletDiff 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.diff.Diff.FetchDiffResponse.WaveletDiff parseFrom(byte[] data)
  460. throws com.google.protobuf.InvalidProtocolBufferException {
  461. return newBuilder().mergeFrom(data).buildParsed();
  462. }
  463. public static org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff 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.diff.Diff.FetchDiffResponse.WaveletDiff parseFrom(java.io.InputStream input)
  471. throws java.io.IOException {
  472. return newBuilder().mergeFrom(input).buildParsed();
  473. }
  474. public static org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff 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.diff.Diff.FetchDiffResponse.WaveletDiff 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.diff.Diff.FetchDiffResponse.WaveletDiff 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.diff.Diff.FetchDiffResponse.WaveletDiff 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.diff.Diff.FetchDiffResponse.WaveletDiff 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.diff.Diff.FetchDiffResponse.WaveletDiff 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.diff.Diff.FetchDiffResponse.WaveletDiff result;
  522. // Construct using org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff.newBuilder()
  523. private Builder() {}
  524. private static Builder create() {
  525. Builder builder = new Builder();
  526. builder.result = new org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff();
  527. return builder;
  528. }
  529. protected org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff 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.diff.Diff.FetchDiffResponse.WaveletDiff();
  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.diff.Diff.FetchDiffResponse.WaveletDiff.getDescriptor();
  546. }
  547. public org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff getDefaultInstanceForType() {
  548. return org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff.getDefaultInstance();
  549. }
  550. public boolean isInitialized() {
  551. return result.isInitialized();
  552. }
  553. public org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff build() {
  554. if (result != null && !isInitialized()) {
  555. throw newUninitializedMessageException(result);
  556. }
  557. return buildPartial();
  558. }
  559. private org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff 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.diff.Diff.FetchDiffResponse.WaveletDiff buildPartial() {
  568. if (result == null) {
  569. throw new IllegalStateException(
  570. "build() has already been called on this Builder.");
  571. }
  572. org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff 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.diff.Diff.FetchDiffResponse.WaveletDiff) {
  578. return mergeFrom((org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff)other);
  579. } else {
  580. super.mergeFrom(other);
  581. return this;
  582. }
  583. }
  584. public Builder mergeFrom(org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff other) {
  585. if (other == org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff.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.diff.Diff.WaveletDiffSnapshot.Builder subBuilder = org.waveprotocol.wave.diff.Diff.WaveletDiffSnapshot.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 .diff.WaveletDiffSnapshot snapshot = 2;
  653. public boolean hasSnapshot() {
  654. return result.hasSnapshot();
  655. }
  656. public org.waveprotocol.wave.diff.Diff.WaveletDiffSnapshot getSnapshot() {
  657. return result.getSnapshot();
  658. }
  659. public Builder setSnapshot(org.waveprotocol.wave.diff.Diff.WaveletDiffSnapshot 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.diff.Diff.WaveletDiffSnapshot.Builder builderForValue) {
  668. result.hasSnapshot = true;
  669. result.snapshot_ = builderForValue.build();
  670. return this;
  671. }
  672. public Builder mergeSnapshot(org.waveprotocol.wave.diff.Diff.WaveletDiffSnapshot value) {
  673. if (result.hasSnapshot() &&
  674. result.snapshot_ != org.waveprotocol.wave.diff.Diff.WaveletDiffSnapshot.getDefaultInstance()) {
  675. result.snapshot_ =
  676. org.waveprotocol.wave.diff.Diff.WaveletDiffSnapshot.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.diff.Diff.WaveletDiffSnapshot.getDefaultInstance();
  686. return this;
  687. }
  688. // @@protoc_insertion_point(builder_scope:diff.FetchDiffResponse.WaveletDiff)
  689. }
  690. static {
  691. defaultInstance = new WaveletDiff(true);
  692. org.waveprotocol.wave.diff.Diff.internalForceInit();
  693. defaultInstance.initFields();
  694. }
  695. // @@protoc_insertion_point(class_scope:diff.FetchDiffResponse.WaveletDiff)
  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 .diff.FetchDiffResponse.WaveletDiff wavelet = 2;
  704. public static final int WAVELET_FIELD_NUMBER = 2;
  705. private java.util.List<org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff> wavelet_ =
  706. java.util.Collections.emptyList();
  707. public java.util.List<org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff> getWaveletList() {
  708. return wavelet_;
  709. }
  710. public int getWaveletCount() { return wavelet_.size(); }
  711. public org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff 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.diff.Diff.FetchDiffResponse.WaveletDiff 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.diff.Diff.FetchDiffResponse.WaveletDiff 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.diff.Diff.FetchDiffResponse.WaveletDiff 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.diff.Diff.FetchDiffResponse 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.diff.Diff.FetchDiffResponse 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.diff.Diff.FetchDiffResponse parseFrom(byte[] data)
  766. throws com.google.protobuf.InvalidProtocolBufferException {
  767. return newBuilder().mergeFrom(data).buildParsed();
  768. }
  769. public static org.waveprotocol.wave.diff.Diff.FetchDiffResponse 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.diff.Diff.FetchDiffResponse parseFrom(java.io.InputStream input)
  777. throws java.io.IOException {
  778. return newBuilder().mergeFrom(input).buildParsed();
  779. }
  780. public static org.waveprotocol.wave.diff.Diff.FetchDiffResponse 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.diff.Diff.FetchDiffResponse 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.diff.Diff.FetchDiffResponse 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.diff.Diff.FetchDiffResponse 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.diff.Diff.FetchDiffResponse 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.diff.Diff.FetchDiffResponse 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.diff.Diff.FetchDiffResponse result;
  828. // Construct using org.waveprotocol.wave.diff.Diff.FetchDiffResponse.newBuilder()
  829. private Builder() {}
  830. private static Builder create() {
  831. Builder builder = new Builder();
  832. builder.result = new org.waveprotocol.wave.diff.Diff.FetchDiffResponse();
  833. return builder;
  834. }
  835. protected org.waveprotocol.wave.diff.Diff.FetchDiffResponse 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.diff.Diff.FetchDiffResponse();
  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.diff.Diff.FetchDiffResponse.getDescriptor();
  852. }
  853. public org.waveprotocol.wave.diff.Diff.FetchDiffResponse getDefaultInstanceForType() {
  854. return org.waveprotocol.wave.diff.Diff.FetchDiffResponse.getDefaultInstance();
  855. }
  856. public boolean isInitialized() {
  857. return result.isInitialized();
  858. }
  859. public org.waveprotocol.wave.diff.Diff.FetchDiffResponse build() {
  860. if (result != null && !isInitialized()) {
  861. throw newUninitializedMessageException(result);
  862. }
  863. return buildPartial();
  864. }
  865. private org.waveprotocol.wave.diff.Diff.FetchDiffResponse 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.diff.Diff.FetchDiffResponse 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.diff.Diff.FetchDiffResponse 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.diff.Diff.FetchDiffResponse) {
  888. return mergeFrom((org.waveprotocol.wave.diff.Diff.FetchDiffResponse)other);
  889. } else {
  890. super.mergeFrom(other);
  891. return this;
  892. }
  893. }
  894. public Builder mergeFrom(org.waveprotocol.wave.diff.Diff.FetchDiffResponse other) {
  895. if (other == org.waveprotocol.wave.diff.Diff.FetchDiffResponse.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.diff.Diff.FetchDiffResponse.WaveletDiff>();
  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.diff.Diff.FetchDiffResponse.WaveletDiff.Builder subBuilder = org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff.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 .diff.FetchDiffResponse.WaveletDiff wavelet = 2;
  984. public java.util.List<org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff> getWaveletList() {
  985. return java.util.Collections.unmodifiableList(result.wavelet_);
  986. }
  987. public int getWaveletCount() {
  988. return result.getWaveletCount();
  989. }
  990. public org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff getWavelet(int index) {
  991. return result.getWavelet(index);
  992. }
  993. public Builder setWavelet(int index, org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff 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.diff.Diff.FetchDiffResponse.WaveletDiff.Builder builderForValue) {
  1001. result.wavelet_.set(index, builderForValue.build());
  1002. return this;
  1003. }
  1004. public Builder addWavelet(org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff 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.diff.Diff.FetchDiffResponse.WaveletDiff>();
  1010. }
  1011. result.wavelet_.add(value);
  1012. return this;
  1013. }
  1014. public Builder addWavelet(org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff.Builder builderForValue) {
  1015. if (result.wavelet_.isEmpty()) {
  1016. result.wavelet_ = new java.util.ArrayList<org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff>();
  1017. }
  1018. result.wavelet_.add(builderForValue.build());
  1019. return this;
  1020. }
  1021. public Builder addAllWavelet(
  1022. java.lang.Iterable<? extends org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff> values) {
  1023. if (result.wavelet_.isEmpty()) {
  1024. result.wavelet_ = new java.util.ArrayList<org.waveprotocol.wave.diff.Diff.FetchDiffResponse.WaveletDiff>();
  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:diff.FetchDiffResponse)
  1034. }
  1035. static {
  1036. defaultInstance = new FetchDiffResponse(true);
  1037. org.waveprotocol.wave.diff.Diff.internalForceInit();
  1038. defaultInstance.initFields();
  1039. }
  1040. // @@protoc_insertion_point(class_scope:diff.FetchDiffResponse)
  1041. }
  1042. public static final class WaveletDiffSnapshot extends
  1043. com.google.protobuf.GeneratedMessage {
  1044. // Use WaveletDiffSnapshot.newBuilder() to construct.
  1045. private WaveletDiffSnapshot() {
  1046. initFields();
  1047. }
  1048. private WaveletDiffSnapshot(boolean noInit) {}
  1049. private static final WaveletDiffSnapshot defaultInstance;
  1050. public static WaveletDiffSnapshot getDefaultInstance() {
  1051. return defaultInstance;
  1052. }
  1053. public WaveletDiffSnapshot getDefaultInstanceForType() {
  1054. return defaultInstance;
  1055. }
  1056. public static final com.google.protobuf.Descriptors.Descriptor
  1057. getDescriptor() {
  1058. return org.waveprotocol.wave.diff.Diff.internal_static_diff_WaveletDiffSnapshot_descriptor;
  1059. }
  1060. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  1061. internalGetFieldAccessorTable() {
  1062. return org.waveprotocol.wave.diff.Diff.internal_static_diff_WaveletDiffSnapshot_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. // repeated string participant = 2;
  1071. public static final int PARTICIPANT_FIELD_NUMBER = 2;
  1072. private java.util.List<java.lang.String> participant_ =
  1073. java.util.Collections.emptyList();
  1074. public java.util.List<java.lang.String> getParticipantList() {
  1075. return participant_;
  1076. }
  1077. public int getParticipantCount() { return participant_.size(); }
  1078. public java.lang.String getParticipant(int index) {
  1079. return participant_.get(index);
  1080. }
  1081. // repeated string addedParticipant = 21;
  1082. public static final int ADDEDPARTICIPANT_FIELD_NUMBER = 21;
  1083. private java.util.List<java.lang.String> addedParticipant_ =
  1084. java.util.Collections.emptyList();
  1085. public java.util.List<java.lang.String> getAddedParticipantList() {
  1086. return addedParticipant_;
  1087. }
  1088. public int getAddedParticipantCount() { return addedParticipant_.size(); }
  1089. public java.lang.String getAddedParticipant(int index) {
  1090. return addedParticipant_.get(index);
  1091. }
  1092. // repeated string removedParticipant = 22;
  1093. public static final int REMOVEDPARTICIPANT_FIELD_NUMBER = 22;
  1094. private java.util.List<java.lang.String> removedParticipant_ =
  1095. java.util.Collections.emptyList();
  1096. public java.util.List<java.lang.String> getRemovedParticipantList() {
  1097. return removedParticipant_;
  1098. }
  1099. public int getRemovedParticipantCount() { return removedParticipant_.size(); }
  1100. public java.lang.String getRemovedParticipant(int index) {
  1101. return removedParticipant_.get(index);
  1102. }
  1103. // repeated .diff.DocumentDiffSnapshot document = 3;
  1104. public static final int DOCUMENT_FIELD_NUMBER = 3;
  1105. private java.util.List<org.waveprotocol.wave.diff.Diff.DocumentDiffSnapshot> document_ =
  1106. java.util.Collections.emptyList();
  1107. public java.util.List<org.waveprotocol.wave.diff.Diff.DocumentDiffSnapshot> getDocumentList() {
  1108. return document_;
  1109. }
  1110. public int getDocumentCount() { return document_.size(); }
  1111. public org.waveprotocol.wave.diff.Diff.DocumentDiffSnapshot getDocument(int index) {
  1112. return document_.get(index);
  1113. }
  1114. // required .federation.ProtocolHashedVersion version = 4;
  1115. public static final int VERSION_FIELD_NUMBER = 4;
  1116. private boolean hasVersion;
  1117. private org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion version_;
  1118. public boolean hasVersion() { return hasVersion; }
  1119. public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getVersion() { return version_; }
  1120. // required int64 lastModifiedTime = 5;
  1121. public static final int LASTMODIFIEDTIME_FIELD_NUM

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