Google Cloud Optimization V1 Client - Class SkippedShipment (0.3.4)

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
NameDescription
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, if specified in the Shipment.

↳ reasons array<Google\Cloud\Optimization\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
TypeDescription
int

setIndex

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getLabel

Copy of the corresponding Shipment.label, if specified in the Shipment.

Returns
TypeDescription
string

setLabel

Copy of the corresponding Shipment.label, if specified in the Shipment.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getReasons

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setReasons

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

Parameter
NameDescription
var array<Google\Cloud\Optimization\V1\SkippedShipment\Reason>
Returns
TypeDescription
$this