Class Waypoint (1.51.0)

publicfinalclass WaypointextendsGeneratedMessageV3implementsWaypointOrBuilder

Encapsulates a waypoint. Waypoints mark arrival and departure locations of VisitRequests, and start and end locations of Vehicles.

Protobuf type google.cloud.optimization.v1.Waypoint

Implements

WaypointOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

LOCATION_FIELD_NUMBER

publicstaticfinalintLOCATION_FIELD_NUMBER
Field Value
Type Description
int

PLACE_ID_FIELD_NUMBER

publicstaticfinalintPLACE_ID_FIELD_NUMBER
Field Value
Type Description
int

SIDE_OF_ROAD_FIELD_NUMBER

publicstaticfinalintSIDE_OF_ROAD_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticWaypointgetDefaultInstance()
Returns
Type Description
Waypoint

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticWaypoint.BuildernewBuilder()
Returns
Type Description
Waypoint.Builder

newBuilder(Waypoint prototype)

publicstaticWaypoint.BuildernewBuilder(Waypointprototype)
Parameter
Name Description
prototype Waypoint
Returns
Type Description
Waypoint.Builder

parseDelimitedFrom(InputStream input)

publicstaticWaypointparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Waypoint
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticWaypointparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Waypoint
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticWaypointparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
Waypoint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticWaypointparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Waypoint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticWaypointparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
Waypoint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticWaypointparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Waypoint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticWaypointparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Waypoint
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticWaypointparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Waypoint
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticWaypointparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Waypoint
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticWaypointparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Waypoint
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticWaypointparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Waypoint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticWaypointparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Waypoint
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<Waypoint>parser()
Returns
Type Description
Parser<Waypoint>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicWaypointgetDefaultInstanceForType()
Returns
Type Description
Waypoint

getLocation()

publicLocationgetLocation()

A point specified using geographic coordinates, including an optional heading.

.google.cloud.optimization.v1.Location location = 1;

Returns
Type Description
Location

The location.

getLocationOrBuilder()

publicLocationOrBuildergetLocationOrBuilder()

A point specified using geographic coordinates, including an optional heading.

.google.cloud.optimization.v1.Location location = 1;

Returns
Type Description
LocationOrBuilder

getLocationTypeCase()

publicWaypoint.LocationTypeCasegetLocationTypeCase()
Returns
Type Description
Waypoint.LocationTypeCase

getParserForType()

publicParser<Waypoint>getParserForType()
Returns
Type Description
Parser<Waypoint>
Overrides

getPlaceId()

publicStringgetPlaceId()

The POI Place ID associated with the waypoint.

string place_id = 2;

Returns
Type Description
String

The placeId.

getPlaceIdBytes()

publicByteStringgetPlaceIdBytes()

The POI Place ID associated with the waypoint.

string place_id = 2;

Returns
Type Description
ByteString

The bytes for placeId.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getSideOfRoad()

publicbooleangetSideOfRoad()

Indicates that the location of this waypoint is meant to have a preference for the vehicle to stop at a particular side of road. When you set this value, the route will pass through the location so that the vehicle can stop at the side of road that the location is biased towards from the center of the road. This option works only for the 'DRIVING' travel mode, and when the 'location_type' is set to 'location'.

bool side_of_road = 3;

Returns
Type Description
boolean

The sideOfRoad.

hasLocation()

publicbooleanhasLocation()

A point specified using geographic coordinates, including an optional heading.

.google.cloud.optimization.v1.Location location = 1;

Returns
Type Description
boolean

Whether the location field is set.

hasPlaceId()

publicbooleanhasPlaceId()

The POI Place ID associated with the waypoint.

string place_id = 2;

Returns
Type Description
boolean

Whether the placeId field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicWaypoint.BuildernewBuilderForType()
Returns
Type Description
Waypoint.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedWaypoint.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Waypoint.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicWaypoint.BuildertoBuilder()
Returns
Type Description
Waypoint.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.