| 1 | package Google::Cloud::Optimization::V1::FleetRouting::Types; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use Type::Library -base; | ||
| 7 | use Type::Utils -all; | ||
| 8 | use Types::Standard -types; | ||
| 9 | |||
| 10 | declare 'OptimizeToursRequest', | ||
| 11 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::OptimizeToursRequest']; | ||
| 12 | |||
| 13 | coerce 'OptimizeToursRequest', | ||
| 14 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::OptimizeToursRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedOptimizeToursRequest', | ||
| 17 | as ArrayRef[OptimizeToursRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedOptimizeToursRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::OptimizeToursRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringOptimizeToursRequest', | ||
| 23 | as HashRef[OptimizeToursRequest()]; | ||
| 24 | |||
| 25 | declare 'SolvingMode', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'SearchMode', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'OptimizeToursResponse', | ||
| 32 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::OptimizeToursResponse']; | ||
| 33 | |||
| 34 | coerce 'OptimizeToursResponse', | ||
| 35 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::OptimizeToursResponse'->new($_) }; | ||
| 36 | |||
| 37 | declare 'RepeatedOptimizeToursResponse', | ||
| 38 | as ArrayRef[OptimizeToursResponse()]; | ||
| 39 | |||
| 40 | coerce 'RepeatedOptimizeToursResponse', | ||
| 41 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::OptimizeToursResponse'->new($_) } @$_ ] }; | ||
| 42 | |||
| 43 | declare 'MapStringOptimizeToursResponse', | ||
| 44 | as HashRef[OptimizeToursResponse()]; | ||
| 45 | |||
| 46 | declare 'Metrics', | ||
| 47 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::OptimizeToursResponse::Metrics']; | ||
| 48 | |||
| 49 | coerce 'Metrics', | ||
| 50 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::OptimizeToursResponse::Metrics'->new($_) }; | ||
| 51 | |||
| 52 | declare 'RepeatedMetrics', | ||
| 53 | as ArrayRef[Metrics()]; | ||
| 54 | |||
| 55 | coerce 'RepeatedMetrics', | ||
| 56 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::OptimizeToursResponse::Metrics'->new($_) } @$_ ] }; | ||
| 57 | |||
| 58 | declare 'MapStringMetrics', | ||
| 59 | as HashRef[Metrics()]; | ||
| 60 | |||
| 61 | declare 'CostsEntry', | ||
| 62 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::OptimizeToursResponse::Metrics::CostsEntry']; | ||
| 63 | |||
| 64 | coerce 'CostsEntry', | ||
| 65 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::OptimizeToursResponse::Metrics::CostsEntry'->new($_) }; | ||
| 66 | |||
| 67 | declare 'RepeatedCostsEntry', | ||
| 68 | as ArrayRef[CostsEntry()]; | ||
| 69 | |||
| 70 | coerce 'RepeatedCostsEntry', | ||
| 71 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::OptimizeToursResponse::Metrics::CostsEntry'->new($_) } @$_ ] }; | ||
| 72 | |||
| 73 | declare 'MapStringCostsEntry', | ||
| 74 | as HashRef[CostsEntry()]; | ||
| 75 | |||
| 76 | declare 'BatchOptimizeToursRequest', | ||
| 77 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::BatchOptimizeToursRequest']; | ||
| 78 | |||
| 79 | coerce 'BatchOptimizeToursRequest', | ||
| 80 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::BatchOptimizeToursRequest'->new($_) }; | ||
| 81 | |||
| 82 | declare 'RepeatedBatchOptimizeToursRequest', | ||
| 83 | as ArrayRef[BatchOptimizeToursRequest()]; | ||
| 84 | |||
| 85 | coerce 'RepeatedBatchOptimizeToursRequest', | ||
| 86 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::BatchOptimizeToursRequest'->new($_) } @$_ ] }; | ||
| 87 | |||
| 88 | declare 'MapStringBatchOptimizeToursRequest', | ||
| 89 | as HashRef[BatchOptimizeToursRequest()]; | ||
| 90 | |||
| 91 | declare 'AsyncModelConfig', | ||
| 92 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::BatchOptimizeToursRequest::AsyncModelConfig']; | ||
| 93 | |||
| 94 | coerce 'AsyncModelConfig', | ||
| 95 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::BatchOptimizeToursRequest::AsyncModelConfig'->new($_) }; | ||
| 96 | |||
| 97 | declare 'RepeatedAsyncModelConfig', | ||
| 98 | as ArrayRef[AsyncModelConfig()]; | ||
| 99 | |||
| 100 | coerce 'RepeatedAsyncModelConfig', | ||
| 101 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::BatchOptimizeToursRequest::AsyncModelConfig'->new($_) } @$_ ] }; | ||
| 102 | |||
| 103 | declare 'MapStringAsyncModelConfig', | ||
| 104 | as HashRef[AsyncModelConfig()]; | ||
| 105 | |||
| 106 | declare 'BatchOptimizeToursResponse', | ||
| 107 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::BatchOptimizeToursResponse']; | ||
| 108 | |||
| 109 | coerce 'BatchOptimizeToursResponse', | ||
| 110 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::BatchOptimizeToursResponse'->new($_) }; | ||
| 111 | |||
| 112 | declare 'RepeatedBatchOptimizeToursResponse', | ||
| 113 | as ArrayRef[BatchOptimizeToursResponse()]; | ||
| 114 | |||
| 115 | coerce 'RepeatedBatchOptimizeToursResponse', | ||
| 116 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::BatchOptimizeToursResponse'->new($_) } @$_ ] }; | ||
| 117 | |||
| 118 | declare 'MapStringBatchOptimizeToursResponse', | ||
| 119 | as HashRef[BatchOptimizeToursResponse()]; | ||
| 120 | |||
| 121 | declare 'ShipmentModel', | ||
| 122 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::ShipmentModel']; | ||
| 123 | |||
| 124 | coerce 'ShipmentModel', | ||
| 125 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentModel'->new($_) }; | ||
| 126 | |||
| 127 | declare 'RepeatedShipmentModel', | ||
| 128 | as ArrayRef[ShipmentModel()]; | ||
| 129 | |||
| 130 | coerce 'RepeatedShipmentModel', | ||
| 131 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentModel'->new($_) } @$_ ] }; | ||
| 132 | |||
| 133 | declare 'MapStringShipmentModel', | ||
| 134 | as HashRef[ShipmentModel()]; | ||
| 135 | |||
| 136 | declare 'DurationDistanceMatrix', | ||
| 137 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::ShipmentModel::DurationDistanceMatrix']; | ||
| 138 | |||
| 139 | coerce 'DurationDistanceMatrix', | ||
| 140 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentModel::DurationDistanceMatrix'->new($_) }; | ||
| 141 | |||
| 142 | declare 'RepeatedDurationDistanceMatrix', | ||
| 143 | as ArrayRef[DurationDistanceMatrix()]; | ||
| 144 | |||
| 145 | coerce 'RepeatedDurationDistanceMatrix', | ||
| 146 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentModel::DurationDistanceMatrix'->new($_) } @$_ ] }; | ||
| 147 | |||
| 148 | declare 'MapStringDurationDistanceMatrix', | ||
| 149 | as HashRef[DurationDistanceMatrix()]; | ||
| 150 | |||
| 151 | declare 'Row', | ||
| 152 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::ShipmentModel::DurationDistanceMatrix::Row']; | ||
| 153 | |||
| 154 | coerce 'Row', | ||
| 155 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentModel::DurationDistanceMatrix::Row'->new($_) }; | ||
| 156 | |||
| 157 | declare 'RepeatedRow', | ||
| 158 | as ArrayRef[Row()]; | ||
| 159 | |||
| 160 | coerce 'RepeatedRow', | ||
| 161 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentModel::DurationDistanceMatrix::Row'->new($_) } @$_ ] }; | ||
| 162 | |||
| 163 | declare 'MapStringRow', | ||
| 164 | as HashRef[Row()]; | ||
| 165 | |||
| 166 | declare 'PrecedenceRule', | ||
| 167 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::ShipmentModel::PrecedenceRule']; | ||
| 168 | |||
| 169 | coerce 'PrecedenceRule', | ||
| 170 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentModel::PrecedenceRule'->new($_) }; | ||
| 171 | |||
| 172 | declare 'RepeatedPrecedenceRule', | ||
| 173 | as ArrayRef[PrecedenceRule()]; | ||
| 174 | |||
| 175 | coerce 'RepeatedPrecedenceRule', | ||
| 176 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentModel::PrecedenceRule'->new($_) } @$_ ] }; | ||
| 177 | |||
| 178 | declare 'MapStringPrecedenceRule', | ||
| 179 | as HashRef[PrecedenceRule()]; | ||
| 180 | |||
| 181 | declare 'BreakRule', | ||
| 182 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::ShipmentModel::BreakRule']; | ||
| 183 | |||
| 184 | coerce 'BreakRule', | ||
| 185 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentModel::BreakRule'->new($_) }; | ||
| 186 | |||
| 187 | declare 'RepeatedBreakRule', | ||
| 188 | as ArrayRef[BreakRule()]; | ||
| 189 | |||
| 190 | coerce 'RepeatedBreakRule', | ||
| 191 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentModel::BreakRule'->new($_) } @$_ ] }; | ||
| 192 | |||
| 193 | declare 'MapStringBreakRule', | ||
| 194 | as HashRef[BreakRule()]; | ||
| 195 | |||
| 196 | declare 'BreakRequest', | ||
| 197 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::ShipmentModel::BreakRule::BreakRequest']; | ||
| 198 | |||
| 199 | coerce 'BreakRequest', | ||
| 200 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentModel::BreakRule::BreakRequest'->new($_) }; | ||
| 201 | |||
| 202 | declare 'RepeatedBreakRequest', | ||
| 203 | as ArrayRef[BreakRequest()]; | ||
| 204 | |||
| 205 | coerce 'RepeatedBreakRequest', | ||
| 206 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentModel::BreakRule::BreakRequest'->new($_) } @$_ ] }; | ||
| 207 | |||
| 208 | declare 'MapStringBreakRequest', | ||
| 209 | as HashRef[BreakRequest()]; | ||
| 210 | |||
| 211 | declare 'FrequencyConstraint', | ||
| 212 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::ShipmentModel::BreakRule::FrequencyConstraint']; | ||
| 213 | |||
| 214 | coerce 'FrequencyConstraint', | ||
| 215 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentModel::BreakRule::FrequencyConstraint'->new($_) }; | ||
| 216 | |||
| 217 | declare 'RepeatedFrequencyConstraint', | ||
| 218 | as ArrayRef[FrequencyConstraint()]; | ||
| 219 | |||
| 220 | coerce 'RepeatedFrequencyConstraint', | ||
| 221 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentModel::BreakRule::FrequencyConstraint'->new($_) } @$_ ] }; | ||
| 222 | |||
| 223 | declare 'MapStringFrequencyConstraint', | ||
| 224 | as HashRef[FrequencyConstraint()]; | ||
| 225 | |||
| 226 | declare 'Shipment', | ||
| 227 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::Shipment']; | ||
| 228 | |||
| 229 | coerce 'Shipment', | ||
| 230 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::Shipment'->new($_) }; | ||
| 231 | |||
| 232 | declare 'RepeatedShipment', | ||
| 233 | as ArrayRef[Shipment()]; | ||
| 234 | |||
| 235 | coerce 'RepeatedShipment', | ||
| 236 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::Shipment'->new($_) } @$_ ] }; | ||
| 237 | |||
| 238 | declare 'MapStringShipment', | ||
| 239 | as HashRef[Shipment()]; | ||
| 240 | |||
| 241 | declare 'VisitRequest', | ||
| 242 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::Shipment::VisitRequest']; | ||
| 243 | |||
| 244 | coerce 'VisitRequest', | ||
| 245 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::Shipment::VisitRequest'->new($_) }; | ||
| 246 | |||
| 247 | declare 'RepeatedVisitRequest', | ||
| 248 | as ArrayRef[VisitRequest()]; | ||
| 249 | |||
| 250 | coerce 'RepeatedVisitRequest', | ||
| 251 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::Shipment::VisitRequest'->new($_) } @$_ ] }; | ||
| 252 | |||
| 253 | declare 'MapStringVisitRequest', | ||
| 254 | as HashRef[VisitRequest()]; | ||
| 255 | |||
| 256 | declare 'LoadDemandsEntry', | ||
| 257 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::Shipment::VisitRequest::LoadDemandsEntry']; | ||
| 258 | |||
| 259 | coerce 'LoadDemandsEntry', | ||
| 260 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::Shipment::VisitRequest::LoadDemandsEntry'->new($_) }; | ||
| 261 | |||
| 262 | declare 'RepeatedLoadDemandsEntry', | ||
| 263 | as ArrayRef[LoadDemandsEntry()]; | ||
| 264 | |||
| 265 | coerce 'RepeatedLoadDemandsEntry', | ||
| 266 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::Shipment::VisitRequest::LoadDemandsEntry'->new($_) } @$_ ] }; | ||
| 267 | |||
| 268 | declare 'MapStringLoadDemandsEntry', | ||
| 269 | as HashRef[LoadDemandsEntry()]; | ||
| 270 | |||
| 271 | declare 'Load', | ||
| 272 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::Shipment::Load']; | ||
| 273 | |||
| 274 | coerce 'Load', | ||
| 275 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::Shipment::Load'->new($_) }; | ||
| 276 | |||
| 277 | declare 'RepeatedLoad', | ||
| 278 | as ArrayRef[Load()]; | ||
| 279 | |||
| 280 | coerce 'RepeatedLoad', | ||
| 281 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::Shipment::Load'->new($_) } @$_ ] }; | ||
| 282 | |||
| 283 | declare 'MapStringLoad', | ||
| 284 | as HashRef[Load()]; | ||
| 285 | |||
| 286 | declare 'LoadDemandsEntry', | ||
| 287 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::Shipment::LoadDemandsEntry']; | ||
| 288 | |||
| 289 | coerce 'LoadDemandsEntry', | ||
| 290 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::Shipment::LoadDemandsEntry'->new($_) }; | ||
| 291 | |||
| 292 | declare 'RepeatedLoadDemandsEntry', | ||
| 293 | as ArrayRef[LoadDemandsEntry()]; | ||
| 294 | |||
| 295 | coerce 'RepeatedLoadDemandsEntry', | ||
| 296 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::Shipment::LoadDemandsEntry'->new($_) } @$_ ] }; | ||
| 297 | |||
| 298 | declare 'MapStringLoadDemandsEntry', | ||
| 299 | as HashRef[LoadDemandsEntry()]; | ||
| 300 | |||
| 301 | declare 'ShipmentTypeIncompatibility', | ||
| 302 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::ShipmentTypeIncompatibility']; | ||
| 303 | |||
| 304 | coerce 'ShipmentTypeIncompatibility', | ||
| 305 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentTypeIncompatibility'->new($_) }; | ||
| 306 | |||
| 307 | declare 'RepeatedShipmentTypeIncompatibility', | ||
| 308 | as ArrayRef[ShipmentTypeIncompatibility()]; | ||
| 309 | |||
| 310 | coerce 'RepeatedShipmentTypeIncompatibility', | ||
| 311 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentTypeIncompatibility'->new($_) } @$_ ] }; | ||
| 312 | |||
| 313 | declare 'MapStringShipmentTypeIncompatibility', | ||
| 314 | as HashRef[ShipmentTypeIncompatibility()]; | ||
| 315 | |||
| 316 | declare 'IncompatibilityMode', | ||
| 317 | as (Int | Str); | ||
| 318 | |||
| 319 | declare 'ShipmentTypeRequirement', | ||
| 320 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::ShipmentTypeRequirement']; | ||
| 321 | |||
| 322 | coerce 'ShipmentTypeRequirement', | ||
| 323 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentTypeRequirement'->new($_) }; | ||
| 324 | |||
| 325 | declare 'RepeatedShipmentTypeRequirement', | ||
| 326 | as ArrayRef[ShipmentTypeRequirement()]; | ||
| 327 | |||
| 328 | coerce 'RepeatedShipmentTypeRequirement', | ||
| 329 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentTypeRequirement'->new($_) } @$_ ] }; | ||
| 330 | |||
| 331 | declare 'MapStringShipmentTypeRequirement', | ||
| 332 | as HashRef[ShipmentTypeRequirement()]; | ||
| 333 | |||
| 334 | declare 'RequirementMode', | ||
| 335 | as (Int | Str); | ||
| 336 | |||
| 337 | declare 'RouteModifiers', | ||
| 338 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::RouteModifiers']; | ||
| 339 | |||
| 340 | coerce 'RouteModifiers', | ||
| 341 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::RouteModifiers'->new($_) }; | ||
| 342 | |||
| 343 | declare 'RepeatedRouteModifiers', | ||
| 344 | as ArrayRef[RouteModifiers()]; | ||
| 345 | |||
| 346 | coerce 'RepeatedRouteModifiers', | ||
| 347 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::RouteModifiers'->new($_) } @$_ ] }; | ||
| 348 | |||
| 349 | declare 'MapStringRouteModifiers', | ||
| 350 | as HashRef[RouteModifiers()]; | ||
| 351 | |||
| 352 | declare 'Vehicle', | ||
| 353 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::Vehicle']; | ||
| 354 | |||
| 355 | coerce 'Vehicle', | ||
| 356 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::Vehicle'->new($_) }; | ||
| 357 | |||
| 358 | declare 'RepeatedVehicle', | ||
| 359 | as ArrayRef[Vehicle()]; | ||
| 360 | |||
| 361 | coerce 'RepeatedVehicle', | ||
| 362 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::Vehicle'->new($_) } @$_ ] }; | ||
| 363 | |||
| 364 | declare 'MapStringVehicle', | ||
| 365 | as HashRef[Vehicle()]; | ||
| 366 | |||
| 367 | declare 'TravelMode', | ||
| 368 | as (Int | Str); | ||
| 369 | |||
| 370 | declare 'UnloadingPolicy', | ||
| 371 | as (Int | Str); | ||
| 372 | |||
| 373 | declare 'LoadLimit', | ||
| 374 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::Vehicle::LoadLimit']; | ||
| 375 | |||
| 376 | coerce 'LoadLimit', | ||
| 377 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::Vehicle::LoadLimit'->new($_) }; | ||
| 378 | |||
| 379 | declare 'RepeatedLoadLimit', | ||
| 380 | as ArrayRef[LoadLimit()]; | ||
| 381 | |||
| 382 | coerce 'RepeatedLoadLimit', | ||
| 383 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::Vehicle::LoadLimit'->new($_) } @$_ ] }; | ||
| 384 | |||
| 385 | declare 'MapStringLoadLimit', | ||
| 386 | as HashRef[LoadLimit()]; | ||
| 387 | |||
| 388 | declare 'Interval', | ||
| 389 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::Vehicle::LoadLimit::Interval']; | ||
| 390 | |||
| 391 | coerce 'Interval', | ||
| 392 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::Vehicle::LoadLimit::Interval'->new($_) }; | ||
| 393 | |||
| 394 | declare 'RepeatedInterval', | ||
| 395 | as ArrayRef[Interval()]; | ||
| 396 | |||
| 397 | coerce 'RepeatedInterval', | ||
| 398 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::Vehicle::LoadLimit::Interval'->new($_) } @$_ ] }; | ||
| 399 | |||
| 400 | declare 'MapStringInterval', | ||
| 401 | as HashRef[Interval()]; | ||
| 402 | |||
| 403 | declare 'DurationLimit', | ||
| 404 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::Vehicle::DurationLimit']; | ||
| 405 | |||
| 406 | coerce 'DurationLimit', | ||
| 407 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::Vehicle::DurationLimit'->new($_) }; | ||
| 408 | |||
| 409 | declare 'RepeatedDurationLimit', | ||
| 410 | as ArrayRef[DurationLimit()]; | ||
| 411 | |||
| 412 | coerce 'RepeatedDurationLimit', | ||
| 413 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::Vehicle::DurationLimit'->new($_) } @$_ ] }; | ||
| 414 | |||
| 415 | declare 'MapStringDurationLimit', | ||
| 416 | as HashRef[DurationLimit()]; | ||
| 417 | |||
| 418 | declare 'LoadLimitsEntry', | ||
| 419 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::Vehicle::LoadLimitsEntry']; | ||
| 420 | |||
| 421 | coerce 'LoadLimitsEntry', | ||
| 422 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::Vehicle::LoadLimitsEntry'->new($_) }; | ||
| 423 | |||
| 424 | declare 'RepeatedLoadLimitsEntry', | ||
| 425 | as ArrayRef[LoadLimitsEntry()]; | ||
| 426 | |||
| 427 | coerce 'RepeatedLoadLimitsEntry', | ||
| 428 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::Vehicle::LoadLimitsEntry'->new($_) } @$_ ] }; | ||
| 429 | |||
| 430 | declare 'MapStringLoadLimitsEntry', | ||
| 431 | as HashRef[LoadLimitsEntry()]; | ||
| 432 | |||
| 433 | declare 'ExtraVisitDurationForVisitTypeEntry', | ||
| 434 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::Vehicle::ExtraVisitDurationForVisitTypeEntry']; | ||
| 435 | |||
| 436 | coerce 'ExtraVisitDurationForVisitTypeEntry', | ||
| 437 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::Vehicle::ExtraVisitDurationForVisitTypeEntry'->new($_) }; | ||
| 438 | |||
| 439 | declare 'RepeatedExtraVisitDurationForVisitTypeEntry', | ||
| 440 | as ArrayRef[ExtraVisitDurationForVisitTypeEntry()]; | ||
| 441 | |||
| 442 | coerce 'RepeatedExtraVisitDurationForVisitTypeEntry', | ||
| 443 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::Vehicle::ExtraVisitDurationForVisitTypeEntry'->new($_) } @$_ ] }; | ||
| 444 | |||
| 445 | declare 'MapStringExtraVisitDurationForVisitTypeEntry', | ||
| 446 | as HashRef[ExtraVisitDurationForVisitTypeEntry()]; | ||
| 447 | |||
| 448 | declare 'TimeWindow', | ||
| 449 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::TimeWindow']; | ||
| 450 | |||
| 451 | coerce 'TimeWindow', | ||
| 452 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::TimeWindow'->new($_) }; | ||
| 453 | |||
| 454 | declare 'RepeatedTimeWindow', | ||
| 455 | as ArrayRef[TimeWindow()]; | ||
| 456 | |||
| 457 | coerce 'RepeatedTimeWindow', | ||
| 458 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::TimeWindow'->new($_) } @$_ ] }; | ||
| 459 | |||
| 460 | declare 'MapStringTimeWindow', | ||
| 461 | as HashRef[TimeWindow()]; | ||
| 462 | |||
| 463 | declare 'CapacityQuantity', | ||
| 464 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::CapacityQuantity']; | ||
| 465 | |||
| 466 | coerce 'CapacityQuantity', | ||
| 467 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::CapacityQuantity'->new($_) }; | ||
| 468 | |||
| 469 | declare 'RepeatedCapacityQuantity', | ||
| 470 | as ArrayRef[CapacityQuantity()]; | ||
| 471 | |||
| 472 | coerce 'RepeatedCapacityQuantity', | ||
| 473 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::CapacityQuantity'->new($_) } @$_ ] }; | ||
| 474 | |||
| 475 | declare 'MapStringCapacityQuantity', | ||
| 476 | as HashRef[CapacityQuantity()]; | ||
| 477 | |||
| 478 | declare 'CapacityQuantityInterval', | ||
| 479 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::CapacityQuantityInterval']; | ||
| 480 | |||
| 481 | coerce 'CapacityQuantityInterval', | ||
| 482 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::CapacityQuantityInterval'->new($_) }; | ||
| 483 | |||
| 484 | declare 'RepeatedCapacityQuantityInterval', | ||
| 485 | as ArrayRef[CapacityQuantityInterval()]; | ||
| 486 | |||
| 487 | coerce 'RepeatedCapacityQuantityInterval', | ||
| 488 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::CapacityQuantityInterval'->new($_) } @$_ ] }; | ||
| 489 | |||
| 490 | declare 'MapStringCapacityQuantityInterval', | ||
| 491 | as HashRef[CapacityQuantityInterval()]; | ||
| 492 | |||
| 493 | declare 'DistanceLimit', | ||
| 494 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::DistanceLimit']; | ||
| 495 | |||
| 496 | coerce 'DistanceLimit', | ||
| 497 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::DistanceLimit'->new($_) }; | ||
| 498 | |||
| 499 | declare 'RepeatedDistanceLimit', | ||
| 500 | as ArrayRef[DistanceLimit()]; | ||
| 501 | |||
| 502 | coerce 'RepeatedDistanceLimit', | ||
| 503 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::DistanceLimit'->new($_) } @$_ ] }; | ||
| 504 | |||
| 505 | declare 'MapStringDistanceLimit', | ||
| 506 | as HashRef[DistanceLimit()]; | ||
| 507 | |||
| 508 | declare 'TransitionAttributes', | ||
| 509 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::TransitionAttributes']; | ||
| 510 | |||
| 511 | coerce 'TransitionAttributes', | ||
| 512 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::TransitionAttributes'->new($_) }; | ||
| 513 | |||
| 514 | declare 'RepeatedTransitionAttributes', | ||
| 515 | as ArrayRef[TransitionAttributes()]; | ||
| 516 | |||
| 517 | coerce 'RepeatedTransitionAttributes', | ||
| 518 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::TransitionAttributes'->new($_) } @$_ ] }; | ||
| 519 | |||
| 520 | declare 'MapStringTransitionAttributes', | ||
| 521 | as HashRef[TransitionAttributes()]; | ||
| 522 | |||
| 523 | declare 'Waypoint', | ||
| 524 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::Waypoint']; | ||
| 525 | |||
| 526 | coerce 'Waypoint', | ||
| 527 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::Waypoint'->new($_) }; | ||
| 528 | |||
| 529 | declare 'RepeatedWaypoint', | ||
| 530 | as ArrayRef[Waypoint()]; | ||
| 531 | |||
| 532 | coerce 'RepeatedWaypoint', | ||
| 533 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::Waypoint'->new($_) } @$_ ] }; | ||
| 534 | |||
| 535 | declare 'MapStringWaypoint', | ||
| 536 | as HashRef[Waypoint()]; | ||
| 537 | |||
| 538 | declare 'Location', | ||
| 539 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::Location']; | ||
| 540 | |||
| 541 | coerce 'Location', | ||
| 542 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::Location'->new($_) }; | ||
| 543 | |||
| 544 | declare 'RepeatedLocation', | ||
| 545 | as ArrayRef[Location()]; | ||
| 546 | |||
| 547 | coerce 'RepeatedLocation', | ||
| 548 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::Location'->new($_) } @$_ ] }; | ||
| 549 | |||
| 550 | declare 'MapStringLocation', | ||
| 551 | as HashRef[Location()]; | ||
| 552 | |||
| 553 | declare 'BreakRule', | ||
| 554 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::BreakRule']; | ||
| 555 | |||
| 556 | coerce 'BreakRule', | ||
| 557 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::BreakRule'->new($_) }; | ||
| 558 | |||
| 559 | declare 'RepeatedBreakRule', | ||
| 560 | as ArrayRef[BreakRule()]; | ||
| 561 | |||
| 562 | coerce 'RepeatedBreakRule', | ||
| 563 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::BreakRule'->new($_) } @$_ ] }; | ||
| 564 | |||
| 565 | declare 'MapStringBreakRule', | ||
| 566 | as HashRef[BreakRule()]; | ||
| 567 | |||
| 568 | declare 'BreakRequest', | ||
| 569 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::BreakRule::BreakRequest']; | ||
| 570 | |||
| 571 | coerce 'BreakRequest', | ||
| 572 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::BreakRule::BreakRequest'->new($_) }; | ||
| 573 | |||
| 574 | declare 'RepeatedBreakRequest', | ||
| 575 | as ArrayRef[BreakRequest()]; | ||
| 576 | |||
| 577 | coerce 'RepeatedBreakRequest', | ||
| 578 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::BreakRule::BreakRequest'->new($_) } @$_ ] }; | ||
| 579 | |||
| 580 | declare 'MapStringBreakRequest', | ||
| 581 | as HashRef[BreakRequest()]; | ||
| 582 | |||
| 583 | declare 'FrequencyConstraint', | ||
| 584 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::BreakRule::FrequencyConstraint']; | ||
| 585 | |||
| 586 | coerce 'FrequencyConstraint', | ||
| 587 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::BreakRule::FrequencyConstraint'->new($_) }; | ||
| 588 | |||
| 589 | declare 'RepeatedFrequencyConstraint', | ||
| 590 | as ArrayRef[FrequencyConstraint()]; | ||
| 591 | |||
| 592 | coerce 'RepeatedFrequencyConstraint', | ||
| 593 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::BreakRule::FrequencyConstraint'->new($_) } @$_ ] }; | ||
| 594 | |||
| 595 | declare 'MapStringFrequencyConstraint', | ||
| 596 | as HashRef[FrequencyConstraint()]; | ||
| 597 | |||
| 598 | declare 'ShipmentRoute', | ||
| 599 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute']; | ||
| 600 | |||
| 601 | coerce 'ShipmentRoute', | ||
| 602 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute'->new($_) }; | ||
| 603 | |||
| 604 | declare 'RepeatedShipmentRoute', | ||
| 605 | as ArrayRef[ShipmentRoute()]; | ||
| 606 | |||
| 607 | coerce 'RepeatedShipmentRoute', | ||
| 608 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute'->new($_) } @$_ ] }; | ||
| 609 | |||
| 610 | declare 'MapStringShipmentRoute', | ||
| 611 | as HashRef[ShipmentRoute()]; | ||
| 612 | |||
| 613 | declare 'Delay', | ||
| 614 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::Delay']; | ||
| 615 | |||
| 616 | coerce 'Delay', | ||
| 617 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::Delay'->new($_) }; | ||
| 618 | |||
| 619 | declare 'RepeatedDelay', | ||
| 620 | as ArrayRef[Delay()]; | ||
| 621 | |||
| 622 | coerce 'RepeatedDelay', | ||
| 623 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::Delay'->new($_) } @$_ ] }; | ||
| 624 | |||
| 625 | declare 'MapStringDelay', | ||
| 626 | as HashRef[Delay()]; | ||
| 627 | |||
| 628 | declare 'Visit', | ||
| 629 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::Visit']; | ||
| 630 | |||
| 631 | coerce 'Visit', | ||
| 632 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::Visit'->new($_) }; | ||
| 633 | |||
| 634 | declare 'RepeatedVisit', | ||
| 635 | as ArrayRef[Visit()]; | ||
| 636 | |||
| 637 | coerce 'RepeatedVisit', | ||
| 638 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::Visit'->new($_) } @$_ ] }; | ||
| 639 | |||
| 640 | declare 'MapStringVisit', | ||
| 641 | as HashRef[Visit()]; | ||
| 642 | |||
| 643 | declare 'LoadDemandsEntry', | ||
| 644 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::Visit::LoadDemandsEntry']; | ||
| 645 | |||
| 646 | coerce 'LoadDemandsEntry', | ||
| 647 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::Visit::LoadDemandsEntry'->new($_) }; | ||
| 648 | |||
| 649 | declare 'RepeatedLoadDemandsEntry', | ||
| 650 | as ArrayRef[LoadDemandsEntry()]; | ||
| 651 | |||
| 652 | coerce 'RepeatedLoadDemandsEntry', | ||
| 653 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::Visit::LoadDemandsEntry'->new($_) } @$_ ] }; | ||
| 654 | |||
| 655 | declare 'MapStringLoadDemandsEntry', | ||
| 656 | as HashRef[LoadDemandsEntry()]; | ||
| 657 | |||
| 658 | declare 'Transition', | ||
| 659 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::Transition']; | ||
| 660 | |||
| 661 | coerce 'Transition', | ||
| 662 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::Transition'->new($_) }; | ||
| 663 | |||
| 664 | declare 'RepeatedTransition', | ||
| 665 | as ArrayRef[Transition()]; | ||
| 666 | |||
| 667 | coerce 'RepeatedTransition', | ||
| 668 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::Transition'->new($_) } @$_ ] }; | ||
| 669 | |||
| 670 | declare 'MapStringTransition', | ||
| 671 | as HashRef[Transition()]; | ||
| 672 | |||
| 673 | declare 'VehicleLoadsEntry', | ||
| 674 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::Transition::VehicleLoadsEntry']; | ||
| 675 | |||
| 676 | coerce 'VehicleLoadsEntry', | ||
| 677 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::Transition::VehicleLoadsEntry'->new($_) }; | ||
| 678 | |||
| 679 | declare 'RepeatedVehicleLoadsEntry', | ||
| 680 | as ArrayRef[VehicleLoadsEntry()]; | ||
| 681 | |||
| 682 | coerce 'RepeatedVehicleLoadsEntry', | ||
| 683 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::Transition::VehicleLoadsEntry'->new($_) } @$_ ] }; | ||
| 684 | |||
| 685 | declare 'MapStringVehicleLoadsEntry', | ||
| 686 | as HashRef[VehicleLoadsEntry()]; | ||
| 687 | |||
| 688 | declare 'VehicleLoad', | ||
| 689 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::VehicleLoad']; | ||
| 690 | |||
| 691 | coerce 'VehicleLoad', | ||
| 692 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::VehicleLoad'->new($_) }; | ||
| 693 | |||
| 694 | declare 'RepeatedVehicleLoad', | ||
| 695 | as ArrayRef[VehicleLoad()]; | ||
| 696 | |||
| 697 | coerce 'RepeatedVehicleLoad', | ||
| 698 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::VehicleLoad'->new($_) } @$_ ] }; | ||
| 699 | |||
| 700 | declare 'MapStringVehicleLoad', | ||
| 701 | as HashRef[VehicleLoad()]; | ||
| 702 | |||
| 703 | declare 'EncodedPolyline', | ||
| 704 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::EncodedPolyline']; | ||
| 705 | |||
| 706 | coerce 'EncodedPolyline', | ||
| 707 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::EncodedPolyline'->new($_) }; | ||
| 708 | |||
| 709 | declare 'RepeatedEncodedPolyline', | ||
| 710 | as ArrayRef[EncodedPolyline()]; | ||
| 711 | |||
| 712 | coerce 'RepeatedEncodedPolyline', | ||
| 713 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::EncodedPolyline'->new($_) } @$_ ] }; | ||
| 714 | |||
| 715 | declare 'MapStringEncodedPolyline', | ||
| 716 | as HashRef[EncodedPolyline()]; | ||
| 717 | |||
| 718 | declare 'Break', | ||
| 719 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::Break']; | ||
| 720 | |||
| 721 | coerce 'Break', | ||
| 722 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::Break'->new($_) }; | ||
| 723 | |||
| 724 | declare 'RepeatedBreak', | ||
| 725 | as ArrayRef[Break()]; | ||
| 726 | |||
| 727 | coerce 'RepeatedBreak', | ||
| 728 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::Break'->new($_) } @$_ ] }; | ||
| 729 | |||
| 730 | declare 'MapStringBreak', | ||
| 731 | as HashRef[Break()]; | ||
| 732 | |||
| 733 | declare 'TravelStep', | ||
| 734 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::TravelStep']; | ||
| 735 | |||
| 736 | coerce 'TravelStep', | ||
| 737 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::TravelStep'->new($_) }; | ||
| 738 | |||
| 739 | declare 'RepeatedTravelStep', | ||
| 740 | as ArrayRef[TravelStep()]; | ||
| 741 | |||
| 742 | coerce 'RepeatedTravelStep', | ||
| 743 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::TravelStep'->new($_) } @$_ ] }; | ||
| 744 | |||
| 745 | declare 'MapStringTravelStep', | ||
| 746 | as HashRef[TravelStep()]; | ||
| 747 | |||
| 748 | declare 'RouteCostsEntry', | ||
| 749 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::RouteCostsEntry']; | ||
| 750 | |||
| 751 | coerce 'RouteCostsEntry', | ||
| 752 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::RouteCostsEntry'->new($_) }; | ||
| 753 | |||
| 754 | declare 'RepeatedRouteCostsEntry', | ||
| 755 | as ArrayRef[RouteCostsEntry()]; | ||
| 756 | |||
| 757 | coerce 'RepeatedRouteCostsEntry', | ||
| 758 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::ShipmentRoute::RouteCostsEntry'->new($_) } @$_ ] }; | ||
| 759 | |||
| 760 | declare 'MapStringRouteCostsEntry', | ||
| 761 | as HashRef[RouteCostsEntry()]; | ||
| 762 | |||
| 763 | declare 'SkippedShipment', | ||
| 764 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::SkippedShipment']; | ||
| 765 | |||
| 766 | coerce 'SkippedShipment', | ||
| 767 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::SkippedShipment'->new($_) }; | ||
| 768 | |||
| 769 | declare 'RepeatedSkippedShipment', | ||
| 770 | as ArrayRef[SkippedShipment()]; | ||
| 771 | |||
| 772 | coerce 'RepeatedSkippedShipment', | ||
| 773 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::SkippedShipment'->new($_) } @$_ ] }; | ||
| 774 | |||
| 775 | declare 'MapStringSkippedShipment', | ||
| 776 | as HashRef[SkippedShipment()]; | ||
| 777 | |||
| 778 | declare 'Reason', | ||
| 779 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::SkippedShipment::Reason']; | ||
| 780 | |||
| 781 | coerce 'Reason', | ||
| 782 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::SkippedShipment::Reason'->new($_) }; | ||
| 783 | |||
| 784 | declare 'RepeatedReason', | ||
| 785 | as ArrayRef[Reason()]; | ||
| 786 | |||
| 787 | coerce 'RepeatedReason', | ||
| 788 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::SkippedShipment::Reason'->new($_) } @$_ ] }; | ||
| 789 | |||
| 790 | declare 'MapStringReason', | ||
| 791 | as HashRef[Reason()]; | ||
| 792 | |||
| 793 | declare 'Code', | ||
| 794 | as (Int | Str); | ||
| 795 | |||
| 796 | declare 'AggregatedMetrics', | ||
| 797 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::AggregatedMetrics']; | ||
| 798 | |||
| 799 | coerce 'AggregatedMetrics', | ||
| 800 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::AggregatedMetrics'->new($_) }; | ||
| 801 | |||
| 802 | declare 'RepeatedAggregatedMetrics', | ||
| 803 | as ArrayRef[AggregatedMetrics()]; | ||
| 804 | |||
| 805 | coerce 'RepeatedAggregatedMetrics', | ||
| 806 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::AggregatedMetrics'->new($_) } @$_ ] }; | ||
| 807 | |||
| 808 | declare 'MapStringAggregatedMetrics', | ||
| 809 | as HashRef[AggregatedMetrics()]; | ||
| 810 | |||
| 811 | declare 'MaxLoadsEntry', | ||
| 812 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::AggregatedMetrics::MaxLoadsEntry']; | ||
| 813 | |||
| 814 | coerce 'MaxLoadsEntry', | ||
| 815 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::AggregatedMetrics::MaxLoadsEntry'->new($_) }; | ||
| 816 | |||
| 817 | declare 'RepeatedMaxLoadsEntry', | ||
| 818 | as ArrayRef[MaxLoadsEntry()]; | ||
| 819 | |||
| 820 | coerce 'RepeatedMaxLoadsEntry', | ||
| 821 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::AggregatedMetrics::MaxLoadsEntry'->new($_) } @$_ ] }; | ||
| 822 | |||
| 823 | declare 'MapStringMaxLoadsEntry', | ||
| 824 | as HashRef[MaxLoadsEntry()]; | ||
| 825 | |||
| 826 | declare 'CostsEntry', | ||
| 827 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::AggregatedMetrics::CostsEntry']; | ||
| 828 | |||
| 829 | coerce 'CostsEntry', | ||
| 830 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::AggregatedMetrics::CostsEntry'->new($_) }; | ||
| 831 | |||
| 832 | declare 'RepeatedCostsEntry', | ||
| 833 | as ArrayRef[CostsEntry()]; | ||
| 834 | |||
| 835 | coerce 'RepeatedCostsEntry', | ||
| 836 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::AggregatedMetrics::CostsEntry'->new($_) } @$_ ] }; | ||
| 837 | |||
| 838 | declare 'MapStringCostsEntry', | ||
| 839 | as HashRef[CostsEntry()]; | ||
| 840 | |||
| 841 | declare 'InjectedSolutionConstraint', | ||
| 842 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::InjectedSolutionConstraint']; | ||
| 843 | |||
| 844 | coerce 'InjectedSolutionConstraint', | ||
| 845 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::InjectedSolutionConstraint'->new($_) }; | ||
| 846 | |||
| 847 | declare 'RepeatedInjectedSolutionConstraint', | ||
| 848 | as ArrayRef[InjectedSolutionConstraint()]; | ||
| 849 | |||
| 850 | coerce 'RepeatedInjectedSolutionConstraint', | ||
| 851 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::InjectedSolutionConstraint'->new($_) } @$_ ] }; | ||
| 852 | |||
| 853 | declare 'MapStringInjectedSolutionConstraint', | ||
| 854 | as HashRef[InjectedSolutionConstraint()]; | ||
| 855 | |||
| 856 | declare 'ConstraintRelaxation', | ||
| 857 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::InjectedSolutionConstraint::ConstraintRelaxation']; | ||
| 858 | |||
| 859 | coerce 'ConstraintRelaxation', | ||
| 860 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::InjectedSolutionConstraint::ConstraintRelaxation'->new($_) }; | ||
| 861 | |||
| 862 | declare 'RepeatedConstraintRelaxation', | ||
| 863 | as ArrayRef[ConstraintRelaxation()]; | ||
| 864 | |||
| 865 | coerce 'RepeatedConstraintRelaxation', | ||
| 866 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::InjectedSolutionConstraint::ConstraintRelaxation'->new($_) } @$_ ] }; | ||
| 867 | |||
| 868 | declare 'MapStringConstraintRelaxation', | ||
| 869 | as HashRef[ConstraintRelaxation()]; | ||
| 870 | |||
| 871 | declare 'Relaxation', | ||
| 872 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::InjectedSolutionConstraint::ConstraintRelaxation::Relaxation']; | ||
| 873 | |||
| 874 | coerce 'Relaxation', | ||
| 875 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::InjectedSolutionConstraint::ConstraintRelaxation::Relaxation'->new($_) }; | ||
| 876 | |||
| 877 | declare 'RepeatedRelaxation', | ||
| 878 | as ArrayRef[Relaxation()]; | ||
| 879 | |||
| 880 | coerce 'RepeatedRelaxation', | ||
| 881 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::InjectedSolutionConstraint::ConstraintRelaxation::Relaxation'->new($_) } @$_ ] }; | ||
| 882 | |||
| 883 | declare 'MapStringRelaxation', | ||
| 884 | as HashRef[Relaxation()]; | ||
| 885 | |||
| 886 | declare 'Level', | ||
| 887 | as (Int | Str); | ||
| 888 | |||
| 889 | declare 'OptimizeToursValidationError', | ||
| 890 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::OptimizeToursValidationError']; | ||
| 891 | |||
| 892 | coerce 'OptimizeToursValidationError', | ||
| 893 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::OptimizeToursValidationError'->new($_) }; | ||
| 894 | |||
| 895 | declare 'RepeatedOptimizeToursValidationError', | ||
| 896 | as ArrayRef[OptimizeToursValidationError()]; | ||
| 897 | |||
| 898 | coerce 'RepeatedOptimizeToursValidationError', | ||
| 899 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::OptimizeToursValidationError'->new($_) } @$_ ] }; | ||
| 900 | |||
| 901 | declare 'MapStringOptimizeToursValidationError', | ||
| 902 | as HashRef[OptimizeToursValidationError()]; | ||
| 903 | |||
| 904 | declare 'FieldReference', | ||
| 905 | as InstanceOf['Google::Cloud::Optimization::V1::FleetRouting::OptimizeToursValidationError::FieldReference']; | ||
| 906 | |||
| 907 | coerce 'FieldReference', | ||
| 908 | from HashRef, via { 'Google::Cloud::Optimization::V1::FleetRouting::OptimizeToursValidationError::FieldReference'->new($_) }; | ||
| 909 | |||
| 910 | declare 'RepeatedFieldReference', | ||
| 911 | as ArrayRef[FieldReference()]; | ||
| 912 | |||
| 913 | coerce 'RepeatedFieldReference', | ||
| 914 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Optimization::V1::FleetRouting::OptimizeToursValidationError::FieldReference'->new($_) } @$_ ] }; | ||
| 915 | |||
| 916 | declare 'MapStringFieldReference', | ||
| 917 | as HashRef[FieldReference()]; | ||
| 918 | |||
| 919 | 1; | ||
| 920 | |||
| 921 | __END__ |