Class Polyline.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Polyline.Builder>
com.google.maps.routing.v2.Polyline.Builder
All Implemented Interfaces:
PolylineOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Polyline

public static final class Polyline.Builder extends com.google.protobuf.GeneratedMessage.Builder<Polyline.Builder> implements PolylineOrBuilder
 Encapsulates an encoded polyline.
 
Protobuf type google.maps.routing.v2.Polyline
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The string encoding of the polyline using the [polyline encoding algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
    Specifies a polyline using the [GeoJSON LineString format](https://tools.ietf.org/html/rfc7946#section-3.1.4).
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The string encoding of the polyline using the [polyline encoding algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
    com.google.protobuf.ByteString
    The string encoding of the polyline using the [polyline encoding algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
    com.google.protobuf.Struct
    Specifies a polyline using the [GeoJSON LineString format](https://tools.ietf.org/html/rfc7946#section-3.1.4).
    com.google.protobuf.Struct.Builder
    Specifies a polyline using the [GeoJSON LineString format](https://tools.ietf.org/html/rfc7946#section-3.1.4).
    com.google.protobuf.StructOrBuilder
    Specifies a polyline using the [GeoJSON LineString format](https://tools.ietf.org/html/rfc7946#section-3.1.4).
     
    boolean
    The string encoding of the polyline using the [polyline encoding algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
    boolean
    Specifies a polyline using the [GeoJSON LineString format](https://tools.ietf.org/html/rfc7946#section-3.1.4).
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeGeoJsonLinestring(com.google.protobuf.Struct value)
    Specifies a polyline using the [GeoJSON LineString format](https://tools.ietf.org/html/rfc7946#section-3.1.4).
    The string encoding of the polyline using the [polyline encoding algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
    setEncodedPolylineBytes(com.google.protobuf.ByteString value)
    The string encoding of the polyline using the [polyline encoding algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
    setGeoJsonLinestring(com.google.protobuf.Struct value)
    Specifies a polyline using the [GeoJSON LineString format](https://tools.ietf.org/html/rfc7946#section-3.1.4).
    setGeoJsonLinestring(com.google.protobuf.Struct.Builder builderForValue)
    Specifies a polyline using the [GeoJSON LineString format](https://tools.ietf.org/html/rfc7946#section-3.1.4).

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Polyline.Builder>
    • clear

      public Polyline.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.GeneratedMessage.Builder<Polyline.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.GeneratedMessage.Builder<Polyline.Builder>
    • getDefaultInstanceForType

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

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

      public Polyline buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Polyline.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<Polyline.Builder>
    • mergeFrom

      public Polyline.Builder mergeFrom(Polyline other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Polyline.Builder>
    • mergeFrom

      public Polyline.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<Polyline.Builder>
      Throws:
      IOException
    • getPolylineTypeCase

      public Polyline.PolylineTypeCase getPolylineTypeCase()
      Specified by:
      getPolylineTypeCase in interface PolylineOrBuilder
    • clearPolylineType

      public Polyline.Builder clearPolylineType()
    • hasEncodedPolyline

      public boolean hasEncodedPolyline()
       The string encoding of the polyline using the [polyline encoding
       algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
       
      string encoded_polyline = 1;
      Specified by:
      hasEncodedPolyline in interface PolylineOrBuilder
      Returns:
      Whether the encodedPolyline field is set.
    • getEncodedPolyline

      public String getEncodedPolyline()
       The string encoding of the polyline using the [polyline encoding
       algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
       
      string encoded_polyline = 1;
      Specified by:
      getEncodedPolyline in interface PolylineOrBuilder
      Returns:
      The encodedPolyline.
    • getEncodedPolylineBytes

      public com.google.protobuf.ByteString getEncodedPolylineBytes()
       The string encoding of the polyline using the [polyline encoding
       algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
       
      string encoded_polyline = 1;
      Specified by:
      getEncodedPolylineBytes in interface PolylineOrBuilder
      Returns:
      The bytes for encodedPolyline.
    • setEncodedPolyline

      public Polyline.Builder setEncodedPolyline(String value)
       The string encoding of the polyline using the [polyline encoding
       algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
       
      string encoded_polyline = 1;
      Parameters:
      value - The encodedPolyline to set.
      Returns:
      This builder for chaining.
    • clearEncodedPolyline

      public Polyline.Builder clearEncodedPolyline()
       The string encoding of the polyline using the [polyline encoding
       algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
       
      string encoded_polyline = 1;
      Returns:
      This builder for chaining.
    • setEncodedPolylineBytes

      public Polyline.Builder setEncodedPolylineBytes(com.google.protobuf.ByteString value)
       The string encoding of the polyline using the [polyline encoding
       algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
       
      string encoded_polyline = 1;
      Parameters:
      value - The bytes for encodedPolyline to set.
      Returns:
      This builder for chaining.
    • hasGeoJsonLinestring

      public boolean hasGeoJsonLinestring()
       Specifies a polyline using the [GeoJSON LineString
       format](https://tools.ietf.org/html/rfc7946#section-3.1.4).
       
      .google.protobuf.Struct geo_json_linestring = 2;
      Specified by:
      hasGeoJsonLinestring in interface PolylineOrBuilder
      Returns:
      Whether the geoJsonLinestring field is set.
    • getGeoJsonLinestring

      public com.google.protobuf.Struct getGeoJsonLinestring()
       Specifies a polyline using the [GeoJSON LineString
       format](https://tools.ietf.org/html/rfc7946#section-3.1.4).
       
      .google.protobuf.Struct geo_json_linestring = 2;
      Specified by:
      getGeoJsonLinestring in interface PolylineOrBuilder
      Returns:
      The geoJsonLinestring.
    • setGeoJsonLinestring

      public Polyline.Builder setGeoJsonLinestring(com.google.protobuf.Struct value)
       Specifies a polyline using the [GeoJSON LineString
       format](https://tools.ietf.org/html/rfc7946#section-3.1.4).
       
      .google.protobuf.Struct geo_json_linestring = 2;
    • setGeoJsonLinestring

      public Polyline.Builder setGeoJsonLinestring(com.google.protobuf.Struct.Builder builderForValue)
       Specifies a polyline using the [GeoJSON LineString
       format](https://tools.ietf.org/html/rfc7946#section-3.1.4).
       
      .google.protobuf.Struct geo_json_linestring = 2;
    • mergeGeoJsonLinestring

      public Polyline.Builder mergeGeoJsonLinestring(com.google.protobuf.Struct value)
       Specifies a polyline using the [GeoJSON LineString
       format](https://tools.ietf.org/html/rfc7946#section-3.1.4).
       
      .google.protobuf.Struct geo_json_linestring = 2;
    • clearGeoJsonLinestring

      public Polyline.Builder clearGeoJsonLinestring()
       Specifies a polyline using the [GeoJSON LineString
       format](https://tools.ietf.org/html/rfc7946#section-3.1.4).
       
      .google.protobuf.Struct geo_json_linestring = 2;
    • getGeoJsonLinestringBuilder

      public com.google.protobuf.Struct.Builder getGeoJsonLinestringBuilder()
       Specifies a polyline using the [GeoJSON LineString
       format](https://tools.ietf.org/html/rfc7946#section-3.1.4).
       
      .google.protobuf.Struct geo_json_linestring = 2;
    • getGeoJsonLinestringOrBuilder

      public com.google.protobuf.StructOrBuilder getGeoJsonLinestringOrBuilder()
       Specifies a polyline using the [GeoJSON LineString
       format](https://tools.ietf.org/html/rfc7946#section-3.1.4).
       
      .google.protobuf.Struct geo_json_linestring = 2;
      Specified by:
      getGeoJsonLinestringOrBuilder in interface PolylineOrBuilder