# Google Cloud Optimization V1 Client - Class SkippedShipment (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.7.0 0.6.5 0.5.1 0.4.0 0.3.4 0.2.0 0.1.9 Reference documentation and code samples for the Google Cloud Optimization V1 Client class SkippedShipment.

Specifies details of unperformed shipments in a solution. For trivial cases
and/or if we are able to identify the cause for skipping, we report the
reason here.

Generated from protobuf message `google.cloud.optimization.v1.SkippedShipment`

## Namespace

Google \\ Cloud \\ Optimization \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ index` | `int` The index corresponds to the index of the shipment in the source `ShipmentModel`. |
| `↳ label` | `string` Copy of the corresponding [Shipment.label](https://docs.cloud.google.com/php/docs/reference/cloud-optimization/latest/V1.Shipment#_Google_Cloud_Optimization_V1_Shipment__getLabel__), if specified in the `Shipment`. |
| `↳ reasons` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-optimization/latest/V1.SkippedShipment.Reason>` A list of reasons that explain why the shipment was skipped. See comment above `Reason`. |

### getIndex

The index corresponds to the index of the shipment in the source
`ShipmentModel`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setIndex

The index corresponds to the index of the shipment in the source
`ShipmentModel`.

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

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

### getLabel

Copy of the corresponding
[Shipment.label](https://docs.cloud.google.com/php/docs/reference/cloud-optimization/latest/V1.Shipment#_Google_Cloud_Optimization_V1_Shipment__getLabel__), if specified
in the `Shipment`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setLabel

Copy of the corresponding
[Shipment.label](https://docs.cloud.google.com/php/docs/reference/cloud-optimization/latest/V1.Shipment#_Google_Cloud_Optimization_V1_Shipment__getLabel__), if specified
in the `Shipment`.

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

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

### getReasons

A list of reasons that explain why the shipment was skipped. See comment
above `Reason`.

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

### setReasons

A list of reasons that explain why the shipment was skipped. See comment
above `Reason`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-optimization/latest/V1.SkippedShipment.Reason>` |

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