/mapsforge/src/org/mapsforge/preprocessing/routingGraph/graphCreation/GraphCreatorProtos.java

http://mapsforge.googlecode.com/ · Java · 7454 lines · 6299 code · 985 blank · 170 comment · 1157 complexity · a8a5202f9d62edb312247ee1742caee6 MD5 · raw file

Large files are truncated click here to view the full file

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