Class Osmformat.Way.Builder

java.lang.Object
proto4.AbstractMessageLite.Builder
proto4.AbstractMessage.Builder<BuilderT>
proto4.GeneratedMessage.Builder<Osmformat.Way.Builder>
org.apache.sedona.sql.datasources.osmpbf.build.Osmformat.Way.Builder
All Implemented Interfaces:
Cloneable, Osmformat.WayOrBuilder, proto4.Message.Builder, proto4.MessageLite.Builder, proto4.MessageLiteOrBuilder, proto4.MessageOrBuilder
Enclosing class:
Osmformat.Way

public static final class Osmformat.Way.Builder extends proto4.GeneratedMessage.Builder<Osmformat.Way.Builder> implements Osmformat.WayOrBuilder
Protobuf type Way
  • Method Details

    • getDescriptor

      public static final proto4.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected proto4.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class proto4.GeneratedMessage.Builder<Osmformat.Way.Builder>
    • clear

      public Osmformat.Way.Builder clear()
      Specified by:
      clear in interface proto4.Message.Builder
      Specified by:
      clear in interface proto4.MessageLite.Builder
      Overrides:
      clear in class proto4.GeneratedMessage.Builder<Osmformat.Way.Builder>
    • getDescriptorForType

      public proto4.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface proto4.Message.Builder
      Specified by:
      getDescriptorForType in interface proto4.MessageOrBuilder
      Overrides:
      getDescriptorForType in class proto4.GeneratedMessage.Builder<Osmformat.Way.Builder>
    • getDefaultInstanceForType

      public Osmformat.Way getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface proto4.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface proto4.MessageOrBuilder
    • build

      public Osmformat.Way build()
      Specified by:
      build in interface proto4.Message.Builder
      Specified by:
      build in interface proto4.MessageLite.Builder
    • buildPartial

      public Osmformat.Way buildPartial()
      Specified by:
      buildPartial in interface proto4.Message.Builder
      Specified by:
      buildPartial in interface proto4.MessageLite.Builder
    • mergeFrom

      public Osmformat.Way.Builder mergeFrom(proto4.Message other)
      Specified by:
      mergeFrom in interface proto4.Message.Builder
      Overrides:
      mergeFrom in class proto4.AbstractMessage.Builder<Osmformat.Way.Builder>
    • mergeFrom

      public Osmformat.Way.Builder mergeFrom(Osmformat.Way other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface proto4.MessageLiteOrBuilder
      Overrides:
      isInitialized in class proto4.GeneratedMessage.Builder<Osmformat.Way.Builder>
    • mergeFrom

      public Osmformat.Way.Builder mergeFrom(proto4.CodedInputStream input, proto4.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface proto4.Message.Builder
      Specified by:
      mergeFrom in interface proto4.MessageLite.Builder
      Overrides:
      mergeFrom in class proto4.AbstractMessage.Builder<Osmformat.Way.Builder>
      Throws:
      IOException
    • hasId

      public boolean hasId()
      required int64 id = 1;
      Specified by:
      hasId in interface Osmformat.WayOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public long getId()
      required int64 id = 1;
      Specified by:
      getId in interface Osmformat.WayOrBuilder
      Returns:
      The id.
    • setId

      public Osmformat.Way.Builder setId(long value)
      required int64 id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Osmformat.Way.Builder clearId()
      required int64 id = 1;
      Returns:
      This builder for chaining.
    • getKeysList

      public List<Integer> getKeysList()
       Parallel arrays.
       
      repeated uint32 keys = 2 [packed = true];
      Specified by:
      getKeysList in interface Osmformat.WayOrBuilder
      Returns:
      A list containing the keys.
    • getKeysCount

      public int getKeysCount()
       Parallel arrays.
       
      repeated uint32 keys = 2 [packed = true];
      Specified by:
      getKeysCount in interface Osmformat.WayOrBuilder
      Returns:
      The count of keys.
    • getKeys

      public int getKeys(int index)
       Parallel arrays.
       
      repeated uint32 keys = 2 [packed = true];
      Specified by:
      getKeys in interface Osmformat.WayOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The keys at the given index.
    • setKeys

      public Osmformat.Way.Builder setKeys(int index, int value)
       Parallel arrays.
       
      repeated uint32 keys = 2 [packed = true];
      Parameters:
      index - The index to set the value at.
      value - The keys to set.
      Returns:
      This builder for chaining.
    • addKeys

      public Osmformat.Way.Builder addKeys(int value)
       Parallel arrays.
       
      repeated uint32 keys = 2 [packed = true];
      Parameters:
      value - The keys to add.
      Returns:
      This builder for chaining.
    • addAllKeys

      public Osmformat.Way.Builder addAllKeys(Iterable<? extends Integer> values)
       Parallel arrays.
       
      repeated uint32 keys = 2 [packed = true];
      Parameters:
      values - The keys to add.
      Returns:
      This builder for chaining.
    • clearKeys

      public Osmformat.Way.Builder clearKeys()
       Parallel arrays.
       
      repeated uint32 keys = 2 [packed = true];
      Returns:
      This builder for chaining.
    • getValsList

      public List<Integer> getValsList()
      repeated uint32 vals = 3 [packed = true];
      Specified by:
      getValsList in interface Osmformat.WayOrBuilder
      Returns:
      A list containing the vals.
    • getValsCount

      public int getValsCount()
      repeated uint32 vals = 3 [packed = true];
      Specified by:
      getValsCount in interface Osmformat.WayOrBuilder
      Returns:
      The count of vals.
    • getVals

      public int getVals(int index)
      repeated uint32 vals = 3 [packed = true];
      Specified by:
      getVals in interface Osmformat.WayOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The vals at the given index.
    • setVals

      public Osmformat.Way.Builder setVals(int index, int value)
      repeated uint32 vals = 3 [packed = true];
      Parameters:
      index - The index to set the value at.
      value - The vals to set.
      Returns:
      This builder for chaining.
    • addVals

      public Osmformat.Way.Builder addVals(int value)
      repeated uint32 vals = 3 [packed = true];
      Parameters:
      value - The vals to add.
      Returns:
      This builder for chaining.
    • addAllVals

      public Osmformat.Way.Builder addAllVals(Iterable<? extends Integer> values)
      repeated uint32 vals = 3 [packed = true];
      Parameters:
      values - The vals to add.
      Returns:
      This builder for chaining.
    • clearVals

      public Osmformat.Way.Builder clearVals()
      repeated uint32 vals = 3 [packed = true];
      Returns:
      This builder for chaining.
    • hasInfo

      public boolean hasInfo()
      optional .Info info = 4;
      Specified by:
      hasInfo in interface Osmformat.WayOrBuilder
      Returns:
      Whether the info field is set.
    • getInfo

      public Osmformat.Info getInfo()
      optional .Info info = 4;
      Specified by:
      getInfo in interface Osmformat.WayOrBuilder
      Returns:
      The info.
    • setInfo

      public Osmformat.Way.Builder setInfo(Osmformat.Info value)
      optional .Info info = 4;
    • setInfo

      public Osmformat.Way.Builder setInfo(Osmformat.Info.Builder builderForValue)
      optional .Info info = 4;
    • mergeInfo

      public Osmformat.Way.Builder mergeInfo(Osmformat.Info value)
      optional .Info info = 4;
    • clearInfo

      public Osmformat.Way.Builder clearInfo()
      optional .Info info = 4;
    • getInfoBuilder

      public Osmformat.Info.Builder getInfoBuilder()
      optional .Info info = 4;
    • getInfoOrBuilder

      public Osmformat.InfoOrBuilder getInfoOrBuilder()
      optional .Info info = 4;
      Specified by:
      getInfoOrBuilder in interface Osmformat.WayOrBuilder
    • getRefsList

      public List<Long> getRefsList()
       DELTA coded
       
      repeated sint64 refs = 8 [packed = true];
      Specified by:
      getRefsList in interface Osmformat.WayOrBuilder
      Returns:
      A list containing the refs.
    • getRefsCount

      public int getRefsCount()
       DELTA coded
       
      repeated sint64 refs = 8 [packed = true];
      Specified by:
      getRefsCount in interface Osmformat.WayOrBuilder
      Returns:
      The count of refs.
    • getRefs

      public long getRefs(int index)
       DELTA coded
       
      repeated sint64 refs = 8 [packed = true];
      Specified by:
      getRefs in interface Osmformat.WayOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The refs at the given index.
    • setRefs

      public Osmformat.Way.Builder setRefs(int index, long value)
       DELTA coded
       
      repeated sint64 refs = 8 [packed = true];
      Parameters:
      index - The index to set the value at.
      value - The refs to set.
      Returns:
      This builder for chaining.
    • addRefs

      public Osmformat.Way.Builder addRefs(long value)
       DELTA coded
       
      repeated sint64 refs = 8 [packed = true];
      Parameters:
      value - The refs to add.
      Returns:
      This builder for chaining.
    • addAllRefs

      public Osmformat.Way.Builder addAllRefs(Iterable<? extends Long> values)
       DELTA coded
       
      repeated sint64 refs = 8 [packed = true];
      Parameters:
      values - The refs to add.
      Returns:
      This builder for chaining.
    • clearRefs

      public Osmformat.Way.Builder clearRefs()
       DELTA coded
       
      repeated sint64 refs = 8 [packed = true];
      Returns:
      This builder for chaining.