4942 lines
168 KiB
Java
4942 lines
168 KiB
Java
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: vector_tile.proto
|
|
|
|
package net.osmand.binary;
|
|
|
|
public final class VectorTile {
|
|
private VectorTile() {}
|
|
public static void registerAllExtensions(
|
|
com.google.protobuf.ExtensionRegistry registry) {
|
|
}
|
|
public interface TileOrBuilder extends
|
|
com.google.protobuf.GeneratedMessage.
|
|
ExtendableMessageOrBuilder<Tile> {
|
|
|
|
// repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
java.util.List<net.osmand.binary.VectorTile.Tile.Layer>
|
|
getLayersList();
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
net.osmand.binary.VectorTile.Tile.Layer getLayers(int index);
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
int getLayersCount();
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
java.util.List<? extends net.osmand.binary.VectorTile.Tile.LayerOrBuilder>
|
|
getLayersOrBuilderList();
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
net.osmand.binary.VectorTile.Tile.LayerOrBuilder getLayersOrBuilder(
|
|
int index);
|
|
}
|
|
/**
|
|
* Protobuf type {@code OsmAnd.VectorTile.Tile}
|
|
*/
|
|
public static final class Tile extends
|
|
com.google.protobuf.GeneratedMessage.ExtendableMessage<
|
|
Tile> implements TileOrBuilder {
|
|
// Use Tile.newBuilder() to construct.
|
|
private Tile(com.google.protobuf.GeneratedMessage.ExtendableBuilder<net.osmand.binary.VectorTile.Tile, ?> builder) {
|
|
super(builder);
|
|
this.unknownFields = builder.getUnknownFields();
|
|
}
|
|
private Tile(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
|
|
|
|
private static final Tile defaultInstance;
|
|
public static Tile getDefaultInstance() {
|
|
return defaultInstance;
|
|
}
|
|
|
|
public Tile getDefaultInstanceForType() {
|
|
return defaultInstance;
|
|
}
|
|
|
|
private final com.google.protobuf.UnknownFieldSet unknownFields;
|
|
@java.lang.Override
|
|
public final com.google.protobuf.UnknownFieldSet
|
|
getUnknownFields() {
|
|
return this.unknownFields;
|
|
}
|
|
private Tile(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
initFields();
|
|
int mutable_bitField0_ = 0;
|
|
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
|
com.google.protobuf.UnknownFieldSet.newBuilder();
|
|
try {
|
|
boolean done = false;
|
|
while (!done) {
|
|
int tag = input.readTag();
|
|
switch (tag) {
|
|
case 0:
|
|
done = true;
|
|
break;
|
|
default: {
|
|
if (!parseUnknownField(input, unknownFields,
|
|
extensionRegistry, tag)) {
|
|
done = true;
|
|
}
|
|
break;
|
|
}
|
|
case 26: {
|
|
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
|
|
layers_ = new java.util.ArrayList<net.osmand.binary.VectorTile.Tile.Layer>();
|
|
mutable_bitField0_ |= 0x00000001;
|
|
}
|
|
layers_.add(input.readMessage(net.osmand.binary.VectorTile.Tile.Layer.PARSER, extensionRegistry));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
throw e.setUnfinishedMessage(this);
|
|
} catch (java.io.IOException e) {
|
|
throw new com.google.protobuf.InvalidProtocolBufferException(
|
|
e.getMessage()).setUnfinishedMessage(this);
|
|
} finally {
|
|
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
|
|
layers_ = java.util.Collections.unmodifiableList(layers_);
|
|
}
|
|
this.unknownFields = unknownFields.build();
|
|
makeExtensionsImmutable();
|
|
}
|
|
}
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return net.osmand.binary.VectorTile.internal_static_OsmAnd_VectorTile_Tile_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return net.osmand.binary.VectorTile.internal_static_OsmAnd_VectorTile_Tile_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
net.osmand.binary.VectorTile.Tile.class, net.osmand.binary.VectorTile.Tile.Builder.class);
|
|
}
|
|
|
|
public static com.google.protobuf.Parser<Tile> PARSER =
|
|
new com.google.protobuf.AbstractParser<Tile>() {
|
|
public Tile parsePartialFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return new Tile(input, extensionRegistry);
|
|
}
|
|
};
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Parser<Tile> getParserForType() {
|
|
return PARSER;
|
|
}
|
|
|
|
/**
|
|
* Protobuf enum {@code OsmAnd.VectorTile.Tile.GeomType}
|
|
*
|
|
* <pre>
|
|
* GeomType is described in section 4.3.4 of the specification
|
|
* </pre>
|
|
*/
|
|
public enum GeomType
|
|
implements com.google.protobuf.ProtocolMessageEnum {
|
|
/**
|
|
* <code>UNKNOWN = 0;</code>
|
|
*/
|
|
UNKNOWN(0, 0),
|
|
/**
|
|
* <code>POINT = 1;</code>
|
|
*/
|
|
POINT(1, 1),
|
|
/**
|
|
* <code>LINESTRING = 2;</code>
|
|
*/
|
|
LINESTRING(2, 2),
|
|
/**
|
|
* <code>POLYGON = 3;</code>
|
|
*/
|
|
POLYGON(3, 3),
|
|
;
|
|
|
|
/**
|
|
* <code>UNKNOWN = 0;</code>
|
|
*/
|
|
public static final int UNKNOWN_VALUE = 0;
|
|
/**
|
|
* <code>POINT = 1;</code>
|
|
*/
|
|
public static final int POINT_VALUE = 1;
|
|
/**
|
|
* <code>LINESTRING = 2;</code>
|
|
*/
|
|
public static final int LINESTRING_VALUE = 2;
|
|
/**
|
|
* <code>POLYGON = 3;</code>
|
|
*/
|
|
public static final int POLYGON_VALUE = 3;
|
|
|
|
|
|
public final int getNumber() { return value; }
|
|
|
|
public static GeomType valueOf(int value) {
|
|
switch (value) {
|
|
case 0: return UNKNOWN;
|
|
case 1: return POINT;
|
|
case 2: return LINESTRING;
|
|
case 3: return POLYGON;
|
|
default: return null;
|
|
}
|
|
}
|
|
|
|
public static com.google.protobuf.Internal.EnumLiteMap<GeomType>
|
|
internalGetValueMap() {
|
|
return internalValueMap;
|
|
}
|
|
private static com.google.protobuf.Internal.EnumLiteMap<GeomType>
|
|
internalValueMap =
|
|
new com.google.protobuf.Internal.EnumLiteMap<GeomType>() {
|
|
public GeomType findValueByNumber(int number) {
|
|
return GeomType.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 net.osmand.binary.VectorTile.Tile.getDescriptor().getEnumTypes().get(0);
|
|
}
|
|
|
|
private static final GeomType[] VALUES = values();
|
|
|
|
public static GeomType 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 GeomType(int index, int value) {
|
|
this.index = index;
|
|
this.value = value;
|
|
}
|
|
|
|
// @@protoc_insertion_point(enum_scope:OsmAnd.VectorTile.Tile.GeomType)
|
|
}
|
|
|
|
public interface ValueOrBuilder extends
|
|
com.google.protobuf.GeneratedMessage.
|
|
ExtendableMessageOrBuilder<Value> {
|
|
|
|
// optional string string_value = 1;
|
|
/**
|
|
* <code>optional string string_value = 1;</code>
|
|
*
|
|
* <pre>
|
|
* Exactly one of these values must be present in a valid message
|
|
* </pre>
|
|
*/
|
|
boolean hasStringValue();
|
|
/**
|
|
* <code>optional string string_value = 1;</code>
|
|
*
|
|
* <pre>
|
|
* Exactly one of these values must be present in a valid message
|
|
* </pre>
|
|
*/
|
|
java.lang.String getStringValue();
|
|
/**
|
|
* <code>optional string string_value = 1;</code>
|
|
*
|
|
* <pre>
|
|
* Exactly one of these values must be present in a valid message
|
|
* </pre>
|
|
*/
|
|
com.google.protobuf.ByteString
|
|
getStringValueBytes();
|
|
|
|
// optional float float_value = 2;
|
|
/**
|
|
* <code>optional float float_value = 2;</code>
|
|
*/
|
|
boolean hasFloatValue();
|
|
/**
|
|
* <code>optional float float_value = 2;</code>
|
|
*/
|
|
float getFloatValue();
|
|
|
|
// optional double double_value = 3;
|
|
/**
|
|
* <code>optional double double_value = 3;</code>
|
|
*/
|
|
boolean hasDoubleValue();
|
|
/**
|
|
* <code>optional double double_value = 3;</code>
|
|
*/
|
|
double getDoubleValue();
|
|
|
|
// optional int64 int_value = 4;
|
|
/**
|
|
* <code>optional int64 int_value = 4;</code>
|
|
*/
|
|
boolean hasIntValue();
|
|
/**
|
|
* <code>optional int64 int_value = 4;</code>
|
|
*/
|
|
long getIntValue();
|
|
|
|
// optional uint64 uint_value = 5;
|
|
/**
|
|
* <code>optional uint64 uint_value = 5;</code>
|
|
*/
|
|
boolean hasUintValue();
|
|
/**
|
|
* <code>optional uint64 uint_value = 5;</code>
|
|
*/
|
|
long getUintValue();
|
|
|
|
// optional sint64 sint_value = 6;
|
|
/**
|
|
* <code>optional sint64 sint_value = 6;</code>
|
|
*/
|
|
boolean hasSintValue();
|
|
/**
|
|
* <code>optional sint64 sint_value = 6;</code>
|
|
*/
|
|
long getSintValue();
|
|
|
|
// optional bool bool_value = 7;
|
|
/**
|
|
* <code>optional bool bool_value = 7;</code>
|
|
*/
|
|
boolean hasBoolValue();
|
|
/**
|
|
* <code>optional bool bool_value = 7;</code>
|
|
*/
|
|
boolean getBoolValue();
|
|
}
|
|
/**
|
|
* Protobuf type {@code OsmAnd.VectorTile.Tile.Value}
|
|
*
|
|
* <pre>
|
|
* Variant type encoding
|
|
* The use of values is described in section 4.1 of the specification
|
|
* </pre>
|
|
*/
|
|
public static final class Value extends
|
|
com.google.protobuf.GeneratedMessage.ExtendableMessage<
|
|
Value> implements ValueOrBuilder {
|
|
// Use Value.newBuilder() to construct.
|
|
private Value(com.google.protobuf.GeneratedMessage.ExtendableBuilder<net.osmand.binary.VectorTile.Tile.Value, ?> builder) {
|
|
super(builder);
|
|
this.unknownFields = builder.getUnknownFields();
|
|
}
|
|
private Value(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
|
|
|
|
private static final Value defaultInstance;
|
|
public static Value getDefaultInstance() {
|
|
return defaultInstance;
|
|
}
|
|
|
|
public Value getDefaultInstanceForType() {
|
|
return defaultInstance;
|
|
}
|
|
|
|
private final com.google.protobuf.UnknownFieldSet unknownFields;
|
|
@java.lang.Override
|
|
public final com.google.protobuf.UnknownFieldSet
|
|
getUnknownFields() {
|
|
return this.unknownFields;
|
|
}
|
|
private Value(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
initFields();
|
|
int mutable_bitField0_ = 0;
|
|
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
|
com.google.protobuf.UnknownFieldSet.newBuilder();
|
|
try {
|
|
boolean done = false;
|
|
while (!done) {
|
|
int tag = input.readTag();
|
|
switch (tag) {
|
|
case 0:
|
|
done = true;
|
|
break;
|
|
default: {
|
|
if (!parseUnknownField(input, unknownFields,
|
|
extensionRegistry, tag)) {
|
|
done = true;
|
|
}
|
|
break;
|
|
}
|
|
case 10: {
|
|
bitField0_ |= 0x00000001;
|
|
stringValue_ = input.readBytes();
|
|
break;
|
|
}
|
|
case 21: {
|
|
bitField0_ |= 0x00000002;
|
|
floatValue_ = input.readFloat();
|
|
break;
|
|
}
|
|
case 25: {
|
|
bitField0_ |= 0x00000004;
|
|
doubleValue_ = input.readDouble();
|
|
break;
|
|
}
|
|
case 32: {
|
|
bitField0_ |= 0x00000008;
|
|
intValue_ = input.readInt64();
|
|
break;
|
|
}
|
|
case 40: {
|
|
bitField0_ |= 0x00000010;
|
|
uintValue_ = input.readUInt64();
|
|
break;
|
|
}
|
|
case 48: {
|
|
bitField0_ |= 0x00000020;
|
|
sintValue_ = input.readSInt64();
|
|
break;
|
|
}
|
|
case 56: {
|
|
bitField0_ |= 0x00000040;
|
|
boolValue_ = input.readBool();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
throw e.setUnfinishedMessage(this);
|
|
} catch (java.io.IOException e) {
|
|
throw new com.google.protobuf.InvalidProtocolBufferException(
|
|
e.getMessage()).setUnfinishedMessage(this);
|
|
} finally {
|
|
this.unknownFields = unknownFields.build();
|
|
makeExtensionsImmutable();
|
|
}
|
|
}
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return net.osmand.binary.VectorTile.internal_static_OsmAnd_VectorTile_Tile_Value_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return net.osmand.binary.VectorTile.internal_static_OsmAnd_VectorTile_Tile_Value_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
net.osmand.binary.VectorTile.Tile.Value.class, net.osmand.binary.VectorTile.Tile.Value.Builder.class);
|
|
}
|
|
|
|
public static com.google.protobuf.Parser<Value> PARSER =
|
|
new com.google.protobuf.AbstractParser<Value>() {
|
|
public Value parsePartialFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return new Value(input, extensionRegistry);
|
|
}
|
|
};
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Parser<Value> getParserForType() {
|
|
return PARSER;
|
|
}
|
|
|
|
private int bitField0_;
|
|
// optional string string_value = 1;
|
|
public static final int STRING_VALUE_FIELD_NUMBER = 1;
|
|
private java.lang.Object stringValue_;
|
|
/**
|
|
* <code>optional string string_value = 1;</code>
|
|
*
|
|
* <pre>
|
|
* Exactly one of these values must be present in a valid message
|
|
* </pre>
|
|
*/
|
|
public boolean hasStringValue() {
|
|
return ((bitField0_ & 0x00000001) == 0x00000001);
|
|
}
|
|
/**
|
|
* <code>optional string string_value = 1;</code>
|
|
*
|
|
* <pre>
|
|
* Exactly one of these values must be present in a valid message
|
|
* </pre>
|
|
*/
|
|
public java.lang.String getStringValue() {
|
|
java.lang.Object ref = stringValue_;
|
|
if (ref instanceof java.lang.String) {
|
|
return (java.lang.String) ref;
|
|
} else {
|
|
com.google.protobuf.ByteString bs =
|
|
(com.google.protobuf.ByteString) ref;
|
|
java.lang.String s = bs.toStringUtf8();
|
|
if (bs.isValidUtf8()) {
|
|
stringValue_ = s;
|
|
}
|
|
return s;
|
|
}
|
|
}
|
|
/**
|
|
* <code>optional string string_value = 1;</code>
|
|
*
|
|
* <pre>
|
|
* Exactly one of these values must be present in a valid message
|
|
* </pre>
|
|
*/
|
|
public com.google.protobuf.ByteString
|
|
getStringValueBytes() {
|
|
java.lang.Object ref = stringValue_;
|
|
if (ref instanceof java.lang.String) {
|
|
com.google.protobuf.ByteString b =
|
|
com.google.protobuf.ByteString.copyFromUtf8(
|
|
(java.lang.String) ref);
|
|
stringValue_ = b;
|
|
return b;
|
|
} else {
|
|
return (com.google.protobuf.ByteString) ref;
|
|
}
|
|
}
|
|
|
|
// optional float float_value = 2;
|
|
public static final int FLOAT_VALUE_FIELD_NUMBER = 2;
|
|
private float floatValue_;
|
|
/**
|
|
* <code>optional float float_value = 2;</code>
|
|
*/
|
|
public boolean hasFloatValue() {
|
|
return ((bitField0_ & 0x00000002) == 0x00000002);
|
|
}
|
|
/**
|
|
* <code>optional float float_value = 2;</code>
|
|
*/
|
|
public float getFloatValue() {
|
|
return floatValue_;
|
|
}
|
|
|
|
// optional double double_value = 3;
|
|
public static final int DOUBLE_VALUE_FIELD_NUMBER = 3;
|
|
private double doubleValue_;
|
|
/**
|
|
* <code>optional double double_value = 3;</code>
|
|
*/
|
|
public boolean hasDoubleValue() {
|
|
return ((bitField0_ & 0x00000004) == 0x00000004);
|
|
}
|
|
/**
|
|
* <code>optional double double_value = 3;</code>
|
|
*/
|
|
public double getDoubleValue() {
|
|
return doubleValue_;
|
|
}
|
|
|
|
// optional int64 int_value = 4;
|
|
public static final int INT_VALUE_FIELD_NUMBER = 4;
|
|
private long intValue_;
|
|
/**
|
|
* <code>optional int64 int_value = 4;</code>
|
|
*/
|
|
public boolean hasIntValue() {
|
|
return ((bitField0_ & 0x00000008) == 0x00000008);
|
|
}
|
|
/**
|
|
* <code>optional int64 int_value = 4;</code>
|
|
*/
|
|
public long getIntValue() {
|
|
return intValue_;
|
|
}
|
|
|
|
// optional uint64 uint_value = 5;
|
|
public static final int UINT_VALUE_FIELD_NUMBER = 5;
|
|
private long uintValue_;
|
|
/**
|
|
* <code>optional uint64 uint_value = 5;</code>
|
|
*/
|
|
public boolean hasUintValue() {
|
|
return ((bitField0_ & 0x00000010) == 0x00000010);
|
|
}
|
|
/**
|
|
* <code>optional uint64 uint_value = 5;</code>
|
|
*/
|
|
public long getUintValue() {
|
|
return uintValue_;
|
|
}
|
|
|
|
// optional sint64 sint_value = 6;
|
|
public static final int SINT_VALUE_FIELD_NUMBER = 6;
|
|
private long sintValue_;
|
|
/**
|
|
* <code>optional sint64 sint_value = 6;</code>
|
|
*/
|
|
public boolean hasSintValue() {
|
|
return ((bitField0_ & 0x00000020) == 0x00000020);
|
|
}
|
|
/**
|
|
* <code>optional sint64 sint_value = 6;</code>
|
|
*/
|
|
public long getSintValue() {
|
|
return sintValue_;
|
|
}
|
|
|
|
// optional bool bool_value = 7;
|
|
public static final int BOOL_VALUE_FIELD_NUMBER = 7;
|
|
private boolean boolValue_;
|
|
/**
|
|
* <code>optional bool bool_value = 7;</code>
|
|
*/
|
|
public boolean hasBoolValue() {
|
|
return ((bitField0_ & 0x00000040) == 0x00000040);
|
|
}
|
|
/**
|
|
* <code>optional bool bool_value = 7;</code>
|
|
*/
|
|
public boolean getBoolValue() {
|
|
return boolValue_;
|
|
}
|
|
|
|
private void initFields() {
|
|
stringValue_ = "";
|
|
floatValue_ = 0F;
|
|
doubleValue_ = 0D;
|
|
intValue_ = 0L;
|
|
uintValue_ = 0L;
|
|
sintValue_ = 0L;
|
|
boolValue_ = false;
|
|
}
|
|
private byte memoizedIsInitialized = -1;
|
|
public final boolean isInitialized() {
|
|
byte isInitialized = memoizedIsInitialized;
|
|
if (isInitialized != -1) return isInitialized == 1;
|
|
|
|
if (!extensionsAreInitialized()) {
|
|
memoizedIsInitialized = 0;
|
|
return false;
|
|
}
|
|
memoizedIsInitialized = 1;
|
|
return true;
|
|
}
|
|
|
|
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
|
throws java.io.IOException {
|
|
getSerializedSize();
|
|
com.google.protobuf.GeneratedMessage
|
|
.ExtendableMessage<net.osmand.binary.VectorTile.Tile.Value>.ExtensionWriter extensionWriter =
|
|
newExtensionWriter();
|
|
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
|
output.writeBytes(1, getStringValueBytes());
|
|
}
|
|
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
|
output.writeFloat(2, floatValue_);
|
|
}
|
|
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
|
output.writeDouble(3, doubleValue_);
|
|
}
|
|
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
|
output.writeInt64(4, intValue_);
|
|
}
|
|
if (((bitField0_ & 0x00000010) == 0x00000010)) {
|
|
output.writeUInt64(5, uintValue_);
|
|
}
|
|
if (((bitField0_ & 0x00000020) == 0x00000020)) {
|
|
output.writeSInt64(6, sintValue_);
|
|
}
|
|
if (((bitField0_ & 0x00000040) == 0x00000040)) {
|
|
output.writeBool(7, boolValue_);
|
|
}
|
|
extensionWriter.writeUntil(536870912, output);
|
|
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, getStringValueBytes());
|
|
}
|
|
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeFloatSize(2, floatValue_);
|
|
}
|
|
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeDoubleSize(3, doubleValue_);
|
|
}
|
|
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeInt64Size(4, intValue_);
|
|
}
|
|
if (((bitField0_ & 0x00000010) == 0x00000010)) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeUInt64Size(5, uintValue_);
|
|
}
|
|
if (((bitField0_ & 0x00000020) == 0x00000020)) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeSInt64Size(6, sintValue_);
|
|
}
|
|
if (((bitField0_ & 0x00000040) == 0x00000040)) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeBoolSize(7, boolValue_);
|
|
}
|
|
size += extensionsSerializedSize();
|
|
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 net.osmand.binary.VectorTile.Tile.Value parseFrom(
|
|
com.google.protobuf.ByteString data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Value parseFrom(
|
|
com.google.protobuf.ByteString data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Value parseFrom(byte[] data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Value parseFrom(
|
|
byte[] data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Value parseFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return PARSER.parseFrom(input);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Value parseFrom(
|
|
java.io.InputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return PARSER.parseFrom(input, extensionRegistry);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Value parseDelimitedFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return PARSER.parseDelimitedFrom(input);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Value parseDelimitedFrom(
|
|
java.io.InputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return PARSER.parseDelimitedFrom(input, extensionRegistry);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Value parseFrom(
|
|
com.google.protobuf.CodedInputStream input)
|
|
throws java.io.IOException {
|
|
return PARSER.parseFrom(input);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Value parseFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return PARSER.parseFrom(input, extensionRegistry);
|
|
}
|
|
|
|
public static Builder newBuilder() { return Builder.create(); }
|
|
public Builder newBuilderForType() { return newBuilder(); }
|
|
public static Builder newBuilder(net.osmand.binary.VectorTile.Tile.Value 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;
|
|
}
|
|
/**
|
|
* Protobuf type {@code OsmAnd.VectorTile.Tile.Value}
|
|
*
|
|
* <pre>
|
|
* Variant type encoding
|
|
* The use of values is described in section 4.1 of the specification
|
|
* </pre>
|
|
*/
|
|
public static final class Builder extends
|
|
com.google.protobuf.GeneratedMessage.ExtendableBuilder<
|
|
net.osmand.binary.VectorTile.Tile.Value, Builder> implements net.osmand.binary.VectorTile.Tile.ValueOrBuilder {
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return net.osmand.binary.VectorTile.internal_static_OsmAnd_VectorTile_Tile_Value_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return net.osmand.binary.VectorTile.internal_static_OsmAnd_VectorTile_Tile_Value_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
net.osmand.binary.VectorTile.Tile.Value.class, net.osmand.binary.VectorTile.Tile.Value.Builder.class);
|
|
}
|
|
|
|
// Construct using net.osmand.binary.VectorTile.Tile.Value.newBuilder()
|
|
private Builder() {
|
|
maybeForceBuilderInitialization();
|
|
}
|
|
|
|
private Builder(
|
|
com.google.protobuf.GeneratedMessage.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();
|
|
stringValue_ = "";
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
floatValue_ = 0F;
|
|
bitField0_ = (bitField0_ & ~0x00000002);
|
|
doubleValue_ = 0D;
|
|
bitField0_ = (bitField0_ & ~0x00000004);
|
|
intValue_ = 0L;
|
|
bitField0_ = (bitField0_ & ~0x00000008);
|
|
uintValue_ = 0L;
|
|
bitField0_ = (bitField0_ & ~0x00000010);
|
|
sintValue_ = 0L;
|
|
bitField0_ = (bitField0_ & ~0x00000020);
|
|
boolValue_ = false;
|
|
bitField0_ = (bitField0_ & ~0x00000040);
|
|
return this;
|
|
}
|
|
|
|
public Builder clone() {
|
|
return create().mergeFrom(buildPartial());
|
|
}
|
|
|
|
public com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptorForType() {
|
|
return net.osmand.binary.VectorTile.internal_static_OsmAnd_VectorTile_Tile_Value_descriptor;
|
|
}
|
|
|
|
public net.osmand.binary.VectorTile.Tile.Value getDefaultInstanceForType() {
|
|
return net.osmand.binary.VectorTile.Tile.Value.getDefaultInstance();
|
|
}
|
|
|
|
public net.osmand.binary.VectorTile.Tile.Value build() {
|
|
net.osmand.binary.VectorTile.Tile.Value result = buildPartial();
|
|
if (!result.isInitialized()) {
|
|
throw newUninitializedMessageException(result);
|
|
}
|
|
return result;
|
|
}
|
|
|
|
public net.osmand.binary.VectorTile.Tile.Value buildPartial() {
|
|
net.osmand.binary.VectorTile.Tile.Value result = new net.osmand.binary.VectorTile.Tile.Value(this);
|
|
int from_bitField0_ = bitField0_;
|
|
int to_bitField0_ = 0;
|
|
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
|
|
to_bitField0_ |= 0x00000001;
|
|
}
|
|
result.stringValue_ = stringValue_;
|
|
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
|
|
to_bitField0_ |= 0x00000002;
|
|
}
|
|
result.floatValue_ = floatValue_;
|
|
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
|
|
to_bitField0_ |= 0x00000004;
|
|
}
|
|
result.doubleValue_ = doubleValue_;
|
|
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
|
|
to_bitField0_ |= 0x00000008;
|
|
}
|
|
result.intValue_ = intValue_;
|
|
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
|
|
to_bitField0_ |= 0x00000010;
|
|
}
|
|
result.uintValue_ = uintValue_;
|
|
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
|
|
to_bitField0_ |= 0x00000020;
|
|
}
|
|
result.sintValue_ = sintValue_;
|
|
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
|
|
to_bitField0_ |= 0x00000040;
|
|
}
|
|
result.boolValue_ = boolValue_;
|
|
result.bitField0_ = to_bitField0_;
|
|
onBuilt();
|
|
return result;
|
|
}
|
|
|
|
public Builder mergeFrom(com.google.protobuf.Message other) {
|
|
if (other instanceof net.osmand.binary.VectorTile.Tile.Value) {
|
|
return mergeFrom((net.osmand.binary.VectorTile.Tile.Value)other);
|
|
} else {
|
|
super.mergeFrom(other);
|
|
return this;
|
|
}
|
|
}
|
|
|
|
public Builder mergeFrom(net.osmand.binary.VectorTile.Tile.Value other) {
|
|
if (other == net.osmand.binary.VectorTile.Tile.Value.getDefaultInstance()) return this;
|
|
if (other.hasStringValue()) {
|
|
bitField0_ |= 0x00000001;
|
|
stringValue_ = other.stringValue_;
|
|
onChanged();
|
|
}
|
|
if (other.hasFloatValue()) {
|
|
setFloatValue(other.getFloatValue());
|
|
}
|
|
if (other.hasDoubleValue()) {
|
|
setDoubleValue(other.getDoubleValue());
|
|
}
|
|
if (other.hasIntValue()) {
|
|
setIntValue(other.getIntValue());
|
|
}
|
|
if (other.hasUintValue()) {
|
|
setUintValue(other.getUintValue());
|
|
}
|
|
if (other.hasSintValue()) {
|
|
setSintValue(other.getSintValue());
|
|
}
|
|
if (other.hasBoolValue()) {
|
|
setBoolValue(other.getBoolValue());
|
|
}
|
|
this.mergeExtensionFields(other);
|
|
this.mergeUnknownFields(other.getUnknownFields());
|
|
return this;
|
|
}
|
|
|
|
public final boolean isInitialized() {
|
|
if (!extensionsAreInitialized()) {
|
|
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public Builder mergeFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
net.osmand.binary.VectorTile.Tile.Value parsedMessage = null;
|
|
try {
|
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
parsedMessage = (net.osmand.binary.VectorTile.Tile.Value) e.getUnfinishedMessage();
|
|
throw e;
|
|
} finally {
|
|
if (parsedMessage != null) {
|
|
mergeFrom(parsedMessage);
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
private int bitField0_;
|
|
|
|
// optional string string_value = 1;
|
|
private java.lang.Object stringValue_ = "";
|
|
/**
|
|
* <code>optional string string_value = 1;</code>
|
|
*
|
|
* <pre>
|
|
* Exactly one of these values must be present in a valid message
|
|
* </pre>
|
|
*/
|
|
public boolean hasStringValue() {
|
|
return ((bitField0_ & 0x00000001) == 0x00000001);
|
|
}
|
|
/**
|
|
* <code>optional string string_value = 1;</code>
|
|
*
|
|
* <pre>
|
|
* Exactly one of these values must be present in a valid message
|
|
* </pre>
|
|
*/
|
|
public java.lang.String getStringValue() {
|
|
java.lang.Object ref = stringValue_;
|
|
if (!(ref instanceof java.lang.String)) {
|
|
java.lang.String s = ((com.google.protobuf.ByteString) ref)
|
|
.toStringUtf8();
|
|
stringValue_ = s;
|
|
return s;
|
|
} else {
|
|
return (java.lang.String) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <code>optional string string_value = 1;</code>
|
|
*
|
|
* <pre>
|
|
* Exactly one of these values must be present in a valid message
|
|
* </pre>
|
|
*/
|
|
public com.google.protobuf.ByteString
|
|
getStringValueBytes() {
|
|
java.lang.Object ref = stringValue_;
|
|
if (ref instanceof String) {
|
|
com.google.protobuf.ByteString b =
|
|
com.google.protobuf.ByteString.copyFromUtf8(
|
|
(java.lang.String) ref);
|
|
stringValue_ = b;
|
|
return b;
|
|
} else {
|
|
return (com.google.protobuf.ByteString) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <code>optional string string_value = 1;</code>
|
|
*
|
|
* <pre>
|
|
* Exactly one of these values must be present in a valid message
|
|
* </pre>
|
|
*/
|
|
public Builder setStringValue(
|
|
java.lang.String value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
bitField0_ |= 0x00000001;
|
|
stringValue_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>optional string string_value = 1;</code>
|
|
*
|
|
* <pre>
|
|
* Exactly one of these values must be present in a valid message
|
|
* </pre>
|
|
*/
|
|
public Builder clearStringValue() {
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
stringValue_ = getDefaultInstance().getStringValue();
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>optional string string_value = 1;</code>
|
|
*
|
|
* <pre>
|
|
* Exactly one of these values must be present in a valid message
|
|
* </pre>
|
|
*/
|
|
public Builder setStringValueBytes(
|
|
com.google.protobuf.ByteString value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
bitField0_ |= 0x00000001;
|
|
stringValue_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
// optional float float_value = 2;
|
|
private float floatValue_ ;
|
|
/**
|
|
* <code>optional float float_value = 2;</code>
|
|
*/
|
|
public boolean hasFloatValue() {
|
|
return ((bitField0_ & 0x00000002) == 0x00000002);
|
|
}
|
|
/**
|
|
* <code>optional float float_value = 2;</code>
|
|
*/
|
|
public float getFloatValue() {
|
|
return floatValue_;
|
|
}
|
|
/**
|
|
* <code>optional float float_value = 2;</code>
|
|
*/
|
|
public Builder setFloatValue(float value) {
|
|
bitField0_ |= 0x00000002;
|
|
floatValue_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>optional float float_value = 2;</code>
|
|
*/
|
|
public Builder clearFloatValue() {
|
|
bitField0_ = (bitField0_ & ~0x00000002);
|
|
floatValue_ = 0F;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
// optional double double_value = 3;
|
|
private double doubleValue_ ;
|
|
/**
|
|
* <code>optional double double_value = 3;</code>
|
|
*/
|
|
public boolean hasDoubleValue() {
|
|
return ((bitField0_ & 0x00000004) == 0x00000004);
|
|
}
|
|
/**
|
|
* <code>optional double double_value = 3;</code>
|
|
*/
|
|
public double getDoubleValue() {
|
|
return doubleValue_;
|
|
}
|
|
/**
|
|
* <code>optional double double_value = 3;</code>
|
|
*/
|
|
public Builder setDoubleValue(double value) {
|
|
bitField0_ |= 0x00000004;
|
|
doubleValue_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>optional double double_value = 3;</code>
|
|
*/
|
|
public Builder clearDoubleValue() {
|
|
bitField0_ = (bitField0_ & ~0x00000004);
|
|
doubleValue_ = 0D;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
// optional int64 int_value = 4;
|
|
private long intValue_ ;
|
|
/**
|
|
* <code>optional int64 int_value = 4;</code>
|
|
*/
|
|
public boolean hasIntValue() {
|
|
return ((bitField0_ & 0x00000008) == 0x00000008);
|
|
}
|
|
/**
|
|
* <code>optional int64 int_value = 4;</code>
|
|
*/
|
|
public long getIntValue() {
|
|
return intValue_;
|
|
}
|
|
/**
|
|
* <code>optional int64 int_value = 4;</code>
|
|
*/
|
|
public Builder setIntValue(long value) {
|
|
bitField0_ |= 0x00000008;
|
|
intValue_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>optional int64 int_value = 4;</code>
|
|
*/
|
|
public Builder clearIntValue() {
|
|
bitField0_ = (bitField0_ & ~0x00000008);
|
|
intValue_ = 0L;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
// optional uint64 uint_value = 5;
|
|
private long uintValue_ ;
|
|
/**
|
|
* <code>optional uint64 uint_value = 5;</code>
|
|
*/
|
|
public boolean hasUintValue() {
|
|
return ((bitField0_ & 0x00000010) == 0x00000010);
|
|
}
|
|
/**
|
|
* <code>optional uint64 uint_value = 5;</code>
|
|
*/
|
|
public long getUintValue() {
|
|
return uintValue_;
|
|
}
|
|
/**
|
|
* <code>optional uint64 uint_value = 5;</code>
|
|
*/
|
|
public Builder setUintValue(long value) {
|
|
bitField0_ |= 0x00000010;
|
|
uintValue_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>optional uint64 uint_value = 5;</code>
|
|
*/
|
|
public Builder clearUintValue() {
|
|
bitField0_ = (bitField0_ & ~0x00000010);
|
|
uintValue_ = 0L;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
// optional sint64 sint_value = 6;
|
|
private long sintValue_ ;
|
|
/**
|
|
* <code>optional sint64 sint_value = 6;</code>
|
|
*/
|
|
public boolean hasSintValue() {
|
|
return ((bitField0_ & 0x00000020) == 0x00000020);
|
|
}
|
|
/**
|
|
* <code>optional sint64 sint_value = 6;</code>
|
|
*/
|
|
public long getSintValue() {
|
|
return sintValue_;
|
|
}
|
|
/**
|
|
* <code>optional sint64 sint_value = 6;</code>
|
|
*/
|
|
public Builder setSintValue(long value) {
|
|
bitField0_ |= 0x00000020;
|
|
sintValue_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>optional sint64 sint_value = 6;</code>
|
|
*/
|
|
public Builder clearSintValue() {
|
|
bitField0_ = (bitField0_ & ~0x00000020);
|
|
sintValue_ = 0L;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
// optional bool bool_value = 7;
|
|
private boolean boolValue_ ;
|
|
/**
|
|
* <code>optional bool bool_value = 7;</code>
|
|
*/
|
|
public boolean hasBoolValue() {
|
|
return ((bitField0_ & 0x00000040) == 0x00000040);
|
|
}
|
|
/**
|
|
* <code>optional bool bool_value = 7;</code>
|
|
*/
|
|
public boolean getBoolValue() {
|
|
return boolValue_;
|
|
}
|
|
/**
|
|
* <code>optional bool bool_value = 7;</code>
|
|
*/
|
|
public Builder setBoolValue(boolean value) {
|
|
bitField0_ |= 0x00000040;
|
|
boolValue_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>optional bool bool_value = 7;</code>
|
|
*/
|
|
public Builder clearBoolValue() {
|
|
bitField0_ = (bitField0_ & ~0x00000040);
|
|
boolValue_ = false;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
// @@protoc_insertion_point(builder_scope:OsmAnd.VectorTile.Tile.Value)
|
|
}
|
|
|
|
static {
|
|
defaultInstance = new Value(true);
|
|
defaultInstance.initFields();
|
|
}
|
|
|
|
// @@protoc_insertion_point(class_scope:OsmAnd.VectorTile.Tile.Value)
|
|
}
|
|
|
|
public interface FeatureOrBuilder
|
|
extends com.google.protobuf.MessageOrBuilder {
|
|
|
|
// optional uint64 id = 1 [default = 0];
|
|
/**
|
|
* <code>optional uint64 id = 1 [default = 0];</code>
|
|
*/
|
|
boolean hasId();
|
|
/**
|
|
* <code>optional uint64 id = 1 [default = 0];</code>
|
|
*/
|
|
long getId();
|
|
|
|
// repeated uint32 tags = 2 [packed = true];
|
|
/**
|
|
* <code>repeated uint32 tags = 2 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Tags of this feature are encoded as repeated pairs of
|
|
* integers.
|
|
* A detailed description of tags is located in sections
|
|
* 4.2 and 4.4 of the specification
|
|
* </pre>
|
|
*/
|
|
java.util.List<java.lang.Integer> getTagsList();
|
|
/**
|
|
* <code>repeated uint32 tags = 2 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Tags of this feature are encoded as repeated pairs of
|
|
* integers.
|
|
* A detailed description of tags is located in sections
|
|
* 4.2 and 4.4 of the specification
|
|
* </pre>
|
|
*/
|
|
int getTagsCount();
|
|
/**
|
|
* <code>repeated uint32 tags = 2 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Tags of this feature are encoded as repeated pairs of
|
|
* integers.
|
|
* A detailed description of tags is located in sections
|
|
* 4.2 and 4.4 of the specification
|
|
* </pre>
|
|
*/
|
|
int getTags(int index);
|
|
|
|
// optional .OsmAnd.VectorTile.Tile.GeomType type = 3 [default = UNKNOWN];
|
|
/**
|
|
* <code>optional .OsmAnd.VectorTile.Tile.GeomType type = 3 [default = UNKNOWN];</code>
|
|
*
|
|
* <pre>
|
|
* The type of geometry stored in this feature.
|
|
* </pre>
|
|
*/
|
|
boolean hasType();
|
|
/**
|
|
* <code>optional .OsmAnd.VectorTile.Tile.GeomType type = 3 [default = UNKNOWN];</code>
|
|
*
|
|
* <pre>
|
|
* The type of geometry stored in this feature.
|
|
* </pre>
|
|
*/
|
|
net.osmand.binary.VectorTile.Tile.GeomType getType();
|
|
|
|
// repeated uint32 geometry = 4 [packed = true];
|
|
/**
|
|
* <code>repeated uint32 geometry = 4 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Contains a stream of commands and parameters (vertices).
|
|
* A detailed description on geometry encoding is located in
|
|
* section 4.3 of the specification.
|
|
* </pre>
|
|
*/
|
|
java.util.List<java.lang.Integer> getGeometryList();
|
|
/**
|
|
* <code>repeated uint32 geometry = 4 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Contains a stream of commands and parameters (vertices).
|
|
* A detailed description on geometry encoding is located in
|
|
* section 4.3 of the specification.
|
|
* </pre>
|
|
*/
|
|
int getGeometryCount();
|
|
/**
|
|
* <code>repeated uint32 geometry = 4 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Contains a stream of commands and parameters (vertices).
|
|
* A detailed description on geometry encoding is located in
|
|
* section 4.3 of the specification.
|
|
* </pre>
|
|
*/
|
|
int getGeometry(int index);
|
|
}
|
|
/**
|
|
* Protobuf type {@code OsmAnd.VectorTile.Tile.Feature}
|
|
*
|
|
* <pre>
|
|
* Features are described in section 4.2 of the specification
|
|
* </pre>
|
|
*/
|
|
public static final class Feature extends
|
|
com.google.protobuf.GeneratedMessage
|
|
implements FeatureOrBuilder {
|
|
// Use Feature.newBuilder() to construct.
|
|
private Feature(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
|
|
super(builder);
|
|
this.unknownFields = builder.getUnknownFields();
|
|
}
|
|
private Feature(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
|
|
|
|
private static final Feature defaultInstance;
|
|
public static Feature getDefaultInstance() {
|
|
return defaultInstance;
|
|
}
|
|
|
|
public Feature getDefaultInstanceForType() {
|
|
return defaultInstance;
|
|
}
|
|
|
|
private final com.google.protobuf.UnknownFieldSet unknownFields;
|
|
@java.lang.Override
|
|
public final com.google.protobuf.UnknownFieldSet
|
|
getUnknownFields() {
|
|
return this.unknownFields;
|
|
}
|
|
private Feature(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
initFields();
|
|
int mutable_bitField0_ = 0;
|
|
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
|
com.google.protobuf.UnknownFieldSet.newBuilder();
|
|
try {
|
|
boolean done = false;
|
|
while (!done) {
|
|
int tag = input.readTag();
|
|
switch (tag) {
|
|
case 0:
|
|
done = true;
|
|
break;
|
|
default: {
|
|
if (!parseUnknownField(input, unknownFields,
|
|
extensionRegistry, tag)) {
|
|
done = true;
|
|
}
|
|
break;
|
|
}
|
|
case 8: {
|
|
bitField0_ |= 0x00000001;
|
|
id_ = input.readUInt64();
|
|
break;
|
|
}
|
|
case 16: {
|
|
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
|
|
tags_ = new java.util.ArrayList<java.lang.Integer>();
|
|
mutable_bitField0_ |= 0x00000002;
|
|
}
|
|
tags_.add(input.readUInt32());
|
|
break;
|
|
}
|
|
case 18: {
|
|
int length = input.readRawVarint32();
|
|
int limit = input.pushLimit(length);
|
|
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
|
|
tags_ = new java.util.ArrayList<java.lang.Integer>();
|
|
mutable_bitField0_ |= 0x00000002;
|
|
}
|
|
while (input.getBytesUntilLimit() > 0) {
|
|
tags_.add(input.readUInt32());
|
|
}
|
|
input.popLimit(limit);
|
|
break;
|
|
}
|
|
case 24: {
|
|
int rawValue = input.readEnum();
|
|
net.osmand.binary.VectorTile.Tile.GeomType value = net.osmand.binary.VectorTile.Tile.GeomType.valueOf(rawValue);
|
|
if (value == null) {
|
|
unknownFields.mergeVarintField(3, rawValue);
|
|
} else {
|
|
bitField0_ |= 0x00000002;
|
|
type_ = value;
|
|
}
|
|
break;
|
|
}
|
|
case 32: {
|
|
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
|
|
geometry_ = new java.util.ArrayList<java.lang.Integer>();
|
|
mutable_bitField0_ |= 0x00000008;
|
|
}
|
|
geometry_.add(input.readUInt32());
|
|
break;
|
|
}
|
|
case 34: {
|
|
int length = input.readRawVarint32();
|
|
int limit = input.pushLimit(length);
|
|
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
|
|
geometry_ = new java.util.ArrayList<java.lang.Integer>();
|
|
mutable_bitField0_ |= 0x00000008;
|
|
}
|
|
while (input.getBytesUntilLimit() > 0) {
|
|
geometry_.add(input.readUInt32());
|
|
}
|
|
input.popLimit(limit);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
throw e.setUnfinishedMessage(this);
|
|
} catch (java.io.IOException e) {
|
|
throw new com.google.protobuf.InvalidProtocolBufferException(
|
|
e.getMessage()).setUnfinishedMessage(this);
|
|
} finally {
|
|
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
|
|
tags_ = java.util.Collections.unmodifiableList(tags_);
|
|
}
|
|
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
|
|
geometry_ = java.util.Collections.unmodifiableList(geometry_);
|
|
}
|
|
this.unknownFields = unknownFields.build();
|
|
makeExtensionsImmutable();
|
|
}
|
|
}
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return net.osmand.binary.VectorTile.internal_static_OsmAnd_VectorTile_Tile_Feature_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return net.osmand.binary.VectorTile.internal_static_OsmAnd_VectorTile_Tile_Feature_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
net.osmand.binary.VectorTile.Tile.Feature.class, net.osmand.binary.VectorTile.Tile.Feature.Builder.class);
|
|
}
|
|
|
|
public static com.google.protobuf.Parser<Feature> PARSER =
|
|
new com.google.protobuf.AbstractParser<Feature>() {
|
|
public Feature parsePartialFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return new Feature(input, extensionRegistry);
|
|
}
|
|
};
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Parser<Feature> getParserForType() {
|
|
return PARSER;
|
|
}
|
|
|
|
private int bitField0_;
|
|
// optional uint64 id = 1 [default = 0];
|
|
public static final int ID_FIELD_NUMBER = 1;
|
|
private long id_;
|
|
/**
|
|
* <code>optional uint64 id = 1 [default = 0];</code>
|
|
*/
|
|
public boolean hasId() {
|
|
return ((bitField0_ & 0x00000001) == 0x00000001);
|
|
}
|
|
/**
|
|
* <code>optional uint64 id = 1 [default = 0];</code>
|
|
*/
|
|
public long getId() {
|
|
return id_;
|
|
}
|
|
|
|
// repeated uint32 tags = 2 [packed = true];
|
|
public static final int TAGS_FIELD_NUMBER = 2;
|
|
private java.util.List<java.lang.Integer> tags_;
|
|
/**
|
|
* <code>repeated uint32 tags = 2 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Tags of this feature are encoded as repeated pairs of
|
|
* integers.
|
|
* A detailed description of tags is located in sections
|
|
* 4.2 and 4.4 of the specification
|
|
* </pre>
|
|
*/
|
|
public java.util.List<java.lang.Integer>
|
|
getTagsList() {
|
|
return tags_;
|
|
}
|
|
/**
|
|
* <code>repeated uint32 tags = 2 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Tags of this feature are encoded as repeated pairs of
|
|
* integers.
|
|
* A detailed description of tags is located in sections
|
|
* 4.2 and 4.4 of the specification
|
|
* </pre>
|
|
*/
|
|
public int getTagsCount() {
|
|
return tags_.size();
|
|
}
|
|
/**
|
|
* <code>repeated uint32 tags = 2 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Tags of this feature are encoded as repeated pairs of
|
|
* integers.
|
|
* A detailed description of tags is located in sections
|
|
* 4.2 and 4.4 of the specification
|
|
* </pre>
|
|
*/
|
|
public int getTags(int index) {
|
|
return tags_.get(index);
|
|
}
|
|
private int tagsMemoizedSerializedSize = -1;
|
|
|
|
// optional .OsmAnd.VectorTile.Tile.GeomType type = 3 [default = UNKNOWN];
|
|
public static final int TYPE_FIELD_NUMBER = 3;
|
|
private net.osmand.binary.VectorTile.Tile.GeomType type_;
|
|
/**
|
|
* <code>optional .OsmAnd.VectorTile.Tile.GeomType type = 3 [default = UNKNOWN];</code>
|
|
*
|
|
* <pre>
|
|
* The type of geometry stored in this feature.
|
|
* </pre>
|
|
*/
|
|
public boolean hasType() {
|
|
return ((bitField0_ & 0x00000002) == 0x00000002);
|
|
}
|
|
/**
|
|
* <code>optional .OsmAnd.VectorTile.Tile.GeomType type = 3 [default = UNKNOWN];</code>
|
|
*
|
|
* <pre>
|
|
* The type of geometry stored in this feature.
|
|
* </pre>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.GeomType getType() {
|
|
return type_;
|
|
}
|
|
|
|
// repeated uint32 geometry = 4 [packed = true];
|
|
public static final int GEOMETRY_FIELD_NUMBER = 4;
|
|
private java.util.List<java.lang.Integer> geometry_;
|
|
/**
|
|
* <code>repeated uint32 geometry = 4 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Contains a stream of commands and parameters (vertices).
|
|
* A detailed description on geometry encoding is located in
|
|
* section 4.3 of the specification.
|
|
* </pre>
|
|
*/
|
|
public java.util.List<java.lang.Integer>
|
|
getGeometryList() {
|
|
return geometry_;
|
|
}
|
|
/**
|
|
* <code>repeated uint32 geometry = 4 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Contains a stream of commands and parameters (vertices).
|
|
* A detailed description on geometry encoding is located in
|
|
* section 4.3 of the specification.
|
|
* </pre>
|
|
*/
|
|
public int getGeometryCount() {
|
|
return geometry_.size();
|
|
}
|
|
/**
|
|
* <code>repeated uint32 geometry = 4 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Contains a stream of commands and parameters (vertices).
|
|
* A detailed description on geometry encoding is located in
|
|
* section 4.3 of the specification.
|
|
* </pre>
|
|
*/
|
|
public int getGeometry(int index) {
|
|
return geometry_.get(index);
|
|
}
|
|
private int geometryMemoizedSerializedSize = -1;
|
|
|
|
private void initFields() {
|
|
id_ = 0L;
|
|
tags_ = java.util.Collections.emptyList();
|
|
type_ = net.osmand.binary.VectorTile.Tile.GeomType.UNKNOWN;
|
|
geometry_ = java.util.Collections.emptyList();
|
|
}
|
|
private byte memoizedIsInitialized = -1;
|
|
public final boolean isInitialized() {
|
|
byte isInitialized = memoizedIsInitialized;
|
|
if (isInitialized != -1) return isInitialized == 1;
|
|
|
|
memoizedIsInitialized = 1;
|
|
return true;
|
|
}
|
|
|
|
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
|
throws java.io.IOException {
|
|
getSerializedSize();
|
|
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
|
output.writeUInt64(1, id_);
|
|
}
|
|
if (getTagsList().size() > 0) {
|
|
output.writeRawVarint32(18);
|
|
output.writeRawVarint32(tagsMemoizedSerializedSize);
|
|
}
|
|
for (int i = 0; i < tags_.size(); i++) {
|
|
output.writeUInt32NoTag(tags_.get(i));
|
|
}
|
|
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
|
output.writeEnum(3, type_.getNumber());
|
|
}
|
|
if (getGeometryList().size() > 0) {
|
|
output.writeRawVarint32(34);
|
|
output.writeRawVarint32(geometryMemoizedSerializedSize);
|
|
}
|
|
for (int i = 0; i < geometry_.size(); i++) {
|
|
output.writeUInt32NoTag(geometry_.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
|
|
.computeUInt64Size(1, id_);
|
|
}
|
|
{
|
|
int dataSize = 0;
|
|
for (int i = 0; i < tags_.size(); i++) {
|
|
dataSize += com.google.protobuf.CodedOutputStream
|
|
.computeUInt32SizeNoTag(tags_.get(i));
|
|
}
|
|
size += dataSize;
|
|
if (!getTagsList().isEmpty()) {
|
|
size += 1;
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeInt32SizeNoTag(dataSize);
|
|
}
|
|
tagsMemoizedSerializedSize = dataSize;
|
|
}
|
|
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeEnumSize(3, type_.getNumber());
|
|
}
|
|
{
|
|
int dataSize = 0;
|
|
for (int i = 0; i < geometry_.size(); i++) {
|
|
dataSize += com.google.protobuf.CodedOutputStream
|
|
.computeUInt32SizeNoTag(geometry_.get(i));
|
|
}
|
|
size += dataSize;
|
|
if (!getGeometryList().isEmpty()) {
|
|
size += 1;
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeInt32SizeNoTag(dataSize);
|
|
}
|
|
geometryMemoizedSerializedSize = dataSize;
|
|
}
|
|
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 net.osmand.binary.VectorTile.Tile.Feature parseFrom(
|
|
com.google.protobuf.ByteString data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Feature parseFrom(
|
|
com.google.protobuf.ByteString data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Feature parseFrom(byte[] data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Feature parseFrom(
|
|
byte[] data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Feature parseFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return PARSER.parseFrom(input);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Feature parseFrom(
|
|
java.io.InputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return PARSER.parseFrom(input, extensionRegistry);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Feature parseDelimitedFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return PARSER.parseDelimitedFrom(input);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Feature parseDelimitedFrom(
|
|
java.io.InputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return PARSER.parseDelimitedFrom(input, extensionRegistry);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Feature parseFrom(
|
|
com.google.protobuf.CodedInputStream input)
|
|
throws java.io.IOException {
|
|
return PARSER.parseFrom(input);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Feature parseFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return PARSER.parseFrom(input, extensionRegistry);
|
|
}
|
|
|
|
public static Builder newBuilder() { return Builder.create(); }
|
|
public Builder newBuilderForType() { return newBuilder(); }
|
|
public static Builder newBuilder(net.osmand.binary.VectorTile.Tile.Feature 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;
|
|
}
|
|
/**
|
|
* Protobuf type {@code OsmAnd.VectorTile.Tile.Feature}
|
|
*
|
|
* <pre>
|
|
* Features are described in section 4.2 of the specification
|
|
* </pre>
|
|
*/
|
|
public static final class Builder extends
|
|
com.google.protobuf.GeneratedMessage.Builder<Builder>
|
|
implements net.osmand.binary.VectorTile.Tile.FeatureOrBuilder {
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return net.osmand.binary.VectorTile.internal_static_OsmAnd_VectorTile_Tile_Feature_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return net.osmand.binary.VectorTile.internal_static_OsmAnd_VectorTile_Tile_Feature_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
net.osmand.binary.VectorTile.Tile.Feature.class, net.osmand.binary.VectorTile.Tile.Feature.Builder.class);
|
|
}
|
|
|
|
// Construct using net.osmand.binary.VectorTile.Tile.Feature.newBuilder()
|
|
private Builder() {
|
|
maybeForceBuilderInitialization();
|
|
}
|
|
|
|
private Builder(
|
|
com.google.protobuf.GeneratedMessage.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();
|
|
id_ = 0L;
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
tags_ = java.util.Collections.emptyList();
|
|
bitField0_ = (bitField0_ & ~0x00000002);
|
|
type_ = net.osmand.binary.VectorTile.Tile.GeomType.UNKNOWN;
|
|
bitField0_ = (bitField0_ & ~0x00000004);
|
|
geometry_ = java.util.Collections.emptyList();
|
|
bitField0_ = (bitField0_ & ~0x00000008);
|
|
return this;
|
|
}
|
|
|
|
public Builder clone() {
|
|
return create().mergeFrom(buildPartial());
|
|
}
|
|
|
|
public com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptorForType() {
|
|
return net.osmand.binary.VectorTile.internal_static_OsmAnd_VectorTile_Tile_Feature_descriptor;
|
|
}
|
|
|
|
public net.osmand.binary.VectorTile.Tile.Feature getDefaultInstanceForType() {
|
|
return net.osmand.binary.VectorTile.Tile.Feature.getDefaultInstance();
|
|
}
|
|
|
|
public net.osmand.binary.VectorTile.Tile.Feature build() {
|
|
net.osmand.binary.VectorTile.Tile.Feature result = buildPartial();
|
|
if (!result.isInitialized()) {
|
|
throw newUninitializedMessageException(result);
|
|
}
|
|
return result;
|
|
}
|
|
|
|
public net.osmand.binary.VectorTile.Tile.Feature buildPartial() {
|
|
net.osmand.binary.VectorTile.Tile.Feature result = new net.osmand.binary.VectorTile.Tile.Feature(this);
|
|
int from_bitField0_ = bitField0_;
|
|
int to_bitField0_ = 0;
|
|
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
|
|
to_bitField0_ |= 0x00000001;
|
|
}
|
|
result.id_ = id_;
|
|
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
|
tags_ = java.util.Collections.unmodifiableList(tags_);
|
|
bitField0_ = (bitField0_ & ~0x00000002);
|
|
}
|
|
result.tags_ = tags_;
|
|
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
|
|
to_bitField0_ |= 0x00000002;
|
|
}
|
|
result.type_ = type_;
|
|
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
|
geometry_ = java.util.Collections.unmodifiableList(geometry_);
|
|
bitField0_ = (bitField0_ & ~0x00000008);
|
|
}
|
|
result.geometry_ = geometry_;
|
|
result.bitField0_ = to_bitField0_;
|
|
onBuilt();
|
|
return result;
|
|
}
|
|
|
|
public Builder mergeFrom(com.google.protobuf.Message other) {
|
|
if (other instanceof net.osmand.binary.VectorTile.Tile.Feature) {
|
|
return mergeFrom((net.osmand.binary.VectorTile.Tile.Feature)other);
|
|
} else {
|
|
super.mergeFrom(other);
|
|
return this;
|
|
}
|
|
}
|
|
|
|
public Builder mergeFrom(net.osmand.binary.VectorTile.Tile.Feature other) {
|
|
if (other == net.osmand.binary.VectorTile.Tile.Feature.getDefaultInstance()) return this;
|
|
if (other.hasId()) {
|
|
setId(other.getId());
|
|
}
|
|
if (!other.tags_.isEmpty()) {
|
|
if (tags_.isEmpty()) {
|
|
tags_ = other.tags_;
|
|
bitField0_ = (bitField0_ & ~0x00000002);
|
|
} else {
|
|
ensureTagsIsMutable();
|
|
tags_.addAll(other.tags_);
|
|
}
|
|
onChanged();
|
|
}
|
|
if (other.hasType()) {
|
|
setType(other.getType());
|
|
}
|
|
if (!other.geometry_.isEmpty()) {
|
|
if (geometry_.isEmpty()) {
|
|
geometry_ = other.geometry_;
|
|
bitField0_ = (bitField0_ & ~0x00000008);
|
|
} else {
|
|
ensureGeometryIsMutable();
|
|
geometry_.addAll(other.geometry_);
|
|
}
|
|
onChanged();
|
|
}
|
|
this.mergeUnknownFields(other.getUnknownFields());
|
|
return this;
|
|
}
|
|
|
|
public final boolean isInitialized() {
|
|
return true;
|
|
}
|
|
|
|
public Builder mergeFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
net.osmand.binary.VectorTile.Tile.Feature parsedMessage = null;
|
|
try {
|
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
parsedMessage = (net.osmand.binary.VectorTile.Tile.Feature) e.getUnfinishedMessage();
|
|
throw e;
|
|
} finally {
|
|
if (parsedMessage != null) {
|
|
mergeFrom(parsedMessage);
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
private int bitField0_;
|
|
|
|
// optional uint64 id = 1 [default = 0];
|
|
private long id_ ;
|
|
/**
|
|
* <code>optional uint64 id = 1 [default = 0];</code>
|
|
*/
|
|
public boolean hasId() {
|
|
return ((bitField0_ & 0x00000001) == 0x00000001);
|
|
}
|
|
/**
|
|
* <code>optional uint64 id = 1 [default = 0];</code>
|
|
*/
|
|
public long getId() {
|
|
return id_;
|
|
}
|
|
/**
|
|
* <code>optional uint64 id = 1 [default = 0];</code>
|
|
*/
|
|
public Builder setId(long value) {
|
|
bitField0_ |= 0x00000001;
|
|
id_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>optional uint64 id = 1 [default = 0];</code>
|
|
*/
|
|
public Builder clearId() {
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
id_ = 0L;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
// repeated uint32 tags = 2 [packed = true];
|
|
private java.util.List<java.lang.Integer> tags_ = java.util.Collections.emptyList();
|
|
private void ensureTagsIsMutable() {
|
|
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
|
|
tags_ = new java.util.ArrayList<java.lang.Integer>(tags_);
|
|
bitField0_ |= 0x00000002;
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated uint32 tags = 2 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Tags of this feature are encoded as repeated pairs of
|
|
* integers.
|
|
* A detailed description of tags is located in sections
|
|
* 4.2 and 4.4 of the specification
|
|
* </pre>
|
|
*/
|
|
public java.util.List<java.lang.Integer>
|
|
getTagsList() {
|
|
return java.util.Collections.unmodifiableList(tags_);
|
|
}
|
|
/**
|
|
* <code>repeated uint32 tags = 2 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Tags of this feature are encoded as repeated pairs of
|
|
* integers.
|
|
* A detailed description of tags is located in sections
|
|
* 4.2 and 4.4 of the specification
|
|
* </pre>
|
|
*/
|
|
public int getTagsCount() {
|
|
return tags_.size();
|
|
}
|
|
/**
|
|
* <code>repeated uint32 tags = 2 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Tags of this feature are encoded as repeated pairs of
|
|
* integers.
|
|
* A detailed description of tags is located in sections
|
|
* 4.2 and 4.4 of the specification
|
|
* </pre>
|
|
*/
|
|
public int getTags(int index) {
|
|
return tags_.get(index);
|
|
}
|
|
/**
|
|
* <code>repeated uint32 tags = 2 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Tags of this feature are encoded as repeated pairs of
|
|
* integers.
|
|
* A detailed description of tags is located in sections
|
|
* 4.2 and 4.4 of the specification
|
|
* </pre>
|
|
*/
|
|
public Builder setTags(
|
|
int index, int value) {
|
|
ensureTagsIsMutable();
|
|
tags_.set(index, value);
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated uint32 tags = 2 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Tags of this feature are encoded as repeated pairs of
|
|
* integers.
|
|
* A detailed description of tags is located in sections
|
|
* 4.2 and 4.4 of the specification
|
|
* </pre>
|
|
*/
|
|
public Builder addTags(int value) {
|
|
ensureTagsIsMutable();
|
|
tags_.add(value);
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated uint32 tags = 2 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Tags of this feature are encoded as repeated pairs of
|
|
* integers.
|
|
* A detailed description of tags is located in sections
|
|
* 4.2 and 4.4 of the specification
|
|
* </pre>
|
|
*/
|
|
public Builder addAllTags(
|
|
java.lang.Iterable<? extends java.lang.Integer> values) {
|
|
ensureTagsIsMutable();
|
|
super.addAll(values, tags_);
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated uint32 tags = 2 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Tags of this feature are encoded as repeated pairs of
|
|
* integers.
|
|
* A detailed description of tags is located in sections
|
|
* 4.2 and 4.4 of the specification
|
|
* </pre>
|
|
*/
|
|
public Builder clearTags() {
|
|
tags_ = java.util.Collections.emptyList();
|
|
bitField0_ = (bitField0_ & ~0x00000002);
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
// optional .OsmAnd.VectorTile.Tile.GeomType type = 3 [default = UNKNOWN];
|
|
private net.osmand.binary.VectorTile.Tile.GeomType type_ = net.osmand.binary.VectorTile.Tile.GeomType.UNKNOWN;
|
|
/**
|
|
* <code>optional .OsmAnd.VectorTile.Tile.GeomType type = 3 [default = UNKNOWN];</code>
|
|
*
|
|
* <pre>
|
|
* The type of geometry stored in this feature.
|
|
* </pre>
|
|
*/
|
|
public boolean hasType() {
|
|
return ((bitField0_ & 0x00000004) == 0x00000004);
|
|
}
|
|
/**
|
|
* <code>optional .OsmAnd.VectorTile.Tile.GeomType type = 3 [default = UNKNOWN];</code>
|
|
*
|
|
* <pre>
|
|
* The type of geometry stored in this feature.
|
|
* </pre>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.GeomType getType() {
|
|
return type_;
|
|
}
|
|
/**
|
|
* <code>optional .OsmAnd.VectorTile.Tile.GeomType type = 3 [default = UNKNOWN];</code>
|
|
*
|
|
* <pre>
|
|
* The type of geometry stored in this feature.
|
|
* </pre>
|
|
*/
|
|
public Builder setType(net.osmand.binary.VectorTile.Tile.GeomType value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
bitField0_ |= 0x00000004;
|
|
type_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>optional .OsmAnd.VectorTile.Tile.GeomType type = 3 [default = UNKNOWN];</code>
|
|
*
|
|
* <pre>
|
|
* The type of geometry stored in this feature.
|
|
* </pre>
|
|
*/
|
|
public Builder clearType() {
|
|
bitField0_ = (bitField0_ & ~0x00000004);
|
|
type_ = net.osmand.binary.VectorTile.Tile.GeomType.UNKNOWN;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
// repeated uint32 geometry = 4 [packed = true];
|
|
private java.util.List<java.lang.Integer> geometry_ = java.util.Collections.emptyList();
|
|
private void ensureGeometryIsMutable() {
|
|
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
|
|
geometry_ = new java.util.ArrayList<java.lang.Integer>(geometry_);
|
|
bitField0_ |= 0x00000008;
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated uint32 geometry = 4 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Contains a stream of commands and parameters (vertices).
|
|
* A detailed description on geometry encoding is located in
|
|
* section 4.3 of the specification.
|
|
* </pre>
|
|
*/
|
|
public java.util.List<java.lang.Integer>
|
|
getGeometryList() {
|
|
return java.util.Collections.unmodifiableList(geometry_);
|
|
}
|
|
/**
|
|
* <code>repeated uint32 geometry = 4 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Contains a stream of commands and parameters (vertices).
|
|
* A detailed description on geometry encoding is located in
|
|
* section 4.3 of the specification.
|
|
* </pre>
|
|
*/
|
|
public int getGeometryCount() {
|
|
return geometry_.size();
|
|
}
|
|
/**
|
|
* <code>repeated uint32 geometry = 4 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Contains a stream of commands and parameters (vertices).
|
|
* A detailed description on geometry encoding is located in
|
|
* section 4.3 of the specification.
|
|
* </pre>
|
|
*/
|
|
public int getGeometry(int index) {
|
|
return geometry_.get(index);
|
|
}
|
|
/**
|
|
* <code>repeated uint32 geometry = 4 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Contains a stream of commands and parameters (vertices).
|
|
* A detailed description on geometry encoding is located in
|
|
* section 4.3 of the specification.
|
|
* </pre>
|
|
*/
|
|
public Builder setGeometry(
|
|
int index, int value) {
|
|
ensureGeometryIsMutable();
|
|
geometry_.set(index, value);
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated uint32 geometry = 4 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Contains a stream of commands and parameters (vertices).
|
|
* A detailed description on geometry encoding is located in
|
|
* section 4.3 of the specification.
|
|
* </pre>
|
|
*/
|
|
public Builder addGeometry(int value) {
|
|
ensureGeometryIsMutable();
|
|
geometry_.add(value);
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated uint32 geometry = 4 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Contains a stream of commands and parameters (vertices).
|
|
* A detailed description on geometry encoding is located in
|
|
* section 4.3 of the specification.
|
|
* </pre>
|
|
*/
|
|
public Builder addAllGeometry(
|
|
java.lang.Iterable<? extends java.lang.Integer> values) {
|
|
ensureGeometryIsMutable();
|
|
super.addAll(values, geometry_);
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated uint32 geometry = 4 [packed = true];</code>
|
|
*
|
|
* <pre>
|
|
* Contains a stream of commands and parameters (vertices).
|
|
* A detailed description on geometry encoding is located in
|
|
* section 4.3 of the specification.
|
|
* </pre>
|
|
*/
|
|
public Builder clearGeometry() {
|
|
geometry_ = java.util.Collections.emptyList();
|
|
bitField0_ = (bitField0_ & ~0x00000008);
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
// @@protoc_insertion_point(builder_scope:OsmAnd.VectorTile.Tile.Feature)
|
|
}
|
|
|
|
static {
|
|
defaultInstance = new Feature(true);
|
|
defaultInstance.initFields();
|
|
}
|
|
|
|
// @@protoc_insertion_point(class_scope:OsmAnd.VectorTile.Tile.Feature)
|
|
}
|
|
|
|
public interface LayerOrBuilder extends
|
|
com.google.protobuf.GeneratedMessage.
|
|
ExtendableMessageOrBuilder<Layer> {
|
|
|
|
// required uint32 version = 15 [default = 1];
|
|
/**
|
|
* <code>required uint32 version = 15 [default = 1];</code>
|
|
*
|
|
* <pre>
|
|
* Any compliant implementation must first read the version
|
|
* number encoded in this message and choose the correct
|
|
* implementation for this version number before proceeding to
|
|
* decode other parts of this message.
|
|
* </pre>
|
|
*/
|
|
boolean hasVersion();
|
|
/**
|
|
* <code>required uint32 version = 15 [default = 1];</code>
|
|
*
|
|
* <pre>
|
|
* Any compliant implementation must first read the version
|
|
* number encoded in this message and choose the correct
|
|
* implementation for this version number before proceeding to
|
|
* decode other parts of this message.
|
|
* </pre>
|
|
*/
|
|
int getVersion();
|
|
|
|
// required string name = 1;
|
|
/**
|
|
* <code>required string name = 1;</code>
|
|
*/
|
|
boolean hasName();
|
|
/**
|
|
* <code>required string name = 1;</code>
|
|
*/
|
|
java.lang.String getName();
|
|
/**
|
|
* <code>required string name = 1;</code>
|
|
*/
|
|
com.google.protobuf.ByteString
|
|
getNameBytes();
|
|
|
|
// repeated .OsmAnd.VectorTile.Tile.Feature features = 2;
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
java.util.List<net.osmand.binary.VectorTile.Tile.Feature>
|
|
getFeaturesList();
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
net.osmand.binary.VectorTile.Tile.Feature getFeatures(int index);
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
int getFeaturesCount();
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
java.util.List<? extends net.osmand.binary.VectorTile.Tile.FeatureOrBuilder>
|
|
getFeaturesOrBuilderList();
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
net.osmand.binary.VectorTile.Tile.FeatureOrBuilder getFeaturesOrBuilder(
|
|
int index);
|
|
|
|
// repeated string keys = 3;
|
|
/**
|
|
* <code>repeated string keys = 3;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for keys
|
|
* </pre>
|
|
*/
|
|
java.util.List<java.lang.String>
|
|
getKeysList();
|
|
/**
|
|
* <code>repeated string keys = 3;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for keys
|
|
* </pre>
|
|
*/
|
|
int getKeysCount();
|
|
/**
|
|
* <code>repeated string keys = 3;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for keys
|
|
* </pre>
|
|
*/
|
|
java.lang.String getKeys(int index);
|
|
/**
|
|
* <code>repeated string keys = 3;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for keys
|
|
* </pre>
|
|
*/
|
|
com.google.protobuf.ByteString
|
|
getKeysBytes(int index);
|
|
|
|
// repeated .OsmAnd.VectorTile.Tile.Value values = 4;
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
java.util.List<net.osmand.binary.VectorTile.Tile.Value>
|
|
getValuesList();
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
net.osmand.binary.VectorTile.Tile.Value getValues(int index);
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
int getValuesCount();
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
java.util.List<? extends net.osmand.binary.VectorTile.Tile.ValueOrBuilder>
|
|
getValuesOrBuilderList();
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
net.osmand.binary.VectorTile.Tile.ValueOrBuilder getValuesOrBuilder(
|
|
int index);
|
|
|
|
// optional uint32 extent = 5 [default = 4096];
|
|
/**
|
|
* <code>optional uint32 extent = 5 [default = 4096];</code>
|
|
*
|
|
* <pre>
|
|
* Although this is an "optional" field it is required by the specification.
|
|
* See https://github.com/mapbox/vector-tile-spec/issues/47
|
|
* </pre>
|
|
*/
|
|
boolean hasExtent();
|
|
/**
|
|
* <code>optional uint32 extent = 5 [default = 4096];</code>
|
|
*
|
|
* <pre>
|
|
* Although this is an "optional" field it is required by the specification.
|
|
* See https://github.com/mapbox/vector-tile-spec/issues/47
|
|
* </pre>
|
|
*/
|
|
int getExtent();
|
|
}
|
|
/**
|
|
* Protobuf type {@code OsmAnd.VectorTile.Tile.Layer}
|
|
*
|
|
* <pre>
|
|
* Layers are described in section 4.1 of the specification
|
|
* </pre>
|
|
*/
|
|
public static final class Layer extends
|
|
com.google.protobuf.GeneratedMessage.ExtendableMessage<
|
|
Layer> implements LayerOrBuilder {
|
|
// Use Layer.newBuilder() to construct.
|
|
private Layer(com.google.protobuf.GeneratedMessage.ExtendableBuilder<net.osmand.binary.VectorTile.Tile.Layer, ?> builder) {
|
|
super(builder);
|
|
this.unknownFields = builder.getUnknownFields();
|
|
}
|
|
private Layer(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
|
|
|
|
private static final Layer defaultInstance;
|
|
public static Layer getDefaultInstance() {
|
|
return defaultInstance;
|
|
}
|
|
|
|
public Layer getDefaultInstanceForType() {
|
|
return defaultInstance;
|
|
}
|
|
|
|
private final com.google.protobuf.UnknownFieldSet unknownFields;
|
|
@java.lang.Override
|
|
public final com.google.protobuf.UnknownFieldSet
|
|
getUnknownFields() {
|
|
return this.unknownFields;
|
|
}
|
|
private Layer(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
initFields();
|
|
int mutable_bitField0_ = 0;
|
|
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
|
com.google.protobuf.UnknownFieldSet.newBuilder();
|
|
try {
|
|
boolean done = false;
|
|
while (!done) {
|
|
int tag = input.readTag();
|
|
switch (tag) {
|
|
case 0:
|
|
done = true;
|
|
break;
|
|
default: {
|
|
if (!parseUnknownField(input, unknownFields,
|
|
extensionRegistry, tag)) {
|
|
done = true;
|
|
}
|
|
break;
|
|
}
|
|
case 10: {
|
|
bitField0_ |= 0x00000002;
|
|
name_ = input.readBytes();
|
|
break;
|
|
}
|
|
case 18: {
|
|
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
|
|
features_ = new java.util.ArrayList<net.osmand.binary.VectorTile.Tile.Feature>();
|
|
mutable_bitField0_ |= 0x00000004;
|
|
}
|
|
features_.add(input.readMessage(net.osmand.binary.VectorTile.Tile.Feature.PARSER, extensionRegistry));
|
|
break;
|
|
}
|
|
case 26: {
|
|
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
|
|
keys_ = new com.google.protobuf.LazyStringArrayList();
|
|
mutable_bitField0_ |= 0x00000008;
|
|
}
|
|
keys_.add(input.readBytes());
|
|
break;
|
|
}
|
|
case 34: {
|
|
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
|
|
values_ = new java.util.ArrayList<net.osmand.binary.VectorTile.Tile.Value>();
|
|
mutable_bitField0_ |= 0x00000010;
|
|
}
|
|
values_.add(input.readMessage(net.osmand.binary.VectorTile.Tile.Value.PARSER, extensionRegistry));
|
|
break;
|
|
}
|
|
case 40: {
|
|
bitField0_ |= 0x00000004;
|
|
extent_ = input.readUInt32();
|
|
break;
|
|
}
|
|
case 120: {
|
|
bitField0_ |= 0x00000001;
|
|
version_ = input.readUInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
throw e.setUnfinishedMessage(this);
|
|
} catch (java.io.IOException e) {
|
|
throw new com.google.protobuf.InvalidProtocolBufferException(
|
|
e.getMessage()).setUnfinishedMessage(this);
|
|
} finally {
|
|
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
|
|
features_ = java.util.Collections.unmodifiableList(features_);
|
|
}
|
|
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
|
|
keys_ = new com.google.protobuf.UnmodifiableLazyStringList(keys_);
|
|
}
|
|
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
|
|
values_ = java.util.Collections.unmodifiableList(values_);
|
|
}
|
|
this.unknownFields = unknownFields.build();
|
|
makeExtensionsImmutable();
|
|
}
|
|
}
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return net.osmand.binary.VectorTile.internal_static_OsmAnd_VectorTile_Tile_Layer_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return net.osmand.binary.VectorTile.internal_static_OsmAnd_VectorTile_Tile_Layer_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
net.osmand.binary.VectorTile.Tile.Layer.class, net.osmand.binary.VectorTile.Tile.Layer.Builder.class);
|
|
}
|
|
|
|
public static com.google.protobuf.Parser<Layer> PARSER =
|
|
new com.google.protobuf.AbstractParser<Layer>() {
|
|
public Layer parsePartialFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return new Layer(input, extensionRegistry);
|
|
}
|
|
};
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Parser<Layer> getParserForType() {
|
|
return PARSER;
|
|
}
|
|
|
|
private int bitField0_;
|
|
// required uint32 version = 15 [default = 1];
|
|
public static final int VERSION_FIELD_NUMBER = 15;
|
|
private int version_;
|
|
/**
|
|
* <code>required uint32 version = 15 [default = 1];</code>
|
|
*
|
|
* <pre>
|
|
* Any compliant implementation must first read the version
|
|
* number encoded in this message and choose the correct
|
|
* implementation for this version number before proceeding to
|
|
* decode other parts of this message.
|
|
* </pre>
|
|
*/
|
|
public boolean hasVersion() {
|
|
return ((bitField0_ & 0x00000001) == 0x00000001);
|
|
}
|
|
/**
|
|
* <code>required uint32 version = 15 [default = 1];</code>
|
|
*
|
|
* <pre>
|
|
* Any compliant implementation must first read the version
|
|
* number encoded in this message and choose the correct
|
|
* implementation for this version number before proceeding to
|
|
* decode other parts of this message.
|
|
* </pre>
|
|
*/
|
|
public int getVersion() {
|
|
return version_;
|
|
}
|
|
|
|
// required string name = 1;
|
|
public static final int NAME_FIELD_NUMBER = 1;
|
|
private java.lang.Object name_;
|
|
/**
|
|
* <code>required string name = 1;</code>
|
|
*/
|
|
public boolean hasName() {
|
|
return ((bitField0_ & 0x00000002) == 0x00000002);
|
|
}
|
|
/**
|
|
* <code>required string name = 1;</code>
|
|
*/
|
|
public java.lang.String getName() {
|
|
java.lang.Object ref = name_;
|
|
if (ref instanceof java.lang.String) {
|
|
return (java.lang.String) ref;
|
|
} else {
|
|
com.google.protobuf.ByteString bs =
|
|
(com.google.protobuf.ByteString) ref;
|
|
java.lang.String s = bs.toStringUtf8();
|
|
if (bs.isValidUtf8()) {
|
|
name_ = s;
|
|
}
|
|
return s;
|
|
}
|
|
}
|
|
/**
|
|
* <code>required string name = 1;</code>
|
|
*/
|
|
public com.google.protobuf.ByteString
|
|
getNameBytes() {
|
|
java.lang.Object ref = name_;
|
|
if (ref instanceof java.lang.String) {
|
|
com.google.protobuf.ByteString b =
|
|
com.google.protobuf.ByteString.copyFromUtf8(
|
|
(java.lang.String) ref);
|
|
name_ = b;
|
|
return b;
|
|
} else {
|
|
return (com.google.protobuf.ByteString) ref;
|
|
}
|
|
}
|
|
|
|
// repeated .OsmAnd.VectorTile.Tile.Feature features = 2;
|
|
public static final int FEATURES_FIELD_NUMBER = 2;
|
|
private java.util.List<net.osmand.binary.VectorTile.Tile.Feature> features_;
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public java.util.List<net.osmand.binary.VectorTile.Tile.Feature> getFeaturesList() {
|
|
return features_;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public java.util.List<? extends net.osmand.binary.VectorTile.Tile.FeatureOrBuilder>
|
|
getFeaturesOrBuilderList() {
|
|
return features_;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public int getFeaturesCount() {
|
|
return features_.size();
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.Feature getFeatures(int index) {
|
|
return features_.get(index);
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.FeatureOrBuilder getFeaturesOrBuilder(
|
|
int index) {
|
|
return features_.get(index);
|
|
}
|
|
|
|
// repeated string keys = 3;
|
|
public static final int KEYS_FIELD_NUMBER = 3;
|
|
private com.google.protobuf.LazyStringList keys_;
|
|
/**
|
|
* <code>repeated string keys = 3;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for keys
|
|
* </pre>
|
|
*/
|
|
public java.util.List<java.lang.String>
|
|
getKeysList() {
|
|
return keys_;
|
|
}
|
|
/**
|
|
* <code>repeated string keys = 3;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for keys
|
|
* </pre>
|
|
*/
|
|
public int getKeysCount() {
|
|
return keys_.size();
|
|
}
|
|
/**
|
|
* <code>repeated string keys = 3;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for keys
|
|
* </pre>
|
|
*/
|
|
public java.lang.String getKeys(int index) {
|
|
return keys_.get(index);
|
|
}
|
|
/**
|
|
* <code>repeated string keys = 3;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for keys
|
|
* </pre>
|
|
*/
|
|
public com.google.protobuf.ByteString
|
|
getKeysBytes(int index) {
|
|
return keys_.getByteString(index);
|
|
}
|
|
|
|
// repeated .OsmAnd.VectorTile.Tile.Value values = 4;
|
|
public static final int VALUES_FIELD_NUMBER = 4;
|
|
private java.util.List<net.osmand.binary.VectorTile.Tile.Value> values_;
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public java.util.List<net.osmand.binary.VectorTile.Tile.Value> getValuesList() {
|
|
return values_;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public java.util.List<? extends net.osmand.binary.VectorTile.Tile.ValueOrBuilder>
|
|
getValuesOrBuilderList() {
|
|
return values_;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public int getValuesCount() {
|
|
return values_.size();
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.Value getValues(int index) {
|
|
return values_.get(index);
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.ValueOrBuilder getValuesOrBuilder(
|
|
int index) {
|
|
return values_.get(index);
|
|
}
|
|
|
|
// optional uint32 extent = 5 [default = 4096];
|
|
public static final int EXTENT_FIELD_NUMBER = 5;
|
|
private int extent_;
|
|
/**
|
|
* <code>optional uint32 extent = 5 [default = 4096];</code>
|
|
*
|
|
* <pre>
|
|
* Although this is an "optional" field it is required by the specification.
|
|
* See https://github.com/mapbox/vector-tile-spec/issues/47
|
|
* </pre>
|
|
*/
|
|
public boolean hasExtent() {
|
|
return ((bitField0_ & 0x00000004) == 0x00000004);
|
|
}
|
|
/**
|
|
* <code>optional uint32 extent = 5 [default = 4096];</code>
|
|
*
|
|
* <pre>
|
|
* Although this is an "optional" field it is required by the specification.
|
|
* See https://github.com/mapbox/vector-tile-spec/issues/47
|
|
* </pre>
|
|
*/
|
|
public int getExtent() {
|
|
return extent_;
|
|
}
|
|
|
|
private void initFields() {
|
|
version_ = 1;
|
|
name_ = "";
|
|
features_ = java.util.Collections.emptyList();
|
|
keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
|
|
values_ = java.util.Collections.emptyList();
|
|
extent_ = 4096;
|
|
}
|
|
private byte memoizedIsInitialized = -1;
|
|
public final boolean isInitialized() {
|
|
byte isInitialized = memoizedIsInitialized;
|
|
if (isInitialized != -1) return isInitialized == 1;
|
|
|
|
if (!hasVersion()) {
|
|
memoizedIsInitialized = 0;
|
|
return false;
|
|
}
|
|
if (!hasName()) {
|
|
memoizedIsInitialized = 0;
|
|
return false;
|
|
}
|
|
for (int i = 0; i < getValuesCount(); i++) {
|
|
if (!getValues(i).isInitialized()) {
|
|
memoizedIsInitialized = 0;
|
|
return false;
|
|
}
|
|
}
|
|
if (!extensionsAreInitialized()) {
|
|
memoizedIsInitialized = 0;
|
|
return false;
|
|
}
|
|
memoizedIsInitialized = 1;
|
|
return true;
|
|
}
|
|
|
|
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
|
throws java.io.IOException {
|
|
getSerializedSize();
|
|
com.google.protobuf.GeneratedMessage
|
|
.ExtendableMessage<net.osmand.binary.VectorTile.Tile.Layer>.ExtensionWriter extensionWriter =
|
|
newExtensionWriter();
|
|
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
|
output.writeBytes(1, getNameBytes());
|
|
}
|
|
for (int i = 0; i < features_.size(); i++) {
|
|
output.writeMessage(2, features_.get(i));
|
|
}
|
|
for (int i = 0; i < keys_.size(); i++) {
|
|
output.writeBytes(3, keys_.getByteString(i));
|
|
}
|
|
for (int i = 0; i < values_.size(); i++) {
|
|
output.writeMessage(4, values_.get(i));
|
|
}
|
|
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
|
output.writeUInt32(5, extent_);
|
|
}
|
|
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
|
output.writeUInt32(15, version_);
|
|
}
|
|
extensionWriter.writeUntil(536870912, output);
|
|
getUnknownFields().writeTo(output);
|
|
}
|
|
|
|
private int memoizedSerializedSize = -1;
|
|
public int getSerializedSize() {
|
|
int size = memoizedSerializedSize;
|
|
if (size != -1) return size;
|
|
|
|
size = 0;
|
|
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeBytesSize(1, getNameBytes());
|
|
}
|
|
for (int i = 0; i < features_.size(); i++) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeMessageSize(2, features_.get(i));
|
|
}
|
|
{
|
|
int dataSize = 0;
|
|
for (int i = 0; i < keys_.size(); i++) {
|
|
dataSize += com.google.protobuf.CodedOutputStream
|
|
.computeBytesSizeNoTag(keys_.getByteString(i));
|
|
}
|
|
size += dataSize;
|
|
size += 1 * getKeysList().size();
|
|
}
|
|
for (int i = 0; i < values_.size(); i++) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeMessageSize(4, values_.get(i));
|
|
}
|
|
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeUInt32Size(5, extent_);
|
|
}
|
|
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeUInt32Size(15, version_);
|
|
}
|
|
size += extensionsSerializedSize();
|
|
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 net.osmand.binary.VectorTile.Tile.Layer parseFrom(
|
|
com.google.protobuf.ByteString data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Layer parseFrom(
|
|
com.google.protobuf.ByteString data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Layer parseFrom(byte[] data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Layer parseFrom(
|
|
byte[] data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Layer parseFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return PARSER.parseFrom(input);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Layer parseFrom(
|
|
java.io.InputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return PARSER.parseFrom(input, extensionRegistry);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Layer parseDelimitedFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return PARSER.parseDelimitedFrom(input);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Layer parseDelimitedFrom(
|
|
java.io.InputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return PARSER.parseDelimitedFrom(input, extensionRegistry);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Layer parseFrom(
|
|
com.google.protobuf.CodedInputStream input)
|
|
throws java.io.IOException {
|
|
return PARSER.parseFrom(input);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile.Layer parseFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return PARSER.parseFrom(input, extensionRegistry);
|
|
}
|
|
|
|
public static Builder newBuilder() { return Builder.create(); }
|
|
public Builder newBuilderForType() { return newBuilder(); }
|
|
public static Builder newBuilder(net.osmand.binary.VectorTile.Tile.Layer 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;
|
|
}
|
|
/**
|
|
* Protobuf type {@code OsmAnd.VectorTile.Tile.Layer}
|
|
*
|
|
* <pre>
|
|
* Layers are described in section 4.1 of the specification
|
|
* </pre>
|
|
*/
|
|
public static final class Builder extends
|
|
com.google.protobuf.GeneratedMessage.ExtendableBuilder<
|
|
net.osmand.binary.VectorTile.Tile.Layer, Builder> implements net.osmand.binary.VectorTile.Tile.LayerOrBuilder {
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return net.osmand.binary.VectorTile.internal_static_OsmAnd_VectorTile_Tile_Layer_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return net.osmand.binary.VectorTile.internal_static_OsmAnd_VectorTile_Tile_Layer_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
net.osmand.binary.VectorTile.Tile.Layer.class, net.osmand.binary.VectorTile.Tile.Layer.Builder.class);
|
|
}
|
|
|
|
// Construct using net.osmand.binary.VectorTile.Tile.Layer.newBuilder()
|
|
private Builder() {
|
|
maybeForceBuilderInitialization();
|
|
}
|
|
|
|
private Builder(
|
|
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
|
|
super(parent);
|
|
maybeForceBuilderInitialization();
|
|
}
|
|
private void maybeForceBuilderInitialization() {
|
|
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
|
|
getFeaturesFieldBuilder();
|
|
getValuesFieldBuilder();
|
|
}
|
|
}
|
|
private static Builder create() {
|
|
return new Builder();
|
|
}
|
|
|
|
public Builder clear() {
|
|
super.clear();
|
|
version_ = 1;
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
name_ = "";
|
|
bitField0_ = (bitField0_ & ~0x00000002);
|
|
if (featuresBuilder_ == null) {
|
|
features_ = java.util.Collections.emptyList();
|
|
bitField0_ = (bitField0_ & ~0x00000004);
|
|
} else {
|
|
featuresBuilder_.clear();
|
|
}
|
|
keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
|
|
bitField0_ = (bitField0_ & ~0x00000008);
|
|
if (valuesBuilder_ == null) {
|
|
values_ = java.util.Collections.emptyList();
|
|
bitField0_ = (bitField0_ & ~0x00000010);
|
|
} else {
|
|
valuesBuilder_.clear();
|
|
}
|
|
extent_ = 4096;
|
|
bitField0_ = (bitField0_ & ~0x00000020);
|
|
return this;
|
|
}
|
|
|
|
public Builder clone() {
|
|
return create().mergeFrom(buildPartial());
|
|
}
|
|
|
|
public com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptorForType() {
|
|
return net.osmand.binary.VectorTile.internal_static_OsmAnd_VectorTile_Tile_Layer_descriptor;
|
|
}
|
|
|
|
public net.osmand.binary.VectorTile.Tile.Layer getDefaultInstanceForType() {
|
|
return net.osmand.binary.VectorTile.Tile.Layer.getDefaultInstance();
|
|
}
|
|
|
|
public net.osmand.binary.VectorTile.Tile.Layer build() {
|
|
net.osmand.binary.VectorTile.Tile.Layer result = buildPartial();
|
|
if (!result.isInitialized()) {
|
|
throw newUninitializedMessageException(result);
|
|
}
|
|
return result;
|
|
}
|
|
|
|
public net.osmand.binary.VectorTile.Tile.Layer buildPartial() {
|
|
net.osmand.binary.VectorTile.Tile.Layer result = new net.osmand.binary.VectorTile.Tile.Layer(this);
|
|
int from_bitField0_ = bitField0_;
|
|
int to_bitField0_ = 0;
|
|
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
|
|
to_bitField0_ |= 0x00000001;
|
|
}
|
|
result.version_ = version_;
|
|
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
|
|
to_bitField0_ |= 0x00000002;
|
|
}
|
|
result.name_ = name_;
|
|
if (featuresBuilder_ == null) {
|
|
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
|
features_ = java.util.Collections.unmodifiableList(features_);
|
|
bitField0_ = (bitField0_ & ~0x00000004);
|
|
}
|
|
result.features_ = features_;
|
|
} else {
|
|
result.features_ = featuresBuilder_.build();
|
|
}
|
|
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
|
keys_ = new com.google.protobuf.UnmodifiableLazyStringList(
|
|
keys_);
|
|
bitField0_ = (bitField0_ & ~0x00000008);
|
|
}
|
|
result.keys_ = keys_;
|
|
if (valuesBuilder_ == null) {
|
|
if (((bitField0_ & 0x00000010) == 0x00000010)) {
|
|
values_ = java.util.Collections.unmodifiableList(values_);
|
|
bitField0_ = (bitField0_ & ~0x00000010);
|
|
}
|
|
result.values_ = values_;
|
|
} else {
|
|
result.values_ = valuesBuilder_.build();
|
|
}
|
|
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
|
|
to_bitField0_ |= 0x00000004;
|
|
}
|
|
result.extent_ = extent_;
|
|
result.bitField0_ = to_bitField0_;
|
|
onBuilt();
|
|
return result;
|
|
}
|
|
|
|
public Builder mergeFrom(com.google.protobuf.Message other) {
|
|
if (other instanceof net.osmand.binary.VectorTile.Tile.Layer) {
|
|
return mergeFrom((net.osmand.binary.VectorTile.Tile.Layer)other);
|
|
} else {
|
|
super.mergeFrom(other);
|
|
return this;
|
|
}
|
|
}
|
|
|
|
public Builder mergeFrom(net.osmand.binary.VectorTile.Tile.Layer other) {
|
|
if (other == net.osmand.binary.VectorTile.Tile.Layer.getDefaultInstance()) return this;
|
|
if (other.hasVersion()) {
|
|
setVersion(other.getVersion());
|
|
}
|
|
if (other.hasName()) {
|
|
bitField0_ |= 0x00000002;
|
|
name_ = other.name_;
|
|
onChanged();
|
|
}
|
|
if (featuresBuilder_ == null) {
|
|
if (!other.features_.isEmpty()) {
|
|
if (features_.isEmpty()) {
|
|
features_ = other.features_;
|
|
bitField0_ = (bitField0_ & ~0x00000004);
|
|
} else {
|
|
ensureFeaturesIsMutable();
|
|
features_.addAll(other.features_);
|
|
}
|
|
onChanged();
|
|
}
|
|
} else {
|
|
if (!other.features_.isEmpty()) {
|
|
if (featuresBuilder_.isEmpty()) {
|
|
featuresBuilder_.dispose();
|
|
featuresBuilder_ = null;
|
|
features_ = other.features_;
|
|
bitField0_ = (bitField0_ & ~0x00000004);
|
|
featuresBuilder_ =
|
|
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
|
|
getFeaturesFieldBuilder() : null;
|
|
} else {
|
|
featuresBuilder_.addAllMessages(other.features_);
|
|
}
|
|
}
|
|
}
|
|
if (!other.keys_.isEmpty()) {
|
|
if (keys_.isEmpty()) {
|
|
keys_ = other.keys_;
|
|
bitField0_ = (bitField0_ & ~0x00000008);
|
|
} else {
|
|
ensureKeysIsMutable();
|
|
keys_.addAll(other.keys_);
|
|
}
|
|
onChanged();
|
|
}
|
|
if (valuesBuilder_ == null) {
|
|
if (!other.values_.isEmpty()) {
|
|
if (values_.isEmpty()) {
|
|
values_ = other.values_;
|
|
bitField0_ = (bitField0_ & ~0x00000010);
|
|
} else {
|
|
ensureValuesIsMutable();
|
|
values_.addAll(other.values_);
|
|
}
|
|
onChanged();
|
|
}
|
|
} else {
|
|
if (!other.values_.isEmpty()) {
|
|
if (valuesBuilder_.isEmpty()) {
|
|
valuesBuilder_.dispose();
|
|
valuesBuilder_ = null;
|
|
values_ = other.values_;
|
|
bitField0_ = (bitField0_ & ~0x00000010);
|
|
valuesBuilder_ =
|
|
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
|
|
getValuesFieldBuilder() : null;
|
|
} else {
|
|
valuesBuilder_.addAllMessages(other.values_);
|
|
}
|
|
}
|
|
}
|
|
if (other.hasExtent()) {
|
|
setExtent(other.getExtent());
|
|
}
|
|
this.mergeExtensionFields(other);
|
|
this.mergeUnknownFields(other.getUnknownFields());
|
|
return this;
|
|
}
|
|
|
|
public final boolean isInitialized() {
|
|
if (!hasVersion()) {
|
|
|
|
return false;
|
|
}
|
|
if (!hasName()) {
|
|
|
|
return false;
|
|
}
|
|
for (int i = 0; i < getValuesCount(); i++) {
|
|
if (!getValues(i).isInitialized()) {
|
|
|
|
return false;
|
|
}
|
|
}
|
|
if (!extensionsAreInitialized()) {
|
|
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public Builder mergeFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
net.osmand.binary.VectorTile.Tile.Layer parsedMessage = null;
|
|
try {
|
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
parsedMessage = (net.osmand.binary.VectorTile.Tile.Layer) e.getUnfinishedMessage();
|
|
throw e;
|
|
} finally {
|
|
if (parsedMessage != null) {
|
|
mergeFrom(parsedMessage);
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
private int bitField0_;
|
|
|
|
// required uint32 version = 15 [default = 1];
|
|
private int version_ = 1;
|
|
/**
|
|
* <code>required uint32 version = 15 [default = 1];</code>
|
|
*
|
|
* <pre>
|
|
* Any compliant implementation must first read the version
|
|
* number encoded in this message and choose the correct
|
|
* implementation for this version number before proceeding to
|
|
* decode other parts of this message.
|
|
* </pre>
|
|
*/
|
|
public boolean hasVersion() {
|
|
return ((bitField0_ & 0x00000001) == 0x00000001);
|
|
}
|
|
/**
|
|
* <code>required uint32 version = 15 [default = 1];</code>
|
|
*
|
|
* <pre>
|
|
* Any compliant implementation must first read the version
|
|
* number encoded in this message and choose the correct
|
|
* implementation for this version number before proceeding to
|
|
* decode other parts of this message.
|
|
* </pre>
|
|
*/
|
|
public int getVersion() {
|
|
return version_;
|
|
}
|
|
/**
|
|
* <code>required uint32 version = 15 [default = 1];</code>
|
|
*
|
|
* <pre>
|
|
* Any compliant implementation must first read the version
|
|
* number encoded in this message and choose the correct
|
|
* implementation for this version number before proceeding to
|
|
* decode other parts of this message.
|
|
* </pre>
|
|
*/
|
|
public Builder setVersion(int value) {
|
|
bitField0_ |= 0x00000001;
|
|
version_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>required uint32 version = 15 [default = 1];</code>
|
|
*
|
|
* <pre>
|
|
* Any compliant implementation must first read the version
|
|
* number encoded in this message and choose the correct
|
|
* implementation for this version number before proceeding to
|
|
* decode other parts of this message.
|
|
* </pre>
|
|
*/
|
|
public Builder clearVersion() {
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
version_ = 1;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
// required string name = 1;
|
|
private java.lang.Object name_ = "";
|
|
/**
|
|
* <code>required string name = 1;</code>
|
|
*/
|
|
public boolean hasName() {
|
|
return ((bitField0_ & 0x00000002) == 0x00000002);
|
|
}
|
|
/**
|
|
* <code>required string name = 1;</code>
|
|
*/
|
|
public java.lang.String getName() {
|
|
java.lang.Object ref = name_;
|
|
if (!(ref instanceof java.lang.String)) {
|
|
java.lang.String s = ((com.google.protobuf.ByteString) ref)
|
|
.toStringUtf8();
|
|
name_ = s;
|
|
return s;
|
|
} else {
|
|
return (java.lang.String) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <code>required string name = 1;</code>
|
|
*/
|
|
public com.google.protobuf.ByteString
|
|
getNameBytes() {
|
|
java.lang.Object ref = name_;
|
|
if (ref instanceof String) {
|
|
com.google.protobuf.ByteString b =
|
|
com.google.protobuf.ByteString.copyFromUtf8(
|
|
(java.lang.String) ref);
|
|
name_ = b;
|
|
return b;
|
|
} else {
|
|
return (com.google.protobuf.ByteString) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <code>required string name = 1;</code>
|
|
*/
|
|
public Builder setName(
|
|
java.lang.String value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
bitField0_ |= 0x00000002;
|
|
name_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>required string name = 1;</code>
|
|
*/
|
|
public Builder clearName() {
|
|
bitField0_ = (bitField0_ & ~0x00000002);
|
|
name_ = getDefaultInstance().getName();
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>required string name = 1;</code>
|
|
*/
|
|
public Builder setNameBytes(
|
|
com.google.protobuf.ByteString value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
bitField0_ |= 0x00000002;
|
|
name_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
// repeated .OsmAnd.VectorTile.Tile.Feature features = 2;
|
|
private java.util.List<net.osmand.binary.VectorTile.Tile.Feature> features_ =
|
|
java.util.Collections.emptyList();
|
|
private void ensureFeaturesIsMutable() {
|
|
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
|
|
features_ = new java.util.ArrayList<net.osmand.binary.VectorTile.Tile.Feature>(features_);
|
|
bitField0_ |= 0x00000004;
|
|
}
|
|
}
|
|
|
|
private com.google.protobuf.RepeatedFieldBuilder<
|
|
net.osmand.binary.VectorTile.Tile.Feature, net.osmand.binary.VectorTile.Tile.Feature.Builder, net.osmand.binary.VectorTile.Tile.FeatureOrBuilder> featuresBuilder_;
|
|
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public java.util.List<net.osmand.binary.VectorTile.Tile.Feature> getFeaturesList() {
|
|
if (featuresBuilder_ == null) {
|
|
return java.util.Collections.unmodifiableList(features_);
|
|
} else {
|
|
return featuresBuilder_.getMessageList();
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public int getFeaturesCount() {
|
|
if (featuresBuilder_ == null) {
|
|
return features_.size();
|
|
} else {
|
|
return featuresBuilder_.getCount();
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.Feature getFeatures(int index) {
|
|
if (featuresBuilder_ == null) {
|
|
return features_.get(index);
|
|
} else {
|
|
return featuresBuilder_.getMessage(index);
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public Builder setFeatures(
|
|
int index, net.osmand.binary.VectorTile.Tile.Feature value) {
|
|
if (featuresBuilder_ == null) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
ensureFeaturesIsMutable();
|
|
features_.set(index, value);
|
|
onChanged();
|
|
} else {
|
|
featuresBuilder_.setMessage(index, value);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public Builder setFeatures(
|
|
int index, net.osmand.binary.VectorTile.Tile.Feature.Builder builderForValue) {
|
|
if (featuresBuilder_ == null) {
|
|
ensureFeaturesIsMutable();
|
|
features_.set(index, builderForValue.build());
|
|
onChanged();
|
|
} else {
|
|
featuresBuilder_.setMessage(index, builderForValue.build());
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public Builder addFeatures(net.osmand.binary.VectorTile.Tile.Feature value) {
|
|
if (featuresBuilder_ == null) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
ensureFeaturesIsMutable();
|
|
features_.add(value);
|
|
onChanged();
|
|
} else {
|
|
featuresBuilder_.addMessage(value);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public Builder addFeatures(
|
|
int index, net.osmand.binary.VectorTile.Tile.Feature value) {
|
|
if (featuresBuilder_ == null) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
ensureFeaturesIsMutable();
|
|
features_.add(index, value);
|
|
onChanged();
|
|
} else {
|
|
featuresBuilder_.addMessage(index, value);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public Builder addFeatures(
|
|
net.osmand.binary.VectorTile.Tile.Feature.Builder builderForValue) {
|
|
if (featuresBuilder_ == null) {
|
|
ensureFeaturesIsMutable();
|
|
features_.add(builderForValue.build());
|
|
onChanged();
|
|
} else {
|
|
featuresBuilder_.addMessage(builderForValue.build());
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public Builder addFeatures(
|
|
int index, net.osmand.binary.VectorTile.Tile.Feature.Builder builderForValue) {
|
|
if (featuresBuilder_ == null) {
|
|
ensureFeaturesIsMutable();
|
|
features_.add(index, builderForValue.build());
|
|
onChanged();
|
|
} else {
|
|
featuresBuilder_.addMessage(index, builderForValue.build());
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public Builder addAllFeatures(
|
|
java.lang.Iterable<? extends net.osmand.binary.VectorTile.Tile.Feature> values) {
|
|
if (featuresBuilder_ == null) {
|
|
ensureFeaturesIsMutable();
|
|
super.addAll(values, features_);
|
|
onChanged();
|
|
} else {
|
|
featuresBuilder_.addAllMessages(values);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public Builder clearFeatures() {
|
|
if (featuresBuilder_ == null) {
|
|
features_ = java.util.Collections.emptyList();
|
|
bitField0_ = (bitField0_ & ~0x00000004);
|
|
onChanged();
|
|
} else {
|
|
featuresBuilder_.clear();
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public Builder removeFeatures(int index) {
|
|
if (featuresBuilder_ == null) {
|
|
ensureFeaturesIsMutable();
|
|
features_.remove(index);
|
|
onChanged();
|
|
} else {
|
|
featuresBuilder_.remove(index);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.Feature.Builder getFeaturesBuilder(
|
|
int index) {
|
|
return getFeaturesFieldBuilder().getBuilder(index);
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.FeatureOrBuilder getFeaturesOrBuilder(
|
|
int index) {
|
|
if (featuresBuilder_ == null) {
|
|
return features_.get(index); } else {
|
|
return featuresBuilder_.getMessageOrBuilder(index);
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public java.util.List<? extends net.osmand.binary.VectorTile.Tile.FeatureOrBuilder>
|
|
getFeaturesOrBuilderList() {
|
|
if (featuresBuilder_ != null) {
|
|
return featuresBuilder_.getMessageOrBuilderList();
|
|
} else {
|
|
return java.util.Collections.unmodifiableList(features_);
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.Feature.Builder addFeaturesBuilder() {
|
|
return getFeaturesFieldBuilder().addBuilder(
|
|
net.osmand.binary.VectorTile.Tile.Feature.getDefaultInstance());
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.Feature.Builder addFeaturesBuilder(
|
|
int index) {
|
|
return getFeaturesFieldBuilder().addBuilder(
|
|
index, net.osmand.binary.VectorTile.Tile.Feature.getDefaultInstance());
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Feature features = 2;</code>
|
|
*
|
|
* <pre>
|
|
* The actual features in this tile.
|
|
* </pre>
|
|
*/
|
|
public java.util.List<net.osmand.binary.VectorTile.Tile.Feature.Builder>
|
|
getFeaturesBuilderList() {
|
|
return getFeaturesFieldBuilder().getBuilderList();
|
|
}
|
|
private com.google.protobuf.RepeatedFieldBuilder<
|
|
net.osmand.binary.VectorTile.Tile.Feature, net.osmand.binary.VectorTile.Tile.Feature.Builder, net.osmand.binary.VectorTile.Tile.FeatureOrBuilder>
|
|
getFeaturesFieldBuilder() {
|
|
if (featuresBuilder_ == null) {
|
|
featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
|
|
net.osmand.binary.VectorTile.Tile.Feature, net.osmand.binary.VectorTile.Tile.Feature.Builder, net.osmand.binary.VectorTile.Tile.FeatureOrBuilder>(
|
|
features_,
|
|
((bitField0_ & 0x00000004) == 0x00000004),
|
|
getParentForChildren(),
|
|
isClean());
|
|
features_ = null;
|
|
}
|
|
return featuresBuilder_;
|
|
}
|
|
|
|
// repeated string keys = 3;
|
|
private com.google.protobuf.LazyStringList keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
|
|
private void ensureKeysIsMutable() {
|
|
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
|
|
keys_ = new com.google.protobuf.LazyStringArrayList(keys_);
|
|
bitField0_ |= 0x00000008;
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated string keys = 3;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for keys
|
|
* </pre>
|
|
*/
|
|
public java.util.List<java.lang.String>
|
|
getKeysList() {
|
|
return java.util.Collections.unmodifiableList(keys_);
|
|
}
|
|
/**
|
|
* <code>repeated string keys = 3;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for keys
|
|
* </pre>
|
|
*/
|
|
public int getKeysCount() {
|
|
return keys_.size();
|
|
}
|
|
/**
|
|
* <code>repeated string keys = 3;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for keys
|
|
* </pre>
|
|
*/
|
|
public java.lang.String getKeys(int index) {
|
|
return keys_.get(index);
|
|
}
|
|
/**
|
|
* <code>repeated string keys = 3;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for keys
|
|
* </pre>
|
|
*/
|
|
public com.google.protobuf.ByteString
|
|
getKeysBytes(int index) {
|
|
return keys_.getByteString(index);
|
|
}
|
|
/**
|
|
* <code>repeated string keys = 3;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for keys
|
|
* </pre>
|
|
*/
|
|
public Builder setKeys(
|
|
int index, java.lang.String value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
ensureKeysIsMutable();
|
|
keys_.set(index, value);
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated string keys = 3;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for keys
|
|
* </pre>
|
|
*/
|
|
public Builder addKeys(
|
|
java.lang.String value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
ensureKeysIsMutable();
|
|
keys_.add(value);
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated string keys = 3;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for keys
|
|
* </pre>
|
|
*/
|
|
public Builder addAllKeys(
|
|
java.lang.Iterable<java.lang.String> values) {
|
|
ensureKeysIsMutable();
|
|
super.addAll(values, keys_);
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated string keys = 3;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for keys
|
|
* </pre>
|
|
*/
|
|
public Builder clearKeys() {
|
|
keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
|
|
bitField0_ = (bitField0_ & ~0x00000008);
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated string keys = 3;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for keys
|
|
* </pre>
|
|
*/
|
|
public Builder addKeysBytes(
|
|
com.google.protobuf.ByteString value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
ensureKeysIsMutable();
|
|
keys_.add(value);
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
// repeated .OsmAnd.VectorTile.Tile.Value values = 4;
|
|
private java.util.List<net.osmand.binary.VectorTile.Tile.Value> values_ =
|
|
java.util.Collections.emptyList();
|
|
private void ensureValuesIsMutable() {
|
|
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
|
|
values_ = new java.util.ArrayList<net.osmand.binary.VectorTile.Tile.Value>(values_);
|
|
bitField0_ |= 0x00000010;
|
|
}
|
|
}
|
|
|
|
private com.google.protobuf.RepeatedFieldBuilder<
|
|
net.osmand.binary.VectorTile.Tile.Value, net.osmand.binary.VectorTile.Tile.Value.Builder, net.osmand.binary.VectorTile.Tile.ValueOrBuilder> valuesBuilder_;
|
|
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public java.util.List<net.osmand.binary.VectorTile.Tile.Value> getValuesList() {
|
|
if (valuesBuilder_ == null) {
|
|
return java.util.Collections.unmodifiableList(values_);
|
|
} else {
|
|
return valuesBuilder_.getMessageList();
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public int getValuesCount() {
|
|
if (valuesBuilder_ == null) {
|
|
return values_.size();
|
|
} else {
|
|
return valuesBuilder_.getCount();
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.Value getValues(int index) {
|
|
if (valuesBuilder_ == null) {
|
|
return values_.get(index);
|
|
} else {
|
|
return valuesBuilder_.getMessage(index);
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public Builder setValues(
|
|
int index, net.osmand.binary.VectorTile.Tile.Value value) {
|
|
if (valuesBuilder_ == null) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
ensureValuesIsMutable();
|
|
values_.set(index, value);
|
|
onChanged();
|
|
} else {
|
|
valuesBuilder_.setMessage(index, value);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public Builder setValues(
|
|
int index, net.osmand.binary.VectorTile.Tile.Value.Builder builderForValue) {
|
|
if (valuesBuilder_ == null) {
|
|
ensureValuesIsMutable();
|
|
values_.set(index, builderForValue.build());
|
|
onChanged();
|
|
} else {
|
|
valuesBuilder_.setMessage(index, builderForValue.build());
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public Builder addValues(net.osmand.binary.VectorTile.Tile.Value value) {
|
|
if (valuesBuilder_ == null) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
ensureValuesIsMutable();
|
|
values_.add(value);
|
|
onChanged();
|
|
} else {
|
|
valuesBuilder_.addMessage(value);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public Builder addValues(
|
|
int index, net.osmand.binary.VectorTile.Tile.Value value) {
|
|
if (valuesBuilder_ == null) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
ensureValuesIsMutable();
|
|
values_.add(index, value);
|
|
onChanged();
|
|
} else {
|
|
valuesBuilder_.addMessage(index, value);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public Builder addValues(
|
|
net.osmand.binary.VectorTile.Tile.Value.Builder builderForValue) {
|
|
if (valuesBuilder_ == null) {
|
|
ensureValuesIsMutable();
|
|
values_.add(builderForValue.build());
|
|
onChanged();
|
|
} else {
|
|
valuesBuilder_.addMessage(builderForValue.build());
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public Builder addValues(
|
|
int index, net.osmand.binary.VectorTile.Tile.Value.Builder builderForValue) {
|
|
if (valuesBuilder_ == null) {
|
|
ensureValuesIsMutable();
|
|
values_.add(index, builderForValue.build());
|
|
onChanged();
|
|
} else {
|
|
valuesBuilder_.addMessage(index, builderForValue.build());
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public Builder addAllValues(
|
|
java.lang.Iterable<? extends net.osmand.binary.VectorTile.Tile.Value> values) {
|
|
if (valuesBuilder_ == null) {
|
|
ensureValuesIsMutable();
|
|
super.addAll(values, values_);
|
|
onChanged();
|
|
} else {
|
|
valuesBuilder_.addAllMessages(values);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public Builder clearValues() {
|
|
if (valuesBuilder_ == null) {
|
|
values_ = java.util.Collections.emptyList();
|
|
bitField0_ = (bitField0_ & ~0x00000010);
|
|
onChanged();
|
|
} else {
|
|
valuesBuilder_.clear();
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public Builder removeValues(int index) {
|
|
if (valuesBuilder_ == null) {
|
|
ensureValuesIsMutable();
|
|
values_.remove(index);
|
|
onChanged();
|
|
} else {
|
|
valuesBuilder_.remove(index);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.Value.Builder getValuesBuilder(
|
|
int index) {
|
|
return getValuesFieldBuilder().getBuilder(index);
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.ValueOrBuilder getValuesOrBuilder(
|
|
int index) {
|
|
if (valuesBuilder_ == null) {
|
|
return values_.get(index); } else {
|
|
return valuesBuilder_.getMessageOrBuilder(index);
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public java.util.List<? extends net.osmand.binary.VectorTile.Tile.ValueOrBuilder>
|
|
getValuesOrBuilderList() {
|
|
if (valuesBuilder_ != null) {
|
|
return valuesBuilder_.getMessageOrBuilderList();
|
|
} else {
|
|
return java.util.Collections.unmodifiableList(values_);
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.Value.Builder addValuesBuilder() {
|
|
return getValuesFieldBuilder().addBuilder(
|
|
net.osmand.binary.VectorTile.Tile.Value.getDefaultInstance());
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.Value.Builder addValuesBuilder(
|
|
int index) {
|
|
return getValuesFieldBuilder().addBuilder(
|
|
index, net.osmand.binary.VectorTile.Tile.Value.getDefaultInstance());
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Value values = 4;</code>
|
|
*
|
|
* <pre>
|
|
* Dictionary encoding for values
|
|
* </pre>
|
|
*/
|
|
public java.util.List<net.osmand.binary.VectorTile.Tile.Value.Builder>
|
|
getValuesBuilderList() {
|
|
return getValuesFieldBuilder().getBuilderList();
|
|
}
|
|
private com.google.protobuf.RepeatedFieldBuilder<
|
|
net.osmand.binary.VectorTile.Tile.Value, net.osmand.binary.VectorTile.Tile.Value.Builder, net.osmand.binary.VectorTile.Tile.ValueOrBuilder>
|
|
getValuesFieldBuilder() {
|
|
if (valuesBuilder_ == null) {
|
|
valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
|
|
net.osmand.binary.VectorTile.Tile.Value, net.osmand.binary.VectorTile.Tile.Value.Builder, net.osmand.binary.VectorTile.Tile.ValueOrBuilder>(
|
|
values_,
|
|
((bitField0_ & 0x00000010) == 0x00000010),
|
|
getParentForChildren(),
|
|
isClean());
|
|
values_ = null;
|
|
}
|
|
return valuesBuilder_;
|
|
}
|
|
|
|
// optional uint32 extent = 5 [default = 4096];
|
|
private int extent_ = 4096;
|
|
/**
|
|
* <code>optional uint32 extent = 5 [default = 4096];</code>
|
|
*
|
|
* <pre>
|
|
* Although this is an "optional" field it is required by the specification.
|
|
* See https://github.com/mapbox/vector-tile-spec/issues/47
|
|
* </pre>
|
|
*/
|
|
public boolean hasExtent() {
|
|
return ((bitField0_ & 0x00000020) == 0x00000020);
|
|
}
|
|
/**
|
|
* <code>optional uint32 extent = 5 [default = 4096];</code>
|
|
*
|
|
* <pre>
|
|
* Although this is an "optional" field it is required by the specification.
|
|
* See https://github.com/mapbox/vector-tile-spec/issues/47
|
|
* </pre>
|
|
*/
|
|
public int getExtent() {
|
|
return extent_;
|
|
}
|
|
/**
|
|
* <code>optional uint32 extent = 5 [default = 4096];</code>
|
|
*
|
|
* <pre>
|
|
* Although this is an "optional" field it is required by the specification.
|
|
* See https://github.com/mapbox/vector-tile-spec/issues/47
|
|
* </pre>
|
|
*/
|
|
public Builder setExtent(int value) {
|
|
bitField0_ |= 0x00000020;
|
|
extent_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>optional uint32 extent = 5 [default = 4096];</code>
|
|
*
|
|
* <pre>
|
|
* Although this is an "optional" field it is required by the specification.
|
|
* See https://github.com/mapbox/vector-tile-spec/issues/47
|
|
* </pre>
|
|
*/
|
|
public Builder clearExtent() {
|
|
bitField0_ = (bitField0_ & ~0x00000020);
|
|
extent_ = 4096;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
// @@protoc_insertion_point(builder_scope:OsmAnd.VectorTile.Tile.Layer)
|
|
}
|
|
|
|
static {
|
|
defaultInstance = new Layer(true);
|
|
defaultInstance.initFields();
|
|
}
|
|
|
|
// @@protoc_insertion_point(class_scope:OsmAnd.VectorTile.Tile.Layer)
|
|
}
|
|
|
|
// repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;
|
|
public static final int LAYERS_FIELD_NUMBER = 3;
|
|
private java.util.List<net.osmand.binary.VectorTile.Tile.Layer> layers_;
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public java.util.List<net.osmand.binary.VectorTile.Tile.Layer> getLayersList() {
|
|
return layers_;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public java.util.List<? extends net.osmand.binary.VectorTile.Tile.LayerOrBuilder>
|
|
getLayersOrBuilderList() {
|
|
return layers_;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public int getLayersCount() {
|
|
return layers_.size();
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.Layer getLayers(int index) {
|
|
return layers_.get(index);
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.LayerOrBuilder getLayersOrBuilder(
|
|
int index) {
|
|
return layers_.get(index);
|
|
}
|
|
|
|
private void initFields() {
|
|
layers_ = java.util.Collections.emptyList();
|
|
}
|
|
private byte memoizedIsInitialized = -1;
|
|
public final boolean isInitialized() {
|
|
byte isInitialized = memoizedIsInitialized;
|
|
if (isInitialized != -1) return isInitialized == 1;
|
|
|
|
for (int i = 0; i < getLayersCount(); i++) {
|
|
if (!getLayers(i).isInitialized()) {
|
|
memoizedIsInitialized = 0;
|
|
return false;
|
|
}
|
|
}
|
|
if (!extensionsAreInitialized()) {
|
|
memoizedIsInitialized = 0;
|
|
return false;
|
|
}
|
|
memoizedIsInitialized = 1;
|
|
return true;
|
|
}
|
|
|
|
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
|
throws java.io.IOException {
|
|
getSerializedSize();
|
|
com.google.protobuf.GeneratedMessage
|
|
.ExtendableMessage<net.osmand.binary.VectorTile.Tile>.ExtensionWriter extensionWriter =
|
|
newExtensionWriter();
|
|
for (int i = 0; i < layers_.size(); i++) {
|
|
output.writeMessage(3, layers_.get(i));
|
|
}
|
|
extensionWriter.writeUntil(8192, output);
|
|
getUnknownFields().writeTo(output);
|
|
}
|
|
|
|
private int memoizedSerializedSize = -1;
|
|
public int getSerializedSize() {
|
|
int size = memoizedSerializedSize;
|
|
if (size != -1) return size;
|
|
|
|
size = 0;
|
|
for (int i = 0; i < layers_.size(); i++) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeMessageSize(3, layers_.get(i));
|
|
}
|
|
size += extensionsSerializedSize();
|
|
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 net.osmand.binary.VectorTile.Tile parseFrom(
|
|
com.google.protobuf.ByteString data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile parseFrom(
|
|
com.google.protobuf.ByteString data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile parseFrom(byte[] data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile parseFrom(
|
|
byte[] data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile parseFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return PARSER.parseFrom(input);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile parseFrom(
|
|
java.io.InputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return PARSER.parseFrom(input, extensionRegistry);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile parseDelimitedFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return PARSER.parseDelimitedFrom(input);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile parseDelimitedFrom(
|
|
java.io.InputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return PARSER.parseDelimitedFrom(input, extensionRegistry);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile parseFrom(
|
|
com.google.protobuf.CodedInputStream input)
|
|
throws java.io.IOException {
|
|
return PARSER.parseFrom(input);
|
|
}
|
|
public static net.osmand.binary.VectorTile.Tile parseFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return PARSER.parseFrom(input, extensionRegistry);
|
|
}
|
|
|
|
public static Builder newBuilder() { return Builder.create(); }
|
|
public Builder newBuilderForType() { return newBuilder(); }
|
|
public static Builder newBuilder(net.osmand.binary.VectorTile.Tile 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;
|
|
}
|
|
/**
|
|
* Protobuf type {@code OsmAnd.VectorTile.Tile}
|
|
*/
|
|
public static final class Builder extends
|
|
com.google.protobuf.GeneratedMessage.ExtendableBuilder<
|
|
net.osmand.binary.VectorTile.Tile, Builder> implements net.osmand.binary.VectorTile.TileOrBuilder {
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return net.osmand.binary.VectorTile.internal_static_OsmAnd_VectorTile_Tile_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return net.osmand.binary.VectorTile.internal_static_OsmAnd_VectorTile_Tile_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
net.osmand.binary.VectorTile.Tile.class, net.osmand.binary.VectorTile.Tile.Builder.class);
|
|
}
|
|
|
|
// Construct using net.osmand.binary.VectorTile.Tile.newBuilder()
|
|
private Builder() {
|
|
maybeForceBuilderInitialization();
|
|
}
|
|
|
|
private Builder(
|
|
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
|
|
super(parent);
|
|
maybeForceBuilderInitialization();
|
|
}
|
|
private void maybeForceBuilderInitialization() {
|
|
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
|
|
getLayersFieldBuilder();
|
|
}
|
|
}
|
|
private static Builder create() {
|
|
return new Builder();
|
|
}
|
|
|
|
public Builder clear() {
|
|
super.clear();
|
|
if (layersBuilder_ == null) {
|
|
layers_ = java.util.Collections.emptyList();
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
} else {
|
|
layersBuilder_.clear();
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public Builder clone() {
|
|
return create().mergeFrom(buildPartial());
|
|
}
|
|
|
|
public com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptorForType() {
|
|
return net.osmand.binary.VectorTile.internal_static_OsmAnd_VectorTile_Tile_descriptor;
|
|
}
|
|
|
|
public net.osmand.binary.VectorTile.Tile getDefaultInstanceForType() {
|
|
return net.osmand.binary.VectorTile.Tile.getDefaultInstance();
|
|
}
|
|
|
|
public net.osmand.binary.VectorTile.Tile build() {
|
|
net.osmand.binary.VectorTile.Tile result = buildPartial();
|
|
if (!result.isInitialized()) {
|
|
throw newUninitializedMessageException(result);
|
|
}
|
|
return result;
|
|
}
|
|
|
|
public net.osmand.binary.VectorTile.Tile buildPartial() {
|
|
net.osmand.binary.VectorTile.Tile result = new net.osmand.binary.VectorTile.Tile(this);
|
|
int from_bitField0_ = bitField0_;
|
|
if (layersBuilder_ == null) {
|
|
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
|
layers_ = java.util.Collections.unmodifiableList(layers_);
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
}
|
|
result.layers_ = layers_;
|
|
} else {
|
|
result.layers_ = layersBuilder_.build();
|
|
}
|
|
onBuilt();
|
|
return result;
|
|
}
|
|
|
|
public Builder mergeFrom(com.google.protobuf.Message other) {
|
|
if (other instanceof net.osmand.binary.VectorTile.Tile) {
|
|
return mergeFrom((net.osmand.binary.VectorTile.Tile)other);
|
|
} else {
|
|
super.mergeFrom(other);
|
|
return this;
|
|
}
|
|
}
|
|
|
|
public Builder mergeFrom(net.osmand.binary.VectorTile.Tile other) {
|
|
if (other == net.osmand.binary.VectorTile.Tile.getDefaultInstance()) return this;
|
|
if (layersBuilder_ == null) {
|
|
if (!other.layers_.isEmpty()) {
|
|
if (layers_.isEmpty()) {
|
|
layers_ = other.layers_;
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
} else {
|
|
ensureLayersIsMutable();
|
|
layers_.addAll(other.layers_);
|
|
}
|
|
onChanged();
|
|
}
|
|
} else {
|
|
if (!other.layers_.isEmpty()) {
|
|
if (layersBuilder_.isEmpty()) {
|
|
layersBuilder_.dispose();
|
|
layersBuilder_ = null;
|
|
layers_ = other.layers_;
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
layersBuilder_ =
|
|
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
|
|
getLayersFieldBuilder() : null;
|
|
} else {
|
|
layersBuilder_.addAllMessages(other.layers_);
|
|
}
|
|
}
|
|
}
|
|
this.mergeExtensionFields(other);
|
|
this.mergeUnknownFields(other.getUnknownFields());
|
|
return this;
|
|
}
|
|
|
|
public final boolean isInitialized() {
|
|
for (int i = 0; i < getLayersCount(); i++) {
|
|
if (!getLayers(i).isInitialized()) {
|
|
|
|
return false;
|
|
}
|
|
}
|
|
if (!extensionsAreInitialized()) {
|
|
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public Builder mergeFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
net.osmand.binary.VectorTile.Tile parsedMessage = null;
|
|
try {
|
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
parsedMessage = (net.osmand.binary.VectorTile.Tile) e.getUnfinishedMessage();
|
|
throw e;
|
|
} finally {
|
|
if (parsedMessage != null) {
|
|
mergeFrom(parsedMessage);
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
private int bitField0_;
|
|
|
|
// repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;
|
|
private java.util.List<net.osmand.binary.VectorTile.Tile.Layer> layers_ =
|
|
java.util.Collections.emptyList();
|
|
private void ensureLayersIsMutable() {
|
|
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
|
|
layers_ = new java.util.ArrayList<net.osmand.binary.VectorTile.Tile.Layer>(layers_);
|
|
bitField0_ |= 0x00000001;
|
|
}
|
|
}
|
|
|
|
private com.google.protobuf.RepeatedFieldBuilder<
|
|
net.osmand.binary.VectorTile.Tile.Layer, net.osmand.binary.VectorTile.Tile.Layer.Builder, net.osmand.binary.VectorTile.Tile.LayerOrBuilder> layersBuilder_;
|
|
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public java.util.List<net.osmand.binary.VectorTile.Tile.Layer> getLayersList() {
|
|
if (layersBuilder_ == null) {
|
|
return java.util.Collections.unmodifiableList(layers_);
|
|
} else {
|
|
return layersBuilder_.getMessageList();
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public int getLayersCount() {
|
|
if (layersBuilder_ == null) {
|
|
return layers_.size();
|
|
} else {
|
|
return layersBuilder_.getCount();
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.Layer getLayers(int index) {
|
|
if (layersBuilder_ == null) {
|
|
return layers_.get(index);
|
|
} else {
|
|
return layersBuilder_.getMessage(index);
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public Builder setLayers(
|
|
int index, net.osmand.binary.VectorTile.Tile.Layer value) {
|
|
if (layersBuilder_ == null) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
ensureLayersIsMutable();
|
|
layers_.set(index, value);
|
|
onChanged();
|
|
} else {
|
|
layersBuilder_.setMessage(index, value);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public Builder setLayers(
|
|
int index, net.osmand.binary.VectorTile.Tile.Layer.Builder builderForValue) {
|
|
if (layersBuilder_ == null) {
|
|
ensureLayersIsMutable();
|
|
layers_.set(index, builderForValue.build());
|
|
onChanged();
|
|
} else {
|
|
layersBuilder_.setMessage(index, builderForValue.build());
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public Builder addLayers(net.osmand.binary.VectorTile.Tile.Layer value) {
|
|
if (layersBuilder_ == null) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
ensureLayersIsMutable();
|
|
layers_.add(value);
|
|
onChanged();
|
|
} else {
|
|
layersBuilder_.addMessage(value);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public Builder addLayers(
|
|
int index, net.osmand.binary.VectorTile.Tile.Layer value) {
|
|
if (layersBuilder_ == null) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
ensureLayersIsMutable();
|
|
layers_.add(index, value);
|
|
onChanged();
|
|
} else {
|
|
layersBuilder_.addMessage(index, value);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public Builder addLayers(
|
|
net.osmand.binary.VectorTile.Tile.Layer.Builder builderForValue) {
|
|
if (layersBuilder_ == null) {
|
|
ensureLayersIsMutable();
|
|
layers_.add(builderForValue.build());
|
|
onChanged();
|
|
} else {
|
|
layersBuilder_.addMessage(builderForValue.build());
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public Builder addLayers(
|
|
int index, net.osmand.binary.VectorTile.Tile.Layer.Builder builderForValue) {
|
|
if (layersBuilder_ == null) {
|
|
ensureLayersIsMutable();
|
|
layers_.add(index, builderForValue.build());
|
|
onChanged();
|
|
} else {
|
|
layersBuilder_.addMessage(index, builderForValue.build());
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public Builder addAllLayers(
|
|
java.lang.Iterable<? extends net.osmand.binary.VectorTile.Tile.Layer> values) {
|
|
if (layersBuilder_ == null) {
|
|
ensureLayersIsMutable();
|
|
super.addAll(values, layers_);
|
|
onChanged();
|
|
} else {
|
|
layersBuilder_.addAllMessages(values);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public Builder clearLayers() {
|
|
if (layersBuilder_ == null) {
|
|
layers_ = java.util.Collections.emptyList();
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
onChanged();
|
|
} else {
|
|
layersBuilder_.clear();
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public Builder removeLayers(int index) {
|
|
if (layersBuilder_ == null) {
|
|
ensureLayersIsMutable();
|
|
layers_.remove(index);
|
|
onChanged();
|
|
} else {
|
|
layersBuilder_.remove(index);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.Layer.Builder getLayersBuilder(
|
|
int index) {
|
|
return getLayersFieldBuilder().getBuilder(index);
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.LayerOrBuilder getLayersOrBuilder(
|
|
int index) {
|
|
if (layersBuilder_ == null) {
|
|
return layers_.get(index); } else {
|
|
return layersBuilder_.getMessageOrBuilder(index);
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public java.util.List<? extends net.osmand.binary.VectorTile.Tile.LayerOrBuilder>
|
|
getLayersOrBuilderList() {
|
|
if (layersBuilder_ != null) {
|
|
return layersBuilder_.getMessageOrBuilderList();
|
|
} else {
|
|
return java.util.Collections.unmodifiableList(layers_);
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.Layer.Builder addLayersBuilder() {
|
|
return getLayersFieldBuilder().addBuilder(
|
|
net.osmand.binary.VectorTile.Tile.Layer.getDefaultInstance());
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public net.osmand.binary.VectorTile.Tile.Layer.Builder addLayersBuilder(
|
|
int index) {
|
|
return getLayersFieldBuilder().addBuilder(
|
|
index, net.osmand.binary.VectorTile.Tile.Layer.getDefaultInstance());
|
|
}
|
|
/**
|
|
* <code>repeated .OsmAnd.VectorTile.Tile.Layer layers = 3;</code>
|
|
*/
|
|
public java.util.List<net.osmand.binary.VectorTile.Tile.Layer.Builder>
|
|
getLayersBuilderList() {
|
|
return getLayersFieldBuilder().getBuilderList();
|
|
}
|
|
private com.google.protobuf.RepeatedFieldBuilder<
|
|
net.osmand.binary.VectorTile.Tile.Layer, net.osmand.binary.VectorTile.Tile.Layer.Builder, net.osmand.binary.VectorTile.Tile.LayerOrBuilder>
|
|
getLayersFieldBuilder() {
|
|
if (layersBuilder_ == null) {
|
|
layersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
|
|
net.osmand.binary.VectorTile.Tile.Layer, net.osmand.binary.VectorTile.Tile.Layer.Builder, net.osmand.binary.VectorTile.Tile.LayerOrBuilder>(
|
|
layers_,
|
|
((bitField0_ & 0x00000001) == 0x00000001),
|
|
getParentForChildren(),
|
|
isClean());
|
|
layers_ = null;
|
|
}
|
|
return layersBuilder_;
|
|
}
|
|
|
|
// @@protoc_insertion_point(builder_scope:OsmAnd.VectorTile.Tile)
|
|
}
|
|
|
|
static {
|
|
defaultInstance = new Tile(true);
|
|
defaultInstance.initFields();
|
|
}
|
|
|
|
// @@protoc_insertion_point(class_scope:OsmAnd.VectorTile.Tile)
|
|
}
|
|
|
|
private static com.google.protobuf.Descriptors.Descriptor
|
|
internal_static_OsmAnd_VectorTile_Tile_descriptor;
|
|
private static
|
|
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
|
internal_static_OsmAnd_VectorTile_Tile_fieldAccessorTable;
|
|
private static com.google.protobuf.Descriptors.Descriptor
|
|
internal_static_OsmAnd_VectorTile_Tile_Value_descriptor;
|
|
private static
|
|
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
|
internal_static_OsmAnd_VectorTile_Tile_Value_fieldAccessorTable;
|
|
private static com.google.protobuf.Descriptors.Descriptor
|
|
internal_static_OsmAnd_VectorTile_Tile_Feature_descriptor;
|
|
private static
|
|
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
|
internal_static_OsmAnd_VectorTile_Tile_Feature_fieldAccessorTable;
|
|
private static com.google.protobuf.Descriptors.Descriptor
|
|
internal_static_OsmAnd_VectorTile_Tile_Layer_descriptor;
|
|
private static
|
|
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
|
internal_static_OsmAnd_VectorTile_Tile_Layer_fieldAccessorTable;
|
|
|
|
public static com.google.protobuf.Descriptors.FileDescriptor
|
|
getDescriptor() {
|
|
return descriptor;
|
|
}
|
|
private static com.google.protobuf.Descriptors.FileDescriptor
|
|
descriptor;
|
|
static {
|
|
java.lang.String[] descriptorData = {
|
|
"\n\021vector_tile.proto\022\021OsmAnd.VectorTile\"\330" +
|
|
"\004\n\004Tile\022-\n\006layers\030\003 \003(\0132\035.OsmAnd.VectorT" +
|
|
"ile.Tile.Layer\032\241\001\n\005Value\022\024\n\014string_value" +
|
|
"\030\001 \001(\t\022\023\n\013float_value\030\002 \001(\002\022\024\n\014double_va" +
|
|
"lue\030\003 \001(\001\022\021\n\tint_value\030\004 \001(\003\022\022\n\nuint_val" +
|
|
"ue\030\005 \001(\004\022\022\n\nsint_value\030\006 \001(\022\022\022\n\nbool_val" +
|
|
"ue\030\007 \001(\010*\010\010\010\020\200\200\200\200\002\032y\n\007Feature\022\r\n\002id\030\001 \001(" +
|
|
"\004:\0010\022\020\n\004tags\030\002 \003(\rB\002\020\001\0227\n\004type\030\003 \001(\0162 .O" +
|
|
"smAnd.VectorTile.Tile.GeomType:\007UNKNOWN\022" +
|
|
"\024\n\010geometry\030\004 \003(\rB\002\020\001\032\271\001\n\005Layer\022\022\n\007versi",
|
|
"on\030\017 \002(\r:\0011\022\014\n\004name\030\001 \002(\t\0221\n\010features\030\002 " +
|
|
"\003(\0132\037.OsmAnd.VectorTile.Tile.Feature\022\014\n\004" +
|
|
"keys\030\003 \003(\t\022-\n\006values\030\004 \003(\0132\035.OsmAnd.Vect" +
|
|
"orTile.Tile.Value\022\024\n\006extent\030\005 \001(\r:\0044096*" +
|
|
"\010\010\020\020\200\200\200\200\002\"?\n\010GeomType\022\013\n\007UNKNOWN\020\000\022\t\n\005PO" +
|
|
"INT\020\001\022\016\n\nLINESTRING\020\002\022\013\n\007POLYGON\020\003*\005\010\020\020\200" +
|
|
"@B\037\n\021net.osmand.binaryB\nVectorTile"
|
|
};
|
|
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
|
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
|
|
public com.google.protobuf.ExtensionRegistry assignDescriptors(
|
|
com.google.protobuf.Descriptors.FileDescriptor root) {
|
|
descriptor = root;
|
|
internal_static_OsmAnd_VectorTile_Tile_descriptor =
|
|
getDescriptor().getMessageTypes().get(0);
|
|
internal_static_OsmAnd_VectorTile_Tile_fieldAccessorTable = new
|
|
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
|
|
internal_static_OsmAnd_VectorTile_Tile_descriptor,
|
|
new java.lang.String[] { "Layers", });
|
|
internal_static_OsmAnd_VectorTile_Tile_Value_descriptor =
|
|
internal_static_OsmAnd_VectorTile_Tile_descriptor.getNestedTypes().get(0);
|
|
internal_static_OsmAnd_VectorTile_Tile_Value_fieldAccessorTable = new
|
|
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
|
|
internal_static_OsmAnd_VectorTile_Tile_Value_descriptor,
|
|
new java.lang.String[] { "StringValue", "FloatValue", "DoubleValue", "IntValue", "UintValue", "SintValue", "BoolValue", });
|
|
internal_static_OsmAnd_VectorTile_Tile_Feature_descriptor =
|
|
internal_static_OsmAnd_VectorTile_Tile_descriptor.getNestedTypes().get(1);
|
|
internal_static_OsmAnd_VectorTile_Tile_Feature_fieldAccessorTable = new
|
|
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
|
|
internal_static_OsmAnd_VectorTile_Tile_Feature_descriptor,
|
|
new java.lang.String[] { "Id", "Tags", "Type", "Geometry", });
|
|
internal_static_OsmAnd_VectorTile_Tile_Layer_descriptor =
|
|
internal_static_OsmAnd_VectorTile_Tile_descriptor.getNestedTypes().get(2);
|
|
internal_static_OsmAnd_VectorTile_Tile_Layer_fieldAccessorTable = new
|
|
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
|
|
internal_static_OsmAnd_VectorTile_Tile_Layer_descriptor,
|
|
new java.lang.String[] { "Version", "Name", "Features", "Keys", "Values", "Extent", });
|
|
return null;
|
|
}
|
|
};
|
|
com.google.protobuf.Descriptors.FileDescriptor
|
|
.internalBuildGeneratedFileFrom(descriptorData,
|
|
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
|
}, assigner);
|
|
}
|
|
|
|
// @@protoc_insertion_point(outer_class_scope)
|
|
}
|