Class ShipmentRoute.EncodedPolyline.Builder (1.52.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ShipmentRoute.EncodedPolyline.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ShipmentRoute.EncodedPolyline.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public ShipmentRoute.EncodedPolyline.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ShipmentRoute.EncodedPolyline.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ShipmentRoute.EncodedPolyline.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ShipmentRoute.EncodedPolyline.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ShipmentRoute.EncodedPolyline.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ShipmentRoute.EncodedPolyline.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ShipmentRoute.EncodedPolyline.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ShipmentRoute.EncodedPolyline.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ShipmentRoute.EncodedPolyline.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ShipmentRoute.EncodedPolyline.Builder
Overrides