- 1.83.0 (latest)
- 1.81.0
- 1.80.0
- 1.78.0
- 1.76.0
- 1.74.0
- 1.73.0
- 1.72.0
- 1.71.0
- 1.70.0
- 1.68.0
- 1.66.0
- 1.65.0
- 1.62.0
- 1.61.0
- 1.60.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.14
- 0.1.2
public static final class Waypoint.Builder extends GeneratedMessage.Builder<Waypoint.Builder> implements WaypointOrBuilderEncapsulates a waypoint. Waypoints mark arrival and departure locations of VisitRequests, and start and end locations of Vehicles.
Protobuf type google.cloud.optimization.v1.Waypoint
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Waypoint.BuilderImplements
WaypointOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Waypoint build()| Returns | |
|---|---|
| Type | Description |
Waypoint |
|
buildPartial()
public Waypoint buildPartial()| Returns | |
|---|---|
| Type | Description |
Waypoint |
|
clear()
public Waypoint.Builder clear()| Returns | |
|---|---|
| Type | Description |
Waypoint.Builder |
|
clearLocation()
public Waypoint.Builder clearLocation()A point specified using geographic coordinates, including an optional heading.
.google.cloud.optimization.v1.Location location = 1;
| Returns | |
|---|---|
| Type | Description |
Waypoint.Builder |
|
clearLocationType()
public Waypoint.Builder clearLocationType()| Returns | |
|---|---|
| Type | Description |
Waypoint.Builder |
|
clearPlaceId()
public Waypoint.Builder clearPlaceId()The POI Place ID associated with the waypoint.
string place_id = 2;
| Returns | |
|---|---|
| Type | Description |
Waypoint.Builder |
This builder for chaining. |
clearSideOfRoad()
public Waypoint.Builder clearSideOfRoad()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. |
getDefaultInstanceForType()
public Waypoint getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Waypoint |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLocation()
public Location getLocation()A point specified using geographic coordinates, including an optional heading.
.google.cloud.optimization.v1.Location location = 1;
| Returns | |
|---|---|
| Type | Description |
Location |
The location. |
getLocationBuilder()
public Location.Builder getLocationBuilder()A point specified using geographic coordinates, including an optional heading.
.google.cloud.optimization.v1.Location location = 1;
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
|
getLocationOrBuilder()
public LocationOrBuilder getLocationOrBuilder()A point specified using geographic coordinates, including an optional heading.
.google.cloud.optimization.v1.Location location = 1;
| Returns | |
|---|---|
| Type | Description |
LocationOrBuilder |
|
getLocationTypeCase()
public Waypoint.LocationTypeCase getLocationTypeCase()| Returns | |
|---|---|
| Type | Description |
Waypoint.LocationTypeCase |
|
getPlaceId()
public String getPlaceId()The POI Place ID associated with the waypoint.
string place_id = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The placeId. |
getPlaceIdBytes()
public ByteString getPlaceIdBytes()The POI Place ID associated with the waypoint.
string place_id = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for placeId. |
getSideOfRoad()
public boolean getSideOfRoad()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()
public boolean hasLocation()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()
public boolean hasPlaceId()The POI Place ID associated with the waypoint.
string place_id = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the placeId field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Waypoint other)
public Waypoint.Builder mergeFrom(Waypoint other)| Parameter | |
|---|---|
| Name | Description |
other |
Waypoint |
| Returns | |
|---|---|
| Type | Description |
Waypoint.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Waypoint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Waypoint.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Waypoint.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Waypoint.Builder |
|
mergeLocation(Location value)
public Waypoint.Builder mergeLocation(Location value)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 value)
public Waypoint.Builder setLocation(Location value)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)
public Waypoint.Builder setLocation(Location.Builder builderForValue)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)
public Waypoint.Builder setPlaceId(String value)The POI Place ID associated with the waypoint.
string place_id = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe placeId to set. |
| Returns | |
|---|---|
| Type | Description |
Waypoint.Builder |
This builder for chaining. |
setPlaceIdBytes(ByteString value)
public Waypoint.Builder setPlaceIdBytes(ByteString value)The POI Place ID associated with the waypoint.
string place_id = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for placeId to set. |
| Returns | |
|---|---|
| Type | Description |
Waypoint.Builder |
This builder for chaining. |
setSideOfRoad(boolean value)
public Waypoint.Builder setSideOfRoad(boolean value)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 |
booleanThe sideOfRoad to set. |
| Returns | |
|---|---|
| Type | Description |
Waypoint.Builder |
This builder for chaining. |