Package vector_tile
Class VectorTile.Tile.Feature.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<VectorTile.Tile.Feature.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<VectorTile.Tile.Feature.Builder>
vector_tile.VectorTile.Tile.Feature.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,VectorTile.Tile.FeatureOrBuilder
- Enclosing class:
VectorTile.Tile.Feature
public static final class VectorTile.Tile.Feature.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<VectorTile.Tile.Feature.Builder>
implements VectorTile.Tile.FeatureOrBuilder
Features are described in section 4.2 of the specificationProtobuf type
vector_tile.Tile.Feature-
Method Summary
Modifier and TypeMethodDescriptionaddAllGeometry(Iterable<? extends Integer> values) Contains a stream of commands and parameters (vertices).addAllTags(Iterable<? extends Integer> values) Tags of this feature are encoded as repeated pairs of integers.addGeometry(int value) Contains a stream of commands and parameters (vertices).addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addTags(int value) Tags of this feature are encoded as repeated pairs of integers.build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Contains a stream of commands and parameters (vertices).clearId()optional uint64 id = 1 [default = 0];clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Tags of this feature are encoded as repeated pairs of integers.The type of geometry stored in this feature.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintgetGeometry(int index) Contains a stream of commands and parameters (vertices).intContains a stream of commands and parameters (vertices).Contains a stream of commands and parameters (vertices).longgetId()optional uint64 id = 1 [default = 0];intgetTags(int index) Tags of this feature are encoded as repeated pairs of integers.intTags of this feature are encoded as repeated pairs of integers.Tags of this feature are encoded as repeated pairs of integers.getType()The type of geometry stored in this feature.booleanhasId()optional uint64 id = 1 [default = 0];booleanhasType()The type of geometry stored in this feature.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(VectorTile.Tile.Feature other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setGeometry(int index, int value) Contains a stream of commands and parameters (vertices).setId(long value) optional uint64 id = 1 [default = 0];setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTags(int index, int value) Tags of this feature are encoded as repeated pairs of integers.setType(VectorTile.Tile.GeomType value) The type of geometry stored in this feature.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<VectorTile.Tile.Feature.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<VectorTile.Tile.Feature.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<VectorTile.Tile.Feature.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<VectorTile.Tile.Feature.Builder>
-
setField
public VectorTile.Tile.Feature.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VectorTile.Tile.Feature.Builder>
-
clearField
public VectorTile.Tile.Feature.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VectorTile.Tile.Feature.Builder>
-
clearOneof
public VectorTile.Tile.Feature.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<VectorTile.Tile.Feature.Builder>
-
setRepeatedField
public VectorTile.Tile.Feature.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VectorTile.Tile.Feature.Builder>
-
addRepeatedField
public VectorTile.Tile.Feature.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VectorTile.Tile.Feature.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VectorTile.Tile.Feature.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<VectorTile.Tile.Feature.Builder>
-
mergeFrom
public VectorTile.Tile.Feature.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VectorTile.Tile.Feature.Builder>- Throws:
IOException
-
hasId
public boolean hasId()optional uint64 id = 1 [default = 0];- Specified by:
hasIdin interfaceVectorTile.Tile.FeatureOrBuilder
-
getId
public long getId()optional uint64 id = 1 [default = 0];- Specified by:
getIdin interfaceVectorTile.Tile.FeatureOrBuilder
-
setId
optional uint64 id = 1 [default = 0]; -
clearId
optional uint64 id = 1 [default = 0]; -
getTagsList
Tags of this feature are encoded as repeated pairs of integers. A detailed description of tags is located in sections 4.2 and 4.4 of the specification
repeated uint32 tags = 2 [packed = true];- Specified by:
getTagsListin interfaceVectorTile.Tile.FeatureOrBuilder
-
getTagsCount
public int getTagsCount()Tags of this feature are encoded as repeated pairs of integers. A detailed description of tags is located in sections 4.2 and 4.4 of the specification
repeated uint32 tags = 2 [packed = true];- Specified by:
getTagsCountin interfaceVectorTile.Tile.FeatureOrBuilder
-
getTags
public int getTags(int index) Tags of this feature are encoded as repeated pairs of integers. A detailed description of tags is located in sections 4.2 and 4.4 of the specification
repeated uint32 tags = 2 [packed = true];- Specified by:
getTagsin interfaceVectorTile.Tile.FeatureOrBuilder
-
setTags
Tags of this feature are encoded as repeated pairs of integers. A detailed description of tags is located in sections 4.2 and 4.4 of the specification
repeated uint32 tags = 2 [packed = true]; -
addTags
Tags of this feature are encoded as repeated pairs of integers. A detailed description of tags is located in sections 4.2 and 4.4 of the specification
repeated uint32 tags = 2 [packed = true]; -
addAllTags
Tags of this feature are encoded as repeated pairs of integers. A detailed description of tags is located in sections 4.2 and 4.4 of the specification
repeated uint32 tags = 2 [packed = true]; -
clearTags
Tags of this feature are encoded as repeated pairs of integers. A detailed description of tags is located in sections 4.2 and 4.4 of the specification
repeated uint32 tags = 2 [packed = true]; -
hasType
public boolean hasType()The type of geometry stored in this feature.
optional .vector_tile.Tile.GeomType type = 3 [default = UNKNOWN];- Specified by:
hasTypein interfaceVectorTile.Tile.FeatureOrBuilder
-
getType
The type of geometry stored in this feature.
optional .vector_tile.Tile.GeomType type = 3 [default = UNKNOWN];- Specified by:
getTypein interfaceVectorTile.Tile.FeatureOrBuilder
-
setType
The type of geometry stored in this feature.
optional .vector_tile.Tile.GeomType type = 3 [default = UNKNOWN]; -
clearType
The type of geometry stored in this feature.
optional .vector_tile.Tile.GeomType type = 3 [default = UNKNOWN]; -
getGeometryList
Contains a stream of commands and parameters (vertices). A detailed description on geometry encoding is located in section 4.3 of the specification.
repeated uint32 geometry = 4 [packed = true];- Specified by:
getGeometryListin interfaceVectorTile.Tile.FeatureOrBuilder
-
getGeometryCount
public int getGeometryCount()Contains a stream of commands and parameters (vertices). A detailed description on geometry encoding is located in section 4.3 of the specification.
repeated uint32 geometry = 4 [packed = true];- Specified by:
getGeometryCountin interfaceVectorTile.Tile.FeatureOrBuilder
-
getGeometry
public int getGeometry(int index) Contains a stream of commands and parameters (vertices). A detailed description on geometry encoding is located in section 4.3 of the specification.
repeated uint32 geometry = 4 [packed = true];- Specified by:
getGeometryin interfaceVectorTile.Tile.FeatureOrBuilder
-
setGeometry
Contains a stream of commands and parameters (vertices). A detailed description on geometry encoding is located in section 4.3 of the specification.
repeated uint32 geometry = 4 [packed = true]; -
addGeometry
Contains a stream of commands and parameters (vertices). A detailed description on geometry encoding is located in section 4.3 of the specification.
repeated uint32 geometry = 4 [packed = true]; -
addAllGeometry
Contains a stream of commands and parameters (vertices). A detailed description on geometry encoding is located in section 4.3 of the specification.
repeated uint32 geometry = 4 [packed = true]; -
clearGeometry
Contains a stream of commands and parameters (vertices). A detailed description on geometry encoding is located in section 4.3 of the specification.
repeated uint32 geometry = 4 [packed = true]; -
setUnknownFields
public final VectorTile.Tile.Feature.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VectorTile.Tile.Feature.Builder>
-
mergeUnknownFields
public final VectorTile.Tile.Feature.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VectorTile.Tile.Feature.Builder>
-