Class Waypoint.Builder (1.30.0)

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

Implements

WaypointOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Waypoint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Waypoint.Builder
Overrides

build()

public Waypoint build()
Returns
TypeDescription
Waypoint

buildPartial()

public Waypoint buildPartial()
Returns
TypeDescription
Waypoint

clear()

public Waypoint.Builder clear()
Returns
TypeDescription
Waypoint.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Waypoint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Waypoint.Builder
Overrides

clearLocation()

public Waypoint.Builder clearLocation()

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

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

Returns
TypeDescription
Waypoint.Builder

clearLocationType()

public Waypoint.Builder clearLocationType()
Returns
TypeDescription
Waypoint.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Waypoint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Waypoint.Builder
Overrides

clearPlaceId()

public Waypoint.Builder clearPlaceId()

The POI Place ID associated with the waypoint.

string place_id = 2;

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

This builder for chaining.

clone()

public Waypoint.Builder clone()
Returns
TypeDescription
Waypoint.Builder
Overrides

getDefaultInstanceForType()

public Waypoint getDefaultInstanceForType()
Returns
TypeDescription
Waypoint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLocation()

public Location getLocation()

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

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

Returns
TypeDescription
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
TypeDescription
Location.Builder

getLocationOrBuilder()

public LocationOrBuilder getLocationOrBuilder()

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

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

Returns
TypeDescription
LocationOrBuilder

getLocationTypeCase()

public Waypoint.LocationTypeCase getLocationTypeCase()
Returns
TypeDescription
Waypoint.LocationTypeCase

getPlaceId()

public String getPlaceId()

The POI Place ID associated with the waypoint.

string place_id = 2;

Returns
TypeDescription
String

The placeId.

getPlaceIdBytes()

public ByteString getPlaceIdBytes()

The POI Place ID associated with the waypoint.

string place_id = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the location field is set.

hasPlaceId()

public boolean hasPlaceId()

The POI Place ID associated with the waypoint.

string place_id = 2;

Returns
TypeDescription
boolean

Whether the placeId field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Waypoint other)

public Waypoint.Builder mergeFrom(Waypoint other)
Parameter
NameDescription
otherWaypoint
Returns
TypeDescription
Waypoint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Waypoint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Waypoint.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Waypoint.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Waypoint.Builder
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
NameDescription
valueLocation
Returns
TypeDescription
Waypoint.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Waypoint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Waypoint.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Waypoint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Waypoint.Builder
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
NameDescription
valueLocation
Returns
TypeDescription
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
NameDescription
builderForValueLocation.Builder
Returns
TypeDescription
Waypoint.Builder

setPlaceId(String value)

public Waypoint.Builder setPlaceId(String value)

The POI Place ID associated with the waypoint.

string place_id = 2;

Parameter
NameDescription
valueString

The placeId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for placeId to set.

Returns
TypeDescription
Waypoint.Builder

This builder for chaining.

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

public Waypoint.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Waypoint.Builder
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
NameDescription
valueboolean

The sideOfRoad to set.

Returns
TypeDescription
Waypoint.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Waypoint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Waypoint.Builder
Overrides