Class ShipmentRoute.EncodedPolyline.Builder (1.83.0)

public static final class ShipmentRoute.EncodedPolyline.Builder extends GeneratedMessage.Builder<ShipmentRoute.EncodedPolyline.Builder> implements ShipmentRoute.EncodedPolylineOrBuilder

The encoded representation of a polyline. More information on polyline encoding can be found here: https://developers.google.com/maps/documentation/utilities/polylinealgorithm https://developers.google.com/maps/documentation/javascript/reference/geometry#encoding.

Protobuf type google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ShipmentRoute.EncodedPolyline build()
Returns
Type Description
ShipmentRoute.EncodedPolyline

buildPartial()

public ShipmentRoute.EncodedPolyline buildPartial()
Returns
Type Description
ShipmentRoute.EncodedPolyline

clear()

public ShipmentRoute.EncodedPolyline.Builder clear()
Returns
Type Description
ShipmentRoute.EncodedPolyline.Builder
Overrides

clearPoints()

public ShipmentRoute.EncodedPolyline.Builder clearPoints()

String representing encoded points of the polyline.

string points = 1;

Returns
Type Description
ShipmentRoute.EncodedPolyline.Builder

This builder for chaining.

getDefaultInstanceForType()

public ShipmentRoute.EncodedPolyline getDefaultInstanceForType()
Returns
Type Description
ShipmentRoute.EncodedPolyline

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPoints()

public String getPoints()

String representing encoded points of the polyline.

string points = 1;

Returns
Type Description
String

The points.

getPointsBytes()

public ByteString getPointsBytes()

String representing encoded points of the polyline.

string points = 1;

Returns
Type Description
ByteString

The bytes for points.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ShipmentRoute.EncodedPolyline other)

public ShipmentRoute.EncodedPolyline.Builder mergeFrom(ShipmentRoute.EncodedPolyline other)
Parameter
Name Description
other ShipmentRoute.EncodedPolyline
Returns
Type Description
ShipmentRoute.EncodedPolyline.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ShipmentRoute.EncodedPolyline.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ShipmentRoute.EncodedPolyline.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ShipmentRoute.EncodedPolyline.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ShipmentRoute.EncodedPolyline.Builder
Overrides

setPoints(String value)

public ShipmentRoute.EncodedPolyline.Builder setPoints(String value)

String representing encoded points of the polyline.

string points = 1;

Parameter
Name Description
value String

The points to set.

Returns
Type Description
ShipmentRoute.EncodedPolyline.Builder

This builder for chaining.

setPointsBytes(ByteString value)

public ShipmentRoute.EncodedPolyline.Builder setPointsBytes(ByteString value)

String representing encoded points of the polyline.

string points = 1;

Parameter
Name Description
value ByteString

The bytes for points to set.

Returns
Type Description
ShipmentRoute.EncodedPolyline.Builder

This builder for chaining.