# Google Maps FleetEngine V1 Client - Class ReportBillableTripRequest (0.5.3)

0.5.3 (latest) 0.5.2 0.4.1 0.3.1 0.2.0 0.1.6 Reference documentation and code samples for the Google Maps FleetEngine V1 Client class ReportBillableTripRequest.

ReportBillableTrip request message.

Generated from protobuf message `maps.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 format `providers/{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` | `string[]` 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 of `related_ids` is 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 format
`providers/{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 format
`providers/{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 of `related_ids` is
limited to 50.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setRelatedIds

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 of `related_ids` is
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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |