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
Required. Unique Vehicle 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 '#'.
Required. The Vehicle entity to create. When creating a Vehicle, the following fields are required: * * vehicleState * * supportedTripTypes * * maximumCapacity * * vehicleType When creating a Vehicle, the following fields are ignored: * * name * * currentTrips * * availableCapacity * * current_route_segment * * current_route_segment_end_point * * current_route_segment_version * * current_route_segment_traffic * * route * * waypoints * * waypoints_version * * remaining_distance_meters * * remaining_time_seconds * * eta_to_next_waypoint * * navigation_status All other fields are optional and used if provided.
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.
[[["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 CreateVehicleRequest (0.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.1 (latest)](/php/docs/reference/maps-fleetengine/latest/V1.CreateVehicleRequest)\n- [0.4.0](/php/docs/reference/maps-fleetengine/0.4.0/V1.CreateVehicleRequest)\n- [0.3.1](/php/docs/reference/maps-fleetengine/0.3.1/V1.CreateVehicleRequest)\n- [0.2.0](/php/docs/reference/maps-fleetengine/0.2.0/V1.CreateVehicleRequest)\n- [0.1.6](/php/docs/reference/maps-fleetengine/0.1.6/V1.CreateVehicleRequest) \nReference documentation and code samples for the Google Maps FleetEngine V1 Client class CreateVehicleRequest.\n\n`CreateVehicle` request message.\n\nGenerated from protobuf message `maps.fleetengine.v1.CreateVehicleRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Maps \\\\ FleetEngine \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getHeader\n\nThe standard Fleet Engine request header.\n\n### hasHeader\n\n### clearHeader\n\n### setHeader\n\nThe standard Fleet Engine request header.\n\n### getParent\n\nRequired. Must be in the format `providers/{provider}`.\n\nThe provider must be the Project ID (for example, `sample-cloud-project`)\nof the Google Cloud Project of which the service account making\nthis call is a member.\n\n### setParent\n\nRequired. Must be in the format `providers/{provider}`.\n\nThe provider must be the Project ID (for example, `sample-cloud-project`)\nof the Google Cloud Project of which the service account making\nthis call is a member.\n\n### getVehicleId\n\nRequired. Unique Vehicle ID.\n\nSubject to the following restrictions:\n\n- Must be a valid Unicode string.\n- Limited to a maximum length of 64 characters.\n- Normalized according to [Unicode Normalization Form C](http://www.unicode.org/reports/tr15/).\n- May not contain any of the following ASCII characters: '/', ':', '?', ',', or '#'.\n\n### setVehicleId\n\nRequired. Unique Vehicle ID.\n\nSubject to the following restrictions:\n\n- Must be a valid Unicode string.\n- Limited to a maximum length of 64 characters.\n- Normalized according to [Unicode Normalization Form C](http://www.unicode.org/reports/tr15/).\n- May not contain any of the following ASCII characters: '/', ':', '?', ',', or '#'.\n\n### getVehicle\n\nRequired. The Vehicle entity to create. When creating a Vehicle, the\nfollowing fields are required:\n\n- `vehicleState`\n- `supportedTripTypes`\n- `maximumCapacity`\n- `vehicleType` When creating a Vehicle, the following fields are ignored:\n- `name`\n- `currentTrips`\n- `availableCapacity`\n- `current_route_segment`\n- `current_route_segment_end_point`\n- `current_route_segment_version`\n- `current_route_segment_traffic`\n- `route`\n- `waypoints`\n- `waypoints_version`\n- `remaining_distance_meters`\n- `remaining_time_seconds`\n- `eta_to_next_waypoint`\n- `navigation_status` All other fields are optional and used if provided.\n\n### hasVehicle\n\n### clearVehicle\n\n### setVehicle\n\nRequired. The Vehicle entity to create. When creating a Vehicle, the\nfollowing fields are required:\n\n- `vehicleState`\n- `supportedTripTypes`\n- `maximumCapacity`\n- `vehicleType` When creating a Vehicle, the following fields are ignored:\n- `name`\n- `currentTrips`\n- `availableCapacity`\n- `current_route_segment`\n- `current_route_segment_end_point`\n- `current_route_segment_version`\n- `current_route_segment_traffic`\n- `route`\n- `waypoints`\n- `waypoints_version`\n- `remaining_distance_meters`\n- `remaining_time_seconds`\n- `eta_to_next_waypoint`\n- `navigation_status` All other fields are optional and used if provided."]]