Package vector_tile

Class VectorTile.Tile.Feature.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
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 specification
 
Protobuf type vector_tile.Tile.Feature
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<VectorTile.Tile.Feature.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<VectorTile.Tile.Feature.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<VectorTile.Tile.Feature.Builder>
    • getDefaultInstanceForType

      public VectorTile.Tile.Feature getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public VectorTile.Tile.Feature build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public VectorTile.Tile.Feature buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.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:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<VectorTile.Tile.Feature.Builder>
    • clearField

      public VectorTile.Tile.Feature.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<VectorTile.Tile.Feature.Builder>
    • clearOneof

      public VectorTile.Tile.Feature.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.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:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VectorTile.Tile.Feature.Builder>
    • mergeFrom

      public VectorTile.Tile.Feature.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<VectorTile.Tile.Feature.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<VectorTile.Tile.Feature.Builder>
      Throws:
      IOException
    • hasId

      public boolean hasId()
      optional uint64 id = 1 [default = 0];
      Specified by:
      hasId in interface VectorTile.Tile.FeatureOrBuilder
    • getId

      public long getId()
      optional uint64 id = 1 [default = 0];
      Specified by:
      getId in interface VectorTile.Tile.FeatureOrBuilder
    • setId

      public VectorTile.Tile.Feature.Builder setId(long value)
      optional uint64 id = 1 [default = 0];
    • clearId

      optional uint64 id = 1 [default = 0];
    • getTagsList

      public List<Integer> 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:
      getTagsList in interface VectorTile.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:
      getTagsCount in interface VectorTile.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:
      getTags in interface VectorTile.Tile.FeatureOrBuilder
    • setTags

      public VectorTile.Tile.Feature.Builder setTags(int index, int value)
       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

      public VectorTile.Tile.Feature.Builder addTags(int value)
       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

      public VectorTile.Tile.Feature.Builder addAllTags(Iterable<? extends Integer> values)
       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

      public VectorTile.Tile.Feature.Builder 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:
      hasType in interface VectorTile.Tile.FeatureOrBuilder
    • getType

      public VectorTile.Tile.GeomType getType()
       The type of geometry stored in this feature.
       
      optional .vector_tile.Tile.GeomType type = 3 [default = UNKNOWN];
      Specified by:
      getType in interface VectorTile.Tile.FeatureOrBuilder
    • setType

       The type of geometry stored in this feature.
       
      optional .vector_tile.Tile.GeomType type = 3 [default = UNKNOWN];
    • clearType

      public VectorTile.Tile.Feature.Builder clearType()
       The type of geometry stored in this feature.
       
      optional .vector_tile.Tile.GeomType type = 3 [default = UNKNOWN];
    • getGeometryList

      public List<Integer> 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:
      getGeometryList in interface VectorTile.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:
      getGeometryCount in interface VectorTile.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:
      getGeometry in interface VectorTile.Tile.FeatureOrBuilder
    • setGeometry

      public VectorTile.Tile.Feature.Builder setGeometry(int index, int value)
       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

      public VectorTile.Tile.Feature.Builder addGeometry(int value)
       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

      public VectorTile.Tile.Feature.Builder addAllGeometry(Iterable<? extends Integer> values)
       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

      public VectorTile.Tile.Feature.Builder 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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VectorTile.Tile.Feature.Builder>
    • mergeUnknownFields

      public final VectorTile.Tile.Feature.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VectorTile.Tile.Feature.Builder>