/mapsforge/src/org/mapsforge/preprocessing/routingGraph/graphCreation/GraphCreatorProtos.java
http://mapsforge.googlecode.com/ · Java · 7454 lines · 6299 code · 985 blank · 170 comment · 1157 complexity · a8a5202f9d62edb312247ee1742caee6 MD5 · raw file
Large files are truncated click here to view the full file
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: pbf-Config.proto
- package org.mapsforge.preprocessing.routingGraph.graphCreation;
- 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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_GeoCoordinatePBF_descriptor;
- }
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.mapsforge.preprocessing.routingGraph.graphCreation.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;
- }
- @java.lang.Override
- protected Object writeReplace() throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
- public static org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.GeoCoordinatePBF parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.mapsforge.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.GeoCoordinatePBF parseFrom(
- byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.mapsforge.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.GeoCoordinatePBF parseFrom(
- java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.mapsforge.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.GeoCoordinatePBF parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.mapsforge.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.GeoCoordinatePBFOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_GeoCoordinatePBF_descriptor;
- }
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_GeoCoordinatePBF_fieldAccessorTable;
- }
- // Construct using
- // org.mapsforge.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.GeoCoordinatePBF
- .getDescriptor();
- }
- public org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.GeoCoordinatePBF getDefaultInstanceForType() {
- return org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.GeoCoordinatePBF
- .getDefaultInstance();
- }
- public org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.GeoCoordinatePBF build() {
- org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.GeoCoordinatePBF result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
- private org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.GeoCoordinatePBF buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.GeoCoordinatePBF result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return result;
- }
- public org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.GeoCoordinatePBF buildPartial() {
- org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.GeoCoordinatePBF result = new org.mapsforge.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.GeoCoordinatePBF) {
- return mergeFrom((org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.GeoCoordinatePBF) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
- public Builder mergeFrom(
- org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.GeoCoordinatePBF other) {
- if (other == org.mapsforge.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_KeyValuePairPBF_descriptor;
- }
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.mapsforge.preprocessing.routingGraph.graphCreation.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 Object value_;
- public boolean hasValue() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public String getValue() {
- 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() {
- 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 Object key_;
- public boolean hasKey() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public String getKey() {
- 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() {
- 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;
- }
- @java.lang.Override
- protected Object writeReplace() throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
- public static org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.KeyValuePairPBF parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.mapsforge.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.KeyValuePairPBF parseFrom(
- byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.mapsforge.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.KeyValuePairPBF parseFrom(
- java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.mapsforge.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.KeyValuePairPBF parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.mapsforge.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.KeyValuePairPBFOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_KeyValuePairPBF_descriptor;
- }
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_KeyValuePairPBF_fieldAccessorTable;
- }
- // Construct using
- // org.mapsforge.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.KeyValuePairPBF
- .getDescriptor();
- }
- public org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.KeyValuePairPBF getDefaultInstanceForType() {
- return org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.KeyValuePairPBF
- .getDefaultInstance();
- }
- public org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.KeyValuePairPBF build() {
- org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.KeyValuePairPBF result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
- private org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.KeyValuePairPBF buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.KeyValuePairPBF result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return result;
- }
- public org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.KeyValuePairPBF buildPartial() {
- org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.KeyValuePairPBF result = new org.mapsforge.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.KeyValuePairPBF) {
- return mergeFrom((org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.KeyValuePairPBF) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
- public Builder mergeFrom(
- org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.KeyValuePairPBF other) {
- if (other == org.mapsforge.preprocessing.routingGraph.graphCreation.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 Object value_ = "";
- public boolean hasValue() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public String getValue() {
- 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 Object key_ = "";
- public boolean hasKey() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public String getKey() {
- 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.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_RelationMemberPBF_descriptor;
- }
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.mapsforge.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF.MemberType memberType_;
- public boolean hasMemberType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF.MemberType getMemberType() {
- return memberType_;
- }
- // optional string memberRole = 3;
- public static final int MEMBERROLE_FIELD_NUMBER = 3;
- private Object memberRole_;
- public boolean hasMemberRole() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- public String getMemberRole() {
- 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() {
- 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.preprocessing.routingGraph.graphCreation.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;
- }
- @java.lang.Override
- protected Object writeReplace() throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
- public static org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.mapsforge.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF parseFrom(
- byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.mapsforge.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF parseFrom(
- java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.mapsforge.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.mapsforge.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBFOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_RelationMemberPBF_descriptor;
- }
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.internal_static_org_mapsforge_preprocessing_routingGraph_graphCreation_RelationMemberPBF_fieldAccessorTable;
- }
- // Construct using
- // org.mapsforge.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF
- .getDescriptor();
- }
- public org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF getDefaultInstanceForType() {
- return org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF
- .getDefaultInstance();
- }
- public org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF build() {
- org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
- private org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return result;
- }
- public org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF buildPartial() {
- org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF result = new org.mapsforge.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF) {
- return mergeFrom((org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
- public Builder mergeFrom(
- org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF other) {
- if (other == org.mapsforge.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF.MemberType value = org.mapsforge.preprocessing.routingGraph.graphCreation.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.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF.MemberType memberType_ = org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF.MemberType.NODE;
- public boolean hasMemberType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF.MemberType getMemberType() {
- return memberType_;
- }
- public Builder setMemberType(
- org.mapsforge.preprocessing.routingGraph.graphCreation.GraphCreatorProtos.RelationMemberPBF.MemberType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- memberType_ = value;
- onChanged();
- return this;
- }
- public Builder clearM…