/mapsforge-routing/src-gen/org/mapsforge/routing/preprocessing/graph/GraphCreatorProtos.java
Java | 1707 lines | 1512 code | 152 blank | 43 comment | 189 complexity | 401a44ef27e404c8a0199932d69eb5ce MD5 | raw file
Possible License(s): GPL-3.0, LGPL-3.0
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: org/mapsforge/routing/preprocessing/graph/pbf-Config.proto
- package org.mapsforge.routing.preprocessing.graph;
- public final class GraphCreatorProtos {
- private GraphCreatorProtos() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- }
- public interface GeoCoordinatePBFOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // required double latitude = 1;
- boolean hasLatitude();
- double getLatitude();
-
- // required double longitude = 2;
- boolean hasLongitude();
- double getLongitude();
- }
- public static final class GeoCoordinatePBF extends
- com.google.protobuf.GeneratedMessage
- implements GeoCoordinatePBFOrBuilder {
- // Use GeoCoordinatePBF.newBuilder() to construct.
- private GeoCoordinatePBF(Builder builder) {
- super(builder);
- }
- private GeoCoordinatePBF(boolean noInit) {}
-
- private static final GeoCoordinatePBF defaultInstance;
- public static GeoCoordinatePBF getDefaultInstance() {
- return defaultInstance;
- }
-
- public GeoCoordinatePBF getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_GeoCoordinatePBF_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_GeoCoordinatePBF_fieldAccessorTable;
- }
-
- private int bitField0_;
- // required double latitude = 1;
- public static final int LATITUDE_FIELD_NUMBER = 1;
- private double latitude_;
- public boolean hasLatitude() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public double getLatitude() {
- return latitude_;
- }
-
- // required double longitude = 2;
- public static final int LONGITUDE_FIELD_NUMBER = 2;
- private double longitude_;
- public boolean hasLongitude() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public double getLongitude() {
- return longitude_;
- }
-
- private void initFields() {
- latitude_ = 0D;
- longitude_ = 0D;
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- if (!hasLatitude()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasLongitude()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeDouble(1, latitude_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeDouble(2, longitude_);
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(1, latitude_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(2, longitude_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBFOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_GeoCoordinatePBF_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_GeoCoordinatePBF_fieldAccessorTable;
- }
-
- // Construct using org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- latitude_ = 0D;
- bitField0_ = (bitField0_ & ~0x00000001);
- longitude_ = 0D;
- bitField0_ = (bitField0_ & ~0x00000002);
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF.getDescriptor();
- }
-
- public org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF getDefaultInstanceForType() {
- return org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF.getDefaultInstance();
- }
-
- public org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF build() {
- org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- private org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return result;
- }
-
- public org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF buildPartial() {
- org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF result = new org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.latitude_ = latitude_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.longitude_ = longitude_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF) {
- return mergeFrom((org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF other) {
- if (other == org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF.getDefaultInstance()) return this;
- if (other.hasLatitude()) {
- setLatitude(other.getLatitude());
- }
- if (other.hasLongitude()) {
- setLongitude(other.getLongitude());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public final boolean isInitialized() {
- if (!hasLatitude()) {
-
- return false;
- }
- if (!hasLongitude()) {
-
- return false;
- }
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- }
- break;
- }
- case 9: {
- bitField0_ |= 0x00000001;
- latitude_ = input.readDouble();
- break;
- }
- case 17: {
- bitField0_ |= 0x00000002;
- longitude_ = input.readDouble();
- break;
- }
- }
- }
- }
-
- private int bitField0_;
-
- // required double latitude = 1;
- private double latitude_ ;
- public boolean hasLatitude() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public double getLatitude() {
- return latitude_;
- }
- public Builder setLatitude(double value) {
- bitField0_ |= 0x00000001;
- latitude_ = value;
- onChanged();
- return this;
- }
- public Builder clearLatitude() {
- bitField0_ = (bitField0_ & ~0x00000001);
- latitude_ = 0D;
- onChanged();
- return this;
- }
-
- // required double longitude = 2;
- private double longitude_ ;
- public boolean hasLongitude() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public double getLongitude() {
- return longitude_;
- }
- public Builder setLongitude(double value) {
- bitField0_ |= 0x00000002;
- longitude_ = value;
- onChanged();
- return this;
- }
- public Builder clearLongitude() {
- bitField0_ = (bitField0_ & ~0x00000002);
- longitude_ = 0D;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:org.mapsforge.preprocessing.routingGraph.graphCreation.GeoCoordinatePBF)
- }
-
- static {
- defaultInstance = new GeoCoordinatePBF(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:org.mapsforge.preprocessing.routingGraph.graphCreation.GeoCoordinatePBF)
- }
-
- public interface KeyValuePairPBFOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // optional string value = 1;
- boolean hasValue();
- String getValue();
-
- // required string key = 2;
- boolean hasKey();
- String getKey();
- }
- public static final class KeyValuePairPBF extends
- com.google.protobuf.GeneratedMessage
- implements KeyValuePairPBFOrBuilder {
- // Use KeyValuePairPBF.newBuilder() to construct.
- private KeyValuePairPBF(Builder builder) {
- super(builder);
- }
- private KeyValuePairPBF(boolean noInit) {}
-
- private static final KeyValuePairPBF defaultInstance;
- public static KeyValuePairPBF getDefaultInstance() {
- return defaultInstance;
- }
-
- public KeyValuePairPBF getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_KeyValuePairPBF_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_KeyValuePairPBF_fieldAccessorTable;
- }
-
- private int bitField0_;
- // optional string value = 1;
- public static final int VALUE_FIELD_NUMBER = 1;
- private java.lang.Object value_;
- public boolean hasValue() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public String getValue() {
- java.lang.Object ref = value_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (com.google.protobuf.Internal.isValidUtf8(bs)) {
- value_ = s;
- }
- return s;
- }
- }
- private com.google.protobuf.ByteString getValueBytes() {
- java.lang.Object ref = value_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((String) ref);
- value_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // required string key = 2;
- public static final int KEY_FIELD_NUMBER = 2;
- private java.lang.Object key_;
- public boolean hasKey() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public String getKey() {
- java.lang.Object ref = key_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (com.google.protobuf.Internal.isValidUtf8(bs)) {
- key_ = s;
- }
- return s;
- }
- }
- private com.google.protobuf.ByteString getKeyBytes() {
- java.lang.Object ref = key_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((String) ref);
- key_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private void initFields() {
- value_ = "";
- key_ = "";
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- if (!hasKey()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getValueBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getKeyBytes());
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getValueBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getKeyBytes());
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBFOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_KeyValuePairPBF_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_KeyValuePairPBF_fieldAccessorTable;
- }
-
- // Construct using org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- value_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
- key_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF.getDescriptor();
- }
-
- public org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF getDefaultInstanceForType() {
- return org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF.getDefaultInstance();
- }
-
- public org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF build() {
- org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- private org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return result;
- }
-
- public org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF buildPartial() {
- org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF result = new org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.value_ = value_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.key_ = key_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF) {
- return mergeFrom((org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF other) {
- if (other == org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF.getDefaultInstance()) return this;
- if (other.hasValue()) {
- setValue(other.getValue());
- }
- if (other.hasKey()) {
- setKey(other.getKey());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public final boolean isInitialized() {
- if (!hasKey()) {
-
- return false;
- }
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- }
- break;
- }
- case 10: {
- bitField0_ |= 0x00000001;
- value_ = input.readBytes();
- break;
- }
- case 18: {
- bitField0_ |= 0x00000002;
- key_ = input.readBytes();
- break;
- }
- }
- }
- }
-
- private int bitField0_;
-
- // optional string value = 1;
- private java.lang.Object value_ = "";
- public boolean hasValue() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public String getValue() {
- java.lang.Object ref = value_;
- if (!(ref instanceof String)) {
- String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
- value_ = s;
- return s;
- } else {
- return (String) ref;
- }
- }
- public Builder setValue(String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- value_ = value;
- onChanged();
- return this;
- }
- public Builder clearValue() {
- bitField0_ = (bitField0_ & ~0x00000001);
- value_ = getDefaultInstance().getValue();
- onChanged();
- return this;
- }
- void setValue(com.google.protobuf.ByteString value) {
- bitField0_ |= 0x00000001;
- value_ = value;
- onChanged();
- }
-
- // required string key = 2;
- private java.lang.Object key_ = "";
- public boolean hasKey() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public String getKey() {
- java.lang.Object ref = key_;
- if (!(ref instanceof String)) {
- String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
- key_ = s;
- return s;
- } else {
- return (String) ref;
- }
- }
- public Builder setKey(String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- key_ = value;
- onChanged();
- return this;
- }
- public Builder clearKey() {
- bitField0_ = (bitField0_ & ~0x00000002);
- key_ = getDefaultInstance().getKey();
- onChanged();
- return this;
- }
- void setKey(com.google.protobuf.ByteString value) {
- bitField0_ |= 0x00000002;
- key_ = value;
- onChanged();
- }
-
- // @@protoc_insertion_point(builder_scope:org.mapsforge.preprocessing.routingGraph.graphCreation.KeyValuePairPBF)
- }
-
- static {
- defaultInstance = new KeyValuePairPBF(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:org.mapsforge.preprocessing.routingGraph.graphCreation.KeyValuePairPBF)
- }
-
- public interface RelationMemberPBFOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // required uint64 memberId = 1;
- boolean hasMemberId();
- long getMemberId();
-
- // optional .org.mapsforge.preprocessing.routingGraph.graphCreation.RelationMemberPBF.MemberType memberType = 2;
- boolean hasMemberType();
- org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF.MemberType getMemberType();
-
- // optional string memberRole = 3;
- boolean hasMemberRole();
- String getMemberRole();
- }
- public static final class RelationMemberPBF extends
- com.google.protobuf.GeneratedMessage
- implements RelationMemberPBFOrBuilder {
- // Use RelationMemberPBF.newBuilder() to construct.
- private RelationMemberPBF(Builder builder) {
- super(builder);
- }
- private RelationMemberPBF(boolean noInit) {}
-
- private static final RelationMemberPBF defaultInstance;
- public static RelationMemberPBF getDefaultInstance() {
- return defaultInstance;
- }
-
- public RelationMemberPBF getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_RelationMemberPBF_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_RelationMemberPBF_fieldAccessorTable;
- }
-
- public enum MemberType
- implements com.google.protobuf.ProtocolMessageEnum {
- NODE(0, 1),
- WAY(1, 2),
- RELATION(2, 3),
- ;
-
- public static final int NODE_VALUE = 1;
- public static final int WAY_VALUE = 2;
- public static final int RELATION_VALUE = 3;
-
-
- public final int getNumber() { return value; }
-
- public static MemberType valueOf(int value) {
- switch (value) {
- case 1: return NODE;
- case 2: return WAY;
- case 3: return RELATION;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap<MemberType>
- internalGetValueMap() {
- return internalValueMap;
- }
- private static com.google.protobuf.Internal.EnumLiteMap<MemberType>
- internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap<MemberType>() {
- public MemberType findValueByNumber(int number) {
- return MemberType.valueOf(number);
- }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
- getValueDescriptor() {
- return getDescriptor().getValues().get(index);
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptor() {
- return org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF.getDescriptor().getEnumTypes().get(0);
- }
-
- private static final MemberType[] VALUES = {
- NODE, WAY, RELATION,
- };
-
- public static MemberType valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
-
- private final int index;
- private final int value;
-
- private MemberType(int index, int value) {
- this.index = index;
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:org.mapsforge.preprocessing.routingGraph.graphCreation.RelationMemberPBF.MemberType)
- }
-
- private int bitField0_;
- // required uint64 memberId = 1;
- public static final int MEMBERID_FIELD_NUMBER = 1;
- private long memberId_;
- public boolean hasMemberId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public long getMemberId() {
- return memberId_;
- }
-
- // optional .org.mapsforge.preprocessing.routingGraph.graphCreation.RelationMemberPBF.MemberType memberType = 2;
- public static final int MEMBERTYPE_FIELD_NUMBER = 2;
- private org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF.MemberType memberType_;
- public boolean hasMemberType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF.MemberType getMemberType() {
- return memberType_;
- }
-
- // optional string memberRole = 3;
- public static final int MEMBERROLE_FIELD_NUMBER = 3;
- private java.lang.Object memberRole_;
- public boolean hasMemberRole() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- public String getMemberRole() {
- java.lang.Object ref = memberRole_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (com.google.protobuf.Internal.isValidUtf8(bs)) {
- memberRole_ = s;
- }
- return s;
- }
- }
- private com.google.protobuf.ByteString getMemberRoleBytes() {
- java.lang.Object ref = memberRole_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((String) ref);
- memberRole_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private void initFields() {
- memberId_ = 0L;
- memberType_ = org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF.MemberType.NODE;
- memberRole_ = "";
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- if (!hasMemberId()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeUInt64(1, memberId_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeEnum(2, memberType_.getNumber());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, getMemberRoleBytes());
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt64Size(1, memberId_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, memberType_.getNumber());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getMemberRoleBytes());
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBFOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_RelationMemberPBF_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_RelationMemberPBF_fieldAccessorTable;
- }
-
- // Construct using org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- memberId_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000001);
- memberType_ = org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF.MemberType.NODE;
- bitField0_ = (bitField0_ & ~0x00000002);
- memberRole_ = "";
- bitField0_ = (bitField0_ & ~0x00000004);
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF.getDescriptor();
- }
-
- public org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF getDefaultInstanceForType() {
- return org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF.getDefaultInstance();
- }
-
- public org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF build() {
- org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- private org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return result;
- }
-
- public org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF buildPartial() {
- org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF result = new org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.memberId_ = memberId_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.memberType_ = memberType_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- result.memberRole_ = memberRole_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF) {
- return mergeFrom((org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF other) {
- if (other == org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF.getDefaultInstance()) return this;
- if (other.hasMemberId()) {
- setMemberId(other.getMemberId());
- }
- if (other.hasMemberType()) {
- setMemberType(other.getMemberType());
- }
- if (other.hasMemberRole()) {
- setMemberRole(other.getMemberRole());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public final boolean isInitialized() {
- if (!hasMemberId()) {
-
- return false;
- }
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- }
- break;
- }
- case 8: {
- bitField0_ |= 0x00000001;
- memberId_ = input.readUInt64();
- break;
- }
- case 16: {
- int rawValue = input.readEnum();
- org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF.MemberType value = org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF.MemberType.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(2, rawValue);
- } else {
- bitField0_ |= 0x00000002;
- memberType_ = value;
- }
- break;
- }
- case 26: {
- bitField0_ |= 0x00000004;
- memberRole_ = input.readBytes();
- break;
- }
- }
- }
- }
-
- private int bitField0_;
-
- // required uint64 memberId = 1;
- private long memberId_ ;
- public boolean hasMemberId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public long getMemberId() {
- return memberId_;
- }
- public Builder setMemberId(long value) {
- bitField0_ |= 0x00000001;
- memberId_ = value;
- onChanged();
- return this;
- }
- public Builder clearMemberId() {
- bitField0_ = (bitField0_ & ~0x00000001);
- memberId_ = 0L;
- onChanged();
- return this;
- }
-
- // optional .org.mapsforge.preprocessing.routingGraph.graphCreation.RelationMemberPBF.MemberType memberType = 2;
- private org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF.MemberType memberType_ = org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF.MemberType.NODE;
- public boolean hasMemberType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF.MemberType getMemberType() {
- return memberType_;
- }
- public Builder setMemberType(org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF.MemberType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- memberType_ = value;
- onChanged();
- return this;
- }
- public Builder clearMemberType() {
- bitField0_ = (bitField0_ & ~0x00000002);
- memberType_ = org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.RelationMemberPBF.MemberType.NODE;
- onChanged();
- return this;
- }
-
- // optional string memberRole = 3;
- private java.lang.Object memberRole_ = "";
- public boolean hasMemberRole() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- public String getMemberRole() {
- java.lang.Object ref = memberRole_;
- if (!(ref instanceof String)) {
- String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
- memberRole_ = s;
- return s;
- } else {
- return (String) ref;
- }
- }
- public Builder setMemberRole(String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- memberRole_ = value;
- onChanged();
- return this;
- }
- public Builder clearMemberRole() {
- bitField0_ = (bitField0_ & ~0x00000004);
- memberRole_ = getDefaultInstance().getMemberRole();
- onChanged();
- return this;
- }
- void setMemberRole(com.google.protobuf.ByteString value) {
- bitField0_ |= 0x00000004;
- memberRole_ = value;
- onChanged();
- }
-
- // @@protoc_insertion_point(builder_scope:org.mapsforge.preprocessing.routingGraph.graphCreation.RelationMemberPBF)
- }
-
- static {
- defaultInstance = new RelationMemberPBF(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:org.mapsforge.preprocessing.routingGraph.graphCreation.RelationMemberPBF)
- }
-
- public interface CompleteNodePBFOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // required int32 id = 1;
- boolean hasId();
- int getId();
-
- // optional .org.mapsforge.preprocessing.routingGraph.graphCreation.GeoCoordinatePBF coordinate = 2;
- boolean hasCoordinate();
- org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF getCoordinate();
- org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBFOrBuilder getCoordinateOrBuilder();
-
- // repeated .org.mapsforge.preprocessing.routingGraph.graphCreation.KeyValuePairPBF additionalTags = 3;
- java.util.List<org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF>
- getAdditionalTagsList();
- org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF getAdditionalTags(int index);
- int getAdditionalTagsCount();
- java.util.List<? extends org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBFOrBuilder>
- getAdditionalTagsOrBuilderList();
- org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBFOrBuilder getAdditionalTagsOrBuilder(
- int index);
- }
- public static final class CompleteNodePBF extends
- com.google.protobuf.GeneratedMessage
- implements CompleteNodePBFOrBuilder {
- // Use CompleteNodePBF.newBuilder() to construct.
- private CompleteNodePBF(Builder builder) {
- super(builder);
- }
- private CompleteNodePBF(boolean noInit) {}
-
- private static final CompleteNodePBF defaultInstance;
- public static CompleteNodePBF getDefaultInstance() {
- return defaultInstance;
- }
-
- public CompleteNodePBF getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_CompleteNodePBF_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_CompleteNodePBF_fieldAccessorTable;
- }
-
- private int bitField0_;
- // required int32 id = 1;
- public static final int ID_FIELD_NUMBER = 1;
- private int id_;
- public boolean hasId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public int getId() {
- return id_;
- }
-
- // optional .org.mapsforge.preprocessing.routingGraph.graphCreation.GeoCoordinatePBF coordinate = 2;
- public static final int COORDINATE_FIELD_NUMBER = 2;
- private org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF coordinate_;
- public boolean hasCoordinate() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF getCoordinate() {
- return coordinate_;
- }
- public org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBFOrBuilder getCoordinateOrBuilder() {
- return coordinate_;
- }
-
- // repeated .org.mapsforge.preprocessing.routingGraph.graphCreation.KeyValuePairPBF additionalTags = 3;
- public static final int ADDITIONALTAGS_FIELD_NUMBER = 3;
- private java.util.List<org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF> additionalTags_;
- public java.util.List<org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF> getAdditionalTagsList() {
- return additionalTags_;
- }
- public java.util.List<? extends org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBFOrBuilder>
- getAdditionalTagsOrBuilderList() {
- return additionalTags_;
- }
- public int getAdditionalTagsCount() {
- return additionalTags_.size();
- }
- public org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBF getAdditionalTags(int index) {
- return additionalTags_.get(index);
- }
- public org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.KeyValuePairPBFOrBuilder getAdditionalTagsOrBuilder(
- int index) {
- return additionalTags_.get(index);
- }
-
- private void initFields() {
- id_ = 0;
- coordinate_ = org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.GeoCoordinatePBF.getDefaultInstance();
- additionalTags_ = java.util.Collections.emptyList();
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- if (!hasId()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (hasCoordinate()) {
- if (!getCoordinate().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- for (int i = 0; i < getAdditionalTagsCount(); i++) {
- if (!getAdditionalTags(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeInt32(1, id_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, coordinate_);
- }
- for (int i = 0; i < additionalTags_.size(); i++) {
- output.writeMessage(3, additionalTags_.get(i));
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(1, id_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, coordinate_);
- }
- for (int i = 0; i < additionalTags_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, additionalTags_.get(i));
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.CompleteNodePBF parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.CompleteNodePBF parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.CompleteNodePBF parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.CompleteNodePBF parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.CompleteNodePBF parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.CompleteNodePBF parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.CompleteNodePBF parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.CompleteNodePBF parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.CompleteNodePBF parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.mapsforge.routing.preprocessing.graph.GraphCreatorProtos.CompleteNodePBF parseFrom(
- com.google.protobuf.CodedInputStrea