Class Waypoint.Builder (1.50.0)

publicstaticfinalclass Waypoint.BuilderextendsGeneratedMessageV3.Builder<Waypoint.Builder>implementsWaypointOrBuilder

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.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicWaypoint.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Waypoint.Builder
Overrides

build()

publicWaypointbuild()
Returns
Type Description
Waypoint

buildPartial()

publicWaypointbuildPartial()
Returns
Type Description
Waypoint

clear()

publicWaypoint.Builderclear()
Returns
Type Description
Waypoint.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicWaypoint.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Waypoint.Builder
Overrides

clearLocation()

publicWaypoint.BuilderclearLocation()

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

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

Returns
Type Description
Waypoint.Builder

clearLocationType()

publicWaypoint.BuilderclearLocationType()
Returns
Type Description
Waypoint.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

publicWaypoint.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Waypoint.Builder
Overrides

clearPlaceId()

publicWaypoint.BuilderclearPlaceId()

The POI Place ID associated with the waypoint.

string place_id = 2;

Returns
Type Description
Waypoint.Builder

This builder for chaining.

clearSideOfRoad()

publicWaypoint.BuilderclearSideOfRoad()

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
Waypoint.Builder

This builder for chaining.

clone()

publicWaypoint.Builderclone()
Returns
Type Description
Waypoint.Builder
Overrides

getDefaultInstanceForType()

publicWaypointgetDefaultInstanceForType()
Returns
Type Description
Waypoint

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getLocationBuilder()

publicLocation.BuildergetLocationBuilder()

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

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

Returns
Type Description
Location.Builder

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

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.

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.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Waypoint other)

publicWaypoint.BuildermergeFrom(Waypointother)
Parameter
Name Description
other Waypoint
Returns
Type Description
Waypoint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicWaypoint.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Waypoint.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicWaypoint.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Waypoint.Builder
Overrides

mergeLocation(Location value)

publicWaypoint.BuildermergeLocation(Locationvalue)

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

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

Parameter
Name Description
value Location
Returns
Type Description
Waypoint.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalWaypoint.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Waypoint.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicWaypoint.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Waypoint.Builder
Overrides

setLocation(Location value)

publicWaypoint.BuildersetLocation(Locationvalue)

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

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

Parameter
Name Description
value Location
Returns
Type Description
Waypoint.Builder

setLocation(Location.Builder builderForValue)

publicWaypoint.BuildersetLocation(Location.BuilderbuilderForValue)

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

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

Parameter
Name Description
builderForValue Location.Builder
Returns
Type Description
Waypoint.Builder

setPlaceId(String value)

publicWaypoint.BuildersetPlaceId(Stringvalue)

The POI Place ID associated with the waypoint.

string place_id = 2;

Parameter
Name Description
value String

The placeId to set.

Returns
Type Description
Waypoint.Builder

This builder for chaining.

setPlaceIdBytes(ByteString value)

publicWaypoint.BuildersetPlaceIdBytes(ByteStringvalue)

The POI Place ID associated with the waypoint.

string place_id = 2;

Parameter
Name Description
value ByteString

The bytes for placeId to set.

Returns
Type Description
Waypoint.Builder

This builder for chaining.

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

publicWaypoint.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Waypoint.Builder
Overrides

setSideOfRoad(boolean value)

publicWaypoint.BuildersetSideOfRoad(booleanvalue)

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;

Parameter
Name Description
value boolean

The sideOfRoad to set.

Returns
Type Description
Waypoint.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalWaypoint.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Waypoint.Builder
Overrides

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.