Reference documentation and code samples for the Google Maps FleetEngine V1 Client class SearchTripsRequest.
SearchTrips request message.
Generated from protobuf message maps.fleetengine.v1.SearchTripsRequest
Namespace
Google \ Maps \ FleetEngine \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ header
↳ parent
string
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.
↳ vehicle_id
string
The vehicle associated with the trips in the request. If unspecified, the returned trips do not contain: * * current_route_segment
* * remaining_waypoints
* * remaining_distance_meters
* * eta_to_first_waypoint
↳ active_trips_only
bool
If set to true, the response includes Trips that influence a driver's route.
↳ page_size
int
If not set, the server decides the number of results to return.
↳ page_token
string
Set this to a value previously returned in the SearchTripsResponse
to continue from previous results.
↳ minimum_staleness
Google\Protobuf\Duration
If specified, returns the trips that have not been updated after the time (current - minimum_staleness)
.
getHeader
The standard Fleet Engine request header.
hasHeader
clearHeader
setHeader
The standard Fleet Engine request header.
$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.
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.
var
string
$this
getVehicleId
The vehicle associated with the trips in the request. If unspecified, the returned trips do not contain:
-
current_route_segment
-
remaining_waypoints
-
remaining_distance_meters
-
eta_to_first_waypoint
string
setVehicleId
The vehicle associated with the trips in the request. If unspecified, the returned trips do not contain:
-
current_route_segment
-
remaining_waypoints
-
remaining_distance_meters
-
eta_to_first_waypoint
var
string
$this
getActiveTripsOnly
If set to true, the response includes Trips that influence a driver's route.
bool
setActiveTripsOnly
If set to true, the response includes Trips that influence a driver's route.
var
bool
$this
getPageSize
If not set, the server decides the number of results to return.
int
setPageSize
If not set, the server decides the number of results to return.
var
int
$this
getPageToken
Set this to a value previously returned in the SearchTripsResponse
to
continue from previous results.
string
setPageToken
Set this to a value previously returned in the SearchTripsResponse
to
continue from previous results.
var
string
$this
getMinimumStaleness
If specified, returns the trips that have not been updated after the time (current - minimum_staleness)
.
hasMinimumStaleness
clearMinimumStaleness
setMinimumStaleness
If specified, returns the trips that have not been updated after the time (current - minimum_staleness)
.
$this