double x = 1;
- *
- * @return The x.
- */
- double getX();
-
- /**
- * double y = 2;
- *
- * @return The y.
- */
- double getY();
-
- /**
- * double z = 3;
- *
- * @return The z.
- */
- double getZ();
}
/**
* - * Point,包含点的 x y z坐标 ,z可选。 + * 空几何对象 解析后返回null **
- * Protobuf type {@code pojo.Point}
+ * Protobuf type {@code pojo.NullGeometry}
*/
- public static final class Point extends
+ public static final class NullGeometry extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:pojo.Point)
- PointOrBuilder {
+ // @@protoc_insertion_point(message_implements:pojo.NullGeometry)
+ NullGeometryOrBuilder {
private static final long serialVersionUID = 0L;
- // Use Point.newBuilder() to construct.
- private Point(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // Use NullGeometry.newBuilder() to construct.
+ private NullGeometry(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private Point() {
+ private NullGeometry() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
- return new Point();
+ return new NullGeometry();
}
@java.lang.Override
@@ -77,7 +56,7 @@ protected java.lang.Object newInstance(
return this.unknownFields;
}
- private Point(
+ private NullGeometry(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -95,21 +74,6 @@ private Point(
case 0:
done = true;
break;
- case 9: {
-
- x_ = input.readDouble();
- break;
- }
- case 17: {
-
- y_ = input.readDouble();
- break;
- }
- case 25: {
-
- z_ = input.readDouble();
- break;
- }
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -134,54 +98,15 @@ private Point(
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_Point_descriptor;
+ return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_NullGeometry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_Point_fieldAccessorTable
+ return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_NullGeometry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.class, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.Builder.class);
- }
-
- public static final int X_FIELD_NUMBER = 1;
- private double x_;
-
- /**
- * double x = 1;
- *
- * @return The x.
- */
- @java.lang.Override
- public double getX() {
- return x_;
- }
-
- public static final int Y_FIELD_NUMBER = 2;
- private double y_;
-
- /**
- * double y = 2;
- *
- * @return The y.
- */
- @java.lang.Override
- public double getY() {
- return y_;
- }
-
- public static final int Z_FIELD_NUMBER = 3;
- private double z_;
-
- /**
- * double z = 3;
- *
- * @return The z.
- */
- @java.lang.Override
- public double getZ() {
- return z_;
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.NullGeometry.class, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.NullGeometry.Builder.class);
}
private byte memoizedIsInitialized = -1;
@@ -199,15 +124,6 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (java.lang.Double.doubleToRawLongBits(x_) != 0) {
- output.writeDouble(1, x_);
- }
- if (java.lang.Double.doubleToRawLongBits(y_) != 0) {
- output.writeDouble(2, y_);
- }
- if (java.lang.Double.doubleToRawLongBits(z_) != 0) {
- output.writeDouble(3, z_);
- }
unknownFields.writeTo(output);
}
@@ -217,18 +133,6 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (java.lang.Double.doubleToRawLongBits(x_) != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(1, x_);
- }
- if (java.lang.Double.doubleToRawLongBits(y_) != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(2, y_);
- }
- if (java.lang.Double.doubleToRawLongBits(z_) != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(3, z_);
- }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -239,20 +143,11 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point)) {
+ if (!(obj instanceof org.wowtools.giscat.vector.pojo.proto.ProtoFeature.NullGeometry)) {
return super.equals(obj);
}
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point other = (org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point) obj;
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.NullGeometry other = (org.wowtools.giscat.vector.pojo.proto.ProtoFeature.NullGeometry) obj;
- if (java.lang.Double.doubleToLongBits(getX())
- != java.lang.Double.doubleToLongBits(
- other.getX())) return false;
- if (java.lang.Double.doubleToLongBits(getY())
- != java.lang.Double.doubleToLongBits(
- other.getY())) return false;
- if (java.lang.Double.doubleToLongBits(getZ())
- != java.lang.Double.doubleToLongBits(
- other.getZ())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -264,65 +159,56 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + X_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- java.lang.Double.doubleToLongBits(getX()));
- hash = (37 * hash) + Y_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- java.lang.Double.doubleToLongBits(getY()));
- hash = (37 * hash) + Z_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- java.lang.Double.doubleToLongBits(getZ()));
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.NullGeometry parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.NullGeometry parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.NullGeometry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.NullGeometry parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseFrom(byte[] data)
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.NullGeometry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.NullGeometry parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseFrom(java.io.InputStream input)
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.NullGeometry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.NullGeometry parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -330,13 +216,13 @@ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseFrom
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseDelimitedFrom(java.io.InputStream input)
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.NullGeometry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseDelimitedFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.NullGeometry parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -344,14 +230,14 @@ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseDeli
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.NullGeometry parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.NullGeometry parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -368,7 +254,7 @@ public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point prototype) {
+ public static Builder newBuilder(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.NullGeometry prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@@ -381,34 +267,35 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- return new Builder(parent);
+ Builder builder = new Builder(parent);
+ return builder;
}
/**
*
- * Point,包含点的 x y z坐标 ,z可选。 + * 空几何对象 解析后返回null **
- * Protobuf type {@code pojo.Point}
+ * Protobuf type {@code pojo.NullGeometry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder
- * Protobuf type {@code pojo.LineString}
+ * Protobuf type {@code pojo.Point}
*/
- public static final class LineString extends
+ public static final class Point extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:pojo.LineString)
- LineStringOrBuilder {
+ // @@protoc_insertion_point(message_implements:pojo.Point)
+ PointOrBuilder {
private static final long serialVersionUID = 0L;
- // Use LineString.newBuilder() to construct.
- private LineString(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // Use Point.newBuilder() to construct.
+ private Point(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private LineString() {
- xs_ = emptyDoubleList();
- ys_ = emptyDoubleList();
- zs_ = emptyDoubleList();
+ private Point() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
- return new LineString();
+ return new Point();
}
@java.lang.Override
@@ -828,7 +539,7 @@ protected java.lang.Object newInstance(
return this.unknownFields;
}
- private LineString(
+ private Point(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -836,7 +547,6 @@ private LineString(
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
- int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
@@ -848,66 +558,18 @@ private LineString(
done = true;
break;
case 9: {
- if (!((mutable_bitField0_ & 0x00000001) != 0)) {
- xs_ = newDoubleList();
- mutable_bitField0_ |= 0x00000001;
- }
- xs_.addDouble(input.readDouble());
- break;
- }
- case 10: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
- xs_ = newDoubleList();
- mutable_bitField0_ |= 0x00000001;
- }
- while (input.getBytesUntilLimit() > 0) {
- xs_.addDouble(input.readDouble());
- }
- input.popLimit(limit);
+
+ x_ = input.readDouble();
break;
}
case 17: {
- if (!((mutable_bitField0_ & 0x00000002) != 0)) {
- ys_ = newDoubleList();
- mutable_bitField0_ |= 0x00000002;
- }
- ys_.addDouble(input.readDouble());
- break;
- }
- case 18: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
- ys_ = newDoubleList();
- mutable_bitField0_ |= 0x00000002;
- }
- while (input.getBytesUntilLimit() > 0) {
- ys_.addDouble(input.readDouble());
- }
- input.popLimit(limit);
+
+ y_ = input.readDouble();
break;
}
case 25: {
- if (!((mutable_bitField0_ & 0x00000004) != 0)) {
- zs_ = newDoubleList();
- mutable_bitField0_ |= 0x00000004;
- }
- zs_.addDouble(input.readDouble());
- break;
- }
- case 26: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) {
- zs_ = newDoubleList();
- mutable_bitField0_ |= 0x00000004;
- }
- while (input.getBytesUntilLimit() > 0) {
- zs_.addDouble(input.readDouble());
- }
- input.popLimit(limit);
+
+ z_ = input.readDouble();
break;
}
default: {
@@ -927,15 +589,6 @@ private LineString(
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
- if (((mutable_bitField0_ & 0x00000001) != 0)) {
- xs_.makeImmutable(); // C
- }
- if (((mutable_bitField0_ & 0x00000002) != 0)) {
- ys_.makeImmutable(); // C
- }
- if (((mutable_bitField0_ & 0x00000004) != 0)) {
- zs_.makeImmutable(); // C
- }
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
@@ -943,122 +596,56 @@ private LineString(
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_LineString_descriptor;
+ return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_Point_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_LineString_fieldAccessorTable
+ return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_Point_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.class, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.Builder.class);
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.class, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.Builder.class);
}
- public static final int XS_FIELD_NUMBER = 1;
- private com.google.protobuf.Internal.DoubleList xs_;
+ public static final int X_FIELD_NUMBER = 1;
+ private double x_;
/**
- *
- * Protobuf type {@code pojo.LineString}
+ * Protobuf type {@code pojo.Point}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder
- * Protobuf type {@code pojo.Polygon}
+ * Protobuf type {@code pojo.LineString}
*/
- public static final class Polygon extends
+ public static final class LineString extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:pojo.Polygon)
- PolygonOrBuilder {
+ // @@protoc_insertion_point(message_implements:pojo.LineString)
+ LineStringOrBuilder {
private static final long serialVersionUID = 0L;
- // Use Polygon.newBuilder() to construct.
- private Polygon(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // Use LineString.newBuilder() to construct.
+ private LineString(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private Polygon() {
+ private LineString() {
xs_ = emptyDoubleList();
ys_ = emptyDoubleList();
zs_ = emptyDoubleList();
- separators_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
- return new Polygon();
+ return new LineString();
}
@java.lang.Override
@@ -1972,7 +1291,7 @@ protected java.lang.Object newInstance(
return this.unknownFields;
}
- private Polygon(
+ private LineString(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -2054,27 +1373,6 @@ private Polygon(
input.popLimit(limit);
break;
}
- case 32: {
- if (!((mutable_bitField0_ & 0x00000008) != 0)) {
- separators_ = newIntList();
- mutable_bitField0_ |= 0x00000008;
- }
- separators_.addInt(input.readInt32());
- break;
- }
- case 34: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000008) != 0) && input.getBytesUntilLimit() > 0) {
- separators_ = newIntList();
- mutable_bitField0_ |= 0x00000008;
- }
- while (input.getBytesUntilLimit() > 0) {
- separators_.addInt(input.readInt32());
- }
- input.popLimit(limit);
- break;
- }
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -2101,9 +1399,6 @@ private Polygon(
if (((mutable_bitField0_ & 0x00000004) != 0)) {
zs_.makeImmutable(); // C
}
- if (((mutable_bitField0_ & 0x00000008) != 0)) {
- separators_.makeImmutable(); // C
- }
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
@@ -2111,15 +1406,15 @@ private Polygon(
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_Polygon_descriptor;
+ return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_LineString_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_Polygon_fieldAccessorTable
+ return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_LineString_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.class, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.Builder.class);
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.class, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.Builder.class);
}
public static final int XS_FIELD_NUMBER = 1;
@@ -2227,41 +1522,6 @@ public double getZs(int index) {
private int zsMemoizedSerializedSize = -1;
- public static final int SEPARATORS_FIELD_NUMBER = 4;
- private com.google.protobuf.Internal.IntList separators_;
-
- /**
- *
- * Protobuf type {@code pojo.Polygon}
+ * Protobuf type {@code pojo.LineString}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder
- * Protobuf type {@code pojo.MultiPoint}
- */
- public static final class MultiPoint extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:pojo.MultiPoint)
- MultiPointOrBuilder {
- private static final long serialVersionUID = 0L;
+ /**
+ *
+ * Protobuf type {@code pojo.Polygon}
+ */
+ public static final class Polygon extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pojo.Polygon)
+ PolygonOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use Polygon.newBuilder() to construct.
+ private Polygon(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private MultiPoint() {
+ private Polygon() {
xs_ = emptyDoubleList();
ys_ = emptyDoubleList();
zs_ = emptyDoubleList();
+ separators_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
- return new MultiPoint();
+ return new Polygon();
}
@java.lang.Override
@@ -3290,7 +2436,7 @@ protected java.lang.Object newInstance(
return this.unknownFields;
}
- private MultiPoint(
+ private Polygon(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -3372,6 +2518,27 @@ private MultiPoint(
input.popLimit(limit);
break;
}
+ case 32: {
+ if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+ separators_ = newIntList();
+ mutable_bitField0_ |= 0x00000008;
+ }
+ separators_.addInt(input.readInt32());
+ break;
+ }
+ case 34: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ if (!((mutable_bitField0_ & 0x00000008) != 0) && input.getBytesUntilLimit() > 0) {
+ separators_ = newIntList();
+ mutable_bitField0_ |= 0x00000008;
+ }
+ while (input.getBytesUntilLimit() > 0) {
+ separators_.addInt(input.readInt32());
+ }
+ input.popLimit(limit);
+ break;
+ }
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -3398,6 +2565,9 @@ private MultiPoint(
if (((mutable_bitField0_ & 0x00000004) != 0)) {
zs_.makeImmutable(); // C
}
+ if (((mutable_bitField0_ & 0x00000008) != 0)) {
+ separators_.makeImmutable(); // C
+ }
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
@@ -3405,15 +2575,15 @@ private MultiPoint(
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_MultiPoint_descriptor;
+ return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_Polygon_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_MultiPoint_fieldAccessorTable
+ return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_Polygon_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.class, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder.class);
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.class, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.Builder.class);
}
public static final int XS_FIELD_NUMBER = 1;
@@ -3521,6 +2691,41 @@ public double getZs(int index) {
private int zsMemoizedSerializedSize = -1;
+ public static final int SEPARATORS_FIELD_NUMBER = 4;
+ private com.google.protobuf.Internal.IntList separators_;
+
+ /**
+ *
- * Protobuf type {@code pojo.MultiPoint}
+ * Protobuf type {@code pojo.Polygon}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder
- * Protobuf type {@code pojo.MultiLineString}
+ * Protobuf type {@code pojo.MultiPoint}
*/
- public static final class MultiLineString extends
+ public static final class MultiPoint extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:pojo.MultiLineString)
- MultiLineStringOrBuilder {
+ // @@protoc_insertion_point(message_implements:pojo.MultiPoint)
+ MultiPointOrBuilder {
private static final long serialVersionUID = 0L;
- // Use MultiLineString.newBuilder() to construct.
- private MultiLineString(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // Use MultiPoint.newBuilder() to construct.
+ private MultiPoint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private MultiLineString() {
+ private MultiPoint() {
xs_ = emptyDoubleList();
ys_ = emptyDoubleList();
zs_ = emptyDoubleList();
- separators_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
- return new MultiLineString();
+ return new MultiPoint();
}
@java.lang.Override
@@ -4433,7 +3755,7 @@ protected java.lang.Object newInstance(
return this.unknownFields;
}
- private MultiLineString(
+ private MultiPoint(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -4515,27 +3837,6 @@ private MultiLineString(
input.popLimit(limit);
break;
}
- case 32: {
- if (!((mutable_bitField0_ & 0x00000008) != 0)) {
- separators_ = newIntList();
- mutable_bitField0_ |= 0x00000008;
- }
- separators_.addInt(input.readInt32());
- break;
- }
- case 34: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000008) != 0) && input.getBytesUntilLimit() > 0) {
- separators_ = newIntList();
- mutable_bitField0_ |= 0x00000008;
- }
- while (input.getBytesUntilLimit() > 0) {
- separators_.addInt(input.readInt32());
- }
- input.popLimit(limit);
- break;
- }
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -4562,9 +3863,6 @@ private MultiLineString(
if (((mutable_bitField0_ & 0x00000004) != 0)) {
zs_.makeImmutable(); // C
}
- if (((mutable_bitField0_ & 0x00000008) != 0)) {
- separators_.makeImmutable(); // C
- }
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
@@ -4572,15 +3870,15 @@ private MultiLineString(
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_MultiLineString_descriptor;
+ return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_MultiPoint_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_MultiLineString_fieldAccessorTable
+ return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_MultiPoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.class, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder.class);
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.class, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder.class);
}
public static final int XS_FIELD_NUMBER = 1;
@@ -4688,41 +3986,6 @@ public double getZs(int index) {
private int zsMemoizedSerializedSize = -1;
- public static final int SEPARATORS_FIELD_NUMBER = 4;
- private com.google.protobuf.Internal.IntList separators_;
-
- /**
- *
- * Protobuf type {@code pojo.MultiLineString}
+ * Protobuf type {@code pojo.MultiPoint}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder
- * Protobuf type {@code pojo.MultiPolygon}
+ * Protobuf type {@code pojo.MultiLineString}
*/
- public static final class MultiPolygon extends
+ public static final class MultiLineString extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:pojo.MultiPolygon)
- MultiPolygonOrBuilder {
+ // @@protoc_insertion_point(message_implements:pojo.MultiLineString)
+ MultiLineStringOrBuilder {
private static final long serialVersionUID = 0L;
- // Use MultiPolygon.newBuilder() to construct.
- private MultiPolygon(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // Use MultiLineString.newBuilder() to construct.
+ private MultiLineString(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private MultiPolygon() {
+ private MultiLineString() {
xs_ = emptyDoubleList();
ys_ = emptyDoubleList();
zs_ = emptyDoubleList();
- coordSeparators_ = emptyIntList();
- polygonSeparators_ = emptyIntList();
+ separators_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
- return new MultiPolygon();
+ return new MultiLineString();
}
@java.lang.Override
@@ -5800,7 +4899,7 @@ protected java.lang.Object newInstance(
return this.unknownFields;
}
- private MultiPolygon(
+ private MultiLineString(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -5884,42 +4983,21 @@ private MultiPolygon(
}
case 32: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
- coordSeparators_ = newIntList();
+ separators_ = newIntList();
mutable_bitField0_ |= 0x00000008;
}
- coordSeparators_.addInt(input.readInt32());
+ separators_.addInt(input.readInt32());
break;
}
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000008) != 0) && input.getBytesUntilLimit() > 0) {
- coordSeparators_ = newIntList();
+ separators_ = newIntList();
mutable_bitField0_ |= 0x00000008;
}
while (input.getBytesUntilLimit() > 0) {
- coordSeparators_.addInt(input.readInt32());
- }
- input.popLimit(limit);
- break;
- }
- case 40: {
- if (!((mutable_bitField0_ & 0x00000010) != 0)) {
- polygonSeparators_ = newIntList();
- mutable_bitField0_ |= 0x00000010;
- }
- polygonSeparators_.addInt(input.readInt32());
- break;
- }
- case 42: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000010) != 0) && input.getBytesUntilLimit() > 0) {
- polygonSeparators_ = newIntList();
- mutable_bitField0_ |= 0x00000010;
- }
- while (input.getBytesUntilLimit() > 0) {
- polygonSeparators_.addInt(input.readInt32());
+ separators_.addInt(input.readInt32());
}
input.popLimit(limit);
break;
@@ -5951,10 +5029,7 @@ private MultiPolygon(
zs_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
- coordSeparators_.makeImmutable(); // C
- }
- if (((mutable_bitField0_ & 0x00000010) != 0)) {
- polygonSeparators_.makeImmutable(); // C
+ separators_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -5963,15 +5038,15 @@ private MultiPolygon(
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_MultiPolygon_descriptor;
+ return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_MultiLineString_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_MultiPolygon_fieldAccessorTable
+ return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_MultiLineString_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.class, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.Builder.class);
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.class, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder.class);
}
public static final int XS_FIELD_NUMBER = 1;
@@ -6079,75 +5154,40 @@ public double getZs(int index) {
private int zsMemoizedSerializedSize = -1;
- public static final int COORDSEPARATORS_FIELD_NUMBER = 4;
- private com.google.protobuf.Internal.IntList coordSeparators_;
-
- /**
- *
- * Protobuf type {@code pojo.MultiPolygon}
+ * Protobuf type {@code pojo.MultiLineString}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder
- * Protobuf type {@code pojo.GeometryCollection}
+ * Protobuf type {@code pojo.MultiPolygon}
*/
- public static final class GeometryCollection extends
+ public static final class MultiPolygon extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:pojo.GeometryCollection)
- GeometryCollectionOrBuilder {
+ // @@protoc_insertion_point(message_implements:pojo.MultiPolygon)
+ MultiPolygonOrBuilder {
private static final long serialVersionUID = 0L;
- // Use GeometryCollection.newBuilder() to construct.
- private GeometryCollection(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // Use MultiPolygon.newBuilder() to construct.
+ private MultiPolygon(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private GeometryCollection() {
- points_ = java.util.Collections.emptyList();
- lineStrings_ = java.util.Collections.emptyList();
- polygons_ = java.util.Collections.emptyList();
- multiPoints_ = java.util.Collections.emptyList();
- multiLineStrings_ = java.util.Collections.emptyList();
- multiPolygons_ = java.util.Collections.emptyList();
- geometryCollections_ = java.util.Collections.emptyList();
+ private MultiPolygon() {
+ xs_ = emptyDoubleList();
+ ys_ = emptyDoubleList();
+ zs_ = emptyDoubleList();
+ coordSeparators_ = emptyIntList();
+ polygonSeparators_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
- return new GeometryCollection();
+ return new MultiPolygon();
}
@java.lang.Override
@@ -7470,7 +6267,7 @@ protected java.lang.Object newInstance(
return this.unknownFields;
}
- private GeometryCollection(
+ private MultiPolygon(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -7489,67 +6286,109 @@ private GeometryCollection(
case 0:
done = true;
break;
- case 10: {
+ case 9: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
- points_ = new java.util.ArrayList
- * Protobuf type {@code pojo.GeometryCollection}
+ * Protobuf type {@code pojo.MultiPolygon}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder
+ * Protobuf type {@code pojo.GeometryCollection}
+ */
+ public static final class GeometryCollection extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pojo.GeometryCollection)
+ GeometryCollectionOrBuilder {
+ private static final long serialVersionUID = 0L;
- /**
- *
+ * Protobuf type {@code pojo.GeometryCollection}
*/
- boolean hasGeometryCollection();
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder
- * Protobuf type {@code pojo.Geometry}
- */
- public static final class Geometry extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:pojo.Geometry)
- GeometryOrBuilder {
- private static final long serialVersionUID = 0L;
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
- // Use Geometry.newBuilder() to construct.
- private Geometry(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getPointsFieldBuilder();
+ getLineStringsFieldBuilder();
+ getPolygonsFieldBuilder();
+ getMultiPointsFieldBuilder();
+ getMultiLineStringsFieldBuilder();
+ getMultiPolygonsFieldBuilder();
+ getGeometryCollectionsFieldBuilder();
+ }
+ }
- private Geometry() {
- }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (pointsBuilder_ == null) {
+ points_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ pointsBuilder_.clear();
+ }
+ if (lineStringsBuilder_ == null) {
+ lineStrings_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ lineStringsBuilder_.clear();
+ }
+ if (polygonsBuilder_ == null) {
+ polygons_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ polygonsBuilder_.clear();
+ }
+ if (multiPointsBuilder_ == null) {
+ multiPoints_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ } else {
+ multiPointsBuilder_.clear();
+ }
+ if (multiLineStringsBuilder_ == null) {
+ multiLineStrings_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ } else {
+ multiLineStringsBuilder_.clear();
+ }
+ if (multiPolygonsBuilder_ == null) {
+ multiPolygons_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ } else {
+ multiPolygonsBuilder_.clear();
+ }
+ if (geometryCollectionsBuilder_ == null) {
+ geometryCollections_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ } else {
+ geometryCollectionsBuilder_.clear();
+ }
+ return this;
+ }
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new Geometry();
- }
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_GeometryCollection_descriptor;
+ }
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
+ @java.lang.Override
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection getDefaultInstanceForType() {
+ return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.getDefaultInstance();
+ }
- private Geometry(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
+ @java.lang.Override
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection build() {
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
}
- 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;
- case 10: {
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.Builder subBuilder = null;
- if (point_ != null) {
- subBuilder = point_.toBuilder();
- }
- point_ = input.readMessage(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(point_);
- point_ = subBuilder.buildPartial();
- }
- break;
- }
- case 18: {
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.Builder subBuilder = null;
- if (lineString_ != null) {
- subBuilder = lineString_.toBuilder();
- }
- lineString_ = input.readMessage(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(lineString_);
- lineString_ = subBuilder.buildPartial();
- }
+ @java.lang.Override
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection buildPartial() {
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection result = new org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection(this);
+ int from_bitField0_ = bitField0_;
+ if (pointsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ points_ = java.util.Collections.unmodifiableList(points_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.points_ = points_;
+ } else {
+ result.points_ = pointsBuilder_.build();
+ }
+ if (lineStringsBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
+ lineStrings_ = java.util.Collections.unmodifiableList(lineStrings_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.lineStrings_ = lineStrings_;
+ } else {
+ result.lineStrings_ = lineStringsBuilder_.build();
+ }
+ if (polygonsBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
+ polygons_ = java.util.Collections.unmodifiableList(polygons_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.polygons_ = polygons_;
+ } else {
+ result.polygons_ = polygonsBuilder_.build();
+ }
+ if (multiPointsBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)) {
+ multiPoints_ = java.util.Collections.unmodifiableList(multiPoints_);
+ bitField0_ = (bitField0_ & ~0x00000008);
+ }
+ result.multiPoints_ = multiPoints_;
+ } else {
+ result.multiPoints_ = multiPointsBuilder_.build();
+ }
+ if (multiLineStringsBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0)) {
+ multiLineStrings_ = java.util.Collections.unmodifiableList(multiLineStrings_);
+ bitField0_ = (bitField0_ & ~0x00000010);
+ }
+ result.multiLineStrings_ = multiLineStrings_;
+ } else {
+ result.multiLineStrings_ = multiLineStringsBuilder_.build();
+ }
+ if (multiPolygonsBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)) {
+ multiPolygons_ = java.util.Collections.unmodifiableList(multiPolygons_);
+ bitField0_ = (bitField0_ & ~0x00000020);
+ }
+ result.multiPolygons_ = multiPolygons_;
+ } else {
+ result.multiPolygons_ = multiPolygonsBuilder_.build();
+ }
+ if (geometryCollectionsBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0)) {
+ geometryCollections_ = java.util.Collections.unmodifiableList(geometryCollections_);
+ bitField0_ = (bitField0_ & ~0x00000040);
+ }
+ result.geometryCollections_ = geometryCollections_;
+ } else {
+ result.geometryCollections_ = geometryCollectionsBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
- break;
- }
- case 26: {
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.Builder subBuilder = null;
- if (polygon_ != null) {
- subBuilder = polygon_.toBuilder();
- }
- polygon_ = input.readMessage(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(polygon_);
- polygon_ = subBuilder.buildPartial();
- }
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
- break;
- }
- case 34: {
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder subBuilder = null;
- if (multiPoint_ != null) {
- subBuilder = multiPoint_.toBuilder();
- }
- multiPoint_ = input.readMessage(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(multiPoint_);
- multiPoint_ = subBuilder.buildPartial();
- }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
- break;
- }
- case 42: {
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder subBuilder = null;
- if (multiLineString_ != null) {
- subBuilder = multiLineString_.toBuilder();
- }
- multiLineString_ = input.readMessage(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(multiLineString_);
- multiLineString_ = subBuilder.buildPartial();
- }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
- break;
- }
- case 50: {
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.Builder subBuilder = null;
- if (multiPolygon_ != null) {
- subBuilder = multiPolygon_.toBuilder();
- }
- multiPolygon_ = input.readMessage(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(multiPolygon_);
- multiPolygon_ = subBuilder.buildPartial();
- }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
- break;
- }
- case 58: {
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.Builder subBuilder = null;
- if (geometryCollection_ != null) {
- subBuilder = geometryCollection_.toBuilder();
- }
- geometryCollection_ = input.readMessage(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(geometryCollection_);
- geometryCollection_ = subBuilder.buildPartial();
- }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
- break;
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection) {
+ return mergeFrom((org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection other) {
+ if (other == org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.getDefaultInstance())
+ return this;
+ if (pointsBuilder_ == null) {
+ if (!other.points_.isEmpty()) {
+ if (points_.isEmpty()) {
+ points_ = other.points_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensurePointsIsMutable();
+ points_.addAll(other.points_);
}
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
+ onChanged();
+ }
+ } else {
+ if (!other.points_.isEmpty()) {
+ if (pointsBuilder_.isEmpty()) {
+ pointsBuilder_.dispose();
+ pointsBuilder_ = null;
+ points_ = other.points_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ pointsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getPointsFieldBuilder() : null;
+ } else {
+ pointsBuilder_.addAllMessages(other.points_);
}
}
}
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_Geometry_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_Geometry_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Geometry.class, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Geometry.Builder.class);
- }
-
- public static final int POINT_FIELD_NUMBER = 1;
- private org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point point_;
-
- /**
- *
- * Protobuf type {@code pojo.Geometry}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builderdouble x = 1;
- *
- * @return The x.
- */
@java.lang.Override
- public double getX() {
- return x_;
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
}
- /**
- * double x = 1;
- *
- * @param value The x to set.
- * @return This builder for chaining.
- */
- public Builder setX(double value) {
- x_ = value;
- onChanged();
- return this;
- }
+ // @@protoc_insertion_point(builder_scope:pojo.NullGeometry)
+ }
- /**
- * double x = 1;
- *
- * @return This builder for chaining.
- */
- public Builder clearX() {
+ // @@protoc_insertion_point(class_scope:pojo.NullGeometry)
+ private static final org.wowtools.giscat.vector.pojo.proto.ProtoFeature.NullGeometry DEFAULT_INSTANCE;
- x_ = 0D;
- onChanged();
- return this;
- }
+ static {
+ DEFAULT_INSTANCE = new org.wowtools.giscat.vector.pojo.proto.ProtoFeature.NullGeometry();
+ }
- private double y_;
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.NullGeometry getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
- /**
- * double y = 2;
- *
- * @return The y.
- */
+ private static final com.google.protobuf.Parserdouble y = 2;
- *
- * @param value The y to set.
- * @return This builder for chaining.
- */
- public Builder setY(double value) {
+ public static com.google.protobuf.Parserdouble y = 2;
- *
- * @return This builder for chaining.
- */
- public Builder clearY() {
-
- y_ = 0D;
- onChanged();
- return this;
- }
-
- private double z_;
-
- /**
- * double z = 3;
- *
- * @return The z.
- */
- @java.lang.Override
- public double getZ() {
- return z_;
- }
-
- /**
- * double z = 3;
- *
- * @param value The z to set.
- * @return This builder for chaining.
- */
- public Builder setZ(double value) {
-
- z_ = value;
- onChanged();
- return this;
- }
-
- /**
- * double z = 3;
- *
- * @return This builder for chaining.
- */
- public Builder clearZ() {
-
- z_ = 0D;
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:pojo.Point)
- }
-
- // @@protoc_insertion_point(class_scope:pojo.Point)
- private static final org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point();
- }
-
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parserrepeated double xs = 1;
- *
- * @return A list containing the xs.
- */
- java.util.Listrepeated double xs = 1;
- *
- * @return The count of xs.
- */
- int getXsCount();
-
- /**
- * repeated double xs = 1;
- *
- * @param index The index of the element to return.
- * @return The xs at the given index.
- */
- double getXs(int index);
-
- /**
- * repeated double ys = 2;
- *
- * @return A list containing the ys.
- */
- java.util.Listrepeated double ys = 2;
- *
- * @return The count of ys.
- */
- int getYsCount();
-
- /**
- * repeated double ys = 2;
- *
- * @param index The index of the element to return.
- * @return The ys at the given index.
- */
- double getYs(int index);
-
- /**
- * repeated double zs = 3;
+ * double x = 1;
*
- * @return A list containing the zs.
+ * @return The x.
*/
- java.util.Listrepeated double zs = 3;
+ * double y = 2;
*
- * @return The count of zs.
+ * @return The y.
*/
- int getZsCount();
+ double getY();
/**
- * repeated double zs = 3;
+ * double z = 3;
*
- * @param index The index of the element to return.
- * @return The zs at the given index.
+ * @return The z.
*/
- double getZs(int index);
+ double getZ();
}
/**
*
- * LineString 包含线段上各个点的x y z坐标,z可选。
+ * Point,包含点的 x y z坐标 ,z可选。
*
* repeated double xs = 1;
+ * double x = 1;
*
- * @return A list containing the xs.
+ * @return The x.
*/
@java.lang.Override
- public java.util.Listrepeated double xs = 1;
- *
- * @return The count of xs.
- */
- public int getXsCount() {
- return xs_.size();
- }
-
- /**
- * repeated double xs = 1;
- *
- * @param index The index of the element to return.
- * @return The xs at the given index.
- */
- public double getXs(int index) {
- return xs_.getDouble(index);
+ public double getX() {
+ return x_;
}
- private int xsMemoizedSerializedSize = -1;
-
- public static final int YS_FIELD_NUMBER = 2;
- private com.google.protobuf.Internal.DoubleList ys_;
+ public static final int Y_FIELD_NUMBER = 2;
+ private double y_;
/**
- * repeated double ys = 2;
+ * double y = 2;
*
- * @return A list containing the ys.
+ * @return The y.
*/
@java.lang.Override
- public java.util.Listrepeated double ys = 2;
- *
- * @return The count of ys.
- */
- public int getYsCount() {
- return ys_.size();
- }
-
- /**
- * repeated double ys = 2;
- *
- * @param index The index of the element to return.
- * @return The ys at the given index.
- */
- public double getYs(int index) {
- return ys_.getDouble(index);
+ public double getY() {
+ return y_;
}
- private int ysMemoizedSerializedSize = -1;
-
- public static final int ZS_FIELD_NUMBER = 3;
- private com.google.protobuf.Internal.DoubleList zs_;
+ public static final int Z_FIELD_NUMBER = 3;
+ private double z_;
/**
- * repeated double zs = 3;
+ * double z = 3;
*
- * @return A list containing the zs.
+ * @return The z.
*/
@java.lang.Override
- public java.util.Listrepeated double zs = 3;
- *
- * @return The count of zs.
- */
- public int getZsCount() {
- return zs_.size();
- }
-
- /**
- * repeated double zs = 3;
- *
- * @param index The index of the element to return.
- * @return The zs at the given index.
- */
- public double getZs(int index) {
- return zs_.getDouble(index);
+ public double getZ() {
+ return z_;
}
- private int zsMemoizedSerializedSize = -1;
-
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1074,27 +661,14 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (getXsList().size() > 0) {
- output.writeUInt32NoTag(10);
- output.writeUInt32NoTag(xsMemoizedSerializedSize);
- }
- for (int i = 0; i < xs_.size(); i++) {
- output.writeDoubleNoTag(xs_.getDouble(i));
- }
- if (getYsList().size() > 0) {
- output.writeUInt32NoTag(18);
- output.writeUInt32NoTag(ysMemoizedSerializedSize);
- }
- for (int i = 0; i < ys_.size(); i++) {
- output.writeDoubleNoTag(ys_.getDouble(i));
+ if (java.lang.Double.doubleToRawLongBits(x_) != 0) {
+ output.writeDouble(1, x_);
}
- if (getZsList().size() > 0) {
- output.writeUInt32NoTag(26);
- output.writeUInt32NoTag(zsMemoizedSerializedSize);
+ if (java.lang.Double.doubleToRawLongBits(y_) != 0) {
+ output.writeDouble(2, y_);
}
- for (int i = 0; i < zs_.size(); i++) {
- output.writeDoubleNoTag(zs_.getDouble(i));
+ if (java.lang.Double.doubleToRawLongBits(z_) != 0) {
+ output.writeDouble(3, z_);
}
unknownFields.writeTo(output);
}
@@ -1105,38 +679,17 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- {
- int dataSize = 0;
- dataSize = 8 * getXsList().size();
- size += dataSize;
- if (!getXsList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- xsMemoizedSerializedSize = dataSize;
+ if (java.lang.Double.doubleToRawLongBits(x_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(1, x_);
}
- {
- int dataSize = 0;
- dataSize = 8 * getYsList().size();
- size += dataSize;
- if (!getYsList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- ysMemoizedSerializedSize = dataSize;
+ if (java.lang.Double.doubleToRawLongBits(y_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(2, y_);
}
- {
- int dataSize = 0;
- dataSize = 8 * getZsList().size();
- size += dataSize;
- if (!getZsList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- zsMemoizedSerializedSize = dataSize;
+ if (java.lang.Double.doubleToRawLongBits(z_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(3, z_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -1148,17 +701,20 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString)) {
+ if (!(obj instanceof org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point)) {
return super.equals(obj);
}
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString other = (org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString) obj;
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point other = (org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point) obj;
- if (!getXsList()
- .equals(other.getXsList())) return false;
- if (!getYsList()
- .equals(other.getYsList())) return false;
- if (!getZsList()
- .equals(other.getZsList())) return false;
+ if (java.lang.Double.doubleToLongBits(getX())
+ != java.lang.Double.doubleToLongBits(
+ other.getX())) return false;
+ if (java.lang.Double.doubleToLongBits(getY())
+ != java.lang.Double.doubleToLongBits(
+ other.getY())) return false;
+ if (java.lang.Double.doubleToLongBits(getZ())
+ != java.lang.Double.doubleToLongBits(
+ other.getZ())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -1170,68 +726,65 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
- if (getXsCount() > 0) {
- hash = (37 * hash) + XS_FIELD_NUMBER;
- hash = (53 * hash) + getXsList().hashCode();
- }
- if (getYsCount() > 0) {
- hash = (37 * hash) + YS_FIELD_NUMBER;
- hash = (53 * hash) + getYsList().hashCode();
- }
- if (getZsCount() > 0) {
- hash = (37 * hash) + ZS_FIELD_NUMBER;
- hash = (53 * hash) + getZsList().hashCode();
- }
+ hash = (37 * hash) + X_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getX()));
+ hash = (37 * hash) + Y_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getY()));
+ hash = (37 * hash) + Z_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getZ()));
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseFrom(byte[] data)
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseFrom(java.io.InputStream input)
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -1239,13 +792,13 @@ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString pars
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseDelimitedFrom(java.io.InputStream input)
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseDelimitedFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -1253,14 +806,14 @@ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString pars
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -1277,7 +830,7 @@ public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString prototype) {
+ public static Builder newBuilder(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@@ -1290,34 +843,35 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- return new Builder(parent);
+ Builder builder = new Builder(parent);
+ return builder;
}
/**
*
- * LineString 包含线段上各个点的x y z坐标,z可选。
+ * Point,包含点的 x y z坐标 ,z可选。
*
* repeated double xs = 1;
+ * double x = 1;
*
- * @return A list containing the xs.
+ * @return The x.
*/
- public java.util.Listrepeated double xs = 1;
+ * double x = 1;
*
- * @return The count of xs.
+ * @param value The x to set.
+ * @return This builder for chaining.
*/
- public int getXsCount() {
- return xs_.size();
- }
+ public Builder setX(double value) {
- /**
- * repeated double xs = 1;
- *
- * @param index The index of the element to return.
- * @return The xs at the given index.
- */
- public double getXs(int index) {
- return xs_.getDouble(index);
+ x_ = value;
+ onChanged();
+ return this;
}
/**
- * repeated double xs = 1;
+ * double x = 1;
*
- * @param index The index to set the value at.
- * @param value The xs to set.
* @return This builder for chaining.
*/
- public Builder setXs(
- int index, double value) {
- ensureXsIsMutable();
- xs_.setDouble(index, value);
+ public Builder clearX() {
+
+ x_ = 0D;
onChanged();
return this;
}
+ private double y_;
+
/**
- * repeated double xs = 1;
+ * double y = 2;
*
- * @param value The xs to add.
- * @return This builder for chaining.
+ * @return The y.
*/
- public Builder addXs(double value) {
- ensureXsIsMutable();
- xs_.addDouble(value);
- onChanged();
- return this;
+ @java.lang.Override
+ public double getY() {
+ return y_;
}
/**
- * repeated double xs = 1;
+ * double y = 2;
*
- * @param values The xs to add.
+ * @param value The y to set.
* @return This builder for chaining.
*/
- public Builder addAllXs(
- java.lang.Iterable extends java.lang.Double> values) {
- ensureXsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, xs_);
+ public Builder setY(double value) {
+
+ y_ = value;
onChanged();
return this;
}
/**
- * repeated double xs = 1;
+ * double y = 2;
*
* @return This builder for chaining.
*/
- public Builder clearXs() {
- xs_ = emptyDoubleList();
- bitField0_ = (bitField0_ & ~0x00000001);
+ public Builder clearY() {
+
+ y_ = 0D;
onChanged();
return this;
}
- private com.google.protobuf.Internal.DoubleList ys_ = emptyDoubleList();
-
- private void ensureYsIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
- ys_ = mutableCopy(ys_);
- bitField0_ |= 0x00000002;
- }
- }
-
- /**
- * repeated double ys = 2;
- *
- * @return A list containing the ys.
- */
- public java.util.Listrepeated double ys = 2;
- *
- * @return The count of ys.
- */
- public int getYsCount() {
- return ys_.size();
- }
+ private double z_;
/**
- * repeated double ys = 2;
+ * double z = 3;
*
- * @param index The index of the element to return.
- * @return The ys at the given index.
+ * @return The z.
*/
- public double getYs(int index) {
- return ys_.getDouble(index);
+ @java.lang.Override
+ public double getZ() {
+ return z_;
}
/**
- * repeated double ys = 2;
+ * double z = 3;
*
- * @param index The index to set the value at.
- * @param value The ys to set.
+ * @param value The z to set.
* @return This builder for chaining.
*/
- public Builder setYs(
- int index, double value) {
- ensureYsIsMutable();
- ys_.setDouble(index, value);
+ public Builder setZ(double value) {
+
+ z_ = value;
onChanged();
return this;
}
/**
- * repeated double ys = 2;
+ * double z = 3;
*
- * @param value The ys to add.
* @return This builder for chaining.
*/
- public Builder addYs(double value) {
- ensureYsIsMutable();
- ys_.addDouble(value);
+ public Builder clearZ() {
+
+ z_ = 0D;
onChanged();
return this;
}
- /**
- * repeated double ys = 2;
- *
- * @param values The ys to add.
- * @return This builder for chaining.
- */
- public Builder addAllYs(
- java.lang.Iterable extends java.lang.Double> values) {
- ensureYsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, ys_);
- onChanged();
- return this;
- }
-
- /**
- * repeated double ys = 2;
- *
- * @return This builder for chaining.
- */
- public Builder clearYs() {
- ys_ = emptyDoubleList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- return this;
- }
-
- private com.google.protobuf.Internal.DoubleList zs_ = emptyDoubleList();
-
- private void ensureZsIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
- zs_ = mutableCopy(zs_);
- bitField0_ |= 0x00000004;
- }
- }
-
- /**
- * repeated double zs = 3;
- *
- * @return A list containing the zs.
- */
- public java.util.Listrepeated double zs = 3;
- *
- * @return The count of zs.
- */
- public int getZsCount() {
- return zs_.size();
- }
-
- /**
- * repeated double zs = 3;
- *
- * @param index The index of the element to return.
- * @return The zs at the given index.
- */
- public double getZs(int index) {
- return zs_.getDouble(index);
- }
-
- /**
- * repeated double zs = 3;
- *
- * @param index The index to set the value at.
- * @param value The zs to set.
- * @return This builder for chaining.
- */
- public Builder setZs(
- int index, double value) {
- ensureZsIsMutable();
- zs_.setDouble(index, value);
- onChanged();
- return this;
- }
-
- /**
- * repeated double zs = 3;
- *
- * @param value The zs to add.
- * @return This builder for chaining.
- */
- public Builder addZs(double value) {
- ensureZsIsMutable();
- zs_.addDouble(value);
- onChanged();
- return this;
- }
-
- /**
- * repeated double zs = 3;
- *
- * @param values The zs to add.
- * @return This builder for chaining.
- */
- public Builder addAllZs(
- java.lang.Iterable extends java.lang.Double> values) {
- ensureZsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, zs_);
- onChanged();
- return this;
- }
-
- /**
- * repeated double zs = 3;
- *
- * @return This builder for chaining.
- */
- public Builder clearZs() {
- zs_ = emptyDoubleList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
}
@java.lang.Override
@@ -1796,49 +1142,49 @@ public final Builder mergeUnknownFields(
}
- // @@protoc_insertion_point(builder_scope:pojo.LineString)
+ // @@protoc_insertion_point(builder_scope:pojo.Point)
}
- // @@protoc_insertion_point(class_scope:pojo.LineString)
- private static final org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:pojo.Point)
+ private static final org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString();
+ DEFAULT_INSTANCE = new org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point();
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString getDefaultInstance() {
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parserrepeated int32 separators = 4;
- *
- * @return A list containing the separators.
- */
- java.util.Listrepeated int32 separators = 4;
- *
- * @return The count of separators.
- */
- int getSeparatorsCount();
-
- /**
- * repeated int32 separators = 4;
- *
- * @param index The index of the element to return.
- * @return The separators at the given index.
- */
- int getSeparators(int index);
}
/**
*
- * Polygon 包含多边形上各个点的x y z坐标,z可选。
- * separators用于将坐标串分割为环 例如,xs ys zs 形成了坐标串[p0,p1,p2,p3,p4,p5,p6,p7,p8,p9],
- * 则separators=[3,7]将坐标串分割为多边形Polygon((p0 p1 p2),(p3 p4 p5 p6),(p7 p8 p9))。
- * 即separators[i]的意义为第i个环的终点(从0开始计数);最后一个环的终点显然是数组的最后一位,故将其省略。
- * 注意,由于环的最后一个坐标必然和第一个坐标相等,故将环的最后一个坐标省略,仅在转换为jts等对象时将其补全。
+ * LineString 包含线段上各个点的x y z坐标,z可选。
*
* repeated int32 separators = 4;
- *
- * @return A list containing the separators.
- */
- @java.lang.Override
- public java.util.Listrepeated int32 separators = 4;
- *
- * @return The count of separators.
- */
- public int getSeparatorsCount() {
- return separators_.size();
- }
-
- /**
- * repeated int32 separators = 4;
- *
- * @param index The index of the element to return.
- * @return The separators at the given index.
- */
- public int getSeparators(int index) {
- return separators_.getInt(index);
- }
-
- private int separatorsMemoizedSerializedSize = -1;
-
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -2299,13 +1559,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < zs_.size(); i++) {
output.writeDoubleNoTag(zs_.getDouble(i));
}
- if (getSeparatorsList().size() > 0) {
- output.writeUInt32NoTag(34);
- output.writeUInt32NoTag(separatorsMemoizedSerializedSize);
- }
- for (int i = 0; i < separators_.size(); i++) {
- output.writeInt32NoTag(separators_.getInt(i));
- }
unknownFields.writeTo(output);
}
@@ -2348,20 +1601,6 @@ public int getSerializedSize() {
}
zsMemoizedSerializedSize = dataSize;
}
- {
- int dataSize = 0;
- for (int i = 0; i < separators_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(separators_.getInt(i));
- }
- size += dataSize;
- if (!getSeparatorsList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- separatorsMemoizedSerializedSize = dataSize;
- }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -2372,10 +1611,10 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon)) {
+ if (!(obj instanceof org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString)) {
return super.equals(obj);
}
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon other = (org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon) obj;
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString other = (org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString) obj;
if (!getXsList()
.equals(other.getXsList())) return false;
@@ -2383,8 +1622,6 @@ public boolean equals(final java.lang.Object obj) {
.equals(other.getYsList())) return false;
if (!getZsList()
.equals(other.getZsList())) return false;
- if (!getSeparatorsList()
- .equals(other.getSeparatorsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -2408,60 +1645,56 @@ public int hashCode() {
hash = (37 * hash) + ZS_FIELD_NUMBER;
hash = (53 * hash) + getZsList().hashCode();
}
- if (getSeparatorsCount() > 0) {
- hash = (37 * hash) + SEPARATORS_FIELD_NUMBER;
- hash = (53 * hash) + getSeparatorsList().hashCode();
- }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseFrom(byte[] data)
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseFrom(java.io.InputStream input)
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -2469,13 +1702,13 @@ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseFr
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseDelimitedFrom(java.io.InputStream input)
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseDelimitedFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -2483,14 +1716,14 @@ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseDe
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -2507,7 +1740,7 @@ public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon prototype) {
+ public static Builder newBuilder(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@@ -2520,38 +1753,35 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- return new Builder(parent);
+ Builder builder = new Builder(parent);
+ return builder;
}
/**
*
- * Polygon 包含多边形上各个点的x y z坐标,z可选。
- * separators用于将坐标串分割为环 例如,xs ys zs 形成了坐标串[p0,p1,p2,p3,p4,p5,p6,p7,p8,p9],
- * 则separators=[3,7]将坐标串分割为多边形Polygon((p0 p1 p2),(p3 p4 p5 p6),(p7 p8 p9))。
- * 即separators[i]的意义为第i个环的终点(从0开始计数);最后一个环的终点显然是数组的最后一位,故将其省略。
- * 注意,由于环的最后一个坐标必然和第一个坐标相等,故将环的最后一个坐标省略,仅在转换为jts等对象时将其补全。
+ * LineString 包含线段上各个点的x y z坐标,z可选。
*
* repeated int32 separators = 4;
- *
- * @return A list containing the separators.
- */
- public java.util.Listrepeated int32 separators = 4;
- *
- * @return The count of separators.
- */
- public int getSeparatorsCount() {
- return separators_.size();
- }
-
- /**
- * repeated int32 separators = 4;
- *
- * @param index The index of the element to return.
- * @return The separators at the given index.
- */
- public int getSeparators(int index) {
- return separators_.getInt(index);
- }
-
- /**
- * repeated int32 separators = 4;
- *
- * @param index The index to set the value at.
- * @param value The separators to set.
- * @return This builder for chaining.
- */
- public Builder setSeparators(
- int index, int value) {
- ensureSeparatorsIsMutable();
- separators_.setInt(index, value);
- onChanged();
- return this;
- }
-
- /**
- * repeated int32 separators = 4;
- *
- * @param value The separators to add.
- * @return This builder for chaining.
- */
- public Builder addSeparators(int value) {
- ensureSeparatorsIsMutable();
- separators_.addInt(value);
- onChanged();
- return this;
- }
-
- /**
- * repeated int32 separators = 4;
- *
- * @param values The separators to add.
- * @return This builder for chaining.
- */
- public Builder addAllSeparators(
- java.lang.Iterable extends java.lang.Integer> values) {
- ensureSeparatorsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, separators_);
- onChanged();
- return this;
- }
-
- /**
- * repeated int32 separators = 4;
- *
- * @return This builder for chaining.
- */
- public Builder clearSeparators() {
- separators_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000008);
- onChanged();
- return this;
- }
-
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -3141,49 +2260,49 @@ public final Builder mergeUnknownFields(
}
- // @@protoc_insertion_point(builder_scope:pojo.Polygon)
+ // @@protoc_insertion_point(builder_scope:pojo.LineString)
}
- // @@protoc_insertion_point(class_scope:pojo.Polygon)
- private static final org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:pojo.LineString)
+ private static final org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon();
+ DEFAULT_INSTANCE = new org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString();
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon getDefaultInstance() {
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
- * MultiPoint 包含MultiPoint上各个点的x y z坐标,z可选。
- *
- * repeated int32 separators = 4;
+ *
+ * @return A list containing the separators.
+ */
+ java.util.Listrepeated int32 separators = 4;
+ *
+ * @return The count of separators.
+ */
+ int getSeparatorsCount();
+
+ /**
+ * repeated int32 separators = 4;
+ *
+ * @param index The index of the element to return.
+ * @return The separators at the given index.
+ */
+ int getSeparators(int index);
+ }
+
+ /**
+ *
+ * Polygon 包含多边形上各个点的x y z坐标,z可选。
+ * separators用于将坐标串分割为环 例如,xs ys zs 形成了坐标串[p0,p1,p2,p3,p4,p5,p6,p7,p8,p9],
+ * 则separators=[3,7]将坐标串分割为多边形Polygon((p0 p1 p2),(p3 p4 p5 p6),(p7 p8 p9))。
+ * 即separators[i]的意义为第i个环的终点(从0开始计数);最后一个环的终点显然是数组的最后一位,故将其省略。
+ * 注意,由于环的最后一个坐标必然和第一个坐标相等,故将环的最后一个坐标省略,仅在转换为jts等对象时将其补全。
+ *
+ * repeated int32 separators = 4;
+ *
+ * @return A list containing the separators.
+ */
+ @java.lang.Override
+ public java.util.Listrepeated int32 separators = 4;
+ *
+ * @return The count of separators.
+ */
+ public int getSeparatorsCount() {
+ return separators_.size();
+ }
+
+ /**
+ * repeated int32 separators = 4;
+ *
+ * @param index The index of the element to return.
+ * @return The separators at the given index.
+ */
+ public int getSeparators(int index) {
+ return separators_.getInt(index);
+ }
+
+ private int separatorsMemoizedSerializedSize = -1;
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -3558,6 +2763,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < zs_.size(); i++) {
output.writeDoubleNoTag(zs_.getDouble(i));
}
+ if (getSeparatorsList().size() > 0) {
+ output.writeUInt32NoTag(34);
+ output.writeUInt32NoTag(separatorsMemoizedSerializedSize);
+ }
+ for (int i = 0; i < separators_.size(); i++) {
+ output.writeInt32NoTag(separators_.getInt(i));
+ }
unknownFields.writeTo(output);
}
@@ -3600,6 +2812,20 @@ public int getSerializedSize() {
}
zsMemoizedSerializedSize = dataSize;
}
+ {
+ int dataSize = 0;
+ for (int i = 0; i < separators_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(separators_.getInt(i));
+ }
+ size += dataSize;
+ if (!getSeparatorsList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ separatorsMemoizedSerializedSize = dataSize;
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -3610,10 +2836,10 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint)) {
+ if (!(obj instanceof org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon)) {
return super.equals(obj);
}
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint other = (org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint) obj;
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon other = (org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon) obj;
if (!getXsList()
.equals(other.getXsList())) return false;
@@ -3621,6 +2847,8 @@ public boolean equals(final java.lang.Object obj) {
.equals(other.getYsList())) return false;
if (!getZsList()
.equals(other.getZsList())) return false;
+ if (!getSeparatorsList()
+ .equals(other.getSeparatorsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -3644,56 +2872,60 @@ public int hashCode() {
hash = (37 * hash) + ZS_FIELD_NUMBER;
hash = (53 * hash) + getZsList().hashCode();
}
+ if (getSeparatorsCount() > 0) {
+ hash = (37 * hash) + SEPARATORS_FIELD_NUMBER;
+ hash = (53 * hash) + getSeparatorsList().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseFrom(byte[] data)
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseFrom(java.io.InputStream input)
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -3701,13 +2933,13 @@ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint pars
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseDelimitedFrom(java.io.InputStream input)
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseDelimitedFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -3715,14 +2947,14 @@ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint pars
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -3739,7 +2971,7 @@ public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint prototype) {
+ public static Builder newBuilder(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@@ -3752,34 +2984,39 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- return new Builder(parent);
+ Builder builder = new Builder(parent);
+ return builder;
}
/**
*
- * MultiPoint 包含MultiPoint上各个点的x y z坐标,z可选。
+ * Polygon 包含多边形上各个点的x y z坐标,z可选。
+ * separators用于将坐标串分割为环 例如,xs ys zs 形成了坐标串[p0,p1,p2,p3,p4,p5,p6,p7,p8,p9],
+ * 则separators=[3,7]将坐标串分割为多边形Polygon((p0 p1 p2),(p3 p4 p5 p6),(p7 p8 p9))。
+ * 即separators[i]的意义为第i个环的终点(从0开始计数);最后一个环的终点显然是数组的最后一位,故将其省略。
+ * 注意,由于环的最后一个坐标必然和第一个坐标相等,故将环的最后一个坐标省略,仅在转换为jts等对象时将其补全。
*
* repeated int32 separators = 4;
+ *
+ * @return A list containing the separators.
+ */
+ public java.util.Listrepeated int32 separators = 4;
+ *
+ * @return The count of separators.
+ */
+ public int getSeparatorsCount() {
+ return separators_.size();
+ }
+
+ /**
+ * repeated int32 separators = 4;
+ *
+ * @param index The index of the element to return.
+ * @return The separators at the given index.
+ */
+ public int getSeparators(int index) {
+ return separators_.getInt(index);
+ }
+
+ /**
+ * repeated int32 separators = 4;
+ *
+ * @param index The index to set the value at.
+ * @param value The separators to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSeparators(
+ int index, int value) {
+ ensureSeparatorsIsMutable();
+ separators_.setInt(index, value);
+ onChanged();
+ return this;
+ }
+
+ /**
+ * repeated int32 separators = 4;
+ *
+ * @param value The separators to add.
+ * @return This builder for chaining.
+ */
+ public Builder addSeparators(int value) {
+ ensureSeparatorsIsMutable();
+ separators_.addInt(value);
+ onChanged();
+ return this;
+ }
+
+ /**
+ * repeated int32 separators = 4;
+ *
+ * @param values The separators to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllSeparators(
+ java.lang.Iterable extends java.lang.Integer> values) {
+ ensureSeparatorsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, separators_);
+ onChanged();
+ return this;
+ }
+
+ /**
+ * repeated int32 separators = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSeparators() {
+ separators_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:pojo.Polygon)
+ }
+
+ // @@protoc_insertion_point(class_scope:pojo.Polygon)
+ private static final org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint();
+ DEFAULT_INSTANCE = new org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon();
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint getDefaultInstance() {
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parserrepeated int32 separators = 4;
- *
- * @return A list containing the separators.
- */
- java.util.Listrepeated int32 separators = 4;
- *
- * @return The count of separators.
- */
- int getSeparatorsCount();
-
- /**
- * repeated int32 separators = 4;
- *
- * @param index The index of the element to return.
- * @return The separators at the given index.
- */
- int getSeparators(int index);
}
/**
*
- * MultiLineString 包含MultiLineString上各个点的x y z坐标,z可选。
- * separators用于将坐标串分割为子线段 例如,xs ys zs 形成了坐标串[p0,p1,p2,p3,p4,p5,p6,p7,p8,p9],
- * 则separators=[3,7]将坐标串分割为MultiLineString((p0 p1 p2),(p3 p4 p5 p6),(p7 p8 p9))。
- * 即separators[i]的意义为第i条子线段的终点(从0开始计数);最后一条子线段的终点显然是数组的最后一位,故将其省略。
+ * MultiPoint 包含MultiPoint上各个点的x y z坐标,z可选。
*
* repeated int32 separators = 4;
- *
- * @return A list containing the separators.
- */
- @java.lang.Override
- public java.util.Listrepeated int32 separators = 4;
- *
- * @return The count of separators.
- */
- public int getSeparatorsCount() {
- return separators_.size();
- }
-
- /**
- * repeated int32 separators = 4;
- *
- * @param index The index of the element to return.
- * @return The separators at the given index.
- */
- public int getSeparators(int index) {
- return separators_.getInt(index);
- }
-
- private int separatorsMemoizedSerializedSize = -1;
-
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -4760,13 +4023,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < zs_.size(); i++) {
output.writeDoubleNoTag(zs_.getDouble(i));
}
- if (getSeparatorsList().size() > 0) {
- output.writeUInt32NoTag(34);
- output.writeUInt32NoTag(separatorsMemoizedSerializedSize);
- }
- for (int i = 0; i < separators_.size(); i++) {
- output.writeInt32NoTag(separators_.getInt(i));
- }
unknownFields.writeTo(output);
}
@@ -4809,20 +4065,6 @@ public int getSerializedSize() {
}
zsMemoizedSerializedSize = dataSize;
}
- {
- int dataSize = 0;
- for (int i = 0; i < separators_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(separators_.getInt(i));
- }
- size += dataSize;
- if (!getSeparatorsList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- separatorsMemoizedSerializedSize = dataSize;
- }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -4833,10 +4075,10 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString)) {
+ if (!(obj instanceof org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint)) {
return super.equals(obj);
}
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString other = (org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString) obj;
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint other = (org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint) obj;
if (!getXsList()
.equals(other.getXsList())) return false;
@@ -4844,8 +4086,6 @@ public boolean equals(final java.lang.Object obj) {
.equals(other.getYsList())) return false;
if (!getZsList()
.equals(other.getZsList())) return false;
- if (!getSeparatorsList()
- .equals(other.getSeparatorsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -4869,60 +4109,56 @@ public int hashCode() {
hash = (37 * hash) + ZS_FIELD_NUMBER;
hash = (53 * hash) + getZsList().hashCode();
}
- if (getSeparatorsCount() > 0) {
- hash = (37 * hash) + SEPARATORS_FIELD_NUMBER;
- hash = (53 * hash) + getSeparatorsList().hashCode();
- }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseFrom(byte[] data)
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseFrom(java.io.InputStream input)
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -4930,13 +4166,13 @@ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseDelimitedFrom(java.io.InputStream input)
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseDelimitedFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -4944,14 +4180,14 @@ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -4968,7 +4204,7 @@ public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString prototype) {
+ public static Builder newBuilder(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@@ -4981,37 +4217,35 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- return new Builder(parent);
+ Builder builder = new Builder(parent);
+ return builder;
}
/**
*
- * MultiLineString 包含MultiLineString上各个点的x y z坐标,z可选。
- * separators用于将坐标串分割为子线段 例如,xs ys zs 形成了坐标串[p0,p1,p2,p3,p4,p5,p6,p7,p8,p9],
- * 则separators=[3,7]将坐标串分割为MultiLineString((p0 p1 p2),(p3 p4 p5 p6),(p7 p8 p9))。
- * 即separators[i]的意义为第i条子线段的终点(从0开始计数);最后一条子线段的终点显然是数组的最后一位,故将其省略。
+ * MultiPoint 包含MultiPoint上各个点的x y z坐标,z可选。
*
* repeated int32 separators = 4;
- *
- * @return A list containing the separators.
- */
- public java.util.Listrepeated int32 separators = 4;
- *
- * @return The count of separators.
- */
- public int getSeparatorsCount() {
- return separators_.size();
- }
-
- /**
- * repeated int32 separators = 4;
- *
- * @param index The index of the element to return.
- * @return The separators at the given index.
- */
- public int getSeparators(int index) {
- return separators_.getInt(index);
- }
-
- /**
- * repeated int32 separators = 4;
- *
- * @param index The index to set the value at.
- * @param value The separators to set.
- * @return This builder for chaining.
- */
- public Builder setSeparators(
- int index, int value) {
- ensureSeparatorsIsMutable();
- separators_.setInt(index, value);
- onChanged();
- return this;
- }
-
- /**
- * repeated int32 separators = 4;
- *
- * @param value The separators to add.
- * @return This builder for chaining.
- */
- public Builder addSeparators(int value) {
- ensureSeparatorsIsMutable();
- separators_.addInt(value);
- onChanged();
- return this;
- }
-
- /**
- * repeated int32 separators = 4;
- *
- * @param values The separators to add.
- * @return This builder for chaining.
- */
- public Builder addAllSeparators(
- java.lang.Iterable extends java.lang.Integer> values) {
- ensureSeparatorsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, separators_);
- onChanged();
- return this;
- }
-
- /**
- * repeated int32 separators = 4;
- *
- * @return This builder for chaining.
- */
- public Builder clearSeparators() {
- separators_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000008);
- onChanged();
- return this;
- }
-
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -5601,49 +4724,49 @@ public final Builder mergeUnknownFields(
}
- // @@protoc_insertion_point(builder_scope:pojo.MultiLineString)
+ // @@protoc_insertion_point(builder_scope:pojo.MultiPoint)
}
- // @@protoc_insertion_point(class_scope:pojo.MultiLineString)
- private static final org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:pojo.MultiPoint)
+ private static final org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString();
+ DEFAULT_INSTANCE = new org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint();
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString getDefaultInstance() {
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parserrepeated int32 coordSeparators = 4;
- *
- * @return A list containing the coordSeparators.
- */
- java.util.Listrepeated int32 coordSeparators = 4;
- *
- * @return The count of coordSeparators.
- */
- int getCoordSeparatorsCount();
-
- /**
- * repeated int32 coordSeparators = 4;
- *
- * @param index The index of the element to return.
- * @return The coordSeparators at the given index.
- */
- int getCoordSeparators(int index);
-
- /**
- * repeated int32 polygonSeparators = 5;
+ * repeated int32 separators = 4;
*
- * @return A list containing the polygonSeparators.
+ * @return A list containing the separators.
*/
- java.util.Listrepeated int32 polygonSeparators = 5;
+ * repeated int32 separators = 4;
*
- * @return The count of polygonSeparators.
+ * @return The count of separators.
*/
- int getPolygonSeparatorsCount();
+ int getSeparatorsCount();
/**
- * repeated int32 polygonSeparators = 5;
+ * repeated int32 separators = 4;
*
* @param index The index of the element to return.
- * @return The polygonSeparators at the given index.
+ * @return The separators at the given index.
*/
- int getPolygonSeparators(int index);
+ int getSeparators(int index);
}
/**
*
- * MultiPolygon 包含MultiPolygon上各个点的x y z坐标,z可选。
- * polygonSeparators用于将坐标串分割为子多边形 例如,xs ys zs 形成了坐标串[p0,p1,p2,p3,p4,p5,p6,p7,p8,p9],
- * 则polygonSeparators=[3,7]将坐标串分割为MultiPolygon(((p0 p1 p2)),((p3 p4 p5 p6)),((p7 p8 p9)))。
- * 即polygonSeparators[i]的意义为第i个子多边形的终点(从0开始计数);最后一个子多边形的终点显然是数组的最后一位,故将其省略。
- * 经过polygonSeparators分割后的子多边形坐标串,进一步由coordSeparators分割为环,分割依据与Polygon的separators一致
+ * MultiLineString 包含MultiLineString上各个点的x y z坐标,z可选。
+ * separators用于将坐标串分割为子线段 例如,xs ys zs 形成了坐标串[p0,p1,p2,p3,p4,p5,p6,p7,p8,p9],
+ * 则separators=[3,7]将坐标串分割为MultiLineString((p0 p1 p2),(p3 p4 p5 p6),(p7 p8 p9))。
+ * 即separators[i]的意义为第i条子线段的终点(从0开始计数);最后一条子线段的终点显然是数组的最后一位,故将其省略。
*
* repeated int32 coordSeparators = 4;
- *
- * @return A list containing the coordSeparators.
- */
- @java.lang.Override
- public java.util.Listrepeated int32 coordSeparators = 4;
- *
- * @return The count of coordSeparators.
- */
- public int getCoordSeparatorsCount() {
- return coordSeparators_.size();
- }
-
- /**
- * repeated int32 coordSeparators = 4;
- *
- * @param index The index of the element to return.
- * @return The coordSeparators at the given index.
- */
- public int getCoordSeparators(int index) {
- return coordSeparators_.getInt(index);
- }
-
- private int coordSeparatorsMemoizedSerializedSize = -1;
-
- public static final int POLYGONSEPARATORS_FIELD_NUMBER = 5;
- private com.google.protobuf.Internal.IntList polygonSeparators_;
+ public static final int SEPARATORS_FIELD_NUMBER = 4;
+ private com.google.protobuf.Internal.IntList separators_;
/**
- * repeated int32 polygonSeparators = 5;
+ * repeated int32 separators = 4;
*
- * @return A list containing the polygonSeparators.
+ * @return A list containing the separators.
*/
@java.lang.Override
public java.util.Listrepeated int32 polygonSeparators = 5;
+ * repeated int32 separators = 4;
*
- * @return The count of polygonSeparators.
+ * @return The count of separators.
*/
- public int getPolygonSeparatorsCount() {
- return polygonSeparators_.size();
+ public int getSeparatorsCount() {
+ return separators_.size();
}
/**
- * repeated int32 polygonSeparators = 5;
+ * repeated int32 separators = 4;
*
* @param index The index of the element to return.
- * @return The polygonSeparators at the given index.
+ * @return The separators at the given index.
*/
- public int getPolygonSeparators(int index) {
- return polygonSeparators_.getInt(index);
+ public int getSeparators(int index) {
+ return separators_.getInt(index);
}
- private int polygonSeparatorsMemoizedSerializedSize = -1;
+ private int separatorsMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
@@ -6186,19 +5226,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < zs_.size(); i++) {
output.writeDoubleNoTag(zs_.getDouble(i));
}
- if (getCoordSeparatorsList().size() > 0) {
+ if (getSeparatorsList().size() > 0) {
output.writeUInt32NoTag(34);
- output.writeUInt32NoTag(coordSeparatorsMemoizedSerializedSize);
- }
- for (int i = 0; i < coordSeparators_.size(); i++) {
- output.writeInt32NoTag(coordSeparators_.getInt(i));
- }
- if (getPolygonSeparatorsList().size() > 0) {
- output.writeUInt32NoTag(42);
- output.writeUInt32NoTag(polygonSeparatorsMemoizedSerializedSize);
+ output.writeUInt32NoTag(separatorsMemoizedSerializedSize);
}
- for (int i = 0; i < polygonSeparators_.size(); i++) {
- output.writeInt32NoTag(polygonSeparators_.getInt(i));
+ for (int i = 0; i < separators_.size(); i++) {
+ output.writeInt32NoTag(separators_.getInt(i));
}
unknownFields.writeTo(output);
}
@@ -6244,31 +5277,17 @@ public int getSerializedSize() {
}
{
int dataSize = 0;
- for (int i = 0; i < coordSeparators_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(coordSeparators_.getInt(i));
- }
- size += dataSize;
- if (!getCoordSeparatorsList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- coordSeparatorsMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- for (int i = 0; i < polygonSeparators_.size(); i++) {
+ for (int i = 0; i < separators_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(polygonSeparators_.getInt(i));
+ .computeInt32SizeNoTag(separators_.getInt(i));
}
size += dataSize;
- if (!getPolygonSeparatorsList().isEmpty()) {
+ if (!getSeparatorsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
- polygonSeparatorsMemoizedSerializedSize = dataSize;
+ separatorsMemoizedSerializedSize = dataSize;
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -6280,10 +5299,10 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon)) {
+ if (!(obj instanceof org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString)) {
return super.equals(obj);
}
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon other = (org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon) obj;
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString other = (org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString) obj;
if (!getXsList()
.equals(other.getXsList())) return false;
@@ -6291,10 +5310,8 @@ public boolean equals(final java.lang.Object obj) {
.equals(other.getYsList())) return false;
if (!getZsList()
.equals(other.getZsList())) return false;
- if (!getCoordSeparatorsList()
- .equals(other.getCoordSeparatorsList())) return false;
- if (!getPolygonSeparatorsList()
- .equals(other.getPolygonSeparatorsList())) return false;
+ if (!getSeparatorsList()
+ .equals(other.getSeparatorsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -6318,64 +5335,60 @@ public int hashCode() {
hash = (37 * hash) + ZS_FIELD_NUMBER;
hash = (53 * hash) + getZsList().hashCode();
}
- if (getCoordSeparatorsCount() > 0) {
- hash = (37 * hash) + COORDSEPARATORS_FIELD_NUMBER;
- hash = (53 * hash) + getCoordSeparatorsList().hashCode();
- }
- if (getPolygonSeparatorsCount() > 0) {
- hash = (37 * hash) + POLYGONSEPARATORS_FIELD_NUMBER;
- hash = (53 * hash) + getPolygonSeparatorsList().hashCode();
+ if (getSeparatorsCount() > 0) {
+ hash = (37 * hash) + SEPARATORS_FIELD_NUMBER;
+ hash = (53 * hash) + getSeparatorsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseFrom(byte[] data)
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseFrom(java.io.InputStream input)
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -6383,13 +5396,13 @@ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon pa
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseDelimitedFrom(java.io.InputStream input)
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseDelimitedFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -6397,14 +5410,14 @@ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon pa
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -6421,7 +5434,7 @@ public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon prototype) {
+ public static Builder newBuilder(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@@ -6434,38 +5447,38 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- return new Builder(parent);
+ Builder builder = new Builder(parent);
+ return builder;
}
/**
*
- * MultiPolygon 包含MultiPolygon上各个点的x y z坐标,z可选。
- * polygonSeparators用于将坐标串分割为子多边形 例如,xs ys zs 形成了坐标串[p0,p1,p2,p3,p4,p5,p6,p7,p8,p9],
- * 则polygonSeparators=[3,7]将坐标串分割为MultiPolygon(((p0 p1 p2)),((p3 p4 p5 p6)),((p7 p8 p9)))。
- * 即polygonSeparators[i]的意义为第i个子多边形的终点(从0开始计数);最后一个子多边形的终点显然是数组的最后一位,故将其省略。
- * 经过polygonSeparators分割后的子多边形坐标串,进一步由coordSeparators分割为环,分割依据与Polygon的separators一致
+ * MultiLineString 包含MultiLineString上各个点的x y z坐标,z可选。
+ * separators用于将坐标串分割为子线段 例如,xs ys zs 形成了坐标串[p0,p1,p2,p3,p4,p5,p6,p7,p8,p9],
+ * 则separators=[3,7]将坐标串分割为MultiLineString((p0 p1 p2),(p3 p4 p5 p6),(p7 p8 p9))。
+ * 即separators[i]的意义为第i条子线段的终点(从0开始计数);最后一条子线段的终点显然是数组的最后一位,故将其省略。
*
* repeated int32 coordSeparators = 4;
+ * repeated int32 separators = 4;
*
- * @return A list containing the coordSeparators.
+ * @return A list containing the separators.
*/
public java.util.Listrepeated int32 coordSeparators = 4;
+ * repeated int32 separators = 4;
*
- * @return The count of coordSeparators.
+ * @return The count of separators.
*/
- public int getCoordSeparatorsCount() {
- return coordSeparators_.size();
+ public int getSeparatorsCount() {
+ return separators_.size();
}
/**
- * repeated int32 coordSeparators = 4;
+ * repeated int32 separators = 4;
*
* @param index The index of the element to return.
- * @return The coordSeparators at the given index.
+ * @return The separators at the given index.
*/
- public int getCoordSeparators(int index) {
- return coordSeparators_.getInt(index);
+ public int getSeparators(int index) {
+ return separators_.getInt(index);
}
/**
- * repeated int32 coordSeparators = 4;
+ * repeated int32 separators = 4;
*
* @param index The index to set the value at.
- * @param value The coordSeparators to set.
+ * @param value The separators to set.
* @return This builder for chaining.
*/
- public Builder setCoordSeparators(
+ public Builder setSeparators(
int index, int value) {
- ensureCoordSeparatorsIsMutable();
- coordSeparators_.setInt(index, value);
+ ensureSeparatorsIsMutable();
+ separators_.setInt(index, value);
onChanged();
return this;
}
/**
- * repeated int32 coordSeparators = 4;
+ * repeated int32 separators = 4;
*
- * @param value The coordSeparators to add.
+ * @param value The separators to add.
* @return This builder for chaining.
*/
- public Builder addCoordSeparators(int value) {
- ensureCoordSeparatorsIsMutable();
- coordSeparators_.addInt(value);
+ public Builder addSeparators(int value) {
+ ensureSeparatorsIsMutable();
+ separators_.addInt(value);
onChanged();
return this;
}
/**
- * repeated int32 coordSeparators = 4;
+ * repeated int32 separators = 4;
*
- * @param values The coordSeparators to add.
+ * @param values The separators to add.
* @return This builder for chaining.
*/
- public Builder addAllCoordSeparators(
+ public Builder addAllSeparators(
java.lang.Iterable extends java.lang.Integer> values) {
- ensureCoordSeparatorsIsMutable();
+ ensureSeparatorsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, coordSeparators_);
+ values, separators_);
onChanged();
return this;
}
/**
- * repeated int32 coordSeparators = 4;
+ * repeated int32 separators = 4;
*
* @return This builder for chaining.
*/
- public Builder clearCoordSeparators() {
- coordSeparators_ = emptyIntList();
+ public Builder clearSeparators() {
+ separators_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
- private com.google.protobuf.Internal.IntList polygonSeparators_ = emptyIntList();
-
- private void ensurePolygonSeparatorsIsMutable() {
- if (!((bitField0_ & 0x00000010) != 0)) {
- polygonSeparators_ = mutableCopy(polygonSeparators_);
- bitField0_ |= 0x00000010;
- }
- }
-
- /**
- * repeated int32 polygonSeparators = 5;
- *
- * @return A list containing the polygonSeparators.
- */
- public java.util.Listrepeated int32 polygonSeparators = 5;
- *
- * @return The count of polygonSeparators.
- */
- public int getPolygonSeparatorsCount() {
- return polygonSeparators_.size();
- }
-
- /**
- * repeated int32 polygonSeparators = 5;
- *
- * @param index The index of the element to return.
- * @return The polygonSeparators at the given index.
- */
- public int getPolygonSeparators(int index) {
- return polygonSeparators_.getInt(index);
- }
-
- /**
- * repeated int32 polygonSeparators = 5;
- *
- * @param index The index to set the value at.
- * @param value The polygonSeparators to set.
- * @return This builder for chaining.
- */
- public Builder setPolygonSeparators(
- int index, int value) {
- ensurePolygonSeparatorsIsMutable();
- polygonSeparators_.setInt(index, value);
- onChanged();
- return this;
- }
-
- /**
- * repeated int32 polygonSeparators = 5;
- *
- * @param value The polygonSeparators to add.
- * @return This builder for chaining.
- */
- public Builder addPolygonSeparators(int value) {
- ensurePolygonSeparatorsIsMutable();
- polygonSeparators_.addInt(value);
- onChanged();
- return this;
- }
-
- /**
- * repeated int32 polygonSeparators = 5;
- *
- * @param values The polygonSeparators to add.
- * @return This builder for chaining.
- */
- public Builder addAllPolygonSeparators(
- java.lang.Iterable extends java.lang.Integer> values) {
- ensurePolygonSeparatorsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, polygonSeparators_);
- onChanged();
- return this;
- }
-
- /**
- * repeated int32 polygonSeparators = 5;
- *
- * @return This builder for chaining.
- */
- public Builder clearPolygonSeparators() {
- polygonSeparators_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000010);
- onChanged();
- return this;
- }
-
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -7166,302 +6068,197 @@ public final Builder mergeUnknownFields(
}
- // @@protoc_insertion_point(builder_scope:pojo.MultiPolygon)
+ // @@protoc_insertion_point(builder_scope:pojo.MultiLineString)
}
- // @@protoc_insertion_point(class_scope:pojo.MultiPolygon)
- private static final org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:pojo.MultiLineString)
+ private static final org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon();
+ DEFAULT_INSTANCE = new org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString();
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon getDefaultInstance() {
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parserrepeated .pojo.Point points = 1;
+ * repeated double xs = 1;
+ *
+ * @return A list containing the xs.
*/
- java.util.Listrepeated .pojo.Point points = 1;
+ * repeated double xs = 1;
+ *
+ * @return The count of xs.
*/
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point getPoints(int index);
+ int getXsCount();
/**
- * repeated .pojo.Point points = 1;
+ * repeated double xs = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The xs at the given index.
*/
- int getPointsCount();
+ double getXs(int index);
/**
- * repeated .pojo.Point points = 1;
+ * repeated double ys = 2;
+ *
+ * @return A list containing the ys.
*/
- java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PointOrBuilder>
- getPointsOrBuilderList();
+ java.util.Listrepeated .pojo.Point points = 1;
- */
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PointOrBuilder getPointsOrBuilder(
- int index);
-
- /**
- * repeated .pojo.LineString lineStrings = 2;
- */
- java.util.Listrepeated .pojo.LineString lineStrings = 2;
- */
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString getLineStrings(int index);
-
- /**
- * repeated .pojo.LineString lineStrings = 2;
- */
- int getLineStringsCount();
-
- /**
- * repeated .pojo.LineString lineStrings = 2;
- */
- java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineStringOrBuilder>
- getLineStringsOrBuilderList();
-
- /**
- * repeated .pojo.LineString lineStrings = 2;
- */
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineStringOrBuilder getLineStringsOrBuilder(
- int index);
-
- /**
- * repeated .pojo.Polygon polygons = 3;
- */
- java.util.Listrepeated .pojo.Polygon polygons = 3;
- */
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon getPolygons(int index);
-
- /**
- * repeated .pojo.Polygon polygons = 3;
- */
- int getPolygonsCount();
-
- /**
- * repeated .pojo.Polygon polygons = 3;
- */
- java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PolygonOrBuilder>
- getPolygonsOrBuilderList();
-
- /**
- * repeated .pojo.Polygon polygons = 3;
- */
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PolygonOrBuilder getPolygonsOrBuilder(
- int index);
-
- /**
- * repeated .pojo.MultiPoint multiPoints = 4;
- */
- java.util.Listrepeated .pojo.MultiPoint multiPoints = 4;
- */
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint getMultiPoints(int index);
-
- /**
- * repeated .pojo.MultiPoint multiPoints = 4;
- */
- int getMultiPointsCount();
-
- /**
- * repeated .pojo.MultiPoint multiPoints = 4;
- */
- java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPointOrBuilder>
- getMultiPointsOrBuilderList();
-
- /**
- * repeated .pojo.MultiPoint multiPoints = 4;
- */
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPointOrBuilder getMultiPointsOrBuilder(
- int index);
-
- /**
- * repeated .pojo.MultiLineString multiLineStrings = 5;
- */
- java.util.Listrepeated .pojo.MultiLineString multiLineStrings = 5;
- */
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString getMultiLineStrings(int index);
-
- /**
- * repeated .pojo.MultiLineString multiLineStrings = 5;
- */
- int getMultiLineStringsCount();
-
- /**
- * repeated .pojo.MultiLineString multiLineStrings = 5;
- */
- java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder>
- getMultiLineStringsOrBuilderList();
-
- /**
- * repeated .pojo.MultiLineString multiLineStrings = 5;
+ * repeated double ys = 2;
+ *
+ * @return The count of ys.
*/
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder getMultiLineStringsOrBuilder(
- int index);
+ int getYsCount();
/**
- * repeated .pojo.MultiPolygon multiPolygons = 6;
+ * repeated double ys = 2;
+ *
+ * @param index The index of the element to return.
+ * @return The ys at the given index.
*/
- java.util.Listrepeated .pojo.MultiPolygon multiPolygons = 6;
+ * repeated double zs = 3;
+ *
+ * @return A list containing the zs.
*/
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon getMultiPolygons(int index);
+ java.util.Listrepeated .pojo.MultiPolygon multiPolygons = 6;
+ * repeated double zs = 3;
+ *
+ * @return The count of zs.
*/
- int getMultiPolygonsCount();
+ int getZsCount();
/**
- * repeated .pojo.MultiPolygon multiPolygons = 6;
+ * repeated double zs = 3;
+ *
+ * @param index The index of the element to return.
+ * @return The zs at the given index.
*/
- java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygonOrBuilder>
- getMultiPolygonsOrBuilderList();
+ double getZs(int index);
/**
- * repeated .pojo.MultiPolygon multiPolygons = 6;
+ * repeated int32 coordSeparators = 4;
+ *
+ * @return A list containing the coordSeparators.
*/
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygonOrBuilder getMultiPolygonsOrBuilder(
- int index);
+ java.util.List
- * 允许嵌套
- *
+ * repeated int32 coordSeparators = 4;
*
- * repeated .pojo.GeometryCollection geometryCollections = 7;
+ * @return The count of coordSeparators.
*/
- java.util.List
- * 允许嵌套
- *
+ * repeated int32 coordSeparators = 4;
*
- * repeated .pojo.GeometryCollection geometryCollections = 7;
+ * @param index The index of the element to return.
+ * @return The coordSeparators at the given index.
*/
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection getGeometryCollections(int index);
+ int getCoordSeparators(int index);
/**
- *
- * 允许嵌套
- *
+ * repeated int32 polygonSeparators = 5;
*
- * repeated .pojo.GeometryCollection geometryCollections = 7;
+ * @return A list containing the polygonSeparators.
*/
- int getGeometryCollectionsCount();
+ java.util.List
- * 允许嵌套
- *
+ * repeated int32 polygonSeparators = 5;
*
- * repeated .pojo.GeometryCollection geometryCollections = 7;
+ * @return The count of polygonSeparators.
*/
- java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollectionOrBuilder>
- getGeometryCollectionsOrBuilderList();
+ int getPolygonSeparatorsCount();
/**
- *
- * 允许嵌套
- *
+ * repeated int32 polygonSeparators = 5;
*
- * repeated .pojo.GeometryCollection geometryCollections = 7;
+ * @param index The index of the element to return.
+ * @return The polygonSeparators at the given index.
*/
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollectionOrBuilder getGeometryCollectionsOrBuilder(
- int index);
+ int getPolygonSeparators(int index);
}
/**
*
- * GeometryCollection
- * 注意 GeometryCollection允许嵌套
+ * MultiPolygon 包含MultiPolygon上各个点的x y z坐标,z可选。
+ * polygonSeparators用于将坐标串分割为子多边形 例如,xs ys zs 形成了坐标串[p0,p1,p2,p3,p4,p5,p6,p7,p8,p9],
+ * 则polygonSeparators=[3,7]将坐标串分割为MultiPolygon(((p0 p1 p2)),((p3 p4 p5 p6)),((p7 p8 p9)))。
+ * 即polygonSeparators[i]的意义为第i个子多边形的终点(从0开始计数);最后一个子多边形的终点显然是数组的最后一位,故将其省略。
+ * 经过polygonSeparators分割后的子多边形坐标串,进一步由coordSeparators分割为环,分割依据与Polygon的separators一致
*
* repeated .pojo.Point points = 1;
+ * repeated double xs = 1;
+ *
+ * @return A list containing the xs.
*/
@java.lang.Override
- public java.util.Listrepeated .pojo.Point points = 1;
+ * repeated double xs = 1;
+ *
+ * @return The count of xs.
*/
- @java.lang.Override
- public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PointOrBuilder>
- getPointsOrBuilderList() {
- return points_;
+ public int getXsCount() {
+ return xs_.size();
}
/**
- * repeated .pojo.Point points = 1;
+ * repeated double xs = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The xs at the given index.
*/
- @java.lang.Override
- public int getPointsCount() {
- return points_.size();
+ public double getXs(int index) {
+ return xs_.getDouble(index);
}
- /**
- * repeated .pojo.Point points = 1;
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point getPoints(int index) {
- return points_.get(index);
- }
+ private int xsMemoizedSerializedSize = -1;
+
+ public static final int YS_FIELD_NUMBER = 2;
+ private com.google.protobuf.Internal.DoubleList ys_;
/**
- * repeated .pojo.Point points = 1;
+ * repeated double ys = 2;
+ *
+ * @return A list containing the ys.
*/
@java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PointOrBuilder getPointsOrBuilder(
- int index) {
- return points_.get(index);
+ public java.util.Listrepeated .pojo.LineString lineStrings = 2;
+ * repeated double ys = 2;
+ *
+ * @return The count of ys.
*/
- @java.lang.Override
- public java.util.Listrepeated .pojo.LineString lineStrings = 2;
+ * repeated double ys = 2;
+ *
+ * @param index The index of the element to return.
+ * @return The ys at the given index.
*/
- @java.lang.Override
- public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineStringOrBuilder>
- getLineStringsOrBuilderList() {
- return lineStrings_;
+ public double getYs(int index) {
+ return ys_.getDouble(index);
}
+ private int ysMemoizedSerializedSize = -1;
+
+ public static final int ZS_FIELD_NUMBER = 3;
+ private com.google.protobuf.Internal.DoubleList zs_;
+
/**
- * repeated .pojo.LineString lineStrings = 2;
+ * repeated double zs = 3;
+ *
+ * @return A list containing the zs.
*/
@java.lang.Override
- public int getLineStringsCount() {
- return lineStrings_.size();
+ public java.util.Listrepeated .pojo.LineString lineStrings = 2;
+ * repeated double zs = 3;
+ *
+ * @return The count of zs.
*/
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString getLineStrings(int index) {
- return lineStrings_.get(index);
+ public int getZsCount() {
+ return zs_.size();
}
/**
- * repeated .pojo.LineString lineStrings = 2;
+ * repeated double zs = 3;
+ *
+ * @param index The index of the element to return.
+ * @return The zs at the given index.
*/
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineStringOrBuilder getLineStringsOrBuilder(
- int index) {
- return lineStrings_.get(index);
+ public double getZs(int index) {
+ return zs_.getDouble(index);
}
- public static final int POLYGONS_FIELD_NUMBER = 3;
- private java.util.Listrepeated .pojo.Polygon polygons = 3;
+ * repeated int32 coordSeparators = 4;
+ *
+ * @return A list containing the coordSeparators.
*/
@java.lang.Override
- public java.util.Listrepeated .pojo.Polygon polygons = 3;
+ * repeated int32 coordSeparators = 4;
+ *
+ * @return The count of coordSeparators.
*/
- @java.lang.Override
- public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PolygonOrBuilder>
- getPolygonsOrBuilderList() {
- return polygons_;
+ public int getCoordSeparatorsCount() {
+ return coordSeparators_.size();
}
/**
- * repeated .pojo.Polygon polygons = 3;
- */
- @java.lang.Override
- public int getPolygonsCount() {
- return polygons_.size();
- }
-
- /**
- * repeated .pojo.Polygon polygons = 3;
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon getPolygons(int index) {
- return polygons_.get(index);
- }
-
- /**
- * repeated .pojo.Polygon polygons = 3;
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PolygonOrBuilder getPolygonsOrBuilder(
- int index) {
- return polygons_.get(index);
- }
-
- public static final int MULTIPOINTS_FIELD_NUMBER = 4;
- private java.util.Listrepeated .pojo.MultiPoint multiPoints = 4;
- */
- @java.lang.Override
- public java.util.Listrepeated .pojo.MultiPoint multiPoints = 4;
- */
- @java.lang.Override
- public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPointOrBuilder>
- getMultiPointsOrBuilderList() {
- return multiPoints_;
- }
-
- /**
- * repeated .pojo.MultiPoint multiPoints = 4;
- */
- @java.lang.Override
- public int getMultiPointsCount() {
- return multiPoints_.size();
- }
-
- /**
- * repeated .pojo.MultiPoint multiPoints = 4;
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint getMultiPoints(int index) {
- return multiPoints_.get(index);
- }
-
- /**
- * repeated .pojo.MultiPoint multiPoints = 4;
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPointOrBuilder getMultiPointsOrBuilder(
- int index) {
- return multiPoints_.get(index);
- }
-
- public static final int MULTILINESTRINGS_FIELD_NUMBER = 5;
- private java.util.Listrepeated .pojo.MultiLineString multiLineStrings = 5;
- */
- @java.lang.Override
- public java.util.Listrepeated .pojo.MultiLineString multiLineStrings = 5;
- */
- @java.lang.Override
- public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder>
- getMultiLineStringsOrBuilderList() {
- return multiLineStrings_;
- }
-
- /**
- * repeated .pojo.MultiLineString multiLineStrings = 5;
- */
- @java.lang.Override
- public int getMultiLineStringsCount() {
- return multiLineStrings_.size();
- }
-
- /**
- * repeated .pojo.MultiLineString multiLineStrings = 5;
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString getMultiLineStrings(int index) {
- return multiLineStrings_.get(index);
- }
-
- /**
- * repeated .pojo.MultiLineString multiLineStrings = 5;
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder getMultiLineStringsOrBuilder(
- int index) {
- return multiLineStrings_.get(index);
- }
-
- public static final int MULTIPOLYGONS_FIELD_NUMBER = 6;
- private java.util.Listrepeated .pojo.MultiPolygon multiPolygons = 6;
- */
- @java.lang.Override
- public java.util.Listrepeated .pojo.MultiPolygon multiPolygons = 6;
- */
- @java.lang.Override
- public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygonOrBuilder>
- getMultiPolygonsOrBuilderList() {
- return multiPolygons_;
- }
-
- /**
- * repeated .pojo.MultiPolygon multiPolygons = 6;
- */
- @java.lang.Override
- public int getMultiPolygonsCount() {
- return multiPolygons_.size();
- }
-
- /**
- * repeated .pojo.MultiPolygon multiPolygons = 6;
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon getMultiPolygons(int index) {
- return multiPolygons_.get(index);
- }
-
- /**
- * repeated .pojo.MultiPolygon multiPolygons = 6;
+ * repeated int32 coordSeparators = 4;
+ *
+ * @param index The index of the element to return.
+ * @return The coordSeparators at the given index.
*/
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygonOrBuilder getMultiPolygonsOrBuilder(
- int index) {
- return multiPolygons_.get(index);
+ public int getCoordSeparators(int index) {
+ return coordSeparators_.getInt(index);
}
- public static final int GEOMETRYCOLLECTIONS_FIELD_NUMBER = 7;
- private java.util.List
- * 允许嵌套
- *
- *
- * repeated .pojo.GeometryCollection geometryCollections = 7;
- */
- @java.lang.Override
- public java.util.List
- * 允许嵌套
- *
+ * repeated int32 polygonSeparators = 5;
*
- * repeated .pojo.GeometryCollection geometryCollections = 7;
+ * @return A list containing the polygonSeparators.
*/
@java.lang.Override
- public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollectionOrBuilder>
- getGeometryCollectionsOrBuilderList() {
- return geometryCollections_;
+ public java.util.List
- * 允许嵌套
- *
+ * repeated int32 polygonSeparators = 5;
*
- * repeated .pojo.GeometryCollection geometryCollections = 7;
+ * @return The count of polygonSeparators.
*/
- @java.lang.Override
- public int getGeometryCollectionsCount() {
- return geometryCollections_.size();
+ public int getPolygonSeparatorsCount() {
+ return polygonSeparators_.size();
}
/**
- *
- * 允许嵌套
- *
+ * repeated int32 polygonSeparators = 5;
*
- * repeated .pojo.GeometryCollection geometryCollections = 7;
+ * @param index The index of the element to return.
+ * @return The polygonSeparators at the given index.
*/
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection getGeometryCollections(int index) {
- return geometryCollections_.get(index);
+ public int getPolygonSeparators(int index) {
+ return polygonSeparators_.getInt(index);
}
- /**
- *
- * 允许嵌套
- *
- *
- * repeated .pojo.GeometryCollection geometryCollections = 7;
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollectionOrBuilder getGeometryCollectionsOrBuilder(
- int index) {
- return geometryCollections_.get(index);
- }
+ private int polygonSeparatorsMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
@@ -7958,28 +6631,43 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- for (int i = 0; i < points_.size(); i++) {
- output.writeMessage(1, points_.get(i));
- }
- for (int i = 0; i < lineStrings_.size(); i++) {
- output.writeMessage(2, lineStrings_.get(i));
+ getSerializedSize();
+ if (getXsList().size() > 0) {
+ output.writeUInt32NoTag(10);
+ output.writeUInt32NoTag(xsMemoizedSerializedSize);
}
- for (int i = 0; i < polygons_.size(); i++) {
- output.writeMessage(3, polygons_.get(i));
+ for (int i = 0; i < xs_.size(); i++) {
+ output.writeDoubleNoTag(xs_.getDouble(i));
}
- for (int i = 0; i < multiPoints_.size(); i++) {
- output.writeMessage(4, multiPoints_.get(i));
+ if (getYsList().size() > 0) {
+ output.writeUInt32NoTag(18);
+ output.writeUInt32NoTag(ysMemoizedSerializedSize);
}
- for (int i = 0; i < multiLineStrings_.size(); i++) {
- output.writeMessage(5, multiLineStrings_.get(i));
+ for (int i = 0; i < ys_.size(); i++) {
+ output.writeDoubleNoTag(ys_.getDouble(i));
}
- for (int i = 0; i < multiPolygons_.size(); i++) {
- output.writeMessage(6, multiPolygons_.get(i));
+ if (getZsList().size() > 0) {
+ output.writeUInt32NoTag(26);
+ output.writeUInt32NoTag(zsMemoizedSerializedSize);
}
- for (int i = 0; i < geometryCollections_.size(); i++) {
- output.writeMessage(7, geometryCollections_.get(i));
+ for (int i = 0; i < zs_.size(); i++) {
+ output.writeDoubleNoTag(zs_.getDouble(i));
}
- unknownFields.writeTo(output);
+ if (getCoordSeparatorsList().size() > 0) {
+ output.writeUInt32NoTag(34);
+ output.writeUInt32NoTag(coordSeparatorsMemoizedSerializedSize);
+ }
+ for (int i = 0; i < coordSeparators_.size(); i++) {
+ output.writeInt32NoTag(coordSeparators_.getInt(i));
+ }
+ if (getPolygonSeparatorsList().size() > 0) {
+ output.writeUInt32NoTag(42);
+ output.writeUInt32NoTag(polygonSeparatorsMemoizedSerializedSize);
+ }
+ for (int i = 0; i < polygonSeparators_.size(); i++) {
+ output.writeInt32NoTag(polygonSeparators_.getInt(i));
+ }
+ unknownFields.writeTo(output);
}
@java.lang.Override
@@ -7988,33 +6676,66 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- for (int i = 0; i < points_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, points_.get(i));
- }
- for (int i = 0; i < lineStrings_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, lineStrings_.get(i));
- }
- for (int i = 0; i < polygons_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, polygons_.get(i));
+ {
+ int dataSize = 0;
+ dataSize = 8 * getXsList().size();
+ size += dataSize;
+ if (!getXsList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ xsMemoizedSerializedSize = dataSize;
}
- for (int i = 0; i < multiPoints_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, multiPoints_.get(i));
+ {
+ int dataSize = 0;
+ dataSize = 8 * getYsList().size();
+ size += dataSize;
+ if (!getYsList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ ysMemoizedSerializedSize = dataSize;
}
- for (int i = 0; i < multiLineStrings_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(5, multiLineStrings_.get(i));
+ {
+ int dataSize = 0;
+ dataSize = 8 * getZsList().size();
+ size += dataSize;
+ if (!getZsList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ zsMemoizedSerializedSize = dataSize;
}
- for (int i = 0; i < multiPolygons_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(6, multiPolygons_.get(i));
+ {
+ int dataSize = 0;
+ for (int i = 0; i < coordSeparators_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(coordSeparators_.getInt(i));
+ }
+ size += dataSize;
+ if (!getCoordSeparatorsList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ coordSeparatorsMemoizedSerializedSize = dataSize;
}
- for (int i = 0; i < geometryCollections_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(7, geometryCollections_.get(i));
+ {
+ int dataSize = 0;
+ for (int i = 0; i < polygonSeparators_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(polygonSeparators_.getInt(i));
+ }
+ size += dataSize;
+ if (!getPolygonSeparatorsList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ polygonSeparatorsMemoizedSerializedSize = dataSize;
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -8026,25 +6747,21 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection)) {
+ if (!(obj instanceof org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon)) {
return super.equals(obj);
}
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection other = (org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection) obj;
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon other = (org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon) obj;
- if (!getPointsList()
- .equals(other.getPointsList())) return false;
- if (!getLineStringsList()
- .equals(other.getLineStringsList())) return false;
- if (!getPolygonsList()
- .equals(other.getPolygonsList())) return false;
- if (!getMultiPointsList()
- .equals(other.getMultiPointsList())) return false;
- if (!getMultiLineStringsList()
- .equals(other.getMultiLineStringsList())) return false;
- if (!getMultiPolygonsList()
- .equals(other.getMultiPolygonsList())) return false;
- if (!getGeometryCollectionsList()
- .equals(other.getGeometryCollectionsList())) return false;
+ if (!getXsList()
+ .equals(other.getXsList())) return false;
+ if (!getYsList()
+ .equals(other.getYsList())) return false;
+ if (!getZsList()
+ .equals(other.getZsList())) return false;
+ if (!getCoordSeparatorsList()
+ .equals(other.getCoordSeparatorsList())) return false;
+ if (!getPolygonSeparatorsList()
+ .equals(other.getPolygonSeparatorsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -8056,84 +6773,76 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
- if (getPointsCount() > 0) {
- hash = (37 * hash) + POINTS_FIELD_NUMBER;
- hash = (53 * hash) + getPointsList().hashCode();
- }
- if (getLineStringsCount() > 0) {
- hash = (37 * hash) + LINESTRINGS_FIELD_NUMBER;
- hash = (53 * hash) + getLineStringsList().hashCode();
- }
- if (getPolygonsCount() > 0) {
- hash = (37 * hash) + POLYGONS_FIELD_NUMBER;
- hash = (53 * hash) + getPolygonsList().hashCode();
+ if (getXsCount() > 0) {
+ hash = (37 * hash) + XS_FIELD_NUMBER;
+ hash = (53 * hash) + getXsList().hashCode();
}
- if (getMultiPointsCount() > 0) {
- hash = (37 * hash) + MULTIPOINTS_FIELD_NUMBER;
- hash = (53 * hash) + getMultiPointsList().hashCode();
+ if (getYsCount() > 0) {
+ hash = (37 * hash) + YS_FIELD_NUMBER;
+ hash = (53 * hash) + getYsList().hashCode();
}
- if (getMultiLineStringsCount() > 0) {
- hash = (37 * hash) + MULTILINESTRINGS_FIELD_NUMBER;
- hash = (53 * hash) + getMultiLineStringsList().hashCode();
+ if (getZsCount() > 0) {
+ hash = (37 * hash) + ZS_FIELD_NUMBER;
+ hash = (53 * hash) + getZsList().hashCode();
}
- if (getMultiPolygonsCount() > 0) {
- hash = (37 * hash) + MULTIPOLYGONS_FIELD_NUMBER;
- hash = (53 * hash) + getMultiPolygonsList().hashCode();
+ if (getCoordSeparatorsCount() > 0) {
+ hash = (37 * hash) + COORDSEPARATORS_FIELD_NUMBER;
+ hash = (53 * hash) + getCoordSeparatorsList().hashCode();
}
- if (getGeometryCollectionsCount() > 0) {
- hash = (37 * hash) + GEOMETRYCOLLECTIONS_FIELD_NUMBER;
- hash = (53 * hash) + getGeometryCollectionsList().hashCode();
+ if (getPolygonSeparatorsCount() > 0) {
+ hash = (37 * hash) + POLYGONSEPARATORS_FIELD_NUMBER;
+ hash = (53 * hash) + getPolygonSeparatorsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseFrom(byte[] data)
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseFrom(java.io.InputStream input)
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -8141,13 +6850,13 @@ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollect
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseDelimitedFrom(java.io.InputStream input)
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseDelimitedFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -8155,14 +6864,14 @@ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollect
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseFrom(
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -8179,7 +6888,7 @@ public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection prototype) {
+ public static Builder newBuilder(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@@ -8192,35 +6901,39 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- return new Builder(parent);
+ Builder builder = new Builder(parent);
+ return builder;
}
/**
*
- * GeometryCollection
- * 注意 GeometryCollection允许嵌套
+ * MultiPolygon 包含MultiPolygon上各个点的x y z坐标,z可选。
+ * polygonSeparators用于将坐标串分割为子多边形 例如,xs ys zs 形成了坐标串[p0,p1,p2,p3,p4,p5,p6,p7,p8,p9],
+ * 则polygonSeparators=[3,7]将坐标串分割为MultiPolygon(((p0 p1 p2)),((p3 p4 p5 p6)),((p7 p8 p9)))。
+ * 即polygonSeparators[i]的意义为第i个子多边形的终点(从0开始计数);最后一个子多边形的终点显然是数组的最后一位,故将其省略。
+ * 经过polygonSeparators分割后的子多边形坐标串,进一步由coordSeparators分割为环,分割依据与Polygon的separators一致
*
* repeated .pojo.Point points = 1;
+ * repeated double xs = 1;
+ *
+ * @return A list containing the xs.
*/
- public java.util.Listrepeated .pojo.Point points = 1;
+ * repeated double xs = 1;
+ *
+ * @return The count of xs.
*/
- public int getPointsCount() {
- if (pointsBuilder_ == null) {
- return points_.size();
- } else {
- return pointsBuilder_.getCount();
- }
+ public int getXsCount() {
+ return xs_.size();
}
/**
- * repeated .pojo.Point points = 1;
+ * repeated double xs = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The xs at the given index.
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point getPoints(int index) {
- if (pointsBuilder_ == null) {
- return points_.get(index);
- } else {
- return pointsBuilder_.getMessage(index);
- }
+ public double getXs(int index) {
+ return xs_.getDouble(index);
}
/**
- * repeated .pojo.Point points = 1;
+ * repeated double xs = 1;
+ *
+ * @param index The index to set the value at.
+ * @param value The xs to set.
+ * @return This builder for chaining.
*/
- public Builder setPoints(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point value) {
- if (pointsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePointsIsMutable();
- points_.set(index, value);
- onChanged();
- } else {
- pointsBuilder_.setMessage(index, value);
- }
+ public Builder setXs(
+ int index, double value) {
+ ensureXsIsMutable();
+ xs_.setDouble(index, value);
+ onChanged();
return this;
}
/**
- * repeated .pojo.Point points = 1;
+ * repeated double xs = 1;
+ *
+ * @param value The xs to add.
+ * @return This builder for chaining.
*/
- public Builder setPoints(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.Builder builderForValue) {
- if (pointsBuilder_ == null) {
- ensurePointsIsMutable();
- points_.set(index, builderForValue.build());
- onChanged();
- } else {
- pointsBuilder_.setMessage(index, builderForValue.build());
- }
+ public Builder addXs(double value) {
+ ensureXsIsMutable();
+ xs_.addDouble(value);
+ onChanged();
return this;
}
/**
- * repeated .pojo.Point points = 1;
+ * repeated double xs = 1;
+ *
+ * @param values The xs to add.
+ * @return This builder for chaining.
*/
- public Builder addPoints(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point value) {
- if (pointsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePointsIsMutable();
- points_.add(value);
- onChanged();
- } else {
- pointsBuilder_.addMessage(value);
- }
+ public Builder addAllXs(
+ java.lang.Iterable extends java.lang.Double> values) {
+ ensureXsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, xs_);
+ onChanged();
return this;
}
/**
- * repeated .pojo.Point points = 1;
+ * repeated double xs = 1;
+ *
+ * @return This builder for chaining.
*/
- public Builder addPoints(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point value) {
- if (pointsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePointsIsMutable();
- points_.add(index, value);
- onChanged();
- } else {
- pointsBuilder_.addMessage(index, value);
- }
+ public Builder clearXs() {
+ xs_ = emptyDoubleList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
return this;
}
- /**
- * repeated .pojo.Point points = 1;
- */
- public Builder addPoints(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.Builder builderForValue) {
- if (pointsBuilder_ == null) {
- ensurePointsIsMutable();
- points_.add(builderForValue.build());
- onChanged();
- } else {
- pointsBuilder_.addMessage(builderForValue.build());
+ private com.google.protobuf.Internal.DoubleList ys_ = emptyDoubleList();
+
+ private void ensureYsIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ ys_ = mutableCopy(ys_);
+ bitField0_ |= 0x00000002;
}
- return this;
}
/**
- * repeated .pojo.Point points = 1;
+ * repeated double ys = 2;
+ *
+ * @return A list containing the ys.
*/
- public Builder addPoints(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.Builder builderForValue) {
- if (pointsBuilder_ == null) {
- ensurePointsIsMutable();
- points_.add(index, builderForValue.build());
- onChanged();
- } else {
- pointsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
+ public java.util.Listrepeated .pojo.Point points = 1;
+ * repeated double ys = 2;
+ *
+ * @return The count of ys.
*/
- public Builder addAllPoints(
- java.lang.Iterable extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point> values) {
- if (pointsBuilder_ == null) {
- ensurePointsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, points_);
- onChanged();
- } else {
- pointsBuilder_.addAllMessages(values);
- }
- return this;
+ public int getYsCount() {
+ return ys_.size();
}
/**
- * repeated .pojo.Point points = 1;
+ * repeated double ys = 2;
+ *
+ * @param index The index of the element to return.
+ * @return The ys at the given index.
*/
- public Builder clearPoints() {
- if (pointsBuilder_ == null) {
- points_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- } else {
- pointsBuilder_.clear();
- }
- return this;
+ public double getYs(int index) {
+ return ys_.getDouble(index);
}
/**
- * repeated .pojo.Point points = 1;
+ * repeated double ys = 2;
+ *
+ * @param index The index to set the value at.
+ * @param value The ys to set.
+ * @return This builder for chaining.
*/
- public Builder removePoints(int index) {
- if (pointsBuilder_ == null) {
- ensurePointsIsMutable();
- points_.remove(index);
- onChanged();
- } else {
- pointsBuilder_.remove(index);
- }
+ public Builder setYs(
+ int index, double value) {
+ ensureYsIsMutable();
+ ys_.setDouble(index, value);
+ onChanged();
return this;
}
/**
- * repeated .pojo.Point points = 1;
+ * repeated double ys = 2;
+ *
+ * @param value The ys to add.
+ * @return This builder for chaining.
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.Builder getPointsBuilder(
- int index) {
- return getPointsFieldBuilder().getBuilder(index);
+ public Builder addYs(double value) {
+ ensureYsIsMutable();
+ ys_.addDouble(value);
+ onChanged();
+ return this;
}
/**
- * repeated .pojo.Point points = 1;
+ * repeated double ys = 2;
+ *
+ * @param values The ys to add.
+ * @return This builder for chaining.
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PointOrBuilder getPointsOrBuilder(
- int index) {
- if (pointsBuilder_ == null) {
- return points_.get(index);
- } else {
- return pointsBuilder_.getMessageOrBuilder(index);
- }
+ public Builder addAllYs(
+ java.lang.Iterable extends java.lang.Double> values) {
+ ensureYsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, ys_);
+ onChanged();
+ return this;
}
/**
- * repeated .pojo.Point points = 1;
+ * repeated double ys = 2;
+ *
+ * @return This builder for chaining.
*/
- public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PointOrBuilder>
- getPointsOrBuilderList() {
- if (pointsBuilder_ != null) {
- return pointsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(points_);
+ public Builder clearYs() {
+ ys_ = emptyDoubleList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Internal.DoubleList zs_ = emptyDoubleList();
+
+ private void ensureZsIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ zs_ = mutableCopy(zs_);
+ bitField0_ |= 0x00000004;
}
}
/**
- * repeated .pojo.Point points = 1;
+ * repeated double zs = 3;
+ *
+ * @return A list containing the zs.
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.Builder addPointsBuilder() {
- return getPointsFieldBuilder().addBuilder(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.getDefaultInstance());
+ public java.util.Listrepeated .pojo.Point points = 1;
+ * repeated double zs = 3;
+ *
+ * @return The count of zs.
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.Builder addPointsBuilder(
- int index) {
- return getPointsFieldBuilder().addBuilder(
- index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.getDefaultInstance());
+ public int getZsCount() {
+ return zs_.size();
}
/**
- * repeated .pojo.Point points = 1;
+ * repeated double zs = 3;
+ *
+ * @param index The index of the element to return.
+ * @return The zs at the given index.
*/
- public java.util.Listrepeated double zs = 3;
+ *
+ * @param index The index to set the value at.
+ * @param value The zs to set.
+ * @return This builder for chaining.
+ */
+ public Builder setZs(
+ int index, double value) {
+ ensureZsIsMutable();
+ zs_.setDouble(index, value);
+ onChanged();
+ return this;
}
- private java.util.Listrepeated double zs = 3;
+ *
+ * @param value The zs to add.
+ * @return This builder for chaining.
+ */
+ public Builder addZs(double value) {
+ ensureZsIsMutable();
+ zs_.addDouble(value);
+ onChanged();
+ return this;
}
- private com.google.protobuf.RepeatedFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineStringOrBuilder> lineStringsBuilder_;
-
/**
- * repeated .pojo.LineString lineStrings = 2;
+ * repeated double zs = 3;
+ *
+ * @param values The zs to add.
+ * @return This builder for chaining.
*/
- public java.util.Listrepeated .pojo.LineString lineStrings = 2;
+ * repeated double zs = 3;
+ *
+ * @return This builder for chaining.
*/
- public int getLineStringsCount() {
- if (lineStringsBuilder_ == null) {
- return lineStrings_.size();
- } else {
- return lineStringsBuilder_.getCount();
+ public Builder clearZs() {
+ zs_ = emptyDoubleList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Internal.IntList coordSeparators_ = emptyIntList();
+
+ private void ensureCoordSeparatorsIsMutable() {
+ if (!((bitField0_ & 0x00000008) != 0)) {
+ coordSeparators_ = mutableCopy(coordSeparators_);
+ bitField0_ |= 0x00000008;
}
}
/**
- * repeated .pojo.LineString lineStrings = 2;
+ * repeated int32 coordSeparators = 4;
+ *
+ * @return A list containing the coordSeparators.
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString getLineStrings(int index) {
- if (lineStringsBuilder_ == null) {
- return lineStrings_.get(index);
- } else {
- return lineStringsBuilder_.getMessage(index);
- }
+ public java.util.Listrepeated .pojo.LineString lineStrings = 2;
- */
- public Builder setLineStrings(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString value) {
- if (lineStringsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureLineStringsIsMutable();
- lineStrings_.set(index, value);
- onChanged();
- } else {
- lineStringsBuilder_.setMessage(index, value);
- }
- return this;
+ * repeated int32 coordSeparators = 4;
+ *
+ * @return The count of coordSeparators.
+ */
+ public int getCoordSeparatorsCount() {
+ return coordSeparators_.size();
}
/**
- * repeated .pojo.LineString lineStrings = 2;
+ * repeated int32 coordSeparators = 4;
+ *
+ * @param index The index of the element to return.
+ * @return The coordSeparators at the given index.
*/
- public Builder setLineStrings(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.Builder builderForValue) {
- if (lineStringsBuilder_ == null) {
- ensureLineStringsIsMutable();
- lineStrings_.set(index, builderForValue.build());
- onChanged();
- } else {
- lineStringsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
+ public int getCoordSeparators(int index) {
+ return coordSeparators_.getInt(index);
}
/**
- * repeated .pojo.LineString lineStrings = 2;
+ * repeated int32 coordSeparators = 4;
+ *
+ * @param index The index to set the value at.
+ * @param value The coordSeparators to set.
+ * @return This builder for chaining.
*/
- public Builder addLineStrings(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString value) {
- if (lineStringsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureLineStringsIsMutable();
- lineStrings_.add(value);
- onChanged();
- } else {
- lineStringsBuilder_.addMessage(value);
- }
+ public Builder setCoordSeparators(
+ int index, int value) {
+ ensureCoordSeparatorsIsMutable();
+ coordSeparators_.setInt(index, value);
+ onChanged();
return this;
}
/**
- * repeated .pojo.LineString lineStrings = 2;
+ * repeated int32 coordSeparators = 4;
+ *
+ * @param value The coordSeparators to add.
+ * @return This builder for chaining.
*/
- public Builder addLineStrings(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString value) {
- if (lineStringsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureLineStringsIsMutable();
- lineStrings_.add(index, value);
- onChanged();
- } else {
- lineStringsBuilder_.addMessage(index, value);
- }
+ public Builder addCoordSeparators(int value) {
+ ensureCoordSeparatorsIsMutable();
+ coordSeparators_.addInt(value);
+ onChanged();
return this;
}
/**
- * repeated .pojo.LineString lineStrings = 2;
+ * repeated int32 coordSeparators = 4;
+ *
+ * @param values The coordSeparators to add.
+ * @return This builder for chaining.
*/
- public Builder addLineStrings(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.Builder builderForValue) {
- if (lineStringsBuilder_ == null) {
- ensureLineStringsIsMutable();
- lineStrings_.add(builderForValue.build());
- onChanged();
- } else {
- lineStringsBuilder_.addMessage(builderForValue.build());
- }
+ public Builder addAllCoordSeparators(
+ java.lang.Iterable extends java.lang.Integer> values) {
+ ensureCoordSeparatorsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, coordSeparators_);
+ onChanged();
return this;
}
/**
- * repeated .pojo.LineString lineStrings = 2;
+ * repeated int32 coordSeparators = 4;
+ *
+ * @return This builder for chaining.
*/
- public Builder addLineStrings(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.Builder builderForValue) {
- if (lineStringsBuilder_ == null) {
- ensureLineStringsIsMutable();
- lineStrings_.add(index, builderForValue.build());
- onChanged();
- } else {
- lineStringsBuilder_.addMessage(index, builderForValue.build());
- }
+ public Builder clearCoordSeparators() {
+ coordSeparators_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
return this;
}
- /**
- * repeated .pojo.LineString lineStrings = 2;
- */
- public Builder addAllLineStrings(
- java.lang.Iterable extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString> values) {
- if (lineStringsBuilder_ == null) {
- ensureLineStringsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, lineStrings_);
- onChanged();
- } else {
- lineStringsBuilder_.addAllMessages(values);
+ private com.google.protobuf.Internal.IntList polygonSeparators_ = emptyIntList();
+
+ private void ensurePolygonSeparatorsIsMutable() {
+ if (!((bitField0_ & 0x00000010) != 0)) {
+ polygonSeparators_ = mutableCopy(polygonSeparators_);
+ bitField0_ |= 0x00000010;
}
- return this;
}
/**
- * repeated .pojo.LineString lineStrings = 2;
+ * repeated int32 polygonSeparators = 5;
+ *
+ * @return A list containing the polygonSeparators.
*/
- public Builder clearLineStrings() {
- if (lineStringsBuilder_ == null) {
- lineStrings_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- } else {
- lineStringsBuilder_.clear();
- }
- return this;
+ public java.util.Listrepeated .pojo.LineString lineStrings = 2;
+ * repeated int32 polygonSeparators = 5;
+ *
+ * @return The count of polygonSeparators.
*/
- public Builder removeLineStrings(int index) {
- if (lineStringsBuilder_ == null) {
- ensureLineStringsIsMutable();
- lineStrings_.remove(index);
- onChanged();
- } else {
- lineStringsBuilder_.remove(index);
- }
- return this;
+ public int getPolygonSeparatorsCount() {
+ return polygonSeparators_.size();
}
/**
- * repeated .pojo.LineString lineStrings = 2;
+ * repeated int32 polygonSeparators = 5;
+ *
+ * @param index The index of the element to return.
+ * @return The polygonSeparators at the given index.
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.Builder getLineStringsBuilder(
- int index) {
- return getLineStringsFieldBuilder().getBuilder(index);
+ public int getPolygonSeparators(int index) {
+ return polygonSeparators_.getInt(index);
}
/**
- * repeated .pojo.LineString lineStrings = 2;
+ * repeated int32 polygonSeparators = 5;
+ *
+ * @param index The index to set the value at.
+ * @param value The polygonSeparators to set.
+ * @return This builder for chaining.
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineStringOrBuilder getLineStringsOrBuilder(
- int index) {
- if (lineStringsBuilder_ == null) {
- return lineStrings_.get(index);
- } else {
- return lineStringsBuilder_.getMessageOrBuilder(index);
- }
+ public Builder setPolygonSeparators(
+ int index, int value) {
+ ensurePolygonSeparatorsIsMutable();
+ polygonSeparators_.setInt(index, value);
+ onChanged();
+ return this;
}
/**
- * repeated .pojo.LineString lineStrings = 2;
+ * repeated int32 polygonSeparators = 5;
+ *
+ * @param value The polygonSeparators to add.
+ * @return This builder for chaining.
*/
- public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineStringOrBuilder>
- getLineStringsOrBuilderList() {
- if (lineStringsBuilder_ != null) {
- return lineStringsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(lineStrings_);
- }
+ public Builder addPolygonSeparators(int value) {
+ ensurePolygonSeparatorsIsMutable();
+ polygonSeparators_.addInt(value);
+ onChanged();
+ return this;
}
/**
- * repeated .pojo.LineString lineStrings = 2;
+ * repeated int32 polygonSeparators = 5;
+ *
+ * @param values The polygonSeparators to add.
+ * @return This builder for chaining.
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.Builder addLineStringsBuilder() {
- return getLineStringsFieldBuilder().addBuilder(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.getDefaultInstance());
+ public Builder addAllPolygonSeparators(
+ java.lang.Iterable extends java.lang.Integer> values) {
+ ensurePolygonSeparatorsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, polygonSeparators_);
+ onChanged();
+ return this;
}
/**
- * repeated .pojo.LineString lineStrings = 2;
+ * repeated int32 polygonSeparators = 5;
+ *
+ * @return This builder for chaining.
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.Builder addLineStringsBuilder(
- int index) {
- return getLineStringsFieldBuilder().addBuilder(
- index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.getDefaultInstance());
+ public Builder clearPolygonSeparators() {
+ polygonSeparators_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
}
- /**
- * repeated .pojo.LineString lineStrings = 2;
- */
- public java.util.Listrepeated .pojo.Polygon polygons = 3;
- */
- public java.util.Listrepeated .pojo.Polygon polygons = 3;
- */
- public int getPolygonsCount() {
- if (polygonsBuilder_ == null) {
- return polygons_.size();
- } else {
- return polygonsBuilder_.getCount();
- }
- }
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
- /**
- * repeated .pojo.Polygon polygons = 3;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon getPolygons(int index) {
- if (polygonsBuilder_ == null) {
- return polygons_.get(index);
- } else {
- return polygonsBuilder_.getMessage(index);
- }
+ private static final com.google.protobuf.Parserrepeated .pojo.Polygon polygons = 3;
- */
- public Builder setPolygons(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon value) {
- if (polygonsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePolygonsIsMutable();
- polygons_.set(index, value);
- onChanged();
- } else {
- polygonsBuilder_.setMessage(index, value);
- }
- return this;
- }
+ public static com.google.protobuf.Parserrepeated .pojo.Polygon polygons = 3;
- */
- public Builder setPolygons(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.Builder builderForValue) {
- if (polygonsBuilder_ == null) {
- ensurePolygonsIsMutable();
- polygons_.set(index, builderForValue.build());
- onChanged();
- } else {
- polygonsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
+ @java.lang.Override
+ public com.google.protobuf.Parserrepeated .pojo.Polygon polygons = 3;
- */
- public Builder addPolygons(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon value) {
- if (polygonsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePolygonsIsMutable();
- polygons_.add(value);
- onChanged();
- } else {
- polygonsBuilder_.addMessage(value);
- }
- return this;
- }
+ @java.lang.Override
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
- /**
- * repeated .pojo.Polygon polygons = 3;
- */
- public Builder addPolygons(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon value) {
- if (polygonsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePolygonsIsMutable();
- polygons_.add(index, value);
- onChanged();
- } else {
- polygonsBuilder_.addMessage(index, value);
- }
- return this;
- }
+ }
- /**
- * repeated .pojo.Polygon polygons = 3;
- */
- public Builder addPolygons(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.Builder builderForValue) {
- if (polygonsBuilder_ == null) {
- ensurePolygonsIsMutable();
- polygons_.add(builderForValue.build());
- onChanged();
- } else {
- polygonsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
+ public interface GeometryCollectionOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:pojo.GeometryCollection)
+ com.google.protobuf.MessageOrBuilder {
- /**
- * repeated .pojo.Polygon polygons = 3;
- */
- public Builder addPolygons(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.Builder builderForValue) {
- if (polygonsBuilder_ == null) {
- ensurePolygonsIsMutable();
- polygons_.add(index, builderForValue.build());
- onChanged();
- } else {
- polygonsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ java.util.Listrepeated .pojo.Polygon polygons = 3;
- */
- public Builder addAllPolygons(
- java.lang.Iterable extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon> values) {
- if (polygonsBuilder_ == null) {
- ensurePolygonsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, polygons_);
- onChanged();
- } else {
- polygonsBuilder_.addAllMessages(values);
- }
- return this;
- }
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point getPoints(int index);
- /**
- * repeated .pojo.Polygon polygons = 3;
- */
- public Builder clearPolygons() {
- if (polygonsBuilder_ == null) {
- polygons_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- } else {
- polygonsBuilder_.clear();
- }
- return this;
- }
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ int getPointsCount();
- /**
- * repeated .pojo.Polygon polygons = 3;
- */
- public Builder removePolygons(int index) {
- if (polygonsBuilder_ == null) {
- ensurePolygonsIsMutable();
- polygons_.remove(index);
- onChanged();
- } else {
- polygonsBuilder_.remove(index);
- }
- return this;
- }
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PointOrBuilder>
+ getPointsOrBuilderList();
- /**
- * repeated .pojo.Polygon polygons = 3;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.Builder getPolygonsBuilder(
- int index) {
- return getPolygonsFieldBuilder().getBuilder(index);
- }
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PointOrBuilder getPointsOrBuilder(
+ int index);
- /**
- * repeated .pojo.Polygon polygons = 3;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PolygonOrBuilder getPolygonsOrBuilder(
- int index) {
- if (polygonsBuilder_ == null) {
- return polygons_.get(index);
- } else {
- return polygonsBuilder_.getMessageOrBuilder(index);
- }
- }
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ java.util.Listrepeated .pojo.Polygon polygons = 3;
- */
- public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PolygonOrBuilder>
- getPolygonsOrBuilderList() {
- if (polygonsBuilder_ != null) {
- return polygonsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(polygons_);
- }
- }
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString getLineStrings(int index);
- /**
- * repeated .pojo.Polygon polygons = 3;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.Builder addPolygonsBuilder() {
- return getPolygonsFieldBuilder().addBuilder(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.getDefaultInstance());
- }
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ int getLineStringsCount();
- /**
- * repeated .pojo.Polygon polygons = 3;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.Builder addPolygonsBuilder(
- int index) {
- return getPolygonsFieldBuilder().addBuilder(
- index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.getDefaultInstance());
- }
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineStringOrBuilder>
+ getLineStringsOrBuilderList();
- /**
- * repeated .pojo.Polygon polygons = 3;
- */
- public java.util.Listrepeated .pojo.LineString lineStrings = 2;
+ */
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineStringOrBuilder getLineStringsOrBuilder(
+ int index);
- private com.google.protobuf.RepeatedFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PolygonOrBuilder>
- getPolygonsFieldBuilder() {
- if (polygonsBuilder_ == null) {
- polygonsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PolygonOrBuilder>(
- polygons_,
- ((bitField0_ & 0x00000004) != 0),
- getParentForChildren(),
- isClean());
- polygons_ = null;
- }
- return polygonsBuilder_;
- }
+ /**
+ * repeated .pojo.Polygon polygons = 3;
+ */
+ java.util.Listrepeated .pojo.Polygon polygons = 3;
+ */
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon getPolygons(int index);
- private void ensureMultiPointsIsMutable() {
- if (!((bitField0_ & 0x00000008) != 0)) {
- multiPoints_ = new java.util.ArrayListrepeated .pojo.Polygon polygons = 3;
+ */
+ int getPolygonsCount();
- private com.google.protobuf.RepeatedFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPointOrBuilder> multiPointsBuilder_;
+ /**
+ * repeated .pojo.Polygon polygons = 3;
+ */
+ java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PolygonOrBuilder>
+ getPolygonsOrBuilderList();
- /**
- * repeated .pojo.MultiPoint multiPoints = 4;
- */
- public java.util.Listrepeated .pojo.Polygon polygons = 3;
+ */
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PolygonOrBuilder getPolygonsOrBuilder(
+ int index);
- /**
- * repeated .pojo.MultiPoint multiPoints = 4;
- */
- public int getMultiPointsCount() {
- if (multiPointsBuilder_ == null) {
- return multiPoints_.size();
- } else {
- return multiPointsBuilder_.getCount();
- }
- }
+ /**
+ * repeated .pojo.MultiPoint multiPoints = 4;
+ */
+ java.util.Listrepeated .pojo.MultiPoint multiPoints = 4;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint getMultiPoints(int index) {
- if (multiPointsBuilder_ == null) {
- return multiPoints_.get(index);
- } else {
- return multiPointsBuilder_.getMessage(index);
- }
- }
+ /**
+ * repeated .pojo.MultiPoint multiPoints = 4;
+ */
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint getMultiPoints(int index);
- /**
- * repeated .pojo.MultiPoint multiPoints = 4;
- */
- public Builder setMultiPoints(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint value) {
- if (multiPointsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureMultiPointsIsMutable();
- multiPoints_.set(index, value);
- onChanged();
- } else {
- multiPointsBuilder_.setMessage(index, value);
- }
- return this;
- }
+ /**
+ * repeated .pojo.MultiPoint multiPoints = 4;
+ */
+ int getMultiPointsCount();
- /**
- * repeated .pojo.MultiPoint multiPoints = 4;
- */
- public Builder setMultiPoints(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder builderForValue) {
- if (multiPointsBuilder_ == null) {
- ensureMultiPointsIsMutable();
- multiPoints_.set(index, builderForValue.build());
- onChanged();
- } else {
- multiPointsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
+ /**
+ * repeated .pojo.MultiPoint multiPoints = 4;
+ */
+ java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPointOrBuilder>
+ getMultiPointsOrBuilderList();
- /**
- * repeated .pojo.MultiPoint multiPoints = 4;
- */
- public Builder addMultiPoints(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint value) {
- if (multiPointsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureMultiPointsIsMutable();
- multiPoints_.add(value);
- onChanged();
- } else {
- multiPointsBuilder_.addMessage(value);
- }
- return this;
- }
+ /**
+ * repeated .pojo.MultiPoint multiPoints = 4;
+ */
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPointOrBuilder getMultiPointsOrBuilder(
+ int index);
- /**
- * repeated .pojo.MultiPoint multiPoints = 4;
- */
- public Builder addMultiPoints(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint value) {
- if (multiPointsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureMultiPointsIsMutable();
- multiPoints_.add(index, value);
- onChanged();
- } else {
- multiPointsBuilder_.addMessage(index, value);
- }
- return this;
- }
+ /**
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
+ */
+ java.util.Listrepeated .pojo.MultiPoint multiPoints = 4;
- */
- public Builder addMultiPoints(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder builderForValue) {
- if (multiPointsBuilder_ == null) {
- ensureMultiPointsIsMutable();
- multiPoints_.add(builderForValue.build());
- onChanged();
- } else {
- multiPointsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
+ /**
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
+ */
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString getMultiLineStrings(int index);
- /**
- * repeated .pojo.MultiPoint multiPoints = 4;
- */
- public Builder addMultiPoints(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder builderForValue) {
- if (multiPointsBuilder_ == null) {
- ensureMultiPointsIsMutable();
- multiPoints_.add(index, builderForValue.build());
- onChanged();
- } else {
- multiPointsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
+ /**
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
+ */
+ int getMultiLineStringsCount();
- /**
- * repeated .pojo.MultiPoint multiPoints = 4;
- */
- public Builder addAllMultiPoints(
- java.lang.Iterable extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint> values) {
- if (multiPointsBuilder_ == null) {
- ensureMultiPointsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, multiPoints_);
- onChanged();
- } else {
- multiPointsBuilder_.addAllMessages(values);
- }
- return this;
- }
+ /**
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
+ */
+ java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder>
+ getMultiLineStringsOrBuilderList();
- /**
- * repeated .pojo.MultiPoint multiPoints = 4;
- */
- public Builder clearMultiPoints() {
- if (multiPointsBuilder_ == null) {
- multiPoints_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
- onChanged();
- } else {
- multiPointsBuilder_.clear();
- }
- return this;
- }
+ /**
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
+ */
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder getMultiLineStringsOrBuilder(
+ int index);
- /**
- * repeated .pojo.MultiPoint multiPoints = 4;
- */
- public Builder removeMultiPoints(int index) {
- if (multiPointsBuilder_ == null) {
- ensureMultiPointsIsMutable();
- multiPoints_.remove(index);
- onChanged();
- } else {
- multiPointsBuilder_.remove(index);
- }
- return this;
- }
+ /**
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
+ */
+ java.util.Listrepeated .pojo.MultiPoint multiPoints = 4;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder getMultiPointsBuilder(
- int index) {
- return getMultiPointsFieldBuilder().getBuilder(index);
- }
+ /**
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
+ */
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon getMultiPolygons(int index);
- /**
- * repeated .pojo.MultiPoint multiPoints = 4;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPointOrBuilder getMultiPointsOrBuilder(
- int index) {
- if (multiPointsBuilder_ == null) {
- return multiPoints_.get(index);
- } else {
- return multiPointsBuilder_.getMessageOrBuilder(index);
- }
- }
+ /**
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
+ */
+ int getMultiPolygonsCount();
- /**
- * repeated .pojo.MultiPoint multiPoints = 4;
- */
- public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPointOrBuilder>
- getMultiPointsOrBuilderList() {
- if (multiPointsBuilder_ != null) {
- return multiPointsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(multiPoints_);
- }
- }
+ /**
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
+ */
+ java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygonOrBuilder>
+ getMultiPolygonsOrBuilderList();
- /**
- * repeated .pojo.MultiPoint multiPoints = 4;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder addMultiPointsBuilder() {
- return getMultiPointsFieldBuilder().addBuilder(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.getDefaultInstance());
- }
+ /**
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
+ */
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygonOrBuilder getMultiPolygonsOrBuilder(
+ int index);
- /**
- * repeated .pojo.MultiPoint multiPoints = 4;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder addMultiPointsBuilder(
- int index) {
- return getMultiPointsFieldBuilder().addBuilder(
- index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.getDefaultInstance());
- }
+ /**
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
+ */
+ java.util.Listrepeated .pojo.MultiPoint multiPoints = 4;
- */
- public java.util.List
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
+ */
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection getGeometryCollections(int index);
- private com.google.protobuf.RepeatedFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPointOrBuilder>
- getMultiPointsFieldBuilder() {
- if (multiPointsBuilder_ == null) {
- multiPointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPointOrBuilder>(
- multiPoints_,
- ((bitField0_ & 0x00000008) != 0),
- getParentForChildren(),
- isClean());
- multiPoints_ = null;
- }
- return multiPointsBuilder_;
- }
+ /**
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
+ */
+ int getGeometryCollectionsCount();
- private java.util.List
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
+ */
+ java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollectionOrBuilder>
+ getGeometryCollectionsOrBuilderList();
- private void ensureMultiLineStringsIsMutable() {
- if (!((bitField0_ & 0x00000010) != 0)) {
- multiLineStrings_ = new java.util.ArrayList
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
+ */
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollectionOrBuilder getGeometryCollectionsOrBuilder(
+ int index);
+ }
- private com.google.protobuf.RepeatedFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder> multiLineStringsBuilder_;
+ /**
+ *
+ * GeometryCollection
+ * 注意 GeometryCollection允许嵌套
+ *
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
- */
- public java.util.Listrepeated .pojo.MultiLineString multiLineStrings = 5;
- */
- public int getMultiLineStringsCount() {
- if (multiLineStringsBuilder_ == null) {
- return multiLineStrings_.size();
- } else {
- return multiLineStringsBuilder_.getCount();
- }
- }
+ private GeometryCollection() {
+ points_ = java.util.Collections.emptyList();
+ lineStrings_ = java.util.Collections.emptyList();
+ polygons_ = java.util.Collections.emptyList();
+ multiPoints_ = java.util.Collections.emptyList();
+ multiLineStrings_ = java.util.Collections.emptyList();
+ multiPolygons_ = java.util.Collections.emptyList();
+ geometryCollections_ = java.util.Collections.emptyList();
+ }
- /**
- * repeated .pojo.MultiLineString multiLineStrings = 5;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString getMultiLineStrings(int index) {
- if (multiLineStringsBuilder_ == null) {
- return multiLineStrings_.get(index);
- } else {
- return multiLineStringsBuilder_.getMessage(index);
- }
- }
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GeometryCollection();
+ }
- /**
- * repeated .pojo.MultiLineString multiLineStrings = 5;
- */
- public Builder setMultiLineStrings(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString value) {
- if (multiLineStringsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureMultiLineStringsIsMutable();
- multiLineStrings_.set(index, value);
- onChanged();
- } else {
- multiLineStringsBuilder_.setMessage(index, value);
- }
- return this;
- }
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
- /**
- * repeated .pojo.MultiLineString multiLineStrings = 5;
- */
- public Builder setMultiLineStrings(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder builderForValue) {
- if (multiLineStringsBuilder_ == null) {
- ensureMultiLineStringsIsMutable();
- multiLineStrings_.set(index, builderForValue.build());
- onChanged();
- } else {
- multiLineStringsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
+ private GeometryCollection(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
}
-
- /**
- * repeated .pojo.MultiLineString multiLineStrings = 5;
- */
- public Builder addMultiLineStrings(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString value) {
- if (multiLineStringsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
+ 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;
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ points_ = new java.util.ArrayListrepeated .pojo.MultiLineString multiLineStrings = 5;
- */
- public Builder addMultiLineStrings(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString value) {
- if (multiLineStringsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureMultiLineStringsIsMutable();
- multiLineStrings_.add(index, value);
- onChanged();
- } else {
- multiLineStringsBuilder_.addMessage(index, value);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ points_ = java.util.Collections.unmodifiableList(points_);
}
- return this;
- }
-
- /**
- * repeated .pojo.MultiLineString multiLineStrings = 5;
- */
- public Builder addMultiLineStrings(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder builderForValue) {
- if (multiLineStringsBuilder_ == null) {
- ensureMultiLineStringsIsMutable();
- multiLineStrings_.add(builderForValue.build());
- onChanged();
- } else {
- multiLineStringsBuilder_.addMessage(builderForValue.build());
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ lineStrings_ = java.util.Collections.unmodifiableList(lineStrings_);
}
- return this;
- }
-
- /**
- * repeated .pojo.MultiLineString multiLineStrings = 5;
- */
- public Builder addMultiLineStrings(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder builderForValue) {
- if (multiLineStringsBuilder_ == null) {
- ensureMultiLineStringsIsMutable();
- multiLineStrings_.add(index, builderForValue.build());
- onChanged();
- } else {
- multiLineStringsBuilder_.addMessage(index, builderForValue.build());
+ if (((mutable_bitField0_ & 0x00000004) != 0)) {
+ polygons_ = java.util.Collections.unmodifiableList(polygons_);
}
- return this;
- }
-
- /**
- * repeated .pojo.MultiLineString multiLineStrings = 5;
- */
- public Builder addAllMultiLineStrings(
- java.lang.Iterable extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString> values) {
- if (multiLineStringsBuilder_ == null) {
- ensureMultiLineStringsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, multiLineStrings_);
- onChanged();
- } else {
- multiLineStringsBuilder_.addAllMessages(values);
+ if (((mutable_bitField0_ & 0x00000008) != 0)) {
+ multiPoints_ = java.util.Collections.unmodifiableList(multiPoints_);
}
- return this;
- }
-
- /**
- * repeated .pojo.MultiLineString multiLineStrings = 5;
- */
- public Builder clearMultiLineStrings() {
- if (multiLineStringsBuilder_ == null) {
- multiLineStrings_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000010);
- onChanged();
- } else {
- multiLineStringsBuilder_.clear();
+ if (((mutable_bitField0_ & 0x00000010) != 0)) {
+ multiLineStrings_ = java.util.Collections.unmodifiableList(multiLineStrings_);
}
- return this;
- }
-
- /**
- * repeated .pojo.MultiLineString multiLineStrings = 5;
- */
- public Builder removeMultiLineStrings(int index) {
- if (multiLineStringsBuilder_ == null) {
- ensureMultiLineStringsIsMutable();
- multiLineStrings_.remove(index);
- onChanged();
- } else {
- multiLineStringsBuilder_.remove(index);
+ if (((mutable_bitField0_ & 0x00000020) != 0)) {
+ multiPolygons_ = java.util.Collections.unmodifiableList(multiPolygons_);
}
- return this;
+ if (((mutable_bitField0_ & 0x00000040) != 0)) {
+ geometryCollections_ = java.util.Collections.unmodifiableList(geometryCollections_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
}
+ }
- /**
- * repeated .pojo.MultiLineString multiLineStrings = 5;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder getMultiLineStringsBuilder(
- int index) {
- return getMultiLineStringsFieldBuilder().getBuilder(index);
- }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_GeometryCollection_descriptor;
+ }
- /**
- * repeated .pojo.MultiLineString multiLineStrings = 5;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder getMultiLineStringsOrBuilder(
- int index) {
- if (multiLineStringsBuilder_ == null) {
- return multiLineStrings_.get(index);
- } else {
- return multiLineStringsBuilder_.getMessageOrBuilder(index);
- }
- }
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_GeometryCollection_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.class, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.Builder.class);
+ }
- /**
- * repeated .pojo.MultiLineString multiLineStrings = 5;
- */
- public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder>
- getMultiLineStringsOrBuilderList() {
- if (multiLineStringsBuilder_ != null) {
- return multiLineStringsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(multiLineStrings_);
- }
- }
+ public static final int POINTS_FIELD_NUMBER = 1;
+ private java.util.Listrepeated .pojo.MultiLineString multiLineStrings = 5;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder addMultiLineStringsBuilder() {
- return getMultiLineStringsFieldBuilder().addBuilder(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.getDefaultInstance());
- }
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ @java.lang.Override
+ public java.util.Listrepeated .pojo.MultiLineString multiLineStrings = 5;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder addMultiLineStringsBuilder(
- int index) {
- return getMultiLineStringsFieldBuilder().addBuilder(
- index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.getDefaultInstance());
- }
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PointOrBuilder>
+ getPointsOrBuilderList() {
+ return points_;
+ }
- /**
- * repeated .pojo.MultiLineString multiLineStrings = 5;
- */
- public java.util.Listrepeated .pojo.Point points = 1;
+ */
+ @java.lang.Override
+ public int getPointsCount() {
+ return points_.size();
+ }
- private com.google.protobuf.RepeatedFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder>
- getMultiLineStringsFieldBuilder() {
- if (multiLineStringsBuilder_ == null) {
- multiLineStringsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder>(
- multiLineStrings_,
- ((bitField0_ & 0x00000010) != 0),
- getParentForChildren(),
- isClean());
- multiLineStrings_ = null;
- }
- return multiLineStringsBuilder_;
- }
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ @java.lang.Override
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point getPoints(int index) {
+ return points_.get(index);
+ }
- private java.util.Listrepeated .pojo.Point points = 1;
+ */
+ @java.lang.Override
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PointOrBuilder getPointsOrBuilder(
+ int index) {
+ return points_.get(index);
+ }
- private void ensureMultiPolygonsIsMutable() {
- if (!((bitField0_ & 0x00000020) != 0)) {
- multiPolygons_ = new java.util.ArrayListrepeated .pojo.LineString lineStrings = 2;
+ */
+ @java.lang.Override
+ public java.util.Listrepeated .pojo.MultiPolygon multiPolygons = 6;
- */
- public java.util.Listrepeated .pojo.LineString lineStrings = 2;
+ */
+ @java.lang.Override
+ public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineStringOrBuilder>
+ getLineStringsOrBuilderList() {
+ return lineStrings_;
+ }
- /**
- * repeated .pojo.MultiPolygon multiPolygons = 6;
- */
- public int getMultiPolygonsCount() {
- if (multiPolygonsBuilder_ == null) {
- return multiPolygons_.size();
- } else {
- return multiPolygonsBuilder_.getCount();
- }
- }
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ @java.lang.Override
+ public int getLineStringsCount() {
+ return lineStrings_.size();
+ }
- /**
- * repeated .pojo.MultiPolygon multiPolygons = 6;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon getMultiPolygons(int index) {
- if (multiPolygonsBuilder_ == null) {
- return multiPolygons_.get(index);
- } else {
- return multiPolygonsBuilder_.getMessage(index);
- }
- }
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ @java.lang.Override
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString getLineStrings(int index) {
+ return lineStrings_.get(index);
+ }
- /**
- * repeated .pojo.MultiPolygon multiPolygons = 6;
- */
- public Builder setMultiPolygons(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon value) {
- if (multiPolygonsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureMultiPolygonsIsMutable();
- multiPolygons_.set(index, value);
- onChanged();
- } else {
- multiPolygonsBuilder_.setMessage(index, value);
- }
- return this;
- }
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ @java.lang.Override
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineStringOrBuilder getLineStringsOrBuilder(
+ int index) {
+ return lineStrings_.get(index);
+ }
- /**
- * repeated .pojo.MultiPolygon multiPolygons = 6;
- */
- public Builder setMultiPolygons(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.Builder builderForValue) {
- if (multiPolygonsBuilder_ == null) {
- ensureMultiPolygonsIsMutable();
- multiPolygons_.set(index, builderForValue.build());
- onChanged();
- } else {
- multiPolygonsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
+ public static final int POLYGONS_FIELD_NUMBER = 3;
+ private java.util.Listrepeated .pojo.MultiPolygon multiPolygons = 6;
- */
- public Builder addMultiPolygons(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon value) {
- if (multiPolygonsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureMultiPolygonsIsMutable();
- multiPolygons_.add(value);
- onChanged();
- } else {
- multiPolygonsBuilder_.addMessage(value);
- }
- return this;
- }
+ /**
+ * repeated .pojo.Polygon polygons = 3;
+ */
+ @java.lang.Override
+ public java.util.Listrepeated .pojo.MultiPolygon multiPolygons = 6;
- */
- public Builder addMultiPolygons(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon value) {
- if (multiPolygonsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureMultiPolygonsIsMutable();
- multiPolygons_.add(index, value);
- onChanged();
- } else {
- multiPolygonsBuilder_.addMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .pojo.MultiPolygon multiPolygons = 6;
- */
- public Builder addMultiPolygons(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.Builder builderForValue) {
- if (multiPolygonsBuilder_ == null) {
- ensureMultiPolygonsIsMutable();
- multiPolygons_.add(builderForValue.build());
- onChanged();
- } else {
- multiPolygonsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
+ /**
+ * repeated .pojo.Polygon polygons = 3;
+ */
+ @java.lang.Override
+ public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PolygonOrBuilder>
+ getPolygonsOrBuilderList() {
+ return polygons_;
+ }
- /**
- * repeated .pojo.MultiPolygon multiPolygons = 6;
- */
- public Builder addMultiPolygons(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.Builder builderForValue) {
- if (multiPolygonsBuilder_ == null) {
- ensureMultiPolygonsIsMutable();
- multiPolygons_.add(index, builderForValue.build());
- onChanged();
- } else {
- multiPolygonsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
+ /**
+ * repeated .pojo.Polygon polygons = 3;
+ */
+ @java.lang.Override
+ public int getPolygonsCount() {
+ return polygons_.size();
+ }
- /**
- * repeated .pojo.MultiPolygon multiPolygons = 6;
- */
- public Builder addAllMultiPolygons(
- java.lang.Iterable extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon> values) {
- if (multiPolygonsBuilder_ == null) {
- ensureMultiPolygonsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, multiPolygons_);
- onChanged();
- } else {
- multiPolygonsBuilder_.addAllMessages(values);
- }
- return this;
- }
+ /**
+ * repeated .pojo.Polygon polygons = 3;
+ */
+ @java.lang.Override
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon getPolygons(int index) {
+ return polygons_.get(index);
+ }
- /**
- * repeated .pojo.MultiPolygon multiPolygons = 6;
- */
- public Builder clearMultiPolygons() {
- if (multiPolygonsBuilder_ == null) {
- multiPolygons_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000020);
- onChanged();
- } else {
- multiPolygonsBuilder_.clear();
- }
- return this;
- }
+ /**
+ * repeated .pojo.Polygon polygons = 3;
+ */
+ @java.lang.Override
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PolygonOrBuilder getPolygonsOrBuilder(
+ int index) {
+ return polygons_.get(index);
+ }
- /**
- * repeated .pojo.MultiPolygon multiPolygons = 6;
- */
- public Builder removeMultiPolygons(int index) {
- if (multiPolygonsBuilder_ == null) {
- ensureMultiPolygonsIsMutable();
- multiPolygons_.remove(index);
- onChanged();
- } else {
- multiPolygonsBuilder_.remove(index);
- }
- return this;
- }
+ public static final int MULTIPOINTS_FIELD_NUMBER = 4;
+ private java.util.Listrepeated .pojo.MultiPolygon multiPolygons = 6;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.Builder getMultiPolygonsBuilder(
- int index) {
- return getMultiPolygonsFieldBuilder().getBuilder(index);
- }
+ /**
+ * repeated .pojo.MultiPoint multiPoints = 4;
+ */
+ @java.lang.Override
+ public java.util.Listrepeated .pojo.MultiPolygon multiPolygons = 6;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygonOrBuilder getMultiPolygonsOrBuilder(
- int index) {
- if (multiPolygonsBuilder_ == null) {
- return multiPolygons_.get(index);
- } else {
- return multiPolygonsBuilder_.getMessageOrBuilder(index);
- }
- }
+ /**
+ * repeated .pojo.MultiPoint multiPoints = 4;
+ */
+ @java.lang.Override
+ public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPointOrBuilder>
+ getMultiPointsOrBuilderList() {
+ return multiPoints_;
+ }
- /**
- * repeated .pojo.MultiPolygon multiPolygons = 6;
- */
- public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygonOrBuilder>
- getMultiPolygonsOrBuilderList() {
- if (multiPolygonsBuilder_ != null) {
- return multiPolygonsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(multiPolygons_);
- }
- }
+ /**
+ * repeated .pojo.MultiPoint multiPoints = 4;
+ */
+ @java.lang.Override
+ public int getMultiPointsCount() {
+ return multiPoints_.size();
+ }
- /**
- * repeated .pojo.MultiPolygon multiPolygons = 6;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.Builder addMultiPolygonsBuilder() {
- return getMultiPolygonsFieldBuilder().addBuilder(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.getDefaultInstance());
- }
+ /**
+ * repeated .pojo.MultiPoint multiPoints = 4;
+ */
+ @java.lang.Override
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint getMultiPoints(int index) {
+ return multiPoints_.get(index);
+ }
- /**
- * repeated .pojo.MultiPolygon multiPolygons = 6;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.Builder addMultiPolygonsBuilder(
- int index) {
- return getMultiPolygonsFieldBuilder().addBuilder(
- index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.getDefaultInstance());
- }
+ /**
+ * repeated .pojo.MultiPoint multiPoints = 4;
+ */
+ @java.lang.Override
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPointOrBuilder getMultiPointsOrBuilder(
+ int index) {
+ return multiPoints_.get(index);
+ }
- /**
- * repeated .pojo.MultiPolygon multiPolygons = 6;
- */
- public java.util.Listrepeated .pojo.MultiLineString multiLineStrings = 5;
+ */
+ @java.lang.Override
+ public java.util.Listrepeated .pojo.MultiLineString multiLineStrings = 5;
+ */
+ @java.lang.Override
+ public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder>
+ getMultiLineStringsOrBuilderList() {
+ return multiLineStrings_;
+ }
- private void ensureGeometryCollectionsIsMutable() {
- if (!((bitField0_ & 0x00000040) != 0)) {
- geometryCollections_ = new java.util.ArrayListrepeated .pojo.MultiLineString multiLineStrings = 5;
+ */
+ @java.lang.Override
+ public int getMultiLineStringsCount() {
+ return multiLineStrings_.size();
+ }
- private com.google.protobuf.RepeatedFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollectionOrBuilder> geometryCollectionsBuilder_;
+ /**
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
+ */
+ @java.lang.Override
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString getMultiLineStrings(int index) {
+ return multiLineStrings_.get(index);
+ }
- /**
- *
- * 允许嵌套
- *
- *
- * repeated .pojo.GeometryCollection geometryCollections = 7;
- */
- public java.util.Listrepeated .pojo.MultiLineString multiLineStrings = 5;
+ */
+ @java.lang.Override
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder getMultiLineStringsOrBuilder(
+ int index) {
+ return multiLineStrings_.get(index);
+ }
- /**
- *
- * 允许嵌套
- *
- *
- * repeated .pojo.GeometryCollection geometryCollections = 7;
- */
- public int getGeometryCollectionsCount() {
- if (geometryCollectionsBuilder_ == null) {
- return geometryCollections_.size();
- } else {
- return geometryCollectionsBuilder_.getCount();
- }
- }
+ public static final int MULTIPOLYGONS_FIELD_NUMBER = 6;
+ private java.util.List
- * 允许嵌套
- *
- *
- * repeated .pojo.GeometryCollection geometryCollections = 7;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection getGeometryCollections(int index) {
- if (geometryCollectionsBuilder_ == null) {
- return geometryCollections_.get(index);
- } else {
- return geometryCollectionsBuilder_.getMessage(index);
- }
- }
+ /**
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
+ */
+ @java.lang.Override
+ public java.util.List
- * 允许嵌套
- *
- *
- * repeated .pojo.GeometryCollection geometryCollections = 7;
- */
- public Builder setGeometryCollections(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection value) {
- if (geometryCollectionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureGeometryCollectionsIsMutable();
- geometryCollections_.set(index, value);
- onChanged();
- } else {
- geometryCollectionsBuilder_.setMessage(index, value);
- }
- return this;
- }
+ /**
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
+ */
+ @java.lang.Override
+ public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygonOrBuilder>
+ getMultiPolygonsOrBuilderList() {
+ return multiPolygons_;
+ }
- /**
- *
- * 允许嵌套
- *
- *
- * repeated .pojo.GeometryCollection geometryCollections = 7;
- */
- public Builder setGeometryCollections(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.Builder builderForValue) {
- if (geometryCollectionsBuilder_ == null) {
- ensureGeometryCollectionsIsMutable();
- geometryCollections_.set(index, builderForValue.build());
- onChanged();
- } else {
- geometryCollectionsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
+ /**
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
+ */
+ @java.lang.Override
+ public int getMultiPolygonsCount() {
+ return multiPolygons_.size();
+ }
- /**
- *
- * 允许嵌套
- *
- *
- * repeated .pojo.GeometryCollection geometryCollections = 7;
- */
- public Builder addGeometryCollections(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection value) {
- if (geometryCollectionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureGeometryCollectionsIsMutable();
- geometryCollections_.add(value);
- onChanged();
- } else {
- geometryCollectionsBuilder_.addMessage(value);
- }
- return this;
- }
+ /**
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
+ */
+ @java.lang.Override
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon getMultiPolygons(int index) {
+ return multiPolygons_.get(index);
+ }
- /**
- *
- * 允许嵌套
- *
- *
- * repeated .pojo.GeometryCollection geometryCollections = 7;
- */
- public Builder addGeometryCollections(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection value) {
- if (geometryCollectionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureGeometryCollectionsIsMutable();
- geometryCollections_.add(index, value);
- onChanged();
- } else {
- geometryCollectionsBuilder_.addMessage(index, value);
- }
- return this;
- }
+ /**
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
+ */
+ @java.lang.Override
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygonOrBuilder getMultiPolygonsOrBuilder(
+ int index) {
+ return multiPolygons_.get(index);
+ }
- /**
- *
- * 允许嵌套
- *
- *
- * repeated .pojo.GeometryCollection geometryCollections = 7;
- */
- public Builder addGeometryCollections(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.Builder builderForValue) {
- if (geometryCollectionsBuilder_ == null) {
- ensureGeometryCollectionsIsMutable();
- geometryCollections_.add(builderForValue.build());
- onChanged();
- } else {
- geometryCollectionsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
+ public static final int GEOMETRYCOLLECTIONS_FIELD_NUMBER = 7;
+ private java.util.List
- * 允许嵌套
- *
- *
- * repeated .pojo.GeometryCollection geometryCollections = 7;
- */
- public Builder addGeometryCollections(
- int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.Builder builderForValue) {
- if (geometryCollectionsBuilder_ == null) {
- ensureGeometryCollectionsIsMutable();
- geometryCollections_.add(index, builderForValue.build());
- onChanged();
- } else {
- geometryCollectionsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
+ /**
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
+ */
+ @java.lang.Override
+ public java.util.List
- * 允许嵌套
- *
- *
- * repeated .pojo.GeometryCollection geometryCollections = 7;
- */
- public Builder addAllGeometryCollections(
- java.lang.Iterable extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection> values) {
- if (geometryCollectionsBuilder_ == null) {
- ensureGeometryCollectionsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, geometryCollections_);
- onChanged();
- } else {
- geometryCollectionsBuilder_.addAllMessages(values);
- }
- return this;
- }
+ /**
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
+ */
+ @java.lang.Override
+ public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollectionOrBuilder>
+ getGeometryCollectionsOrBuilderList() {
+ return geometryCollections_;
+ }
- /**
- *
- * 允许嵌套
- *
- *
- * repeated .pojo.GeometryCollection geometryCollections = 7;
- */
- public Builder clearGeometryCollections() {
- if (geometryCollectionsBuilder_ == null) {
- geometryCollections_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000040);
- onChanged();
- } else {
- geometryCollectionsBuilder_.clear();
- }
- return this;
- }
+ /**
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
+ */
+ @java.lang.Override
+ public int getGeometryCollectionsCount() {
+ return geometryCollections_.size();
+ }
- /**
- *
- * 允许嵌套
- *
- *
- * repeated .pojo.GeometryCollection geometryCollections = 7;
- */
- public Builder removeGeometryCollections(int index) {
- if (geometryCollectionsBuilder_ == null) {
- ensureGeometryCollectionsIsMutable();
- geometryCollections_.remove(index);
- onChanged();
- } else {
- geometryCollectionsBuilder_.remove(index);
- }
- return this;
- }
+ /**
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
+ */
+ @java.lang.Override
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection getGeometryCollections(int index) {
+ return geometryCollections_.get(index);
+ }
- /**
- *
- * 允许嵌套
- *
- *
- * repeated .pojo.GeometryCollection geometryCollections = 7;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.Builder getGeometryCollectionsBuilder(
- int index) {
- return getGeometryCollectionsFieldBuilder().getBuilder(index);
- }
+ /**
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
+ */
+ @java.lang.Override
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollectionOrBuilder getGeometryCollectionsOrBuilder(
+ int index) {
+ return geometryCollections_.get(index);
+ }
- /**
- *
- * 允许嵌套
- *
- *
- * repeated .pojo.GeometryCollection geometryCollections = 7;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollectionOrBuilder getGeometryCollectionsOrBuilder(
- int index) {
- if (geometryCollectionsBuilder_ == null) {
- return geometryCollections_.get(index);
- } else {
- return geometryCollectionsBuilder_.getMessageOrBuilder(index);
- }
- }
+ private byte memoizedIsInitialized = -1;
- /**
- *
- * 允许嵌套
- *
- *
- * repeated .pojo.GeometryCollection geometryCollections = 7;
- */
- public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollectionOrBuilder>
- getGeometryCollectionsOrBuilderList() {
- if (geometryCollectionsBuilder_ != null) {
- return geometryCollectionsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(geometryCollections_);
- }
- }
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
- /**
- *
- * 允许嵌套
- *
- *
- * repeated .pojo.GeometryCollection geometryCollections = 7;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.Builder addGeometryCollectionsBuilder() {
- return getGeometryCollectionsFieldBuilder().addBuilder(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.getDefaultInstance());
- }
+ memoizedIsInitialized = 1;
+ return true;
+ }
- /**
- *
- * 允许嵌套
- *
- *
- * repeated .pojo.GeometryCollection geometryCollections = 7;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.Builder addGeometryCollectionsBuilder(
- int index) {
- return getGeometryCollectionsFieldBuilder().addBuilder(
- index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.getDefaultInstance());
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < points_.size(); i++) {
+ output.writeMessage(1, points_.get(i));
}
-
- /**
- *
- * 允许嵌套
- *
- *
- * repeated .pojo.GeometryCollection geometryCollections = 7;
- */
- public java.util.List.pojo.Point point = 1;
- *
- * @return Whether the point field is set.
- */
- boolean hasPoint();
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getPointsCount() > 0) {
+ hash = (37 * hash) + POINTS_FIELD_NUMBER;
+ hash = (53 * hash) + getPointsList().hashCode();
+ }
+ if (getLineStringsCount() > 0) {
+ hash = (37 * hash) + LINESTRINGS_FIELD_NUMBER;
+ hash = (53 * hash) + getLineStringsList().hashCode();
+ }
+ if (getPolygonsCount() > 0) {
+ hash = (37 * hash) + POLYGONS_FIELD_NUMBER;
+ hash = (53 * hash) + getPolygonsList().hashCode();
+ }
+ if (getMultiPointsCount() > 0) {
+ hash = (37 * hash) + MULTIPOINTS_FIELD_NUMBER;
+ hash = (53 * hash) + getMultiPointsList().hashCode();
+ }
+ if (getMultiLineStringsCount() > 0) {
+ hash = (37 * hash) + MULTILINESTRINGS_FIELD_NUMBER;
+ hash = (53 * hash) + getMultiLineStringsList().hashCode();
+ }
+ if (getMultiPolygonsCount() > 0) {
+ hash = (37 * hash) + MULTIPOLYGONS_FIELD_NUMBER;
+ hash = (53 * hash) + getMultiPolygonsList().hashCode();
+ }
+ if (getGeometryCollectionsCount() > 0) {
+ hash = (37 * hash) + GEOMETRYCOLLECTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getGeometryCollectionsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
- /**
- * .pojo.Point point = 1;
- *
- * @return The point.
- */
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point getPoint();
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
- /**
- * .pojo.Point point = 1;
- */
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PointOrBuilder getPointOrBuilder();
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
- /**
- * .pojo.LineString lineString = 2;
- *
- * @return Whether the lineString field is set.
- */
- boolean hasLineString();
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
- /**
- * .pojo.LineString lineString = 2;
- *
- * @return The lineString.
- */
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString getLineString();
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
- /**
- * .pojo.LineString lineString = 2;
- */
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineStringOrBuilder getLineStringOrBuilder();
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
- /**
- * .pojo.Polygon polygon = 3;
- *
- * @return Whether the polygon field is set.
- */
- boolean hasPolygon();
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
- /**
- * .pojo.Polygon polygon = 3;
- *
- * @return The polygon.
- */
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon getPolygon();
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
- /**
- * .pojo.Polygon polygon = 3;
- */
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PolygonOrBuilder getPolygonOrBuilder();
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
- /**
- * .pojo.MultiPoint multiPoint = 4;
- *
- * @return Whether the multiPoint field is set.
- */
- boolean hasMultiPoint();
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
- /**
- * .pojo.MultiPoint multiPoint = 4;
- *
- * @return The multiPoint.
- */
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint getMultiPoint();
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
- /**
- * .pojo.MultiPoint multiPoint = 4;
- */
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPointOrBuilder getMultiPointOrBuilder();
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
- /**
- * .pojo.MultiLineString multiLineString = 5;
- *
- * @return Whether the multiLineString field is set.
- */
- boolean hasMultiLineString();
+ public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
- /**
- * .pojo.MultiLineString multiLineString = 5;
- *
- * @return The multiLineString.
- */
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString getMultiLineString();
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
- /**
- * .pojo.MultiLineString multiLineString = 5;
- */
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder getMultiLineStringOrBuilder();
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
- /**
- * .pojo.MultiPolygon multiPolygon = 6;
- *
- * @return Whether the multiPolygon field is set.
- */
- boolean hasMultiPolygon();
+ public static Builder newBuilder(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
- /**
- * .pojo.MultiPolygon multiPolygon = 6;
- *
- * @return The multiPolygon.
- */
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon getMultiPolygon();
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
- /**
- * .pojo.MultiPolygon multiPolygon = 6;
- */
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygonOrBuilder getMultiPolygonOrBuilder();
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
/**
- * .pojo.GeometryCollection geometryCollection = 7;
- *
- * @return Whether the geometryCollection field is set.
+ *
+ * GeometryCollection
+ * 注意 GeometryCollection允许嵌套
+ *
+ * .pojo.GeometryCollection geometryCollection = 7;
- *
- * @return The geometryCollection.
- */
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection getGeometryCollection();
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_GeometryCollection_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.class, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.Builder.class);
+ }
- /**
- * .pojo.GeometryCollection geometryCollection = 7;
- */
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollectionOrBuilder getGeometryCollectionOrBuilder();
- }
+ // Construct using org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
- /**
- *
- * geometry 包含了所有jts规范中所罗列的Geometry类型 每个Geometry允许且仅允许其中一种对象非空
- *
- * .pojo.Point point = 1;
- *
- * @return Whether the point field is set.
- */
- @java.lang.Override
- public boolean hasPoint() {
- return point_ != null;
- }
-
- /**
- * .pojo.Point point = 1;
- *
- * @return The point.
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point getPoint() {
- return point_ == null ? org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.getDefaultInstance() : point_;
- }
-
- /**
- * .pojo.Point point = 1;
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PointOrBuilder getPointOrBuilder() {
- return getPoint();
- }
-
- public static final int LINESTRING_FIELD_NUMBER = 2;
- private org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString lineString_;
-
- /**
- * .pojo.LineString lineString = 2;
- *
- * @return Whether the lineString field is set.
- */
- @java.lang.Override
- public boolean hasLineString() {
- return lineString_ != null;
- }
-
- /**
- * .pojo.LineString lineString = 2;
- *
- * @return The lineString.
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString getLineString() {
- return lineString_ == null ? org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.getDefaultInstance() : lineString_;
- }
-
- /**
- * .pojo.LineString lineString = 2;
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineStringOrBuilder getLineStringOrBuilder() {
- return getLineString();
- }
-
- public static final int POLYGON_FIELD_NUMBER = 3;
- private org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon polygon_;
-
- /**
- * .pojo.Polygon polygon = 3;
- *
- * @return Whether the polygon field is set.
- */
- @java.lang.Override
- public boolean hasPolygon() {
- return polygon_ != null;
- }
-
- /**
- * .pojo.Polygon polygon = 3;
- *
- * @return The polygon.
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon getPolygon() {
- return polygon_ == null ? org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.getDefaultInstance() : polygon_;
- }
-
- /**
- * .pojo.Polygon polygon = 3;
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PolygonOrBuilder getPolygonOrBuilder() {
- return getPolygon();
- }
-
- public static final int MULTIPOINT_FIELD_NUMBER = 4;
- private org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint multiPoint_;
-
- /**
- * .pojo.MultiPoint multiPoint = 4;
- *
- * @return Whether the multiPoint field is set.
- */
- @java.lang.Override
- public boolean hasMultiPoint() {
- return multiPoint_ != null;
- }
-
- /**
- * .pojo.MultiPoint multiPoint = 4;
- *
- * @return The multiPoint.
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint getMultiPoint() {
- return multiPoint_ == null ? org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.getDefaultInstance() : multiPoint_;
- }
+ if (lineStringsBuilder_ == null) {
+ if (!other.lineStrings_.isEmpty()) {
+ if (lineStrings_.isEmpty()) {
+ lineStrings_ = other.lineStrings_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureLineStringsIsMutable();
+ lineStrings_.addAll(other.lineStrings_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.lineStrings_.isEmpty()) {
+ if (lineStringsBuilder_.isEmpty()) {
+ lineStringsBuilder_.dispose();
+ lineStringsBuilder_ = null;
+ lineStrings_ = other.lineStrings_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ lineStringsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getLineStringsFieldBuilder() : null;
+ } else {
+ lineStringsBuilder_.addAllMessages(other.lineStrings_);
+ }
+ }
+ }
+ if (polygonsBuilder_ == null) {
+ if (!other.polygons_.isEmpty()) {
+ if (polygons_.isEmpty()) {
+ polygons_ = other.polygons_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensurePolygonsIsMutable();
+ polygons_.addAll(other.polygons_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.polygons_.isEmpty()) {
+ if (polygonsBuilder_.isEmpty()) {
+ polygonsBuilder_.dispose();
+ polygonsBuilder_ = null;
+ polygons_ = other.polygons_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ polygonsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getPolygonsFieldBuilder() : null;
+ } else {
+ polygonsBuilder_.addAllMessages(other.polygons_);
+ }
+ }
+ }
+ if (multiPointsBuilder_ == null) {
+ if (!other.multiPoints_.isEmpty()) {
+ if (multiPoints_.isEmpty()) {
+ multiPoints_ = other.multiPoints_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ } else {
+ ensureMultiPointsIsMutable();
+ multiPoints_.addAll(other.multiPoints_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.multiPoints_.isEmpty()) {
+ if (multiPointsBuilder_.isEmpty()) {
+ multiPointsBuilder_.dispose();
+ multiPointsBuilder_ = null;
+ multiPoints_ = other.multiPoints_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ multiPointsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getMultiPointsFieldBuilder() : null;
+ } else {
+ multiPointsBuilder_.addAllMessages(other.multiPoints_);
+ }
+ }
+ }
+ if (multiLineStringsBuilder_ == null) {
+ if (!other.multiLineStrings_.isEmpty()) {
+ if (multiLineStrings_.isEmpty()) {
+ multiLineStrings_ = other.multiLineStrings_;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ } else {
+ ensureMultiLineStringsIsMutable();
+ multiLineStrings_.addAll(other.multiLineStrings_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.multiLineStrings_.isEmpty()) {
+ if (multiLineStringsBuilder_.isEmpty()) {
+ multiLineStringsBuilder_.dispose();
+ multiLineStringsBuilder_ = null;
+ multiLineStrings_ = other.multiLineStrings_;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ multiLineStringsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getMultiLineStringsFieldBuilder() : null;
+ } else {
+ multiLineStringsBuilder_.addAllMessages(other.multiLineStrings_);
+ }
+ }
+ }
+ if (multiPolygonsBuilder_ == null) {
+ if (!other.multiPolygons_.isEmpty()) {
+ if (multiPolygons_.isEmpty()) {
+ multiPolygons_ = other.multiPolygons_;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ } else {
+ ensureMultiPolygonsIsMutable();
+ multiPolygons_.addAll(other.multiPolygons_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.multiPolygons_.isEmpty()) {
+ if (multiPolygonsBuilder_.isEmpty()) {
+ multiPolygonsBuilder_.dispose();
+ multiPolygonsBuilder_ = null;
+ multiPolygons_ = other.multiPolygons_;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ multiPolygonsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getMultiPolygonsFieldBuilder() : null;
+ } else {
+ multiPolygonsBuilder_.addAllMessages(other.multiPolygons_);
+ }
+ }
+ }
+ if (geometryCollectionsBuilder_ == null) {
+ if (!other.geometryCollections_.isEmpty()) {
+ if (geometryCollections_.isEmpty()) {
+ geometryCollections_ = other.geometryCollections_;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ } else {
+ ensureGeometryCollectionsIsMutable();
+ geometryCollections_.addAll(other.geometryCollections_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.geometryCollections_.isEmpty()) {
+ if (geometryCollectionsBuilder_.isEmpty()) {
+ geometryCollectionsBuilder_.dispose();
+ geometryCollectionsBuilder_ = null;
+ geometryCollections_ = other.geometryCollections_;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ geometryCollectionsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getGeometryCollectionsFieldBuilder() : null;
+ } else {
+ geometryCollectionsBuilder_.addAllMessages(other.geometryCollections_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
- /**
- * .pojo.MultiPoint multiPoint = 4;
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPointOrBuilder getMultiPointOrBuilder() {
- return getMultiPoint();
- }
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
- public static final int MULTILINESTRING_FIELD_NUMBER = 5;
- private org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString multiLineString_;
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
- /**
- * .pojo.MultiLineString multiLineString = 5;
- *
- * @return Whether the multiLineString field is set.
- */
- @java.lang.Override
- public boolean hasMultiLineString() {
- return multiLineString_ != null;
- }
+ private int bitField0_;
- /**
- * .pojo.MultiLineString multiLineString = 5;
- *
- * @return The multiLineString.
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString getMultiLineString() {
- return multiLineString_ == null ? org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.getDefaultInstance() : multiLineString_;
- }
+ private java.util.List.pojo.MultiLineString multiLineString = 5;
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder getMultiLineStringOrBuilder() {
- return getMultiLineString();
- }
+ private void ensurePointsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ points_ = new java.util.ArrayList.pojo.MultiPolygon multiPolygon = 6;
- *
- * @return Whether the multiPolygon field is set.
- */
- @java.lang.Override
- public boolean hasMultiPolygon() {
- return multiPolygon_ != null;
- }
-
- /**
- * .pojo.MultiPolygon multiPolygon = 6;
- *
- * @return The multiPolygon.
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon getMultiPolygon() {
- return multiPolygon_ == null ? org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.getDefaultInstance() : multiPolygon_;
- }
-
- /**
- * .pojo.MultiPolygon multiPolygon = 6;
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygonOrBuilder getMultiPolygonOrBuilder() {
- return getMultiPolygon();
- }
-
- public static final int GEOMETRYCOLLECTION_FIELD_NUMBER = 7;
- private org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection geometryCollection_;
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ public java.util.List.pojo.GeometryCollection geometryCollection = 7;
- *
- * @return Whether the geometryCollection field is set.
- */
- @java.lang.Override
- public boolean hasGeometryCollection() {
- return geometryCollection_ != null;
- }
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ public int getPointsCount() {
+ if (pointsBuilder_ == null) {
+ return points_.size();
+ } else {
+ return pointsBuilder_.getCount();
+ }
+ }
- /**
- * .pojo.GeometryCollection geometryCollection = 7;
- *
- * @return The geometryCollection.
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection getGeometryCollection() {
- return geometryCollection_ == null ? org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.getDefaultInstance() : geometryCollection_;
- }
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point getPoints(int index) {
+ if (pointsBuilder_ == null) {
+ return points_.get(index);
+ } else {
+ return pointsBuilder_.getMessage(index);
+ }
+ }
- /**
- * .pojo.GeometryCollection geometryCollection = 7;
- */
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollectionOrBuilder getGeometryCollectionOrBuilder() {
- return getGeometryCollection();
- }
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ public Builder setPoints(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point value) {
+ if (pointsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePointsIsMutable();
+ points_.set(index, value);
+ onChanged();
+ } else {
+ pointsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
- private byte memoizedIsInitialized = -1;
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ public Builder setPoints(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.Builder builderForValue) {
+ if (pointsBuilder_ == null) {
+ ensurePointsIsMutable();
+ points_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ pointsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ public Builder addPoints(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point value) {
+ if (pointsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePointsIsMutable();
+ points_.add(value);
+ onChanged();
+ } else {
+ pointsBuilder_.addMessage(value);
+ }
+ return this;
+ }
- memoizedIsInitialized = 1;
- return true;
- }
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ public Builder addPoints(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point value) {
+ if (pointsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePointsIsMutable();
+ points_.add(index, value);
+ onChanged();
+ } else {
+ pointsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (point_ != null) {
- output.writeMessage(1, getPoint());
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ public Builder addPoints(
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.Builder builderForValue) {
+ if (pointsBuilder_ == null) {
+ ensurePointsIsMutable();
+ points_.add(builderForValue.build());
+ onChanged();
+ } else {
+ pointsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
}
- if (lineString_ != null) {
- output.writeMessage(2, getLineString());
+
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ public Builder addPoints(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.Builder builderForValue) {
+ if (pointsBuilder_ == null) {
+ ensurePointsIsMutable();
+ points_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ pointsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
}
- if (polygon_ != null) {
- output.writeMessage(3, getPolygon());
+
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ public Builder addAllPoints(
+ java.lang.Iterable extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point> values) {
+ if (pointsBuilder_ == null) {
+ ensurePointsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, points_);
+ onChanged();
+ } else {
+ pointsBuilder_.addAllMessages(values);
+ }
+ return this;
}
- if (multiPoint_ != null) {
- output.writeMessage(4, getMultiPoint());
+
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ public Builder clearPoints() {
+ if (pointsBuilder_ == null) {
+ points_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ pointsBuilder_.clear();
+ }
+ return this;
}
- if (multiLineString_ != null) {
- output.writeMessage(5, getMultiLineString());
+
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ public Builder removePoints(int index) {
+ if (pointsBuilder_ == null) {
+ ensurePointsIsMutable();
+ points_.remove(index);
+ onChanged();
+ } else {
+ pointsBuilder_.remove(index);
+ }
+ return this;
}
- if (multiPolygon_ != null) {
- output.writeMessage(6, getMultiPolygon());
+
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.Builder getPointsBuilder(
+ int index) {
+ return getPointsFieldBuilder().getBuilder(index);
}
- if (geometryCollection_ != null) {
- output.writeMessage(7, getGeometryCollection());
+
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PointOrBuilder getPointsOrBuilder(
+ int index) {
+ if (pointsBuilder_ == null) {
+ return points_.get(index);
+ } else {
+ return pointsBuilder_.getMessageOrBuilder(index);
+ }
}
- unknownFields.writeTo(output);
- }
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (point_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getPoint());
- }
- if (lineString_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, getLineString());
- }
- if (polygon_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, getPolygon());
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PointOrBuilder>
+ getPointsOrBuilderList() {
+ if (pointsBuilder_ != null) {
+ return pointsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(points_);
+ }
}
- if (multiPoint_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, getMultiPoint());
+
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.Builder addPointsBuilder() {
+ return getPointsFieldBuilder().addBuilder(
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.getDefaultInstance());
}
- if (multiLineString_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(5, getMultiLineString());
+
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.Builder addPointsBuilder(
+ int index) {
+ return getPointsFieldBuilder().addBuilder(
+ index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.getDefaultInstance());
}
- if (multiPolygon_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(6, getMultiPolygon());
+
+ /**
+ * repeated .pojo.Point points = 1;
+ */
+ public java.util.Listrepeated .pojo.LineString lineStrings = 2;
+ */
+ public java.util.Listrepeated .pojo.LineString lineStrings = 2;
+ */
+ public int getLineStringsCount() {
+ if (lineStringsBuilder_ == null) {
+ return lineStrings_.size();
+ } else {
+ return lineStringsBuilder_.getCount();
+ }
}
- if (hasLineString() != other.hasLineString()) return false;
- if (hasLineString()) {
- if (!getLineString()
- .equals(other.getLineString())) return false;
+
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString getLineStrings(int index) {
+ if (lineStringsBuilder_ == null) {
+ return lineStrings_.get(index);
+ } else {
+ return lineStringsBuilder_.getMessage(index);
+ }
}
- if (hasPolygon() != other.hasPolygon()) return false;
- if (hasPolygon()) {
- if (!getPolygon()
- .equals(other.getPolygon())) return false;
+
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ public Builder setLineStrings(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString value) {
+ if (lineStringsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLineStringsIsMutable();
+ lineStrings_.set(index, value);
+ onChanged();
+ } else {
+ lineStringsBuilder_.setMessage(index, value);
+ }
+ return this;
}
- if (hasMultiPoint() != other.hasMultiPoint()) return false;
- if (hasMultiPoint()) {
- if (!getMultiPoint()
- .equals(other.getMultiPoint())) return false;
+
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ public Builder setLineStrings(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.Builder builderForValue) {
+ if (lineStringsBuilder_ == null) {
+ ensureLineStringsIsMutable();
+ lineStrings_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ lineStringsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
}
- if (hasMultiLineString() != other.hasMultiLineString()) return false;
- if (hasMultiLineString()) {
- if (!getMultiLineString()
- .equals(other.getMultiLineString())) return false;
+
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ public Builder addLineStrings(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString value) {
+ if (lineStringsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLineStringsIsMutable();
+ lineStrings_.add(value);
+ onChanged();
+ } else {
+ lineStringsBuilder_.addMessage(value);
+ }
+ return this;
}
- if (hasMultiPolygon() != other.hasMultiPolygon()) return false;
- if (hasMultiPolygon()) {
- if (!getMultiPolygon()
- .equals(other.getMultiPolygon())) return false;
+
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ public Builder addLineStrings(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString value) {
+ if (lineStringsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLineStringsIsMutable();
+ lineStrings_.add(index, value);
+ onChanged();
+ } else {
+ lineStringsBuilder_.addMessage(index, value);
+ }
+ return this;
}
- if (hasGeometryCollection() != other.hasGeometryCollection()) return false;
- if (hasGeometryCollection()) {
- if (!getGeometryCollection()
- .equals(other.getGeometryCollection())) return false;
+
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ public Builder addLineStrings(
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.Builder builderForValue) {
+ if (lineStringsBuilder_ == null) {
+ ensureLineStringsIsMutable();
+ lineStrings_.add(builderForValue.build());
+ onChanged();
+ } else {
+ lineStringsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
}
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ public Builder addLineStrings(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.Builder builderForValue) {
+ if (lineStringsBuilder_ == null) {
+ ensureLineStringsIsMutable();
+ lineStrings_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ lineStringsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
}
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasPoint()) {
- hash = (37 * hash) + POINT_FIELD_NUMBER;
- hash = (53 * hash) + getPoint().hashCode();
- }
- if (hasLineString()) {
- hash = (37 * hash) + LINESTRING_FIELD_NUMBER;
- hash = (53 * hash) + getLineString().hashCode();
- }
- if (hasPolygon()) {
- hash = (37 * hash) + POLYGON_FIELD_NUMBER;
- hash = (53 * hash) + getPolygon().hashCode();
+
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ public Builder addAllLineStrings(
+ java.lang.Iterable extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString> values) {
+ if (lineStringsBuilder_ == null) {
+ ensureLineStringsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, lineStrings_);
+ onChanged();
+ } else {
+ lineStringsBuilder_.addAllMessages(values);
+ }
+ return this;
}
- if (hasMultiPoint()) {
- hash = (37 * hash) + MULTIPOINT_FIELD_NUMBER;
- hash = (53 * hash) + getMultiPoint().hashCode();
+
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ public Builder clearLineStrings() {
+ if (lineStringsBuilder_ == null) {
+ lineStrings_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ lineStringsBuilder_.clear();
+ }
+ return this;
}
- if (hasMultiLineString()) {
- hash = (37 * hash) + MULTILINESTRING_FIELD_NUMBER;
- hash = (53 * hash) + getMultiLineString().hashCode();
+
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ public Builder removeLineStrings(int index) {
+ if (lineStringsBuilder_ == null) {
+ ensureLineStringsIsMutable();
+ lineStrings_.remove(index);
+ onChanged();
+ } else {
+ lineStringsBuilder_.remove(index);
+ }
+ return this;
}
- if (hasMultiPolygon()) {
- hash = (37 * hash) + MULTIPOLYGON_FIELD_NUMBER;
- hash = (53 * hash) + getMultiPolygon().hashCode();
+
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.Builder getLineStringsBuilder(
+ int index) {
+ return getLineStringsFieldBuilder().getBuilder(index);
}
- if (hasGeometryCollection()) {
- hash = (37 * hash) + GEOMETRYCOLLECTION_FIELD_NUMBER;
- hash = (53 * hash) + getGeometryCollection().hashCode();
+
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineStringOrBuilder getLineStringsOrBuilder(
+ int index) {
+ if (lineStringsBuilder_ == null) {
+ return lineStrings_.get(index);
+ } else {
+ return lineStringsBuilder_.getMessageOrBuilder(index);
+ }
}
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Geometry parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineStringOrBuilder>
+ getLineStringsOrBuilderList() {
+ if (lineStringsBuilder_ != null) {
+ return lineStringsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(lineStrings_);
+ }
+ }
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Geometry parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.Builder addLineStringsBuilder() {
+ return getLineStringsFieldBuilder().addBuilder(
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.getDefaultInstance());
+ }
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Geometry parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.Builder addLineStringsBuilder(
+ int index) {
+ return getLineStringsFieldBuilder().addBuilder(
+ index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.getDefaultInstance());
+ }
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Geometry parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
+ /**
+ * repeated .pojo.LineString lineStrings = 2;
+ */
+ public java.util.Listrepeated .pojo.Polygon polygons = 3;
+ */
+ public java.util.Listrepeated .pojo.Polygon polygons = 3;
+ */
+ public int getPolygonsCount() {
+ if (polygonsBuilder_ == null) {
+ return polygons_.size();
+ } else {
+ return polygonsBuilder_.getCount();
+ }
+ }
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Geometry parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
+ /**
+ * repeated .pojo.Polygon polygons = 3;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon getPolygons(int index) {
+ if (polygonsBuilder_ == null) {
+ return polygons_.get(index);
+ } else {
+ return polygonsBuilder_.getMessage(index);
+ }
+ }
- public static org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Geometry parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
+ /**
+ * repeated .pojo.Polygon polygons = 3;
+ */
+ public Builder setPolygons(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon value) {
+ if (polygonsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePolygonsIsMutable();
+ polygons_.set(index, value);
+ onChanged();
+ } else {
+ polygonsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Geometry prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- return new Builder(parent);
- }
-
- /**
- *
- * geometry 包含了所有jts规范中所罗列的Geometry类型 每个Geometry允许且仅允许其中一种对象非空
- *
- * repeated .pojo.Polygon polygons = 3;
+ */
+ public Builder setPolygons(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.Builder builderForValue) {
+ if (polygonsBuilder_ == null) {
+ ensurePolygonsIsMutable();
+ polygons_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ polygonsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
}
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
+ /**
+ * repeated .pojo.Polygon polygons = 3;
+ */
+ public Builder addPolygons(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon value) {
+ if (polygonsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePolygonsIsMutable();
+ polygons_.add(value);
+ onChanged();
+ } else {
+ polygonsBuilder_.addMessage(value);
+ }
+ return this;
}
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
+ /**
+ * repeated .pojo.Polygon polygons = 3;
+ */
+ public Builder addPolygons(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon value) {
+ if (polygonsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePolygonsIsMutable();
+ polygons_.add(index, value);
+ onChanged();
+ } else {
+ polygonsBuilder_.addMessage(index, value);
}
+ return this;
}
- @java.lang.Override
- public Builder clear() {
- super.clear();
- if (pointBuilder_ == null) {
- point_ = null;
+ /**
+ * repeated .pojo.Polygon polygons = 3;
+ */
+ public Builder addPolygons(
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.Builder builderForValue) {
+ if (polygonsBuilder_ == null) {
+ ensurePolygonsIsMutable();
+ polygons_.add(builderForValue.build());
+ onChanged();
} else {
- point_ = null;
- pointBuilder_ = null;
+ polygonsBuilder_.addMessage(builderForValue.build());
}
- if (lineStringBuilder_ == null) {
- lineString_ = null;
+ return this;
+ }
+
+ /**
+ * repeated .pojo.Polygon polygons = 3;
+ */
+ public Builder addPolygons(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.Builder builderForValue) {
+ if (polygonsBuilder_ == null) {
+ ensurePolygonsIsMutable();
+ polygons_.add(index, builderForValue.build());
+ onChanged();
} else {
- lineString_ = null;
- lineStringBuilder_ = null;
+ polygonsBuilder_.addMessage(index, builderForValue.build());
}
- if (polygonBuilder_ == null) {
- polygon_ = null;
+ return this;
+ }
+
+ /**
+ * repeated .pojo.Polygon polygons = 3;
+ */
+ public Builder addAllPolygons(
+ java.lang.Iterable extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon> values) {
+ if (polygonsBuilder_ == null) {
+ ensurePolygonsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, polygons_);
+ onChanged();
} else {
- polygon_ = null;
- polygonBuilder_ = null;
+ polygonsBuilder_.addAllMessages(values);
}
- if (multiPointBuilder_ == null) {
- multiPoint_ = null;
+ return this;
+ }
+
+ /**
+ * repeated .pojo.Polygon polygons = 3;
+ */
+ public Builder clearPolygons() {
+ if (polygonsBuilder_ == null) {
+ polygons_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
} else {
- multiPoint_ = null;
- multiPointBuilder_ = null;
+ polygonsBuilder_.clear();
}
- if (multiLineStringBuilder_ == null) {
- multiLineString_ = null;
+ return this;
+ }
+
+ /**
+ * repeated .pojo.Polygon polygons = 3;
+ */
+ public Builder removePolygons(int index) {
+ if (polygonsBuilder_ == null) {
+ ensurePolygonsIsMutable();
+ polygons_.remove(index);
+ onChanged();
} else {
- multiLineString_ = null;
- multiLineStringBuilder_ = null;
+ polygonsBuilder_.remove(index);
}
- if (multiPolygonBuilder_ == null) {
- multiPolygon_ = null;
+ return this;
+ }
+
+ /**
+ * repeated .pojo.Polygon polygons = 3;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.Builder getPolygonsBuilder(
+ int index) {
+ return getPolygonsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ * repeated .pojo.Polygon polygons = 3;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PolygonOrBuilder getPolygonsOrBuilder(
+ int index) {
+ if (polygonsBuilder_ == null) {
+ return polygons_.get(index);
} else {
- multiPolygon_ = null;
- multiPolygonBuilder_ = null;
+ return polygonsBuilder_.getMessageOrBuilder(index);
}
- if (geometryCollectionBuilder_ == null) {
- geometryCollection_ = null;
+ }
+
+ /**
+ * repeated .pojo.Polygon polygons = 3;
+ */
+ public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PolygonOrBuilder>
+ getPolygonsOrBuilderList() {
+ if (polygonsBuilder_ != null) {
+ return polygonsBuilder_.getMessageOrBuilderList();
} else {
- geometryCollection_ = null;
- geometryCollectionBuilder_ = null;
+ return java.util.Collections.unmodifiableList(polygons_);
}
- return this;
}
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.internal_static_pojo_Geometry_descriptor;
+ /**
+ * repeated .pojo.Polygon polygons = 3;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.Builder addPolygonsBuilder() {
+ return getPolygonsFieldBuilder().addBuilder(
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.getDefaultInstance());
}
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Geometry getDefaultInstanceForType() {
- return org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Geometry.getDefaultInstance();
+ /**
+ * repeated .pojo.Polygon polygons = 3;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.Builder addPolygonsBuilder(
+ int index) {
+ return getPolygonsFieldBuilder().addBuilder(
+ index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.getDefaultInstance());
}
- @java.lang.Override
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Geometry build() {
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Geometry result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
+ /**
+ * repeated .pojo.Polygon polygons = 3;
+ */
+ public java.util.Listrepeated .pojo.MultiPoint multiPoints = 4;
+ */
+ public java.util.List.pojo.Point point = 1;
- *
- * @return Whether the point field is set.
+ * repeated .pojo.MultiPoint multiPoints = 4;
*/
- public boolean hasPoint() {
- return pointBuilder_ != null || point_ != null;
+ public int getMultiPointsCount() {
+ if (multiPointsBuilder_ == null) {
+ return multiPoints_.size();
+ } else {
+ return multiPointsBuilder_.getCount();
+ }
}
/**
- * .pojo.Point point = 1;
- *
- * @return The point.
+ * repeated .pojo.MultiPoint multiPoints = 4;
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point getPoint() {
- if (pointBuilder_ == null) {
- return point_ == null ? org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.getDefaultInstance() : point_;
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint getMultiPoints(int index) {
+ if (multiPointsBuilder_ == null) {
+ return multiPoints_.get(index);
} else {
- return pointBuilder_.getMessage();
+ return multiPointsBuilder_.getMessage(index);
}
}
/**
- * .pojo.Point point = 1;
+ * repeated .pojo.MultiPoint multiPoints = 4;
*/
- public Builder setPoint(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point value) {
- if (pointBuilder_ == null) {
+ public Builder setMultiPoints(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint value) {
+ if (multiPointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- point_ = value;
+ ensureMultiPointsIsMutable();
+ multiPoints_.set(index, value);
onChanged();
} else {
- pointBuilder_.setMessage(value);
+ multiPointsBuilder_.setMessage(index, value);
}
-
return this;
}
/**
- * .pojo.Point point = 1;
+ * repeated .pojo.MultiPoint multiPoints = 4;
*/
- public Builder setPoint(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.Builder builderForValue) {
- if (pointBuilder_ == null) {
- point_ = builderForValue.build();
+ public Builder setMultiPoints(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder builderForValue) {
+ if (multiPointsBuilder_ == null) {
+ ensureMultiPointsIsMutable();
+ multiPoints_.set(index, builderForValue.build());
onChanged();
} else {
- pointBuilder_.setMessage(builderForValue.build());
+ multiPointsBuilder_.setMessage(index, builderForValue.build());
}
-
return this;
}
/**
- * .pojo.Point point = 1;
+ * repeated .pojo.MultiPoint multiPoints = 4;
*/
- public Builder mergePoint(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point value) {
- if (pointBuilder_ == null) {
- if (point_ != null) {
- point_ =
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.newBuilder(point_).mergeFrom(value).buildPartial();
- } else {
- point_ = value;
+ public Builder addMultiPoints(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint value) {
+ if (multiPointsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ ensureMultiPointsIsMutable();
+ multiPoints_.add(value);
onChanged();
} else {
- pointBuilder_.mergeFrom(value);
+ multiPointsBuilder_.addMessage(value);
}
-
return this;
}
/**
- * .pojo.Point point = 1;
+ * repeated .pojo.MultiPoint multiPoints = 4;
*/
- public Builder clearPoint() {
- if (pointBuilder_ == null) {
- point_ = null;
+ public Builder addMultiPoints(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint value) {
+ if (multiPointsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMultiPointsIsMutable();
+ multiPoints_.add(index, value);
onChanged();
} else {
- point_ = null;
- pointBuilder_ = null;
+ multiPointsBuilder_.addMessage(index, value);
}
-
return this;
}
/**
- * .pojo.Point point = 1;
+ * repeated .pojo.MultiPoint multiPoints = 4;
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.Builder getPointBuilder() {
-
- onChanged();
- return getPointFieldBuilder().getBuilder();
- }
-
- /**
- * .pojo.Point point = 1;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PointOrBuilder getPointOrBuilder() {
- if (pointBuilder_ != null) {
- return pointBuilder_.getMessageOrBuilder();
+ public Builder addMultiPoints(
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder builderForValue) {
+ if (multiPointsBuilder_ == null) {
+ ensureMultiPointsIsMutable();
+ multiPoints_.add(builderForValue.build());
+ onChanged();
} else {
- return point_ == null ?
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.getDefaultInstance() : point_;
+ multiPointsBuilder_.addMessage(builderForValue.build());
}
+ return this;
}
/**
- * .pojo.Point point = 1;
+ * repeated .pojo.MultiPoint multiPoints = 4;
*/
- private com.google.protobuf.SingleFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PointOrBuilder>
- getPointFieldBuilder() {
- if (pointBuilder_ == null) {
- pointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PointOrBuilder>(
- getPoint(),
- getParentForChildren(),
- isClean());
- point_ = null;
+ public Builder addMultiPoints(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder builderForValue) {
+ if (multiPointsBuilder_ == null) {
+ ensureMultiPointsIsMutable();
+ multiPoints_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ multiPointsBuilder_.addMessage(index, builderForValue.build());
}
- return pointBuilder_;
- }
-
- private org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString lineString_;
- private com.google.protobuf.SingleFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineStringOrBuilder> lineStringBuilder_;
-
- /**
- * .pojo.LineString lineString = 2;
- *
- * @return Whether the lineString field is set.
- */
- public boolean hasLineString() {
- return lineStringBuilder_ != null || lineString_ != null;
+ return this;
}
/**
- * .pojo.LineString lineString = 2;
- *
- * @return The lineString.
+ * repeated .pojo.MultiPoint multiPoints = 4;
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString getLineString() {
- if (lineStringBuilder_ == null) {
- return lineString_ == null ? org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.getDefaultInstance() : lineString_;
+ public Builder addAllMultiPoints(
+ java.lang.Iterable extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint> values) {
+ if (multiPointsBuilder_ == null) {
+ ensureMultiPointsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, multiPoints_);
+ onChanged();
} else {
- return lineStringBuilder_.getMessage();
+ multiPointsBuilder_.addAllMessages(values);
}
+ return this;
}
/**
- * .pojo.LineString lineString = 2;
+ * repeated .pojo.MultiPoint multiPoints = 4;
*/
- public Builder setLineString(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString value) {
- if (lineStringBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- lineString_ = value;
+ public Builder clearMultiPoints() {
+ if (multiPointsBuilder_ == null) {
+ multiPoints_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
- lineStringBuilder_.setMessage(value);
+ multiPointsBuilder_.clear();
}
-
return this;
}
/**
- * .pojo.LineString lineString = 2;
+ * repeated .pojo.MultiPoint multiPoints = 4;
*/
- public Builder setLineString(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.Builder builderForValue) {
- if (lineStringBuilder_ == null) {
- lineString_ = builderForValue.build();
+ public Builder removeMultiPoints(int index) {
+ if (multiPointsBuilder_ == null) {
+ ensureMultiPointsIsMutable();
+ multiPoints_.remove(index);
onChanged();
} else {
- lineStringBuilder_.setMessage(builderForValue.build());
+ multiPointsBuilder_.remove(index);
}
-
return this;
}
/**
- * .pojo.LineString lineString = 2;
+ * repeated .pojo.MultiPoint multiPoints = 4;
*/
- public Builder mergeLineString(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString value) {
- if (lineStringBuilder_ == null) {
- if (lineString_ != null) {
- lineString_ =
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.newBuilder(lineString_).mergeFrom(value).buildPartial();
- } else {
- lineString_ = value;
- }
- onChanged();
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder getMultiPointsBuilder(
+ int index) {
+ return getMultiPointsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ * repeated .pojo.MultiPoint multiPoints = 4;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPointOrBuilder getMultiPointsOrBuilder(
+ int index) {
+ if (multiPointsBuilder_ == null) {
+ return multiPoints_.get(index);
} else {
- lineStringBuilder_.mergeFrom(value);
+ return multiPointsBuilder_.getMessageOrBuilder(index);
}
-
- return this;
}
/**
- * .pojo.LineString lineString = 2;
+ * repeated .pojo.MultiPoint multiPoints = 4;
*/
- public Builder clearLineString() {
- if (lineStringBuilder_ == null) {
- lineString_ = null;
- onChanged();
+ public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPointOrBuilder>
+ getMultiPointsOrBuilderList() {
+ if (multiPointsBuilder_ != null) {
+ return multiPointsBuilder_.getMessageOrBuilderList();
} else {
- lineString_ = null;
- lineStringBuilder_ = null;
+ return java.util.Collections.unmodifiableList(multiPoints_);
}
-
- return this;
}
/**
- * .pojo.LineString lineString = 2;
+ * repeated .pojo.MultiPoint multiPoints = 4;
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.Builder getLineStringBuilder() {
-
- onChanged();
- return getLineStringFieldBuilder().getBuilder();
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder addMultiPointsBuilder() {
+ return getMultiPointsFieldBuilder().addBuilder(
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.getDefaultInstance());
}
/**
- * .pojo.LineString lineString = 2;
+ * repeated .pojo.MultiPoint multiPoints = 4;
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineStringOrBuilder getLineStringOrBuilder() {
- if (lineStringBuilder_ != null) {
- return lineStringBuilder_.getMessageOrBuilder();
- } else {
- return lineString_ == null ?
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.getDefaultInstance() : lineString_;
- }
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder addMultiPointsBuilder(
+ int index) {
+ return getMultiPointsFieldBuilder().addBuilder(
+ index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.getDefaultInstance());
}
/**
- * .pojo.LineString lineString = 2;
+ * repeated .pojo.MultiPoint multiPoints = 4;
*/
- private com.google.protobuf.SingleFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineStringOrBuilder>
- getLineStringFieldBuilder() {
- if (lineStringBuilder_ == null) {
- lineStringBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineStringOrBuilder>(
- getLineString(),
+ public java.util.List.pojo.Polygon polygon = 3;
- *
- * @return Whether the polygon field is set.
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
*/
- public boolean hasPolygon() {
- return polygonBuilder_ != null || polygon_ != null;
+ public java.util.List.pojo.Polygon polygon = 3;
- *
- * @return The polygon.
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon getPolygon() {
- if (polygonBuilder_ == null) {
- return polygon_ == null ? org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.getDefaultInstance() : polygon_;
+ public int getMultiLineStringsCount() {
+ if (multiLineStringsBuilder_ == null) {
+ return multiLineStrings_.size();
} else {
- return polygonBuilder_.getMessage();
+ return multiLineStringsBuilder_.getCount();
}
}
/**
- * .pojo.Polygon polygon = 3;
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
*/
- public Builder setPolygon(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon value) {
- if (polygonBuilder_ == null) {
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString getMultiLineStrings(int index) {
+ if (multiLineStringsBuilder_ == null) {
+ return multiLineStrings_.get(index);
+ } else {
+ return multiLineStringsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
+ */
+ public Builder setMultiLineStrings(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString value) {
+ if (multiLineStringsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- polygon_ = value;
+ ensureMultiLineStringsIsMutable();
+ multiLineStrings_.set(index, value);
onChanged();
} else {
- polygonBuilder_.setMessage(value);
+ multiLineStringsBuilder_.setMessage(index, value);
}
-
return this;
}
/**
- * .pojo.Polygon polygon = 3;
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
*/
- public Builder setPolygon(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.Builder builderForValue) {
- if (polygonBuilder_ == null) {
- polygon_ = builderForValue.build();
+ public Builder setMultiLineStrings(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder builderForValue) {
+ if (multiLineStringsBuilder_ == null) {
+ ensureMultiLineStringsIsMutable();
+ multiLineStrings_.set(index, builderForValue.build());
onChanged();
} else {
- polygonBuilder_.setMessage(builderForValue.build());
+ multiLineStringsBuilder_.setMessage(index, builderForValue.build());
}
-
return this;
}
/**
- * .pojo.Polygon polygon = 3;
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
*/
- public Builder mergePolygon(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon value) {
- if (polygonBuilder_ == null) {
- if (polygon_ != null) {
- polygon_ =
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.newBuilder(polygon_).mergeFrom(value).buildPartial();
- } else {
- polygon_ = value;
+ public Builder addMultiLineStrings(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString value) {
+ if (multiLineStringsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ ensureMultiLineStringsIsMutable();
+ multiLineStrings_.add(value);
onChanged();
} else {
- polygonBuilder_.mergeFrom(value);
+ multiLineStringsBuilder_.addMessage(value);
}
-
return this;
}
/**
- * .pojo.Polygon polygon = 3;
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
*/
- public Builder clearPolygon() {
- if (polygonBuilder_ == null) {
- polygon_ = null;
+ public Builder addMultiLineStrings(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString value) {
+ if (multiLineStringsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMultiLineStringsIsMutable();
+ multiLineStrings_.add(index, value);
onChanged();
} else {
- polygon_ = null;
- polygonBuilder_ = null;
+ multiLineStringsBuilder_.addMessage(index, value);
}
-
return this;
}
/**
- * .pojo.Polygon polygon = 3;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.Builder getPolygonBuilder() {
-
- onChanged();
- return getPolygonFieldBuilder().getBuilder();
- }
-
- /**
- * .pojo.Polygon polygon = 3;
- */
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PolygonOrBuilder getPolygonOrBuilder() {
- if (polygonBuilder_ != null) {
- return polygonBuilder_.getMessageOrBuilder();
- } else {
- return polygon_ == null ?
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.getDefaultInstance() : polygon_;
- }
- }
-
- /**
- * .pojo.Polygon polygon = 3;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PolygonOrBuilder>
- getPolygonFieldBuilder() {
- if (polygonBuilder_ == null) {
- polygonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PolygonOrBuilder>(
- getPolygon(),
- getParentForChildren(),
- isClean());
- polygon_ = null;
- }
- return polygonBuilder_;
- }
-
- private org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint multiPoint_;
- private com.google.protobuf.SingleFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPointOrBuilder> multiPointBuilder_;
-
- /**
- * .pojo.MultiPoint multiPoint = 4;
- *
- * @return Whether the multiPoint field is set.
- */
- public boolean hasMultiPoint() {
- return multiPointBuilder_ != null || multiPoint_ != null;
- }
-
- /**
- * .pojo.MultiPoint multiPoint = 4;
- *
- * @return The multiPoint.
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint getMultiPoint() {
- if (multiPointBuilder_ == null) {
- return multiPoint_ == null ? org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.getDefaultInstance() : multiPoint_;
+ public Builder addMultiLineStrings(
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder builderForValue) {
+ if (multiLineStringsBuilder_ == null) {
+ ensureMultiLineStringsIsMutable();
+ multiLineStrings_.add(builderForValue.build());
+ onChanged();
} else {
- return multiPointBuilder_.getMessage();
+ multiLineStringsBuilder_.addMessage(builderForValue.build());
}
+ return this;
}
/**
- * .pojo.MultiPoint multiPoint = 4;
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
*/
- public Builder setMultiPoint(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint value) {
- if (multiPointBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- multiPoint_ = value;
+ public Builder addMultiLineStrings(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder builderForValue) {
+ if (multiLineStringsBuilder_ == null) {
+ ensureMultiLineStringsIsMutable();
+ multiLineStrings_.add(index, builderForValue.build());
onChanged();
} else {
- multiPointBuilder_.setMessage(value);
+ multiLineStringsBuilder_.addMessage(index, builderForValue.build());
}
-
return this;
}
/**
- * .pojo.MultiPoint multiPoint = 4;
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
*/
- public Builder setMultiPoint(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder builderForValue) {
- if (multiPointBuilder_ == null) {
- multiPoint_ = builderForValue.build();
+ public Builder addAllMultiLineStrings(
+ java.lang.Iterable extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString> values) {
+ if (multiLineStringsBuilder_ == null) {
+ ensureMultiLineStringsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, multiLineStrings_);
onChanged();
} else {
- multiPointBuilder_.setMessage(builderForValue.build());
+ multiLineStringsBuilder_.addAllMessages(values);
}
-
return this;
}
/**
- * .pojo.MultiPoint multiPoint = 4;
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
*/
- public Builder mergeMultiPoint(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint value) {
- if (multiPointBuilder_ == null) {
- if (multiPoint_ != null) {
- multiPoint_ =
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.newBuilder(multiPoint_).mergeFrom(value).buildPartial();
- } else {
- multiPoint_ = value;
- }
+ public Builder clearMultiLineStrings() {
+ if (multiLineStringsBuilder_ == null) {
+ multiLineStrings_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
- multiPointBuilder_.mergeFrom(value);
+ multiLineStringsBuilder_.clear();
}
-
return this;
}
/**
- * .pojo.MultiPoint multiPoint = 4;
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
*/
- public Builder clearMultiPoint() {
- if (multiPointBuilder_ == null) {
- multiPoint_ = null;
+ public Builder removeMultiLineStrings(int index) {
+ if (multiLineStringsBuilder_ == null) {
+ ensureMultiLineStringsIsMutable();
+ multiLineStrings_.remove(index);
onChanged();
} else {
- multiPoint_ = null;
- multiPointBuilder_ = null;
+ multiLineStringsBuilder_.remove(index);
}
-
return this;
}
/**
- * .pojo.MultiPoint multiPoint = 4;
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder getMultiPointBuilder() {
-
- onChanged();
- return getMultiPointFieldBuilder().getBuilder();
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder getMultiLineStringsBuilder(
+ int index) {
+ return getMultiLineStringsFieldBuilder().getBuilder(index);
}
/**
- * .pojo.MultiPoint multiPoint = 4;
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPointOrBuilder getMultiPointOrBuilder() {
- if (multiPointBuilder_ != null) {
- return multiPointBuilder_.getMessageOrBuilder();
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder getMultiLineStringsOrBuilder(
+ int index) {
+ if (multiLineStringsBuilder_ == null) {
+ return multiLineStrings_.get(index);
} else {
- return multiPoint_ == null ?
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.getDefaultInstance() : multiPoint_;
+ return multiLineStringsBuilder_.getMessageOrBuilder(index);
}
}
/**
- * .pojo.MultiPoint multiPoint = 4;
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
*/
- private com.google.protobuf.SingleFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPointOrBuilder>
- getMultiPointFieldBuilder() {
- if (multiPointBuilder_ == null) {
- multiPointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPointOrBuilder>(
- getMultiPoint(),
- getParentForChildren(),
- isClean());
- multiPoint_ = null;
+ public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder>
+ getMultiLineStringsOrBuilderList() {
+ if (multiLineStringsBuilder_ != null) {
+ return multiLineStringsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(multiLineStrings_);
}
- return multiPointBuilder_;
}
- private org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString multiLineString_;
- private com.google.protobuf.SingleFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder> multiLineStringBuilder_;
-
/**
- * .pojo.MultiLineString multiLineString = 5;
- *
- * @return Whether the multiLineString field is set.
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
*/
- public boolean hasMultiLineString() {
- return multiLineStringBuilder_ != null || multiLineString_ != null;
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder addMultiLineStringsBuilder() {
+ return getMultiLineStringsFieldBuilder().addBuilder(
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.getDefaultInstance());
}
/**
- * .pojo.MultiLineString multiLineString = 5;
- *
- * @return The multiLineString.
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString getMultiLineString() {
- if (multiLineStringBuilder_ == null) {
- return multiLineString_ == null ? org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.getDefaultInstance() : multiLineString_;
- } else {
- return multiLineStringBuilder_.getMessage();
- }
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder addMultiLineStringsBuilder(
+ int index) {
+ return getMultiLineStringsFieldBuilder().addBuilder(
+ index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.getDefaultInstance());
}
/**
- * .pojo.MultiLineString multiLineString = 5;
+ * repeated .pojo.MultiLineString multiLineStrings = 5;
*/
- public Builder setMultiLineString(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString value) {
- if (multiLineStringBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- multiLineString_ = value;
- onChanged();
- } else {
- multiLineStringBuilder_.setMessage(value);
- }
-
- return this;
+ public java.util.List.pojo.MultiLineString multiLineString = 5;
- */
- public Builder setMultiLineString(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder builderForValue) {
- if (multiLineStringBuilder_ == null) {
- multiLineString_ = builderForValue.build();
- onChanged();
- } else {
- multiLineStringBuilder_.setMessage(builderForValue.build());
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder>
+ getMultiLineStringsFieldBuilder() {
+ if (multiLineStringsBuilder_ == null) {
+ multiLineStringsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder>(
+ multiLineStrings_,
+ ((bitField0_ & 0x00000010) != 0),
+ getParentForChildren(),
+ isClean());
+ multiLineStrings_ = null;
}
-
- return this;
+ return multiLineStringsBuilder_;
}
- /**
- * .pojo.MultiLineString multiLineString = 5;
- */
- public Builder mergeMultiLineString(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString value) {
- if (multiLineStringBuilder_ == null) {
- if (multiLineString_ != null) {
- multiLineString_ =
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.newBuilder(multiLineString_).mergeFrom(value).buildPartial();
- } else {
- multiLineString_ = value;
- }
- onChanged();
- } else {
- multiLineStringBuilder_.mergeFrom(value);
- }
+ private java.util.List.pojo.MultiLineString multiLineString = 5;
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
*/
- public Builder clearMultiLineString() {
- if (multiLineStringBuilder_ == null) {
- multiLineString_ = null;
- onChanged();
+ public java.util.List.pojo.MultiLineString multiLineString = 5;
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder getMultiLineStringBuilder() {
-
- onChanged();
- return getMultiLineStringFieldBuilder().getBuilder();
+ public int getMultiPolygonsCount() {
+ if (multiPolygonsBuilder_ == null) {
+ return multiPolygons_.size();
+ } else {
+ return multiPolygonsBuilder_.getCount();
+ }
}
/**
- * .pojo.MultiLineString multiLineString = 5;
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder getMultiLineStringOrBuilder() {
- if (multiLineStringBuilder_ != null) {
- return multiLineStringBuilder_.getMessageOrBuilder();
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon getMultiPolygons(int index) {
+ if (multiPolygonsBuilder_ == null) {
+ return multiPolygons_.get(index);
} else {
- return multiLineString_ == null ?
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.getDefaultInstance() : multiLineString_;
+ return multiPolygonsBuilder_.getMessage(index);
}
}
/**
- * .pojo.MultiLineString multiLineString = 5;
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
*/
- private com.google.protobuf.SingleFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder>
- getMultiLineStringFieldBuilder() {
- if (multiLineStringBuilder_ == null) {
- multiLineStringBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder>(
- getMultiLineString(),
- getParentForChildren(),
- isClean());
- multiLineString_ = null;
+ public Builder setMultiPolygons(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon value) {
+ if (multiPolygonsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMultiPolygonsIsMutable();
+ multiPolygons_.set(index, value);
+ onChanged();
+ } else {
+ multiPolygonsBuilder_.setMessage(index, value);
}
- return multiLineStringBuilder_;
+ return this;
}
- private org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon multiPolygon_;
- private com.google.protobuf.SingleFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygonOrBuilder> multiPolygonBuilder_;
-
/**
- * .pojo.MultiPolygon multiPolygon = 6;
- *
- * @return Whether the multiPolygon field is set.
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
*/
- public boolean hasMultiPolygon() {
- return multiPolygonBuilder_ != null || multiPolygon_ != null;
+ public Builder setMultiPolygons(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.Builder builderForValue) {
+ if (multiPolygonsBuilder_ == null) {
+ ensureMultiPolygonsIsMutable();
+ multiPolygons_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ multiPolygonsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
}
/**
- * .pojo.MultiPolygon multiPolygon = 6;
- *
- * @return The multiPolygon.
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon getMultiPolygon() {
- if (multiPolygonBuilder_ == null) {
- return multiPolygon_ == null ? org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.getDefaultInstance() : multiPolygon_;
+ public Builder addMultiPolygons(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon value) {
+ if (multiPolygonsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMultiPolygonsIsMutable();
+ multiPolygons_.add(value);
+ onChanged();
} else {
- return multiPolygonBuilder_.getMessage();
+ multiPolygonsBuilder_.addMessage(value);
}
+ return this;
}
/**
- * .pojo.MultiPolygon multiPolygon = 6;
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
*/
- public Builder setMultiPolygon(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon value) {
- if (multiPolygonBuilder_ == null) {
+ public Builder addMultiPolygons(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon value) {
+ if (multiPolygonsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- multiPolygon_ = value;
+ ensureMultiPolygonsIsMutable();
+ multiPolygons_.add(index, value);
onChanged();
} else {
- multiPolygonBuilder_.setMessage(value);
+ multiPolygonsBuilder_.addMessage(index, value);
}
-
return this;
}
/**
- * .pojo.MultiPolygon multiPolygon = 6;
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
*/
- public Builder setMultiPolygon(
+ public Builder addMultiPolygons(
org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.Builder builderForValue) {
- if (multiPolygonBuilder_ == null) {
- multiPolygon_ = builderForValue.build();
+ if (multiPolygonsBuilder_ == null) {
+ ensureMultiPolygonsIsMutable();
+ multiPolygons_.add(builderForValue.build());
onChanged();
} else {
- multiPolygonBuilder_.setMessage(builderForValue.build());
+ multiPolygonsBuilder_.addMessage(builderForValue.build());
}
-
return this;
}
/**
- * .pojo.MultiPolygon multiPolygon = 6;
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
*/
- public Builder mergeMultiPolygon(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon value) {
- if (multiPolygonBuilder_ == null) {
- if (multiPolygon_ != null) {
- multiPolygon_ =
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.newBuilder(multiPolygon_).mergeFrom(value).buildPartial();
- } else {
- multiPolygon_ = value;
- }
+ public Builder addMultiPolygons(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.Builder builderForValue) {
+ if (multiPolygonsBuilder_ == null) {
+ ensureMultiPolygonsIsMutable();
+ multiPolygons_.add(index, builderForValue.build());
onChanged();
} else {
- multiPolygonBuilder_.mergeFrom(value);
+ multiPolygonsBuilder_.addMessage(index, builderForValue.build());
}
-
return this;
}
/**
- * .pojo.MultiPolygon multiPolygon = 6;
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
*/
- public Builder clearMultiPolygon() {
- if (multiPolygonBuilder_ == null) {
- multiPolygon_ = null;
+ public Builder addAllMultiPolygons(
+ java.lang.Iterable extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon> values) {
+ if (multiPolygonsBuilder_ == null) {
+ ensureMultiPolygonsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, multiPolygons_);
onChanged();
} else {
- multiPolygon_ = null;
- multiPolygonBuilder_ = null;
+ multiPolygonsBuilder_.addAllMessages(values);
}
-
return this;
}
/**
- * .pojo.MultiPolygon multiPolygon = 6;
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.Builder getMultiPolygonBuilder() {
-
- onChanged();
- return getMultiPolygonFieldBuilder().getBuilder();
+ public Builder clearMultiPolygons() {
+ if (multiPolygonsBuilder_ == null) {
+ multiPolygons_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ } else {
+ multiPolygonsBuilder_.clear();
+ }
+ return this;
}
/**
- * .pojo.MultiPolygon multiPolygon = 6;
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygonOrBuilder getMultiPolygonOrBuilder() {
- if (multiPolygonBuilder_ != null) {
- return multiPolygonBuilder_.getMessageOrBuilder();
+ public Builder removeMultiPolygons(int index) {
+ if (multiPolygonsBuilder_ == null) {
+ ensureMultiPolygonsIsMutable();
+ multiPolygons_.remove(index);
+ onChanged();
} else {
- return multiPolygon_ == null ?
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.getDefaultInstance() : multiPolygon_;
+ multiPolygonsBuilder_.remove(index);
}
+ return this;
}
/**
- * .pojo.MultiPolygon multiPolygon = 6;
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
*/
- private com.google.protobuf.SingleFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygonOrBuilder>
- getMultiPolygonFieldBuilder() {
- if (multiPolygonBuilder_ == null) {
- multiPolygonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygonOrBuilder>(
- getMultiPolygon(),
- getParentForChildren(),
- isClean());
- multiPolygon_ = null;
- }
- return multiPolygonBuilder_;
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.Builder getMultiPolygonsBuilder(
+ int index) {
+ return getMultiPolygonsFieldBuilder().getBuilder(index);
}
- private org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection geometryCollection_;
- private com.google.protobuf.SingleFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollectionOrBuilder> geometryCollectionBuilder_;
+ /**
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygonOrBuilder getMultiPolygonsOrBuilder(
+ int index) {
+ if (multiPolygonsBuilder_ == null) {
+ return multiPolygons_.get(index);
+ } else {
+ return multiPolygonsBuilder_.getMessageOrBuilder(index);
+ }
+ }
/**
- * .pojo.GeometryCollection geometryCollection = 7;
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
+ */
+ public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygonOrBuilder>
+ getMultiPolygonsOrBuilderList() {
+ if (multiPolygonsBuilder_ != null) {
+ return multiPolygonsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(multiPolygons_);
+ }
+ }
+
+ /**
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.Builder addMultiPolygonsBuilder() {
+ return getMultiPolygonsFieldBuilder().addBuilder(
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.getDefaultInstance());
+ }
+
+ /**
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.Builder addMultiPolygonsBuilder(
+ int index) {
+ return getMultiPolygonsFieldBuilder().addBuilder(
+ index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPolygon.getDefaultInstance());
+ }
+
+ /**
+ * repeated .pojo.MultiPolygon multiPolygons = 6;
+ */
+ public java.util.List
+ * 允许嵌套
+ *
*
- * @return Whether the geometryCollection field is set.
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
*/
- public boolean hasGeometryCollection() {
- return geometryCollectionBuilder_ != null || geometryCollection_ != null;
+ public java.util.List.pojo.GeometryCollection geometryCollection = 7;
+ *
+ * 允许嵌套
+ *
*
- * @return The geometryCollection.
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection getGeometryCollection() {
- if (geometryCollectionBuilder_ == null) {
- return geometryCollection_ == null ? org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.getDefaultInstance() : geometryCollection_;
+ public int getGeometryCollectionsCount() {
+ if (geometryCollectionsBuilder_ == null) {
+ return geometryCollections_.size();
} else {
- return geometryCollectionBuilder_.getMessage();
+ return geometryCollectionsBuilder_.getCount();
}
}
/**
- * .pojo.GeometryCollection geometryCollection = 7;
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
*/
- public Builder setGeometryCollection(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection value) {
- if (geometryCollectionBuilder_ == null) {
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection getGeometryCollections(int index) {
+ if (geometryCollectionsBuilder_ == null) {
+ return geometryCollections_.get(index);
+ } else {
+ return geometryCollectionsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
+ */
+ public Builder setGeometryCollections(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection value) {
+ if (geometryCollectionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- geometryCollection_ = value;
+ ensureGeometryCollectionsIsMutable();
+ geometryCollections_.set(index, value);
onChanged();
} else {
- geometryCollectionBuilder_.setMessage(value);
+ geometryCollectionsBuilder_.setMessage(index, value);
}
-
return this;
}
/**
- * .pojo.GeometryCollection geometryCollection = 7;
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
*/
- public Builder setGeometryCollection(
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.Builder builderForValue) {
- if (geometryCollectionBuilder_ == null) {
- geometryCollection_ = builderForValue.build();
+ public Builder setGeometryCollections(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.Builder builderForValue) {
+ if (geometryCollectionsBuilder_ == null) {
+ ensureGeometryCollectionsIsMutable();
+ geometryCollections_.set(index, builderForValue.build());
onChanged();
} else {
- geometryCollectionBuilder_.setMessage(builderForValue.build());
+ geometryCollectionsBuilder_.setMessage(index, builderForValue.build());
}
-
return this;
}
/**
- * .pojo.GeometryCollection geometryCollection = 7;
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
*/
- public Builder mergeGeometryCollection(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection value) {
- if (geometryCollectionBuilder_ == null) {
- if (geometryCollection_ != null) {
- geometryCollection_ =
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.newBuilder(geometryCollection_).mergeFrom(value).buildPartial();
- } else {
- geometryCollection_ = value;
+ public Builder addGeometryCollections(org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection value) {
+ if (geometryCollectionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ ensureGeometryCollectionsIsMutable();
+ geometryCollections_.add(value);
onChanged();
} else {
- geometryCollectionBuilder_.mergeFrom(value);
+ geometryCollectionsBuilder_.addMessage(value);
}
-
return this;
}
/**
- * .pojo.GeometryCollection geometryCollection = 7;
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
*/
- public Builder clearGeometryCollection() {
- if (geometryCollectionBuilder_ == null) {
- geometryCollection_ = null;
+ public Builder addGeometryCollections(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection value) {
+ if (geometryCollectionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGeometryCollectionsIsMutable();
+ geometryCollections_.add(index, value);
onChanged();
} else {
- geometryCollection_ = null;
- geometryCollectionBuilder_ = null;
+ geometryCollectionsBuilder_.addMessage(index, value);
}
-
return this;
}
/**
- * .pojo.GeometryCollection geometryCollection = 7;
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.Builder getGeometryCollectionBuilder() {
-
- onChanged();
- return getGeometryCollectionFieldBuilder().getBuilder();
+ public Builder addGeometryCollections(
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.Builder builderForValue) {
+ if (geometryCollectionsBuilder_ == null) {
+ ensureGeometryCollectionsIsMutable();
+ geometryCollections_.add(builderForValue.build());
+ onChanged();
+ } else {
+ geometryCollectionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
}
/**
- * .pojo.GeometryCollection geometryCollection = 7;
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
*/
- public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollectionOrBuilder getGeometryCollectionOrBuilder() {
- if (geometryCollectionBuilder_ != null) {
- return geometryCollectionBuilder_.getMessageOrBuilder();
+ public Builder addGeometryCollections(
+ int index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.Builder builderForValue) {
+ if (geometryCollectionsBuilder_ == null) {
+ ensureGeometryCollectionsIsMutable();
+ geometryCollections_.add(index, builderForValue.build());
+ onChanged();
} else {
- return geometryCollection_ == null ?
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.getDefaultInstance() : geometryCollection_;
+ geometryCollectionsBuilder_.addMessage(index, builderForValue.build());
}
+ return this;
}
/**
- * .pojo.GeometryCollection geometryCollection = 7;
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
*/
- private com.google.protobuf.SingleFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollectionOrBuilder>
- getGeometryCollectionFieldBuilder() {
- if (geometryCollectionBuilder_ == null) {
- geometryCollectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.Builder, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollectionOrBuilder>(
- getGeometryCollection(),
- getParentForChildren(),
- isClean());
- geometryCollection_ = null;
- }
- return geometryCollectionBuilder_;
- }
+ public Builder addAllGeometryCollections(
+ java.lang.Iterable extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection> values) {
+ if (geometryCollectionsBuilder_ == null) {
+ ensureGeometryCollectionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, geometryCollections_);
+ onChanged();
+ } else {
+ geometryCollectionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
+ */
+ public Builder clearGeometryCollections() {
+ if (geometryCollectionsBuilder_ == null) {
+ geometryCollections_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ } else {
+ geometryCollectionsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
+ */
+ public Builder removeGeometryCollections(int index) {
+ if (geometryCollectionsBuilder_ == null) {
+ ensureGeometryCollectionsIsMutable();
+ geometryCollections_.remove(index);
+ onChanged();
+ } else {
+ geometryCollectionsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.Builder getGeometryCollectionsBuilder(
+ int index) {
+ return getGeometryCollectionsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollectionOrBuilder getGeometryCollectionsOrBuilder(
+ int index) {
+ if (geometryCollectionsBuilder_ == null) {
+ return geometryCollections_.get(index);
+ } else {
+ return geometryCollectionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
+ */
+ public java.util.List extends org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollectionOrBuilder>
+ getGeometryCollectionsOrBuilderList() {
+ if (geometryCollectionsBuilder_ != null) {
+ return geometryCollectionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(geometryCollections_);
+ }
+ }
+
+ /**
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.Builder addGeometryCollectionsBuilder() {
+ return getGeometryCollectionsFieldBuilder().addBuilder(
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.getDefaultInstance());
+ }
+
+ /**
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
+ */
+ public org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.Builder addGeometryCollectionsBuilder(
+ int index) {
+ return getGeometryCollectionsFieldBuilder().addBuilder(
+ index, org.wowtools.giscat.vector.pojo.proto.ProtoFeature.GeometryCollection.getDefaultInstance());
+ }
+
+ /**
+ *
+ * 允许嵌套
+ *
+ *
+ * repeated .pojo.GeometryCollection geometryCollections = 7;
+ */
+ public java.util.List
- * key、value id
- *
- *
- * repeated int32 doubleKeyIds = 1;
+ * .pojo.Point point = 1;
*
- * @return A list containing the doubleKeyIds.
+ * @return Whether the point field is set.
*/
- java.util.List
- * key、value id
- *
- *
- * repeated int32 doubleKeyIds = 1;
+ * .pojo.Point point = 1;
*
- * @return The count of doubleKeyIds.
+ * @return The point.
*/
- int getDoubleKeyIdsCount();
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Point getPoint();
/**
- *
- * key、value id
- *
- *
- * repeated int32 doubleKeyIds = 1;
- *
- * @param index The index of the element to return.
- * @return The doubleKeyIds at the given index.
+ * .pojo.Point point = 1;
*/
- int getDoubleKeyIds(int index);
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PointOrBuilder getPointOrBuilder();
/**
- * repeated int32 doubleValueIds = 2;
+ * .pojo.LineString lineString = 2;
*
- * @return A list containing the doubleValueIds.
+ * @return Whether the lineString field is set.
*/
- java.util.Listrepeated int32 doubleValueIds = 2;
+ * .pojo.LineString lineString = 2;
*
- * @return The count of doubleValueIds.
+ * @return The lineString.
*/
- int getDoubleValueIdsCount();
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineString getLineString();
/**
- * repeated int32 doubleValueIds = 2;
- *
- * @param index The index of the element to return.
- * @return The doubleValueIds at the given index.
+ * .pojo.LineString lineString = 2;
*/
- int getDoubleValueIds(int index);
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.LineStringOrBuilder getLineStringOrBuilder();
/**
- * repeated int32 floatKeyIds = 3;
+ * .pojo.Polygon polygon = 3;
*
- * @return A list containing the floatKeyIds.
+ * @return Whether the polygon field is set.
*/
- java.util.Listrepeated int32 floatKeyIds = 3;
+ * .pojo.Polygon polygon = 3;
*
- * @return The count of floatKeyIds.
+ * @return The polygon.
*/
- int getFloatKeyIdsCount();
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.Polygon getPolygon();
/**
- * repeated int32 floatKeyIds = 3;
- *
- * @param index The index of the element to return.
- * @return The floatKeyIds at the given index.
+ * .pojo.Polygon polygon = 3;
*/
- int getFloatKeyIds(int index);
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.PolygonOrBuilder getPolygonOrBuilder();
/**
- * repeated int32 floatValueIds = 4;
+ * .pojo.MultiPoint multiPoint = 4;
*
- * @return A list containing the floatValueIds.
+ * @return Whether the multiPoint field is set.
*/
- java.util.Listrepeated int32 floatValueIds = 4;
+ * .pojo.MultiPoint multiPoint = 4;
*
- * @return The count of floatValueIds.
+ * @return The multiPoint.
*/
- int getFloatValueIdsCount();
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPoint getMultiPoint();
/**
- * repeated int32 floatValueIds = 4;
- *
- * @param index The index of the element to return.
- * @return The floatValueIds at the given index.
+ * .pojo.MultiPoint multiPoint = 4;
*/
- int getFloatValueIds(int index);
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiPointOrBuilder getMultiPointOrBuilder();
/**
- * repeated int32 sint32KeyIds = 5;
+ * .pojo.MultiLineString multiLineString = 5;
*
- * @return A list containing the sint32KeyIds.
+ * @return Whether the multiLineString field is set.
*/
- java.util.Listrepeated int32 sint32KeyIds = 5;
+ * .pojo.MultiLineString multiLineString = 5;
*
- * @return The count of sint32KeyIds.
+ * @return The multiLineString.
*/
- int getSint32KeyIdsCount();
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineString getMultiLineString();
/**
- * repeated int32 sint32KeyIds = 5;
- *
- * @param index The index of the element to return.
- * @return The sint32KeyIds at the given index.
+ * .pojo.MultiLineString multiLineString = 5;
*/
- int getSint32KeyIds(int index);
+ org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MultiLineStringOrBuilder getMultiLineStringOrBuilder();
/**
- * repeated int32 sint32ValueIds = 6;
+ * .pojo.MultiPolygon multiPolygon = 6;
*
- * @return A list containing the sint32ValueIds.
+ * @return Whether the multiPolygon field is set.
*/
- java.util.List