Class ShipmentRoute.EncodedPolyline (1.1.10)

public static final class ShipmentRoute.EncodedPolyline extends GeneratedMessageV3 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 Fields

POINTS_FIELD_NUMBER

public static final int POINTS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ShipmentRoute.EncodedPolyline getDefaultInstance()
Returns
TypeDescription
ShipmentRoute.EncodedPolyline

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ShipmentRoute.EncodedPolyline.Builder newBuilder()
Returns
TypeDescription
ShipmentRoute.EncodedPolyline.Builder

newBuilder(ShipmentRoute.EncodedPolyline prototype)

public static ShipmentRoute.EncodedPolyline.Builder newBuilder(ShipmentRoute.EncodedPolyline prototype)
Parameter
NameDescription
prototypeShipmentRoute.EncodedPolyline
Returns
TypeDescription
ShipmentRoute.EncodedPolyline.Builder

parseDelimitedFrom(InputStream input)

public static ShipmentRoute.EncodedPolyline parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ShipmentRoute.EncodedPolyline
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ShipmentRoute.EncodedPolyline parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ShipmentRoute.EncodedPolyline
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ShipmentRoute.EncodedPolyline parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ShipmentRoute.EncodedPolyline
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ShipmentRoute.EncodedPolyline parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ShipmentRoute.EncodedPolyline
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ShipmentRoute.EncodedPolyline parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ShipmentRoute.EncodedPolyline
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ShipmentRoute.EncodedPolyline parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ShipmentRoute.EncodedPolyline
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ShipmentRoute.EncodedPolyline parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ShipmentRoute.EncodedPolyline
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ShipmentRoute.EncodedPolyline parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ShipmentRoute.EncodedPolyline
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ShipmentRoute.EncodedPolyline parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ShipmentRoute.EncodedPolyline
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ShipmentRoute.EncodedPolyline parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ShipmentRoute.EncodedPolyline
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ShipmentRoute.EncodedPolyline parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ShipmentRoute.EncodedPolyline
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ShipmentRoute.EncodedPolyline parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ShipmentRoute.EncodedPolyline
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ShipmentRoute.EncodedPolyline> parser()
Returns
TypeDescription
Parser<EncodedPolyline>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ShipmentRoute.EncodedPolyline getDefaultInstanceForType()
Returns
TypeDescription
ShipmentRoute.EncodedPolyline

getParserForType()

public Parser<ShipmentRoute.EncodedPolyline> getParserForType()
Returns
TypeDescription
Parser<EncodedPolyline>
Overrides

getPoints()

public String getPoints()

String representing encoded points of the polyline.

string points = 1;

Returns
TypeDescription
String

The points.

getPointsBytes()

public ByteString getPointsBytes()

String representing encoded points of the polyline.

string points = 1;

Returns
TypeDescription
ByteString

The bytes for points.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ShipmentRoute.EncodedPolyline.Builder newBuilderForType()
Returns
TypeDescription
ShipmentRoute.EncodedPolyline.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ShipmentRoute.EncodedPolyline.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ShipmentRoute.EncodedPolyline.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ShipmentRoute.EncodedPolyline.Builder toBuilder()
Returns
TypeDescription
ShipmentRoute.EncodedPolyline.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException