Reference documentation and code samples for the Google Maps FleetEngine V1 Client class ReportBillableTripRequest.
ReportBillableTrip request message.
Generated from protobuf messagemaps.fleetengine.v1.ReportBillableTripRequest
Namespace
Google \ Maps \ FleetEngine \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. Must be in the formatproviders/{provider}/billableTrips/{billable_trip}. 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.
↳ country_code
string
Required. Two letter country code of the country where the trip takes place. Price is defined according to country code.
↳ platform
int
The platform upon which the request was issued.
↳ related_ids
array
The identifiers that are directly related to the trip being reported. These are usually IDs (for example, session IDs) of pre-booking operations done before the trip ID is available. The number ofrelated_idsis limited to 50.
↳ solution_type
int
The type of GMP product solution (for example,ON_DEMAND_RIDESHARING_AND_DELIVERIES) used for the reported trip.
getName
Required. Must be in the formatproviders/{provider}/billableTrips/{billable_trip}. 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
setName
Required. Must be in the formatproviders/{provider}/billableTrips/{billable_trip}. 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
getCountryCode
Required. Two letter country code of the country where the trip takes
place. Price is defined according to country code.
Returns
Type
Description
string
setCountryCode
Required. Two letter country code of the country where the trip takes
place. Price is defined according to country code.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPlatform
The platform upon which the request was issued.
Returns
Type
Description
int
setPlatform
The platform upon which the request was issued.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getRelatedIds
The identifiers that are directly related to the trip being reported. These
are usually IDs (for example, session IDs) of pre-booking operations done
before the trip ID is available. The number ofrelated_idsis
limited to 50.
The identifiers that are directly related to the trip being reported. These
are usually IDs (for example, session IDs) of pre-booking operations done
before the trip ID is available. The number ofrelated_idsis
limited to 50.
Parameter
Name
Description
var
string[]
Returns
Type
Description
$this
getSolutionType
The type of GMP product solution (for example,ON_DEMAND_RIDESHARING_AND_DELIVERIES) used for the reported trip.
Returns
Type
Description
int
setSolutionType
The type of GMP product solution (for example,ON_DEMAND_RIDESHARING_AND_DELIVERIES) used for the reported trip.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Maps FleetEngine V1 Client - Class ReportBillableTripRequest (0.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.1 (latest)](/php/docs/reference/maps-fleetengine/latest/V1.ReportBillableTripRequest)\n- [0.4.0](/php/docs/reference/maps-fleetengine/0.4.0/V1.ReportBillableTripRequest)\n- [0.3.1](/php/docs/reference/maps-fleetengine/0.3.1/V1.ReportBillableTripRequest)\n- [0.2.0](/php/docs/reference/maps-fleetengine/0.2.0/V1.ReportBillableTripRequest)\n- [0.1.6](/php/docs/reference/maps-fleetengine/0.1.6/V1.ReportBillableTripRequest) \nReference documentation and code samples for the Google Maps FleetEngine V1 Client class ReportBillableTripRequest.\n\nReportBillableTrip request message.\n\nGenerated from protobuf message `maps.fleetengine.v1.ReportBillableTripRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Maps \\\\ FleetEngine \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. Must be in the format\n`providers/{provider}/billableTrips/{billable_trip}`. The\nprovider must be the Project ID (for example, `sample-cloud-project`) of\nthe Google Cloud Project of which the service account making this call is a\nmember.\n\n### setName\n\nRequired. Must be in the format\n`providers/{provider}/billableTrips/{billable_trip}`. The\nprovider must be the Project ID (for example, `sample-cloud-project`) of\nthe Google Cloud Project of which the service account making this call is a\nmember.\n\n### getCountryCode\n\nRequired. Two letter country code of the country where the trip takes\nplace. Price is defined according to country code.\n\n### setCountryCode\n\nRequired. Two letter country code of the country where the trip takes\nplace. Price is defined according to country code.\n\n### getPlatform\n\nThe platform upon which the request was issued.\n\n### setPlatform\n\nThe platform upon which the request was issued.\n\n### getRelatedIds\n\nThe identifiers that are directly related to the trip being reported. These\nare usually IDs (for example, session IDs) of pre-booking operations done\nbefore the trip ID is available. The number of `related_ids` is\nlimited to 50.\n\n### setRelatedIds\n\nThe identifiers that are directly related to the trip being reported. These\nare usually IDs (for example, session IDs) of pre-booking operations done\nbefore the trip ID is available. The number of `related_ids` is\nlimited to 50.\n\n### getSolutionType\n\nThe type of GMP product solution (for example,\n`ON_DEMAND_RIDESHARING_AND_DELIVERIES`) used for the reported trip.\n\n### setSolutionType\n\nThe type of GMP product solution (for example,\n`ON_DEMAND_RIDESHARING_AND_DELIVERIES`) used for the reported trip."]]