Reference documentation and code samples for the Google Maps FleetEngine V1 Client class CreateTripRequest.
CreateTrip request message.
Generated from protobuf message maps.fleetengine.v1.CreateTripRequest
Namespace
Google \ Maps \ FleetEngine \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ header |
RequestHeader
The standard Fleet Engine request header. |
↳ parent |
string
Required. Must be in the format |
↳ trip_id |
string
Required. Unique Trip ID. Subject to the following restrictions: * * Must be a valid Unicode string. * * Limited to a maximum length of 64 characters. * * Normalized according to Unicode Normalization Form C. * * May not contain any of the following ASCII characters: '/', ':', '?', ',', or '#'. |
↳ trip |
Trip
Required. Trip entity to create. When creating a Trip, the following fields are required: * * |
getHeader
The standard Fleet Engine request header.
| Returns | |
|---|---|
| Type | Description |
RequestHeader|null |
|
hasHeader
clearHeader
setHeader
The standard Fleet Engine request header.
| Parameter | |
|---|---|
| Name | Description |
var |
RequestHeader
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getParent
Required. Must be in the format providers/{provider}.
The provider must be the Project ID (for example, sample-cloud-project)
of the Google Cloud Project of which the service account making
this call is a member.
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. Must be in the format providers/{provider}.
The provider must be the Project ID (for example, sample-cloud-project)
of the Google Cloud Project of which the service account making
this call is a member.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTripId
Required. Unique Trip ID.
Subject to the following restrictions:
- Must be a valid Unicode string.
- Limited to a maximum length of 64 characters.
- Normalized according to Unicode Normalization Form C.
- May not contain any of the following ASCII characters: '/', ':', '?', ',', or '#'.
| Returns | |
|---|---|
| Type | Description |
string |
|
setTripId
Required. Unique Trip ID.
Subject to the following restrictions:
- Must be a valid Unicode string.
- Limited to a maximum length of 64 characters.
- Normalized according to Unicode Normalization Form C.
- May not contain any of the following ASCII characters: '/', ':', '?', ',', or '#'.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTrip
Required. Trip entity to create.
When creating a Trip, the following fields are required:
trip_typepickup_pointThe following fields are used if you provide them:number_of_passengersvehicle_iddropoff_pointintermediate_destinationsvehicle_waypointsAll other Trip fields are ignored. For example, all trips start with atrip_statusofNEWeven if you pass in atrip_statusofCANCELEDin the creation request. OnlyEXCLUSIVEtrips supportintermediate_destinations. Whenvehicle_idis set for a shared trip, you must supply the list ofTrip.vehicle_waypointsto specify the order of the remaining waypoints for the vehicle, otherwise the waypoint order will be undetermined. When you specifyTrip.vehicle_waypoints, the list must contain all the remaining waypoints of the vehicle's trips, with no extra waypoints. You must order these waypoints such that for a given trip, the pickup point is before intermediate destinations, and all intermediate destinations come before the drop-off point. AnEXCLUSIVEtrip's waypoints must not interleave with any other trips. Thetrip_id,waypoint_typeandlocationfields are used, and all other TripWaypoint fields invehicle_waypointsare ignored.
| Returns | |
|---|---|
| Type | Description |
Trip|null |
|
hasTrip
clearTrip
setTrip
Required. Trip entity to create.
When creating a Trip, the following fields are required:
trip_typepickup_pointThe following fields are used if you provide them:number_of_passengersvehicle_iddropoff_pointintermediate_destinationsvehicle_waypointsAll other Trip fields are ignored. For example, all trips start with atrip_statusofNEWeven if you pass in atrip_statusofCANCELEDin the creation request. OnlyEXCLUSIVEtrips supportintermediate_destinations. Whenvehicle_idis set for a shared trip, you must supply the list ofTrip.vehicle_waypointsto specify the order of the remaining waypoints for the vehicle, otherwise the waypoint order will be undetermined. When you specifyTrip.vehicle_waypoints, the list must contain all the remaining waypoints of the vehicle's trips, with no extra waypoints. You must order these waypoints such that for a given trip, the pickup point is before intermediate destinations, and all intermediate destinations come before the drop-off point. AnEXCLUSIVEtrip's waypoints must not interleave with any other trips. Thetrip_id,waypoint_typeandlocationfields are used, and all other TripWaypoint fields invehicle_waypointsare ignored.
| Parameter | |
|---|---|
| Name | Description |
var |
Trip
|
| Returns | |
|---|---|
| Type | Description |
$this |
|