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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicWaypoint.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Overrides
build()
buildPartial()
publicWaypointbuildPartial()
clear()
publicWaypoint.Builderclear()
Overrides
clearField(Descriptors.FieldDescriptor field)
publicWaypoint.BuilderclearField(Descriptors.FieldDescriptorfield)
Overrides
clearLocation()
publicWaypoint.BuilderclearLocation()
A point specified using geographic coordinates, including an optional
heading.
.google.cloud.optimization.v1.Location location = 1;
clearLocationType()
publicWaypoint.BuilderclearLocationType()
clearOneof(Descriptors.OneofDescriptor oneof)
publicWaypoint.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Overrides
clearPlaceId()
publicWaypoint.BuilderclearPlaceId()
The POI Place ID associated with the waypoint.
string place_id = 2;
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;
clone()
publicWaypoint.Builderclone()
Overrides
getDefaultInstanceForType()
publicWaypointgetDefaultInstanceForType()
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()
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;
getLocationOrBuilder()
publicLocationOrBuildergetLocationOrBuilder()
A point specified using geographic coordinates, including an optional
heading.
.google.cloud.optimization.v1.Location location = 1;
getLocationTypeCase()
publicWaypoint.LocationTypeCasegetLocationTypeCase()
getPlaceId()
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()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
mergeFrom(Waypoint other)
publicWaypoint.BuildermergeFrom(Waypointother)
| Parameter |
| Name |
Description |
other |
Waypoint
|
publicWaypoint.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Overrides
mergeFrom(Message other)
publicWaypoint.BuildermergeFrom(Messageother)
| Parameter |
| Name |
Description |
other |
Message
|
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
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalWaypoint.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
publicWaypoint.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
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
|
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;
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicWaypoint.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalWaypoint.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Overrides