public static final class Waypoint.Builder extends GeneratedMessageV3.Builder<Waypoint.Builder> implements WaypointOrBuilder
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()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Waypoint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Waypoint buildPartial()
Returns
clear()
public Waypoint.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Waypoint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearLocation()
public Waypoint.Builder clearLocation()
A point specified using geographic coordinates, including an optional
heading.
.google.cloud.optimization.v1.Location location = 1;
Returns
clearLocationType()
public Waypoint.Builder clearLocationType()
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Waypoint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPlaceId()
public Waypoint.Builder clearPlaceId()
The POI Place ID associated with the waypoint.
string place_id = 2;
Returns
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
clone()
public Waypoint.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Waypoint getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getLocation()
public Location getLocation()
A point specified using geographic coordinates, including an optional
heading.
.google.cloud.optimization.v1.Location location = 1;
Returns
getLocationBuilder()
public Location.Builder getLocationBuilder()
A point specified using geographic coordinates, including an optional
heading.
.google.cloud.optimization.v1.Location location = 1;
Returns
getLocationOrBuilder()
public LocationOrBuilder getLocationOrBuilder()
A point specified using geographic coordinates, including an optional
heading.
.google.cloud.optimization.v1.Location location = 1;
Returns
getLocationTypeCase()
public Waypoint.LocationTypeCase getLocationTypeCase()
Returns
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
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Waypoint other)
public Waypoint.Builder mergeFrom(Waypoint other)
Parameter
Returns
public Waypoint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Waypoint.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Waypoint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Waypoint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Returns
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
Returns
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 | String
The placeId to set.
|
Returns
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 | ByteString
The bytes for placeId to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Waypoint.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
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 | boolean
The sideOfRoad to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Waypoint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides