Package com.google.maps.routing.v2
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 TypeMethodDescriptionbuild()clear()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.Descriptorcom.google.protobuf.Descriptors.DescriptorThe string encoding of the polyline using the [polyline encoding algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)com.google.protobuf.ByteStringThe string encoding of the polyline using the [polyline encoding algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)com.google.protobuf.StructSpecifies a polyline using the [GeoJSON LineString format](https://tools.ietf.org/html/rfc7946#section-3.1.4).com.google.protobuf.Struct.BuilderSpecifies a polyline using the [GeoJSON LineString format](https://tools.ietf.org/html/rfc7946#section-3.1.4).com.google.protobuf.StructOrBuilderSpecifies a polyline using the [GeoJSON LineString format](https://tools.ietf.org/html/rfc7946#section-3.1.4).booleanThe string encoding of the polyline using the [polyline encoding algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)booleanSpecifies a polyline using the [GeoJSON LineString format](https://tools.ietf.org/html/rfc7946#section-3.1.4).protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(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).setEncodedPolyline(String value) 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Polyline.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Polyline.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.GeneratedMessage.Builder<Polyline.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Polyline.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Polyline.Builder>- Throws:
IOException
-
getPolylineTypeCase
- Specified by:
getPolylineTypeCasein interfacePolylineOrBuilder
-
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:
hasEncodedPolylinein interfacePolylineOrBuilder- Returns:
- Whether the encodedPolyline field is set.
-
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:
getEncodedPolylinein interfacePolylineOrBuilder- 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:
getEncodedPolylineBytesin interfacePolylineOrBuilder- Returns:
- The bytes for encodedPolyline.
-
setEncodedPolyline
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
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
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:
hasGeoJsonLinestringin interfacePolylineOrBuilder- 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:
getGeoJsonLinestringin interfacePolylineOrBuilder- Returns:
- The geoJsonLinestring.
-
setGeoJsonLinestring
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
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
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
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:
getGeoJsonLinestringOrBuilderin interfacePolylineOrBuilder
-