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

Describes how clients should color one portion of the polyline along the
route.

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

## Namespace

Google \\ Maps \\ FleetEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ road_stretch` | `array<https://docs.cloud.google.com/php/docs/reference/maps-fleetengine/latest/V1.VisualTrafficReportPolylineRendering.RoadStretch>` Optional. Road stretches that should be rendered along the polyline. Stretches are guaranteed to not overlap, and do not necessarily span the full route. In the absence of a road stretch to style, the client should apply the default for the route. |

### getRoadStretch

Optional. Road stretches that should be rendered along the polyline.

Stretches are guaranteed to not overlap, and do not necessarily span the
full route.
In the absence of a road stretch to style, the client should apply the
default for the route.

| **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.VisualTrafficReportPolylineRendering.RoadStretch>` |   |

### setRoadStretch

Optional. Road stretches that should be rendered along the polyline.

Stretches are guaranteed to not overlap, and do not necessarily span the
full route.
In the absence of a road stretch to style, the client should apply the
default for the route.

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

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