# Google Maps FleetEngine V1 Client - Class UpdateVehicleAttributesRequest (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 UpdateVehicleAttributesRequest.

`UpdateVehicleAttributes` request message.

Generated from protobuf message `maps.fleetengine.v1.UpdateVehicleAttributesRequest`

## Namespace

Google \\ Maps \\ FleetEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ header` | `https://docs.cloud.google.com/php/docs/reference/maps-fleetengine/latest/V1.RequestHeader` The standard Fleet Engine request header. |
| `↳ name` | `string` Required. Must be in the format `providers/{provider}/vehicles/{vehicle}`. 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. |
| `↳ attributes` | `array<https://docs.cloud.google.com/php/docs/reference/maps-fleetengine/latest/V1.VehicleAttribute>` Required. The vehicle attributes to update. Unmentioned attributes are not altered or removed. |

### getHeader

The standard Fleet Engine request header.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/maps-fleetengine/latest/V1.RequestHeader|null` |   |

### hasHeader

### clearHeader

### setHeader

The standard Fleet Engine request header.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/maps-fleetengine/latest/V1.RequestHeader` |

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

### getName

Required. Must be in the format `providers/{provider}/vehicles/{vehicle}`.

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}/vehicles/{vehicle}`.

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` |   |

### getAttributes

Required. The vehicle attributes to update. Unmentioned attributes are not
altered or removed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/maps-fleetengine/latest/V1.VehicleAttribute>` |   |

### setAttributes

Required. The vehicle attributes to update. Unmentioned attributes are not
altered or removed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/maps-fleetengine/latest/V1.VehicleAttribute>` |

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