PageRenderTime 51ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/java-api/src/net/stateupdateservice/StateUpdateService.java

https://bitbucket.org/stateupdateservice/state-update-service
Java | 1429 lines | 905 code | 81 blank | 443 comment | 104 complexity | 5b6367cea37f54d297e5432db8a642ff MD5 | raw file
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: state_update_service.proto
  3. package net.stateupdateservice;
  4. public final class StateUpdateService {
  5. private StateUpdateService() {}
  6. public static void registerAllExtensions(
  7. com.google.protobuf.ExtensionRegistry registry) {
  8. }
  9. public interface PartialUpdateOrBuilder
  10. extends com.google.protobuf.MessageOrBuilder {
  11. // required .stateupdateservice.PartialUpdate.PartialUpdateType type = 1;
  12. /**
  13. * <code>required .stateupdateservice.PartialUpdate.PartialUpdateType type = 1;</code>
  14. *
  15. * <pre>
  16. * Operation type
  17. * </pre>
  18. */
  19. boolean hasType();
  20. /**
  21. * <code>required .stateupdateservice.PartialUpdate.PartialUpdateType type = 1;</code>
  22. *
  23. * <pre>
  24. * Operation type
  25. * </pre>
  26. */
  27. net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType getType();
  28. // optional bytes appendBytes = 2;
  29. /**
  30. * <code>optional bytes appendBytes = 2;</code>
  31. *
  32. * <pre>
  33. * Bytes to append
  34. * </pre>
  35. */
  36. boolean hasAppendBytes();
  37. /**
  38. * <code>optional bytes appendBytes = 2;</code>
  39. *
  40. * <pre>
  41. * Bytes to append
  42. * </pre>
  43. */
  44. com.google.protobuf.ByteString getAppendBytes();
  45. // optional string protobufField = 4;
  46. /**
  47. * <code>optional string protobufField = 4;</code>
  48. *
  49. * <pre>
  50. * Used for protobuf field update, NOT YET IMPLEMENTED
  51. * </pre>
  52. */
  53. boolean hasProtobufField();
  54. /**
  55. * <code>optional string protobufField = 4;</code>
  56. *
  57. * <pre>
  58. * Used for protobuf field update, NOT YET IMPLEMENTED
  59. * </pre>
  60. */
  61. java.lang.String getProtobufField();
  62. /**
  63. * <code>optional string protobufField = 4;</code>
  64. *
  65. * <pre>
  66. * Used for protobuf field update, NOT YET IMPLEMENTED
  67. * </pre>
  68. */
  69. com.google.protobuf.ByteString
  70. getProtobufFieldBytes();
  71. // optional sint64 protobufBeginSlice = 5;
  72. /**
  73. * <code>optional sint64 protobufBeginSlice = 5;</code>
  74. *
  75. * <pre>
  76. * Used for protobuf repeated field slice, begin index, not yet implemented
  77. * </pre>
  78. */
  79. boolean hasProtobufBeginSlice();
  80. /**
  81. * <code>optional sint64 protobufBeginSlice = 5;</code>
  82. *
  83. * <pre>
  84. * Used for protobuf repeated field slice, begin index, not yet implemented
  85. * </pre>
  86. */
  87. long getProtobufBeginSlice();
  88. // optional sint64 protobufEndSlice = 6;
  89. /**
  90. * <code>optional sint64 protobufEndSlice = 6;</code>
  91. *
  92. * <pre>
  93. * Used for protobuf repeated field slice, end index, not yet implemented
  94. * </pre>
  95. */
  96. boolean hasProtobufEndSlice();
  97. /**
  98. * <code>optional sint64 protobufEndSlice = 6;</code>
  99. *
  100. * <pre>
  101. * Used for protobuf repeated field slice, end index, not yet implemented
  102. * </pre>
  103. */
  104. long getProtobufEndSlice();
  105. }
  106. /**
  107. * Protobuf type {@code stateupdateservice.PartialUpdate}
  108. */
  109. public static final class PartialUpdate extends
  110. com.google.protobuf.GeneratedMessage
  111. implements PartialUpdateOrBuilder {
  112. // Use PartialUpdate.newBuilder() to construct.
  113. private PartialUpdate(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
  114. super(builder);
  115. this.unknownFields = builder.getUnknownFields();
  116. }
  117. private PartialUpdate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
  118. private static final PartialUpdate defaultInstance;
  119. public static PartialUpdate getDefaultInstance() {
  120. return defaultInstance;
  121. }
  122. public PartialUpdate getDefaultInstanceForType() {
  123. return defaultInstance;
  124. }
  125. private final com.google.protobuf.UnknownFieldSet unknownFields;
  126. @java.lang.Override
  127. public final com.google.protobuf.UnknownFieldSet
  128. getUnknownFields() {
  129. return this.unknownFields;
  130. }
  131. private PartialUpdate(
  132. com.google.protobuf.CodedInputStream input,
  133. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  134. throws com.google.protobuf.InvalidProtocolBufferException {
  135. initFields();
  136. int mutable_bitField0_ = 0;
  137. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  138. com.google.protobuf.UnknownFieldSet.newBuilder();
  139. try {
  140. boolean done = false;
  141. while (!done) {
  142. int tag = input.readTag();
  143. switch (tag) {
  144. case 0:
  145. done = true;
  146. break;
  147. default: {
  148. if (!parseUnknownField(input, unknownFields,
  149. extensionRegistry, tag)) {
  150. done = true;
  151. }
  152. break;
  153. }
  154. case 8: {
  155. int rawValue = input.readEnum();
  156. net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType value = net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType.valueOf(rawValue);
  157. if (value == null) {
  158. unknownFields.mergeVarintField(1, rawValue);
  159. } else {
  160. bitField0_ |= 0x00000001;
  161. type_ = value;
  162. }
  163. break;
  164. }
  165. case 18: {
  166. bitField0_ |= 0x00000002;
  167. appendBytes_ = input.readBytes();
  168. break;
  169. }
  170. case 34: {
  171. bitField0_ |= 0x00000004;
  172. protobufField_ = input.readBytes();
  173. break;
  174. }
  175. case 40: {
  176. bitField0_ |= 0x00000008;
  177. protobufBeginSlice_ = input.readSInt64();
  178. break;
  179. }
  180. case 48: {
  181. bitField0_ |= 0x00000010;
  182. protobufEndSlice_ = input.readSInt64();
  183. break;
  184. }
  185. }
  186. }
  187. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  188. throw e.setUnfinishedMessage(this);
  189. } catch (java.io.IOException e) {
  190. throw new com.google.protobuf.InvalidProtocolBufferException(
  191. e.getMessage()).setUnfinishedMessage(this);
  192. } finally {
  193. this.unknownFields = unknownFields.build();
  194. makeExtensionsImmutable();
  195. }
  196. }
  197. public static final com.google.protobuf.Descriptors.Descriptor
  198. getDescriptor() {
  199. return net.stateupdateservice.StateUpdateService.internal_static_stateupdateservice_PartialUpdate_descriptor;
  200. }
  201. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  202. internalGetFieldAccessorTable() {
  203. return net.stateupdateservice.StateUpdateService.internal_static_stateupdateservice_PartialUpdate_fieldAccessorTable
  204. .ensureFieldAccessorsInitialized(
  205. net.stateupdateservice.StateUpdateService.PartialUpdate.class, net.stateupdateservice.StateUpdateService.PartialUpdate.Builder.class);
  206. }
  207. public static com.google.protobuf.Parser<PartialUpdate> PARSER =
  208. new com.google.protobuf.AbstractParser<PartialUpdate>() {
  209. public PartialUpdate parsePartialFrom(
  210. com.google.protobuf.CodedInputStream input,
  211. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  212. throws com.google.protobuf.InvalidProtocolBufferException {
  213. return new PartialUpdate(input, extensionRegistry);
  214. }
  215. };
  216. @java.lang.Override
  217. public com.google.protobuf.Parser<PartialUpdate> getParserForType() {
  218. return PARSER;
  219. }
  220. /**
  221. * Protobuf enum {@code stateupdateservice.PartialUpdate.PartialUpdateType}
  222. */
  223. public enum PartialUpdateType
  224. implements com.google.protobuf.ProtocolMessageEnum {
  225. /**
  226. * <code>APPEND = 0;</code>
  227. *
  228. * <pre>
  229. * Basic append type, supported in protocol version 1
  230. * </pre>
  231. */
  232. APPEND(0, 0),
  233. /**
  234. * <code>PROTOBUF_MERGE = 1;</code>
  235. *
  236. * <pre>
  237. * Protobuf merge type, supported in protocol version 1, you should have set an original value and included a protobuf descriptor
  238. * </pre>
  239. */
  240. PROTOBUF_MERGE(1, 1),
  241. /**
  242. * <code>PROTOBUF_REPEATED_SLICE = 2;</code>
  243. *
  244. * <pre>
  245. * Protobuf repeated field slice, additional operation supported in protocol version 2, not yet implemented
  246. * </pre>
  247. */
  248. PROTOBUF_REPEATED_SLICE(2, 2),
  249. ;
  250. /**
  251. * <code>APPEND = 0;</code>
  252. *
  253. * <pre>
  254. * Basic append type, supported in protocol version 1
  255. * </pre>
  256. */
  257. public static final int APPEND_VALUE = 0;
  258. /**
  259. * <code>PROTOBUF_MERGE = 1;</code>
  260. *
  261. * <pre>
  262. * Protobuf merge type, supported in protocol version 1, you should have set an original value and included a protobuf descriptor
  263. * </pre>
  264. */
  265. public static final int PROTOBUF_MERGE_VALUE = 1;
  266. /**
  267. * <code>PROTOBUF_REPEATED_SLICE = 2;</code>
  268. *
  269. * <pre>
  270. * Protobuf repeated field slice, additional operation supported in protocol version 2, not yet implemented
  271. * </pre>
  272. */
  273. public static final int PROTOBUF_REPEATED_SLICE_VALUE = 2;
  274. public final int getNumber() { return value; }
  275. public static PartialUpdateType valueOf(int value) {
  276. switch (value) {
  277. case 0: return APPEND;
  278. case 1: return PROTOBUF_MERGE;
  279. case 2: return PROTOBUF_REPEATED_SLICE;
  280. default: return null;
  281. }
  282. }
  283. public static com.google.protobuf.Internal.EnumLiteMap<PartialUpdateType>
  284. internalGetValueMap() {
  285. return internalValueMap;
  286. }
  287. private static com.google.protobuf.Internal.EnumLiteMap<PartialUpdateType>
  288. internalValueMap =
  289. new com.google.protobuf.Internal.EnumLiteMap<PartialUpdateType>() {
  290. public PartialUpdateType findValueByNumber(int number) {
  291. return PartialUpdateType.valueOf(number);
  292. }
  293. };
  294. public final com.google.protobuf.Descriptors.EnumValueDescriptor
  295. getValueDescriptor() {
  296. return getDescriptor().getValues().get(index);
  297. }
  298. public final com.google.protobuf.Descriptors.EnumDescriptor
  299. getDescriptorForType() {
  300. return getDescriptor();
  301. }
  302. public static final com.google.protobuf.Descriptors.EnumDescriptor
  303. getDescriptor() {
  304. return net.stateupdateservice.StateUpdateService.PartialUpdate.getDescriptor().getEnumTypes().get(0);
  305. }
  306. private static final PartialUpdateType[] VALUES = values();
  307. public static PartialUpdateType valueOf(
  308. com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
  309. if (desc.getType() != getDescriptor()) {
  310. throw new java.lang.IllegalArgumentException(
  311. "EnumValueDescriptor is not for this type.");
  312. }
  313. return VALUES[desc.getIndex()];
  314. }
  315. private final int index;
  316. private final int value;
  317. private PartialUpdateType(int index, int value) {
  318. this.index = index;
  319. this.value = value;
  320. }
  321. // @@protoc_insertion_point(enum_scope:stateupdateservice.PartialUpdate.PartialUpdateType)
  322. }
  323. private int bitField0_;
  324. // required .stateupdateservice.PartialUpdate.PartialUpdateType type = 1;
  325. public static final int TYPE_FIELD_NUMBER = 1;
  326. private net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType type_;
  327. /**
  328. * <code>required .stateupdateservice.PartialUpdate.PartialUpdateType type = 1;</code>
  329. *
  330. * <pre>
  331. * Operation type
  332. * </pre>
  333. */
  334. public boolean hasType() {
  335. return ((bitField0_ & 0x00000001) == 0x00000001);
  336. }
  337. /**
  338. * <code>required .stateupdateservice.PartialUpdate.PartialUpdateType type = 1;</code>
  339. *
  340. * <pre>
  341. * Operation type
  342. * </pre>
  343. */
  344. public net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType getType() {
  345. return type_;
  346. }
  347. // optional bytes appendBytes = 2;
  348. public static final int APPENDBYTES_FIELD_NUMBER = 2;
  349. private com.google.protobuf.ByteString appendBytes_;
  350. /**
  351. * <code>optional bytes appendBytes = 2;</code>
  352. *
  353. * <pre>
  354. * Bytes to append
  355. * </pre>
  356. */
  357. public boolean hasAppendBytes() {
  358. return ((bitField0_ & 0x00000002) == 0x00000002);
  359. }
  360. /**
  361. * <code>optional bytes appendBytes = 2;</code>
  362. *
  363. * <pre>
  364. * Bytes to append
  365. * </pre>
  366. */
  367. public com.google.protobuf.ByteString getAppendBytes() {
  368. return appendBytes_;
  369. }
  370. // optional string protobufField = 4;
  371. public static final int PROTOBUFFIELD_FIELD_NUMBER = 4;
  372. private java.lang.Object protobufField_;
  373. /**
  374. * <code>optional string protobufField = 4;</code>
  375. *
  376. * <pre>
  377. * Used for protobuf field update, NOT YET IMPLEMENTED
  378. * </pre>
  379. */
  380. public boolean hasProtobufField() {
  381. return ((bitField0_ & 0x00000004) == 0x00000004);
  382. }
  383. /**
  384. * <code>optional string protobufField = 4;</code>
  385. *
  386. * <pre>
  387. * Used for protobuf field update, NOT YET IMPLEMENTED
  388. * </pre>
  389. */
  390. public java.lang.String getProtobufField() {
  391. java.lang.Object ref = protobufField_;
  392. if (ref instanceof java.lang.String) {
  393. return (java.lang.String) ref;
  394. } else {
  395. com.google.protobuf.ByteString bs =
  396. (com.google.protobuf.ByteString) ref;
  397. java.lang.String s = bs.toStringUtf8();
  398. if (bs.isValidUtf8()) {
  399. protobufField_ = s;
  400. }
  401. return s;
  402. }
  403. }
  404. /**
  405. * <code>optional string protobufField = 4;</code>
  406. *
  407. * <pre>
  408. * Used for protobuf field update, NOT YET IMPLEMENTED
  409. * </pre>
  410. */
  411. public com.google.protobuf.ByteString
  412. getProtobufFieldBytes() {
  413. java.lang.Object ref = protobufField_;
  414. if (ref instanceof java.lang.String) {
  415. com.google.protobuf.ByteString b =
  416. com.google.protobuf.ByteString.copyFromUtf8(
  417. (java.lang.String) ref);
  418. protobufField_ = b;
  419. return b;
  420. } else {
  421. return (com.google.protobuf.ByteString) ref;
  422. }
  423. }
  424. // optional sint64 protobufBeginSlice = 5;
  425. public static final int PROTOBUFBEGINSLICE_FIELD_NUMBER = 5;
  426. private long protobufBeginSlice_;
  427. /**
  428. * <code>optional sint64 protobufBeginSlice = 5;</code>
  429. *
  430. * <pre>
  431. * Used for protobuf repeated field slice, begin index, not yet implemented
  432. * </pre>
  433. */
  434. public boolean hasProtobufBeginSlice() {
  435. return ((bitField0_ & 0x00000008) == 0x00000008);
  436. }
  437. /**
  438. * <code>optional sint64 protobufBeginSlice = 5;</code>
  439. *
  440. * <pre>
  441. * Used for protobuf repeated field slice, begin index, not yet implemented
  442. * </pre>
  443. */
  444. public long getProtobufBeginSlice() {
  445. return protobufBeginSlice_;
  446. }
  447. // optional sint64 protobufEndSlice = 6;
  448. public static final int PROTOBUFENDSLICE_FIELD_NUMBER = 6;
  449. private long protobufEndSlice_;
  450. /**
  451. * <code>optional sint64 protobufEndSlice = 6;</code>
  452. *
  453. * <pre>
  454. * Used for protobuf repeated field slice, end index, not yet implemented
  455. * </pre>
  456. */
  457. public boolean hasProtobufEndSlice() {
  458. return ((bitField0_ & 0x00000010) == 0x00000010);
  459. }
  460. /**
  461. * <code>optional sint64 protobufEndSlice = 6;</code>
  462. *
  463. * <pre>
  464. * Used for protobuf repeated field slice, end index, not yet implemented
  465. * </pre>
  466. */
  467. public long getProtobufEndSlice() {
  468. return protobufEndSlice_;
  469. }
  470. private void initFields() {
  471. type_ = net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType.APPEND;
  472. appendBytes_ = com.google.protobuf.ByteString.EMPTY;
  473. protobufField_ = "";
  474. protobufBeginSlice_ = 0L;
  475. protobufEndSlice_ = 0L;
  476. }
  477. private byte memoizedIsInitialized = -1;
  478. public final boolean isInitialized() {
  479. byte isInitialized = memoizedIsInitialized;
  480. if (isInitialized != -1) return isInitialized == 1;
  481. if (!hasType()) {
  482. memoizedIsInitialized = 0;
  483. return false;
  484. }
  485. memoizedIsInitialized = 1;
  486. return true;
  487. }
  488. public void writeTo(com.google.protobuf.CodedOutputStream output)
  489. throws java.io.IOException {
  490. getSerializedSize();
  491. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  492. output.writeEnum(1, type_.getNumber());
  493. }
  494. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  495. output.writeBytes(2, appendBytes_);
  496. }
  497. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  498. output.writeBytes(4, getProtobufFieldBytes());
  499. }
  500. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  501. output.writeSInt64(5, protobufBeginSlice_);
  502. }
  503. if (((bitField0_ & 0x00000010) == 0x00000010)) {
  504. output.writeSInt64(6, protobufEndSlice_);
  505. }
  506. getUnknownFields().writeTo(output);
  507. }
  508. private int memoizedSerializedSize = -1;
  509. public int getSerializedSize() {
  510. int size = memoizedSerializedSize;
  511. if (size != -1) return size;
  512. size = 0;
  513. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  514. size += com.google.protobuf.CodedOutputStream
  515. .computeEnumSize(1, type_.getNumber());
  516. }
  517. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  518. size += com.google.protobuf.CodedOutputStream
  519. .computeBytesSize(2, appendBytes_);
  520. }
  521. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  522. size += com.google.protobuf.CodedOutputStream
  523. .computeBytesSize(4, getProtobufFieldBytes());
  524. }
  525. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  526. size += com.google.protobuf.CodedOutputStream
  527. .computeSInt64Size(5, protobufBeginSlice_);
  528. }
  529. if (((bitField0_ & 0x00000010) == 0x00000010)) {
  530. size += com.google.protobuf.CodedOutputStream
  531. .computeSInt64Size(6, protobufEndSlice_);
  532. }
  533. size += getUnknownFields().getSerializedSize();
  534. memoizedSerializedSize = size;
  535. return size;
  536. }
  537. private static final long serialVersionUID = 0L;
  538. @java.lang.Override
  539. protected java.lang.Object writeReplace()
  540. throws java.io.ObjectStreamException {
  541. return super.writeReplace();
  542. }
  543. public static net.stateupdateservice.StateUpdateService.PartialUpdate parseFrom(
  544. com.google.protobuf.ByteString data)
  545. throws com.google.protobuf.InvalidProtocolBufferException {
  546. return PARSER.parseFrom(data);
  547. }
  548. public static net.stateupdateservice.StateUpdateService.PartialUpdate parseFrom(
  549. com.google.protobuf.ByteString data,
  550. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  551. throws com.google.protobuf.InvalidProtocolBufferException {
  552. return PARSER.parseFrom(data, extensionRegistry);
  553. }
  554. public static net.stateupdateservice.StateUpdateService.PartialUpdate parseFrom(byte[] data)
  555. throws com.google.protobuf.InvalidProtocolBufferException {
  556. return PARSER.parseFrom(data);
  557. }
  558. public static net.stateupdateservice.StateUpdateService.PartialUpdate parseFrom(
  559. byte[] data,
  560. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  561. throws com.google.protobuf.InvalidProtocolBufferException {
  562. return PARSER.parseFrom(data, extensionRegistry);
  563. }
  564. public static net.stateupdateservice.StateUpdateService.PartialUpdate parseFrom(java.io.InputStream input)
  565. throws java.io.IOException {
  566. return PARSER.parseFrom(input);
  567. }
  568. public static net.stateupdateservice.StateUpdateService.PartialUpdate parseFrom(
  569. java.io.InputStream input,
  570. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  571. throws java.io.IOException {
  572. return PARSER.parseFrom(input, extensionRegistry);
  573. }
  574. public static net.stateupdateservice.StateUpdateService.PartialUpdate parseDelimitedFrom(java.io.InputStream input)
  575. throws java.io.IOException {
  576. return PARSER.parseDelimitedFrom(input);
  577. }
  578. public static net.stateupdateservice.StateUpdateService.PartialUpdate parseDelimitedFrom(
  579. java.io.InputStream input,
  580. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  581. throws java.io.IOException {
  582. return PARSER.parseDelimitedFrom(input, extensionRegistry);
  583. }
  584. public static net.stateupdateservice.StateUpdateService.PartialUpdate parseFrom(
  585. com.google.protobuf.CodedInputStream input)
  586. throws java.io.IOException {
  587. return PARSER.parseFrom(input);
  588. }
  589. public static net.stateupdateservice.StateUpdateService.PartialUpdate parseFrom(
  590. com.google.protobuf.CodedInputStream input,
  591. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  592. throws java.io.IOException {
  593. return PARSER.parseFrom(input, extensionRegistry);
  594. }
  595. public static Builder newBuilder() { return Builder.create(); }
  596. public Builder newBuilderForType() { return newBuilder(); }
  597. public static Builder newBuilder(net.stateupdateservice.StateUpdateService.PartialUpdate prototype) {
  598. return newBuilder().mergeFrom(prototype);
  599. }
  600. public Builder toBuilder() { return newBuilder(this); }
  601. @java.lang.Override
  602. protected Builder newBuilderForType(
  603. com.google.protobuf.GeneratedMessage.BuilderParent parent) {
  604. Builder builder = new Builder(parent);
  605. return builder;
  606. }
  607. /**
  608. * Protobuf type {@code stateupdateservice.PartialUpdate}
  609. */
  610. public static final class Builder extends
  611. com.google.protobuf.GeneratedMessage.Builder<Builder>
  612. implements net.stateupdateservice.StateUpdateService.PartialUpdateOrBuilder {
  613. public static final com.google.protobuf.Descriptors.Descriptor
  614. getDescriptor() {
  615. return net.stateupdateservice.StateUpdateService.internal_static_stateupdateservice_PartialUpdate_descriptor;
  616. }
  617. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  618. internalGetFieldAccessorTable() {
  619. return net.stateupdateservice.StateUpdateService.internal_static_stateupdateservice_PartialUpdate_fieldAccessorTable
  620. .ensureFieldAccessorsInitialized(
  621. net.stateupdateservice.StateUpdateService.PartialUpdate.class, net.stateupdateservice.StateUpdateService.PartialUpdate.Builder.class);
  622. }
  623. // Construct using net.stateupdateservice.StateUpdateService.PartialUpdate.newBuilder()
  624. private Builder() {
  625. maybeForceBuilderInitialization();
  626. }
  627. private Builder(
  628. com.google.protobuf.GeneratedMessage.BuilderParent parent) {
  629. super(parent);
  630. maybeForceBuilderInitialization();
  631. }
  632. private void maybeForceBuilderInitialization() {
  633. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  634. }
  635. }
  636. private static Builder create() {
  637. return new Builder();
  638. }
  639. public Builder clear() {
  640. super.clear();
  641. type_ = net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType.APPEND;
  642. bitField0_ = (bitField0_ & ~0x00000001);
  643. appendBytes_ = com.google.protobuf.ByteString.EMPTY;
  644. bitField0_ = (bitField0_ & ~0x00000002);
  645. protobufField_ = "";
  646. bitField0_ = (bitField0_ & ~0x00000004);
  647. protobufBeginSlice_ = 0L;
  648. bitField0_ = (bitField0_ & ~0x00000008);
  649. protobufEndSlice_ = 0L;
  650. bitField0_ = (bitField0_ & ~0x00000010);
  651. return this;
  652. }
  653. public Builder clone() {
  654. return create().mergeFrom(buildPartial());
  655. }
  656. public com.google.protobuf.Descriptors.Descriptor
  657. getDescriptorForType() {
  658. return net.stateupdateservice.StateUpdateService.internal_static_stateupdateservice_PartialUpdate_descriptor;
  659. }
  660. public net.stateupdateservice.StateUpdateService.PartialUpdate getDefaultInstanceForType() {
  661. return net.stateupdateservice.StateUpdateService.PartialUpdate.getDefaultInstance();
  662. }
  663. public net.stateupdateservice.StateUpdateService.PartialUpdate build() {
  664. net.stateupdateservice.StateUpdateService.PartialUpdate result = buildPartial();
  665. if (!result.isInitialized()) {
  666. throw newUninitializedMessageException(result);
  667. }
  668. return result;
  669. }
  670. public net.stateupdateservice.StateUpdateService.PartialUpdate buildPartial() {
  671. net.stateupdateservice.StateUpdateService.PartialUpdate result = new net.stateupdateservice.StateUpdateService.PartialUpdate(this);
  672. int from_bitField0_ = bitField0_;
  673. int to_bitField0_ = 0;
  674. if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  675. to_bitField0_ |= 0x00000001;
  676. }
  677. result.type_ = type_;
  678. if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
  679. to_bitField0_ |= 0x00000002;
  680. }
  681. result.appendBytes_ = appendBytes_;
  682. if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
  683. to_bitField0_ |= 0x00000004;
  684. }
  685. result.protobufField_ = protobufField_;
  686. if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
  687. to_bitField0_ |= 0x00000008;
  688. }
  689. result.protobufBeginSlice_ = protobufBeginSlice_;
  690. if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
  691. to_bitField0_ |= 0x00000010;
  692. }
  693. result.protobufEndSlice_ = protobufEndSlice_;
  694. result.bitField0_ = to_bitField0_;
  695. onBuilt();
  696. return result;
  697. }
  698. public Builder mergeFrom(com.google.protobuf.Message other) {
  699. if (other instanceof net.stateupdateservice.StateUpdateService.PartialUpdate) {
  700. return mergeFrom((net.stateupdateservice.StateUpdateService.PartialUpdate)other);
  701. } else {
  702. super.mergeFrom(other);
  703. return this;
  704. }
  705. }
  706. public Builder mergeFrom(net.stateupdateservice.StateUpdateService.PartialUpdate other) {
  707. if (other == net.stateupdateservice.StateUpdateService.PartialUpdate.getDefaultInstance()) return this;
  708. if (other.hasType()) {
  709. setType(other.getType());
  710. }
  711. if (other.hasAppendBytes()) {
  712. setAppendBytes(other.getAppendBytes());
  713. }
  714. if (other.hasProtobufField()) {
  715. bitField0_ |= 0x00000004;
  716. protobufField_ = other.protobufField_;
  717. onChanged();
  718. }
  719. if (other.hasProtobufBeginSlice()) {
  720. setProtobufBeginSlice(other.getProtobufBeginSlice());
  721. }
  722. if (other.hasProtobufEndSlice()) {
  723. setProtobufEndSlice(other.getProtobufEndSlice());
  724. }
  725. this.mergeUnknownFields(other.getUnknownFields());
  726. return this;
  727. }
  728. public final boolean isInitialized() {
  729. if (!hasType()) {
  730. return false;
  731. }
  732. return true;
  733. }
  734. public Builder mergeFrom(
  735. com.google.protobuf.CodedInputStream input,
  736. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  737. throws java.io.IOException {
  738. net.stateupdateservice.StateUpdateService.PartialUpdate parsedMessage = null;
  739. try {
  740. parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
  741. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  742. parsedMessage = (net.stateupdateservice.StateUpdateService.PartialUpdate) e.getUnfinishedMessage();
  743. throw e;
  744. } finally {
  745. if (parsedMessage != null) {
  746. mergeFrom(parsedMessage);
  747. }
  748. }
  749. return this;
  750. }
  751. private int bitField0_;
  752. // required .stateupdateservice.PartialUpdate.PartialUpdateType type = 1;
  753. private net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType type_ = net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType.APPEND;
  754. /**
  755. * <code>required .stateupdateservice.PartialUpdate.PartialUpdateType type = 1;</code>
  756. *
  757. * <pre>
  758. * Operation type
  759. * </pre>
  760. */
  761. public boolean hasType() {
  762. return ((bitField0_ & 0x00000001) == 0x00000001);
  763. }
  764. /**
  765. * <code>required .stateupdateservice.PartialUpdate.PartialUpdateType type = 1;</code>
  766. *
  767. * <pre>
  768. * Operation type
  769. * </pre>
  770. */
  771. public net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType getType() {
  772. return type_;
  773. }
  774. /**
  775. * <code>required .stateupdateservice.PartialUpdate.PartialUpdateType type = 1;</code>
  776. *
  777. * <pre>
  778. * Operation type
  779. * </pre>
  780. */
  781. public Builder setType(net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType value) {
  782. if (value == null) {
  783. throw new NullPointerException();
  784. }
  785. bitField0_ |= 0x00000001;
  786. type_ = value;
  787. onChanged();
  788. return this;
  789. }
  790. /**
  791. * <code>required .stateupdateservice.PartialUpdate.PartialUpdateType type = 1;</code>
  792. *
  793. * <pre>
  794. * Operation type
  795. * </pre>
  796. */
  797. public Builder clearType() {
  798. bitField0_ = (bitField0_ & ~0x00000001);
  799. type_ = net.stateupdateservice.StateUpdateService.PartialUpdate.PartialUpdateType.APPEND;
  800. onChanged();
  801. return this;
  802. }
  803. // optional bytes appendBytes = 2;
  804. private com.google.protobuf.ByteString appendBytes_ = com.google.protobuf.ByteString.EMPTY;
  805. /**
  806. * <code>optional bytes appendBytes = 2;</code>
  807. *
  808. * <pre>
  809. * Bytes to append
  810. * </pre>
  811. */
  812. public boolean hasAppendBytes() {
  813. return ((bitField0_ & 0x00000002) == 0x00000002);
  814. }
  815. /**
  816. * <code>optional bytes appendBytes = 2;</code>
  817. *
  818. * <pre>
  819. * Bytes to append
  820. * </pre>
  821. */
  822. public com.google.protobuf.ByteString getAppendBytes() {
  823. return appendBytes_;
  824. }
  825. /**
  826. * <code>optional bytes appendBytes = 2;</code>
  827. *
  828. * <pre>
  829. * Bytes to append
  830. * </pre>
  831. */
  832. public Builder setAppendBytes(com.google.protobuf.ByteString value) {
  833. if (value == null) {
  834. throw new NullPointerException();
  835. }
  836. bitField0_ |= 0x00000002;
  837. appendBytes_ = value;
  838. onChanged();
  839. return this;
  840. }
  841. /**
  842. * <code>optional bytes appendBytes = 2;</code>
  843. *
  844. * <pre>
  845. * Bytes to append
  846. * </pre>
  847. */
  848. public Builder clearAppendBytes() {
  849. bitField0_ = (bitField0_ & ~0x00000002);
  850. appendBytes_ = getDefaultInstance().getAppendBytes();
  851. onChanged();
  852. return this;
  853. }
  854. // optional string protobufField = 4;
  855. private java.lang.Object protobufField_ = "";
  856. /**
  857. * <code>optional string protobufField = 4;</code>
  858. *
  859. * <pre>
  860. * Used for protobuf field update, NOT YET IMPLEMENTED
  861. * </pre>
  862. */
  863. public boolean hasProtobufField() {
  864. return ((bitField0_ & 0x00000004) == 0x00000004);
  865. }
  866. /**
  867. * <code>optional string protobufField = 4;</code>
  868. *
  869. * <pre>
  870. * Used for protobuf field update, NOT YET IMPLEMENTED
  871. * </pre>
  872. */
  873. public java.lang.String getProtobufField() {
  874. java.lang.Object ref = protobufField_;
  875. if (!(ref instanceof java.lang.String)) {
  876. java.lang.String s = ((com.google.protobuf.ByteString) ref)
  877. .toStringUtf8();
  878. protobufField_ = s;
  879. return s;
  880. } else {
  881. return (java.lang.String) ref;
  882. }
  883. }
  884. /**
  885. * <code>optional string protobufField = 4;</code>
  886. *
  887. * <pre>
  888. * Used for protobuf field update, NOT YET IMPLEMENTED
  889. * </pre>
  890. */
  891. public com.google.protobuf.ByteString
  892. getProtobufFieldBytes() {
  893. java.lang.Object ref = protobufField_;
  894. if (ref instanceof String) {
  895. com.google.protobuf.ByteString b =
  896. com.google.protobuf.ByteString.copyFromUtf8(
  897. (java.lang.String) ref);
  898. protobufField_ = b;
  899. return b;
  900. } else {
  901. return (com.google.protobuf.ByteString) ref;
  902. }
  903. }
  904. /**
  905. * <code>optional string protobufField = 4;</code>
  906. *
  907. * <pre>
  908. * Used for protobuf field update, NOT YET IMPLEMENTED
  909. * </pre>
  910. */
  911. public Builder setProtobufField(
  912. java.lang.String value) {
  913. if (value == null) {
  914. throw new NullPointerException();
  915. }
  916. bitField0_ |= 0x00000004;
  917. protobufField_ = value;
  918. onChanged();
  919. return this;
  920. }
  921. /**
  922. * <code>optional string protobufField = 4;</code>
  923. *
  924. * <pre>
  925. * Used for protobuf field update, NOT YET IMPLEMENTED
  926. * </pre>
  927. */
  928. public Builder clearProtobufField() {
  929. bitField0_ = (bitField0_ & ~0x00000004);
  930. protobufField_ = getDefaultInstance().getProtobufField();
  931. onChanged();
  932. return this;
  933. }
  934. /**
  935. * <code>optional string protobufField = 4;</code>
  936. *
  937. * <pre>
  938. * Used for protobuf field update, NOT YET IMPLEMENTED
  939. * </pre>
  940. */
  941. public Builder setProtobufFieldBytes(
  942. com.google.protobuf.ByteString value) {
  943. if (value == null) {
  944. throw new NullPointerException();
  945. }
  946. bitField0_ |= 0x00000004;
  947. protobufField_ = value;
  948. onChanged();
  949. return this;
  950. }
  951. // optional sint64 protobufBeginSlice = 5;
  952. private long protobufBeginSlice_ ;
  953. /**
  954. * <code>optional sint64 protobufBeginSlice = 5;</code>
  955. *
  956. * <pre>
  957. * Used for protobuf repeated field slice, begin index, not yet implemented
  958. * </pre>
  959. */
  960. public boolean hasProtobufBeginSlice() {
  961. return ((bitField0_ & 0x00000008) == 0x00000008);
  962. }
  963. /**
  964. * <code>optional sint64 protobufBeginSlice = 5;</code>
  965. *
  966. * <pre>
  967. * Used for protobuf repeated field slice, begin index, not yet implemented
  968. * </pre>
  969. */
  970. public long getProtobufBeginSlice() {
  971. return protobufBeginSlice_;
  972. }
  973. /**
  974. * <code>optional sint64 protobufBeginSlice = 5;</code>
  975. *
  976. * <pre>
  977. * Used for protobuf repeated field slice, begin index, not yet implemented
  978. * </pre>
  979. */
  980. public Builder setProtobufBeginSlice(long value) {
  981. bitField0_ |= 0x00000008;
  982. protobufBeginSlice_ = value;
  983. onChanged();
  984. return this;
  985. }
  986. /**
  987. * <code>optional sint64 protobufBeginSlice = 5;</code>
  988. *
  989. * <pre>
  990. * Used for protobuf repeated field slice, begin index, not yet implemented
  991. * </pre>
  992. */
  993. public Builder clearProtobufBeginSlice() {
  994. bitField0_ = (bitField0_ & ~0x00000008);
  995. protobufBeginSlice_ = 0L;
  996. onChanged();
  997. return this;
  998. }
  999. // optional sint64 protobufEndSlice = 6;
  1000. private long protobufEndSlice_ ;
  1001. /**
  1002. * <code>optional sint64 protobufEndSlice = 6;</code>
  1003. *
  1004. * <pre>
  1005. * Used for protobuf repeated field slice, end index, not yet implemented
  1006. * </pre>
  1007. */
  1008. public boolean hasProtobufEndSlice() {
  1009. return ((bitField0_ & 0x00000010) == 0x00000010);
  1010. }
  1011. /**
  1012. * <code>optional sint64 protobufEndSlice = 6;</code>
  1013. *
  1014. * <pre>
  1015. * Used for protobuf repeated field slice, end index, not yet implemented
  1016. * </pre>
  1017. */
  1018. public long getProtobufEndSlice() {
  1019. return protobufEndSlice_;
  1020. }
  1021. /**
  1022. * <code>optional sint64 protobufEndSlice = 6;</code>
  1023. *
  1024. * <pre>
  1025. * Used for protobuf repeated field slice, end index, not yet implemented
  1026. * </pre>
  1027. */
  1028. public Builder setProtobufEndSlice(long value) {
  1029. bitField0_ |= 0x00000010;
  1030. protobufEndSlice_ = value;
  1031. onChanged();
  1032. return this;
  1033. }
  1034. /**
  1035. * <code>optional sint64 protobufEndSlice = 6;</code>
  1036. *
  1037. * <pre>
  1038. * Used for protobuf repeated field slice, end index, not yet implemented
  1039. * </pre>
  1040. */
  1041. public Builder clearProtobufEndSlice() {
  1042. bitField0_ = (bitField0_ & ~0x00000010);
  1043. protobufEndSlice_ = 0L;
  1044. onChanged();
  1045. return this;
  1046. }
  1047. // @@protoc_insertion_point(builder_scope:stateupdateservice.PartialUpdate)
  1048. }
  1049. static {
  1050. defaultInstance = new PartialUpdate(true);
  1051. defaultInstance.initFields();
  1052. }
  1053. // @@protoc_insertion_point(class_scope:stateupdateservice.PartialUpdate)
  1054. }
  1055. public interface UpdateStateRequestSetOrBuilder
  1056. extends com.google.protobuf.MessageOrBuilder {
  1057. // repeated .stateupdateservice.UpdateStateRequestSet.UpdateStateRequest updates = 1;
  1058. /**
  1059. * <code>repeated .stateupdateservice.UpdateStateRequestSet.UpdateStateRequest updates = 1;</code>
  1060. */
  1061. java.util.List<net.stateupdateservice.StateUpdateService.UpdateStateRequestSet.UpdateStateRequest>
  1062. getUpdatesList();
  1063. /**
  1064. * <code>repeated .stateupdateservice.UpdateStateRequestSet.UpdateStateRequest updates = 1;</code>
  1065. */
  1066. net.stateupdateservice.StateUpdateService.UpdateStateRequestSet.UpdateStateRequest getUpdates(int index);
  1067. /**
  1068. * <code>repeated .stateupdateservice.UpdateStateRequestSet.UpdateStateRequest updates = 1;</code>
  1069. */
  1070. int getUpdatesCount();
  1071. /**
  1072. * <code>repeated .stateupdateservice.UpdateStateRequestSet.UpdateStateRequest updates = 1;</code>
  1073. */
  1074. java.util.List<? extends net.stateupdateservice.StateUpdateService.UpdateStateRequestSet.UpdateStateRequestOrBuilder>
  1075. getUpdatesOrBuilderList();
  1076. /**
  1077. * <code>repeated .stateupdateservice.UpdateStateRequestSet.UpdateStateRequest updates = 1;</code>
  1078. */
  1079. net.stateupdateservice.StateUpdateService.UpdateStateRequestSet.UpdateStateRequestOrBuilder getUpdatesOrBuilder(
  1080. int index);
  1081. }
  1082. /**
  1083. * Protobuf type {@code stateupdateservice.UpdateStateRequestSet}
  1084. */
  1085. public static final class UpdateStateRequestSet extends
  1086. com.google.protobuf.GeneratedMessage
  1087. implements UpdateStateRequestSetOrBuilder {
  1088. // Use UpdateStateRequestSet.newBuilder() to construct.
  1089. private UpdateStateRequestSet(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
  1090. super(builder);
  1091. this.unknownFields = builder.getUnknownFields();
  1092. }
  1093. private UpdateStateRequestSet(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
  1094. private static final UpdateStateRequestSet defaultInstance;
  1095. public static UpdateStateRequestSet getDefaultInstance() {
  1096. return defaultInstance;
  1097. }
  1098. public UpdateStateRequestSet getDefaultInstanceForType() {
  1099. return defaultInstance;
  1100. }
  1101. private final com.google.protobuf.UnknownFieldSet unknownFields;
  1102. @java.lang.Override
  1103. public final com.google.protobuf.UnknownFieldSet
  1104. getUnknownFields() {
  1105. return this.unknownFields;
  1106. }
  1107. private UpdateStateRequestSet(
  1108. com.google.protobuf.CodedInputStream input,
  1109. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1110. throws com.google.protobuf.InvalidProtocolBufferException {
  1111. initFields();
  1112. int mutable_bitField0_ = 0;
  1113. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  1114. com.google.protobuf.UnknownFieldSet.newBuilder();
  1115. try {
  1116. boolean done = false;
  1117. while (!done) {
  1118. int tag = input.readTag();
  1119. switch (tag) {
  1120. case 0:
  1121. done = true;
  1122. break;
  1123. default: {
  1124. if (!parseUnknownField(input, unknownFields,
  1125. extensionRegistry, tag)) {
  1126. done = true;
  1127. }
  1128. break;
  1129. }
  1130. case 10: {
  1131. if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
  1132. updates_ = new java.util.ArrayList<net.stateupdateservice.StateUpdateService.UpdateStateRequestSet.UpdateStateRequest>();
  1133. mutable_bitField0_ |= 0x00000001;
  1134. }
  1135. updates_.add(input.readMessage(net.stateupdateservice.StateUpdateService.UpdateStateRequestSet.UpdateStateRequest.PARSER, extensionRegistry));
  1136. break;
  1137. }
  1138. }
  1139. }
  1140. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  1141. throw e.setUnfinishedMessage(this);
  1142. } catch (java.io.IOException e) {
  1143. throw new com.google.protobuf.InvalidProtocolBufferException(
  1144. e.getMessage()).setUnfinishedMessage(this);
  1145. } finally {
  1146. if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
  1147. updates_ = java.util.Collections.unmodifiableList(updates_);
  1148. }
  1149. this.unknownFields = unknownFields.build();
  1150. makeExtensionsImmutable();
  1151. }
  1152. }
  1153. public static final com.google.protobuf.Descriptors.Descriptor
  1154. getDescriptor() {
  1155. return net.stateupdateservice.StateUpdateService.internal_static_stateupdateservice_UpdateStateRequestSet_descriptor;
  1156. }
  1157. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  1158. internalGetFieldAccessorTable() {
  1159. return net.stateupdateservice.StateUpdateService.internal_static_stateupdateservice_UpdateStateRequestSet_fieldAccessorTable
  1160. .ensureFieldAccessorsInitialized(
  1161. net.stateupdateservice.StateUpdateService.UpdateStateRequestSet.class, net.stateupdateservice.StateUpdateService.UpdateStateRequestSet.Builder.class);
  1162. }
  1163. public static com.google.protobuf.Parser<UpdateStateRequestSet> PARSER =
  1164. new com.google.protobuf.AbstractParser<UpdateStateRequestSet>() {
  1165. public UpdateStateRequestSet parsePartialFrom(
  1166. com.google.protobuf.CodedInputStream input,
  1167. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1168. throws com.google.protobuf.InvalidProtocolBufferException {
  1169. return new UpdateStateRequestSet(input, extensionRegistry);
  1170. }
  1171. };
  1172. @java.lang.Override
  1173. public com.google.protobuf.Parser<UpdateStateRequestSet> getParserForType() {
  1174. return PARSER;
  1175. }
  1176. public interface UpdateStateRequestOrBuilder
  1177. extends com.google.protobuf.MessageOrBuilder {
  1178. // required string key = 1;
  1179. /**
  1180. * <code>required string key = 1;</code>
  1181. */
  1182. boolean hasKey();
  1183. /**
  1184. * <code>required string key = 1;</code>
  1185. */
  1186. java.lang.String getKey();
  1187. /**
  1188. * <code>required string key = 1;</code>
  1189. */
  1190. com.google.protobuf.ByteString
  1191. getKeyBytes();
  1192. // optional bytes value = 2;
  1193. /**
  1194. * <code>optional bytes value = 2;</code>
  1195. */
  1196. boolean hasValue();
  1197. /**
  1198. * <code>optional bytes value = 2;</code>
  1199. */
  1200. com.google.protobuf.ByteString getValue();
  1201. // optional .stateupdateservice.PartialUpdate partialUpdate = 3;
  1202. /**
  1203. * <code>optional .stateupdateservice.PartialUpdate partialUpdate = 3;</code>
  1204. */
  1205. boolean hasPartialUpdate();
  1206. /**
  1207. * <code>optional .stateupdateservice.PartialUpdate partialUpdate = 3;</code>
  1208. */
  1209. net.stateupdateservice.StateUpdateService.PartialUpdate getPartialUpdate();
  1210. /**
  1211. * <code>optional .stateupdateservice.PartialUpdate partialUpdate = 3;</code>
  1212. */
  1213. net.stateupdateservice.StateUpdateService.PartialUpdateOrBuilder getPartialUpdateOrBuilder();
  1214. // optional .google.protobuf.DescriptorProto protobufDescriptor = 4;
  1215. /**
  1216. * <code>optional .google.protobuf.DescriptorProto protobufDescriptor = 4;</code>
  1217. */
  1218. boolean hasProtobufDescriptor();
  1219. /**
  1220. * <code>optional .google.protobuf.DescriptorProto protobufDescriptor = 4;</code>
  1221. */
  1222. com.google.protobuf.DescriptorProtos.DescriptorProto getProtobufDescriptor();
  1223. /**
  1224. * <code>optional .google.protobuf.DescriptorProto protobufDescriptor = 4;</code>
  1225. */
  1226. com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getProtobufDescriptorOrBuilder();
  1227. }
  1228. /**
  1229. * Protobuf type {@code stateupdateservice.UpdateStateRequestSet.UpdateStateRequest}
  1230. */
  1231. public static final class UpdateStateRequest extends
  1232. com.google.protobuf.GeneratedMessage
  1233. implements UpdateStateRequestOrBuilder {
  1234. // Use UpdateStateRequest.newBuilder() to construct.
  1235. private UpdateStateRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
  1236. super(builder);
  1237. this.unknownFields = builder.getUnknownFields();
  1238. }
  1239. private UpdateStateRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
  1240. private static final UpdateStateRequest defaultInstance;
  1241. public static UpdateStateRequest getDefaultInstance() {
  1242. return defaultInstance;
  1243. }
  1244. public UpdateStateRequest getDefaultInstanceForType() {
  1245. return defaultInstance;
  1246. }
  1247. private final com.google.protobuf.UnknownFieldSet unknownFields;
  1248. @java.lang.Override
  1249. public final com.google.protobuf.UnknownFieldSet
  1250. getUnknownFields() {
  1251. return this.unknownFields;
  1252. }
  1253. private UpdateStateRequest(
  1254. com.google.protobuf.CodedInputStream input,
  1255. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1256. throws com.google.protobuf.InvalidProtocolBufferException {
  1257. initFields();
  1258. int mutable_bitField0_ = 0;
  1259. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  1260. com.google.protobuf.UnknownFieldSet.newBuilder();
  1261. try {
  1262. boolean done = false;
  1263. while (!done) {
  1264. int tag = input.readTag();
  1265. switch (tag) {
  1266. case 0:
  1267. done = true;
  1268. break;
  1269. default: {
  1270. if (!parseUnknownField(input, unknownFields,
  1271. extensionRegistry, tag)) {
  1272. done = true;
  1273. }
  1274. break;
  1275. }
  1276. case 10: {
  1277. bitField0_ |= 0x00000001;
  1278. key_ = input.readBytes();
  1279. break;
  1280. }
  1281. case 18: {
  1282. bitField0_ |= 0x00000002;
  1283. value_ = input.readBytes();
  1284. break;
  1285. }
  1286. case 26: {
  1287. net.stateupdateservice.StateUpdateService.PartialUpdate.Builder subBuilder = null;
  1288. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  1289. subBuilder = partialUpdate_.toBuilder();
  1290. }
  1291. partialUpdate_ = input.readMessage(net.stateupdateservice.StateUpdateService.PartialUpdate.PARSER, extensionRegistry);
  1292. if (subBuilder != null) {
  1293. subBuilder.mergeFrom(partialUpdate_);
  1294. partialUpdate_ = subBuilder.buildPartial();
  1295. }
  1296. bitField0_ |= 0x00000004;
  1297. break;
  1298. }
  1299. case 34: {
  1300. com.google.protobuf.DescriptorProtos.DescriptorProto.Builder subBuilder = null;
  1301. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  1302. subBuilder = protobufDescriptor_.toBuilder();
  1303. }
  1304. protobufDescriptor_ = input.readMessage(com.google.protobuf.DescriptorProtos.DescriptorProto.PARSER, extensionRegistry);
  1305. if (subBuilder != null) {
  1306. subBuilder.mergeFrom(protobufDescriptor_);
  1307. protobufDescriptor_ = subBuilder.buildPartial();
  1308. }
  1309. bitField0_ |= 0x00000008;
  1310. break;
  1311. }
  1312. }
  1313. }
  1314. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  1315. throw e.setUnfinishedMessage(this);
  1316. } catch (java.io.IOException e) {
  1317. throw new com.google.protobuf.InvalidProtocolBufferException(
  1318. e.getMessage()).setUnfinishedMessage(this);
  1319. } finally {
  1320. this.unknownFields = unknownFields.build();
  1321. makeExtensionsImmutable();
  1322. }
  1323. }
  1324. public static final com.google.protobuf.Descriptors.Descriptor
  1325. getDescriptor() {
  1326. return net.stateupdateservice.StateUpdateService.internal_static_stateupdateservice_UpdateStateRequestSet_UpdateStateRequest_descriptor;
  1327. }
  1328. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  1329. internalGetFieldAccessorTable() {
  1330. return net.stateupdateservice.StateUpdateService.internal_static_stateupdateservice_UpdateStateRequestSet_UpdateStateRequest_fieldAccessorTable
  1331. .ensureFieldAccessorsInitialized(
  1332. net.stateupdateservice.StateUpdateService.UpdateStateRequestSet.UpdateStateRequest.class, net.stateupdateservice.StateUpdateService.UpdateStateRequestSet.UpdateStateRequest.Builder.class);
  1333. }
  1334. public static com.google.protobuf.Parser<UpdateStateRequest> PARSER =
  1335. new com.google.protobuf.AbstractParser<UpdateStateRequest>() {
  1336. public UpdateStateRequest parsePartialFrom(
  1337. com.google.protobuf.CodedInputStream input,
  1338. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1339. throws com.google.protobuf.InvalidProtocolBufferException {
  1340. return new UpdateStateRequest(input, extensionRegistry);
  1341. }
  1342. };
  1343. @java.lang.Override
  1344. public com.google.protobuf.Parser<UpdateStateRequest> getParserForType() {
  1345. return PARSER;
  1346. }
  1347. private int bitField0_;
  1348. // required string key = 1;