PageRenderTime 58ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 1ms

/traces/TwitterTracer/src/ProtoTrace.java

https://code.google.com/p/synoptic/
Java | 1939 lines | 1573 code | 320 blank | 46 comment | 146 complexity | 4cce7a6379a8e16ab51e527bf76172a8 MD5 | raw file

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

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