Interface WaypointOrBuilder (1.11.0)

publicinterface WaypointOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getLocation()

publicabstractLocationgetLocation()

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

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

Returns
Type Description
Location

The location.

getLocationOrBuilder()

publicabstractLocationOrBuildergetLocationOrBuilder()

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

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

Returns
Type Description
LocationOrBuilder

getLocationTypeCase()

publicabstractWaypoint.LocationTypeCasegetLocationTypeCase()
Returns
Type Description
Waypoint.LocationTypeCase

getPlaceId()

publicabstractStringgetPlaceId()

The POI Place ID associated with the waypoint.

string place_id = 2;

Returns
Type Description
String

The placeId.

getPlaceIdBytes()

publicabstractByteStringgetPlaceIdBytes()

The POI Place ID associated with the waypoint.

string place_id = 2;

Returns
Type Description
ByteString

The bytes for placeId.

getSideOfRoad()

publicabstractbooleangetSideOfRoad()

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()

publicabstractbooleanhasLocation()

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()

publicabstractbooleanhasPlaceId()

The POI Place ID associated with the waypoint.

string place_id = 2;

Returns
Type Description
boolean

Whether the placeId field is set.

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.