Class ShipmentRoute.EncodedPolyline.Builder (1.26.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ShipmentRoute.EncodedPolyline.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ShipmentRoute.EncodedPolyline.Builder
Overrides

build()

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

buildPartial()

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

clear()

public ShipmentRoute.EncodedPolyline.Builder clear()
Returns
TypeDescription
ShipmentRoute.EncodedPolyline.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ShipmentRoute.EncodedPolyline.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ShipmentRoute.EncodedPolyline.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ShipmentRoute.EncodedPolyline.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ShipmentRoute.EncodedPolyline.Builder
Overrides

clearPoints()

public ShipmentRoute.EncodedPolyline.Builder clearPoints()

String representing encoded points of the polyline.

string points = 1;

Returns
TypeDescription
ShipmentRoute.EncodedPolyline.Builder

This builder for chaining.

clone()

public ShipmentRoute.EncodedPolyline.Builder clone()
Returns
TypeDescription
ShipmentRoute.EncodedPolyline.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ShipmentRoute.EncodedPolyline other)

public ShipmentRoute.EncodedPolyline.Builder mergeFrom(ShipmentRoute.EncodedPolyline other)
Parameter
NameDescription
otherShipmentRoute.EncodedPolyline
Returns
TypeDescription
ShipmentRoute.EncodedPolyline.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ShipmentRoute.EncodedPolyline.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ShipmentRoute.EncodedPolyline.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ShipmentRoute.EncodedPolyline.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ShipmentRoute.EncodedPolyline.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ShipmentRoute.EncodedPolyline.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ShipmentRoute.EncodedPolyline.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ShipmentRoute.EncodedPolyline.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The points to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for points to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ShipmentRoute.EncodedPolyline.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ShipmentRoute.EncodedPolyline.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ShipmentRoute.EncodedPolyline.Builder
Overrides