PageRenderTime 50ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 1ms

/mapsforge-routing/src-gen/org/mapsforge/routing/preprocessing/graph/GraphCreatorProtos.java

http://mapsforge.googlecode.com/
Java | 1707 lines | 1512 code | 152 blank | 43 comment | 189 complexity | 401a44ef27e404c8a0199932d69eb5ce MD5 | raw file
Possible License(s): GPL-3.0, LGPL-3.0

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

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

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