From 7d4f922b1b3e489ae1ac9ab295feb0f047ce71d4 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 10 Dec 2024 00:01:33 +0000 Subject: [PATCH 1/4] docs: correct SearchVehiclesRequest.ordered_by description PiperOrigin-RevId: 704403622 Source-Link: https://github.com/googleapis/googleapis/commit/4e78e682efabbe91a3bc62d3ce0213f02524929d Source-Link: https://github.com/googleapis/googleapis-gen/commit/157433126b3c6546254d9f8c3785b0af19b9d7bc Copy-Tag: eyJwIjoiTWFwc0ZsZWV0RW5naW5lLy5Pd2xCb3QueWFtbCIsImgiOiIxNTc0MzMxMjZiM2M2NTQ2MjU0ZDlmOGMzNzg1YjBhZjE5YjlkN2JjIn0= --- .../Maps/Fleetengine/V1/Fleetengine.php | Bin 0 -> 4557 bytes .../Google/Maps/Fleetengine/V1/Header.php | Bin 0 -> 1414 bytes .../Google/Maps/Fleetengine/V1/Traffic.php | Bin 0 -> 1210 bytes .../Google/Maps/Fleetengine/V1/TripApi.php | Bin 0 -> 4480 bytes .../Google/Maps/Fleetengine/V1/Trips.php | Bin 0 -> 4253 bytes .../Google/Maps/Fleetengine/V1/VehicleApi.php | Bin 0 -> 7424 bytes .../Google/Maps/Fleetengine/V1/Vehicles.php | Bin 0 -> 4391 bytes .../Maps/FleetEngine/V1/BatteryInfo.php | 135 ++ .../Maps/FleetEngine/V1/BatteryStatus.php | 82 + .../V1/BillingPlatformIdentifier.php | 82 + .../V1/ConsumableTrafficPolyline.php | 117 ++ .../Maps/FleetEngine/V1/CreateTripRequest.php | 329 +++ .../FleetEngine/V1/CreateVehicleRequest.php | 313 +++ .../Maps/FleetEngine/V1/DeviceSettings.php | 183 ++ .../Maps/FleetEngine/V1/GetTripRequest.php | 439 ++++ .../Maps/FleetEngine/V1/GetVehicleRequest.php | 243 +++ .../Maps/FleetEngine/V1/LicensePlate.php | 123 ++ .../FleetEngine/V1/ListVehiclesRequest.php | 926 +++++++++ .../FleetEngine/V1/ListVehiclesResponse.php | 151 ++ .../FleetEngine/V1/LocationPowerSaveMode.php | 89 + .../Maps/FleetEngine/V1/LocationSensor.php | 110 + .../Maps/FleetEngine/V1/NavigationStatus.php | 76 + .../FleetEngine/V1/PolylineFormatType.php | 62 + .../Maps/FleetEngine/V1/PowerSource.php | 75 + .../V1/ReportBillableTripRequest.php | 239 +++ .../SolutionType.php | 59 + .../Maps/FleetEngine/V1/RequestHeader.php | 493 +++++ .../FleetEngine/V1/RequestHeader/Platform.php | 71 + .../FleetEngine/V1/RequestHeader/SdkType.php | 71 + .../FleetEngine/V1/SearchTripsRequest.php | 335 +++ .../FleetEngine/V1/SearchTripsResponse.php | 109 + .../FleetEngine/V1/SearchVehiclesRequest.php | 1029 ++++++++++ .../CurrentTripsPresent.php | 68 + .../VehicleMatchOrder.php | 90 + .../FleetEngine/V1/SearchVehiclesResponse.php | 71 + .../FleetEngine/V1/SpeedReadingInterval.php | 145 ++ .../V1/SpeedReadingInterval/Speed.php | 71 + .../Maps/FleetEngine/V1/StopLocation.php | 172 ++ .../Maps/FleetEngine/V1/TerminalLocation.php | 245 +++ .../Maps/FleetEngine/V1/TerminalPointId.php | 159 ++ .../FleetEngine/V1/TrafficPolylineData.php | 81 + .../src/Google/Maps/FleetEngine/V1/Trip.php | 1614 +++++++++++++++ .../Google/Maps/FleetEngine/V1/TripStatus.php | 111 + .../Google/Maps/FleetEngine/V1/TripType.php | 61 + .../Google/Maps/FleetEngine/V1/TripView.php | 67 + .../Maps/FleetEngine/V1/TripWaypoint.php | 451 +++++ .../Maps/FleetEngine/V1/UpdateTripRequest.php | 355 ++++ .../V1/UpdateVehicleAttributesRequest.php | 161 ++ .../V1/UpdateVehicleAttributesResponse.php | 71 + .../FleetEngine/V1/UpdateVehicleRequest.php | 267 +++ .../Google/Maps/FleetEngine/V1/Vehicle.php | 1108 ++++++++++ .../FleetEngine/V1/Vehicle/VehicleType.php | 70 + .../V1/Vehicle/VehicleType/Category.php | 93 + .../Maps/FleetEngine/V1/VehicleAttribute.php | 225 +++ .../FleetEngine/V1/VehicleAttributeList.php | 67 + .../Maps/FleetEngine/V1/VehicleLocation.php | 1789 +++++++++++++++++ .../Maps/FleetEngine/V1/VehicleMatch.php | 693 +++++++ .../V1/VehicleMatch/VehicleMatchType.php | 83 + .../Maps/FleetEngine/V1/VehicleState.php | 62 + .../VisualTrafficReportPolylineRendering.php | 84 + .../RoadStretch.php | 142 ++ .../RoadStretch/Style.php | 64 + .../Google/Maps/FleetEngine/V1/Waypoint.php | 123 ++ .../Maps/FleetEngine/V1/WaypointType.php | 68 + .../V1/TripServiceClient/create_trip.php | 87 + .../samples/V1/TripServiceClient/get_trip.php | 74 + .../report_billable_trip.php | 76 + .../V1/TripServiceClient/search_trips.php | 78 + .../V1/TripServiceClient/update_trip.php | 78 + .../VehicleServiceClient/create_vehicle.php | 116 ++ .../V1/VehicleServiceClient/get_vehicle.php | 75 + .../V1/VehicleServiceClient/list_vehicles.php | 85 + .../VehicleServiceClient/search_vehicles.php | 120 ++ .../VehicleServiceClient/update_vehicle.php | 98 + .../update_vehicle_attributes.php | 80 + .../v1/src/V1/Client/TripServiceClient.php | 348 ++++ .../v1/src/V1/Client/VehicleServiceClient.php | 430 ++++ .../v1/src/V1/gapic_metadata.json | 82 + .../resources/trip_service_client_config.json | 59 + .../trip_service_descriptor_config.php | 114 ++ .../trip_service_rest_client_config.php | 94 + .../vehicle_service_client_config.json | 64 + .../vehicle_service_descriptor_config.php | 129 ++ .../vehicle_service_rest_client_config.php | 108 + .../Unit/V1/Client/TripServiceClientTest.php | 501 +++++ .../V1/Client/VehicleServiceClientTest.php | 618 ++++++ 86 files changed, 18386 insertions(+) create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Fleetengine.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Header.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Traffic.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/TripApi.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Trips.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/VehicleApi.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Vehicles.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryInfo.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryStatus.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BillingPlatformIdentifier.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ConsumableTrafficPolyline.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateTripRequest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateVehicleRequest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/DeviceSettings.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetTripRequest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetVehicleRequest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LicensePlate.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesRequest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesResponse.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationPowerSaveMode.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationSensor.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/NavigationStatus.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PolylineFormatType.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PowerSource.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest/SolutionType.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/Platform.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/SdkType.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsRequest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsResponse.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/CurrentTripsPresent.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/VehicleMatchOrder.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesResponse.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval/Speed.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/StopLocation.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalLocation.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalPointId.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TrafficPolylineData.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Trip.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripStatus.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripType.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripView.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripWaypoint.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateTripRequest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesRequest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesResponse.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleRequest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType/Category.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttribute.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttributeList.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleLocation.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch/VehicleMatchType.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleState.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch/Style.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Waypoint.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/WaypointType.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/create_trip.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/get_trip.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/report_billable_trip.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/search_trips.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/update_trip.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/create_vehicle.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/get_vehicle.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/list_vehicles.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/search_vehicles.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle_attributes.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/TripServiceClient.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/VehicleServiceClient.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_client_config.json create mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_descriptor_config.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_rest_client_config.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_client_config.json create mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_descriptor_config.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_rest_client_config.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/TripServiceClientTest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/VehicleServiceClientTest.php diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Fleetengine.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Fleetengine.php new file mode 100644 index 0000000000000000000000000000000000000000..11ab219baf22a4e85eda528d0b9885d9bf5540bd GIT binary patch literal 4557 zcmbVQT~piG8D85E;5ETU1R_Y5YT0Z<*sK|xY`0@VT7Sr_Cq~lPGBh2}Xk_bPG%HIQ zNhZT~@&h`(=zr++s`tI?59ss{^tRXi2Yc7|9DUdXW9a6FSm%A-kLUe3A8&r+Ubyh3 za7=9C=>ai>-jxts5W)4F!09`d&>Nkf6Hn+nL)Wy3R}h4nEJ(5{h_#0L1wwsi8O z7&y+rBKt$#_4m&$LIPqBOq=Xq9!&l$FvS42J|w=Y_la<0-6y**git4yedanC|B(=TrBF(cj&8#ah-d3ow?_QFXS#voDJWVh4M>m> zNx$sAh|E%T=DDyN`dBL6aPmk9yb+nSE(jh8MxK4h{H6*%CjaYB;jHYM-MUFEqe3q9 zOVja6rEyeaCDWi&=Px=#uE1q)}oTWrW06d3sd8(I<`L=>OG4@ z6H0NcD+~7-?lt5L6Q>7`aczjZkLU9bn4%|fjl_*oXxPE4;wh~>T2L9>efR|?x^+V| z8A;sNuoyQOzsRIFZ%D_pZ|Bcgyr<;C>|3N9V3qVn0pYTc`GH)q^eu4@ zV*8HAXA!wl{Br7iiF>2XM3KB4o+mv=H#Fa-2MmLMa*N#xwrMz1-oiS92ClD#1~p>S zfo1T^cR{JkbF@w0 zOc|eN$f;xDTUebG4YRU(ONiq+`de7L28)vN6oL0l$|0;@(~y+iCNn;}?254Nk6hOx zL&C;c5-E3kq;FwsDkcnh?aq)J@N_ypiv7|3W3R#XbX5rn>-Qjm$1G3Q^cG?kY2)v` zfkk@mpa&6d9acNiJ4rs1G_}=GH1)kA=0D>A9<;wNx5QdLg}d02_`7Pe({7xK`SjkO zQm`B!S(u7VSdUelmES9JLsDZkJUmhw)ps35yS|dbBjZM`B`ca-uYa z;Ptbtids!TzopHJKj(am`jggEq19cw@%85Ll|xoe>J6Jt=VWt zpHm!$AWBuaCe}1XZoY3eBryyjz4u4lvk~`7ac+HwocFF@v4X`|UJEJ&hyCb!<99sHq`+boG0ZU?qoa=E6prLv-+ zsis^FV^CW1X`?2#@^joaY*jmLRX!10TDzkt&Blaaex8z6Z;GO-iPAA8EY^{KfM@E* z^-g<2TubyC90w1pa%)2VpQ#E)wvEpZ@i}A4*}alwuL2@_a8OdeulFryWW)f(?hl-s z4->j;UVoc#dxsO3F}L@Zbf#Jt|CZi5X3r7@dQUD)SSp+z{3~AUhL0BEt3~KY7oRQu zoBlimmr4{}DowykrPG7n19m8V^*p&tz6@UiCLRuOl;fFU%A*0346pVd;UmER0BK5- AfB*mh literal 0 HcmV?d00001 diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Header.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Header.php new file mode 100644 index 0000000000000000000000000000000000000000..52f1053ac43c8dcfc58a40db1bf162d39d348b9d GIT binary patch literal 1414 zcma)6-EPxJ6y7Azgww(XQ-oP*SF_zp4S$XTcP<6xw`6zISV;&1S+XYfNjk#unDICg zpx*KzNZjx!d&>)O%~LS8+cc$JiQHs-=6v7zoAW(>8Xku57um-E1(oQL$y*{1k%WRv z?sA_@;^`Cxarr!CJ_>`7R-YX7N2J~Aj{a28h{wW3lgv1u`B{M2W$S1z26w zs)tBD1x+~t0y@Viq%M+utI-_xIM1z0=PbnBJwPyf%ibvFN`NX zb4etrRDatna#+A5qdt45s@Nk_>PM)c=Y6Mf;7Y~=k^uUFi~0`Y1k|@%7`cLlk_$_@n&u4UvVDoAa_2Z~LdT}0lI3Wc=aSqbQpC6#oe+UC z7Qt?scS3NqJlPkts~$4D!_fB{ct{tF3)4KU>Xalc>cJCsTteORmKk@{R4dCENyHua zvv`=4tViB!XMrM8*Lop!*8q65v|UPVo3P>Gg1P9-6|b*fPOXojl)&ZN z5cM@>x%Tj`aY3fWnJkT=_j;rdDy?$j?5t)`OnGm?uK``0xhSO zdp{A-I)-Sfia8D9DRtHSQRtA8-iGTm@C0X`Lqq2HxKIVItE5T{zcn>QnPpr$6ZZz_$*?`ax^Z@3s_O5enV@P;sfli*}=2Xne`R zA4)rn>@{7~kVY|kA(54P)p30udne8cSDo?milRE9L}lg0g_GSgUmx>@W~co*|63+1 zMj|RkDk|+%lZfgc5XA|pV2dD_4~0sgB~+>_fuoe0ON-LPu7a8-YD1BbC2M1k)0H+}%U%}> z>YY3PfFnPJU%;Ikzk;{d>W%?cpoB2h=2f(&apTJ94B0G zpEEql!VnVd^GQq@Bqqk4K0fRZvEAtopGs)Tv&07rk2xPRXiP|)HbMpNI(Q}_Y1t+lX%zpi+4|&+X(rLq$wV%Jm@pR@`1c=z#nG}Zk=(%|$zbtzj1v%9 z5^Wc}^8^?3Rl)4VE}imd1;PAUM>fZp2j;L1^tFPFt9C`dmp9H_XqW)v{L*4UT)0i^tl@U1-JayDMh3*#Ra-R=nw8Thynlr literal 0 HcmV?d00001 diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/TripApi.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/TripApi.php new file mode 100644 index 0000000000000000000000000000000000000000..3f22c6d8e70f2da43348ea1cc03de3bf7ccd9098 GIT binary patch literal 4480 zcmbtYOK;mo5Uy;;j#sH0uZu=f;DnZ)SV!y+=IRau^kRRzo0I{N05)q1I z$)#L3@FmAyd+V`>qUe8Ud+8}afui{XJ@nH4gq}LPBxO3H{772yZq>Z z)wR%~v_TDO6GmH7^H5@4Dp|J4Ox4t-rrT~)TT;!QrRmhpN>XWC+S=Zg%BAY=0=PP+ zYpYb2I;PptX|6{sC)d^~Wz^_s2F>+Xa?I8&g;-ivL`BFTJ?dCQrP4;NxJeml5k?vt zB0ysk0yHYe0UG-&s|cw&aU5wE0u?L`Jw+1yv)rbxsglD8gFj1}qiBZ4G@@%?Ln3QZ zo9GS&-(lOfYp6^!4T(E!8!FA*k-V7PcF8g!@ii$xRO7XPIy9;VqqafxMu|EqKw+j` z15;Vd`0| zhRLg78jdU<=X4xml;gUtQG;E~r=n54Ris_g*G&6ju663OnXng+qB+7Q@JdGNu~Kr-cszd^-^zG%VNhDdewTe|ep9lK6{(rVpIGy7YhwzC}>9fdvct?HQzhi=o+do5I$@ zIbWw=x4nEVx#`0f6s?uGBwWYA6W>D<{AprBAV@|c;O<3koqjffW;Q6}4_+sU z56}eP{4SiryJ(`X(St-Bz|Q37M}pl4BV0i9s%!I7DK?OiDh}=R_^&>-9Z-+Nq)0iH z^@`IS3@d(suG_RnU@I{?$^kjFOc+sT5Mb)e07W$Gy}NDNJ;D@rXwk%FfxfXE z3BP9QhdLY>D#BqG>~R&{icW;tq}|rk0iNkI@s!a*R6-ucpf2dFFzMgNP_j-f(`H3Y z*GW@9LF-w+yJHY%TJQ!Z(G}Hn4Q3xIs@Vz}F9`Svx@_r$@d626&g8R^h2d|4Hq?CE zY71Ja!6e#v4#jN>k7*0I?Lb?{Gt;<^-gHbIc1+Xos?M7=lV6RDJu;WOXZ!1g?e>s zL*c(m1a=lvKxf)CV0`jnD!SU}z9bZKrg4%oHaPbMp@1wXYkSJW=L`UNJ;Taih zhMq3`6GM215?k$ZX>eXg8|GdTIFSQJs873^s#7jsT&t#mQ?mq)uYIa;0do}7&<_RP z%Xk(|TciUM4@Y1z=9e%;5RaJogc=D>hH1!kwg|a9Y;)OJf9p=h2YSU z{uIrfNY%06yh)+kmjn*b@^R4e(MpQ1p|=eB6;ncZ#Hi%|m_l)0za47#HI?EYV+bAZ z8u)f3caIJHs;5T3I{oio@=E%Y(bgJ?{=5y7G^_ O?h8xrT7HC%5c(gd2H+_G literal 0 HcmV?d00001 diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Trips.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Trips.php new file mode 100644 index 0000000000000000000000000000000000000000..2fa51c46dc0ef2fe9bb3a34f8a912ef55298b374 GIT binary patch literal 4253 zcmbVP+fv(B6s} zOh2JN(5F832l@|v>mPLbn6KzQN0KqYCQkAaEbYCtFKgdkeCM1x=svfHE$pg3*13~& z&OgPRd9TR7}s^ewb zCdNLtI);U_XWLodH5`wpkO*077kiGXVQ#NhIK;lHtG?RWquQ-Q&~BA4wOh^YU4%4K z^*l}{DCiyH;GYwmn1;rAzUsq&8-}MCmf;(!Y5W2{yyV)d>0!{kF53<)%{Od|BMMbZ z!&{HI5R=GmI5znFl8f!BkuX3ATB7A+*HX<^340nC;@fTwM02?g_Itr2PqrRKpCxcc zo7)O)%;l~b`I7V90QY~L<6P_quC+_;CIA<`zgh#Lm3NF**}$e=z^Ce&VY|89rB|0A z!&K`y%H7CX1JcuKd+e%?gI#ZQ zRr%b(t%~ZKR%fsh<=?YcM#Q$fuJ_1QhVt9$(SeX-6aAJ!4@avzW}Xx#-&dIY+4f>4 zQdS)!>qcw{>vZwy4Y>U%w5k`kZjkoFyhgYyktEfF%F60d@}l>vAHMhF3=IQ#8>Jz7 z&qe?~#5!xzSch-c|4O5A(nOd!G)}q@o8S^#(}m=}`6R<2bcRn2&BThKvt#51^9`CI zol7AV9C&OJ9^T$rN#QSmP04-ewQC-(KBbd}6 z?vubEY>_D>b?gLHUgX2HgsFhM^S#Oo6R?jml=WS#8!(6z9m*0MC1vfgx4Go#5fRYZ zP$cCH>J=c_%*U)^9-@_DFfeR%{4@I{V5FEI5g)~FsQ8s=dh8nYX4Kr&5cd&$k6r&H z#24t6?%IysZb$i@q`?@Ga3ypnvgazuJqj|aSKp%9Se>$D>SOr`SpsZ#aaV;YXLXdf z>N(}7$EI)apOoftBpHIdKyz`eUqaj&5rS!LqLga~K4zz>%6!ahQt&)9_lngCzq5`O zw7_+-buptzo#)7VTV&Z59 z*KG6Lgyk*tLqZP*+ZbW@Y+V`6)+$;ZjE5~fVkAqE29xP}LW?MK$qLGi-;r5< zvHp7k&GwH?+6BVlNS271onc*IjClt8K)k}x#bRdXhG7Ux$Fv9YS)pB#tQ{br0TJx$aS%%G~~Q|)JT89OroSD9H$e^0-6(~di6*a6uGL@ z#NxqGEj>ma=j(N`DU_7F96wGHZ}0a#7bRJ!AHo5c2lbNBkVPpki&ZH-NhSM$he}Q{ zcM;PkSgKcR)p9vK&dj2zV)d|A5o95qqQCM|QK$%|^u*&|QKn#+(3v_l*zDT2+ZA?X=kE1lY~){iIXN$tz;fm9<40Pju2bYNV3zJYD&=5l}tn; zS(38j2HA93bk~2-MGFkNEsFku7M*1ablpW)MOR(6z@Xtx2tQi1|m*kEOd2ZxTEo`>!jOSC41_=ZrY=<)`-ZN zk(8{NeOEU+XWwdrn9ataMVdQ0Ij~H71Op=yFqn^L*C9&KbE3A$2ri3~A*x`6IQ!|l z*2hA}967rYJ}Zm)mg>Cv2D}X&3*J?G);HjNX{(k+>=CSGao<$k?nw#5s{6q+UDR^E z)$&Vs9dT~iFE(0wci@*9xIYTONeey1uygF;7^}s@#7M8Lr zDoYSt4iMO)e8f^RxWsEjtXvZ-9b#r&EQHLyCJ+cZ4`<*-?bwV>vD4 z-W@_HT7h#!MYaWkYo;Z#Q>=Sk#b4*%>0u5E3eR;uh3h5SNn0FUS|%EZ79wqA0f-`Dq`MSjxhAZg4Ut$CjtFsdPlN(}J3pyR-o3E!9StO^zc^e0BUE z`7!AdfN+SSw~`Zsg)B^ph2%N5#ru(42)&rF)c;~Izd_t@LDx@Ug7#;j={?l+zxi8` z3g!e4F($H;#?c@nHkI;lRqNZ-OvT1rB#J{iJ^Hkd<%^)hY@E(6r8z%$G{!yc!-Mo8 z%pa(SmWie5_-xz>L)cP(#$at*I7NIL!I}>_fQ2d$5gMoI?CBAa9>H{jiDJwvu+PdG+z_0sS4LmRMfF>3?Wi@ zi`d9p{3#9>>qND+J&|JX)Av|H(*ihZ>uf6?j&j3JFw2@AZ3% zrs5>6yNAiC!SY7{m^GF{Va-X#(eZQHtC6v7AQ|nKe5*$=-&0>RvDmJ=crI|9B(RLX ze5`7{SwdQa*?lqO^9|=%q?aQ%6p>7e-@)FiuwWy^>NaU9fyA5{A#0>9Sn_3<22sp* zP}Bt`>h3VL{2brZ5$ZpMYbT0BaC4pH;;16)FlE{}0V=zP$ys#lT=q$%K9OnfIc-aI zwY>@z!^8GIEb4~V?YD@st7@+l*JQs*2{)LMF2E#925d45_#!TS0T(@-rVEZ@;Z#AJ z(?zDxvk??3aJ;8kuwAPaQIAHg zRIMx3TCq-_w#)Tuu~1qs71vN_lvA#hi>T)$jOWXrCB{;l@ZQmY3W&tc(xcJDGUfPq zBhvdp*QLImfCZYL;$;LV&Y2#0okMoUoTh;1b2V>Ff|(dI^{I1Gt1p>5`6V z>pmo|4D+>DY!so=1+MQ3Q~{b2$5b1JL9>kJgHwTpVpUxFWPq&n`hX;-(dN1A z&>X2#LM)sa(@fznLiGcQf)dobml4U+R=pW@*mO(8w)ouYX$zlOzd z{)uExqa^NdFPn$XNjL#tFvx3H31rq7)r*eCF5YHz2N^idJfHdure2EqP`U+^II$~u z$`h0Lf|qqnWjp|G8Xc*52gdP+DM*RMrmMKO)3&ZB_5=p_lMBPB|))X47zy+^COX!ISHa zI@BsY3LhV72jhGh?s|;E8`zpW5l6M*bJI}h_z>bOrD=fKh;$lqaQ&YJfPghT|BQh% z6`gydXCpt;%7dUXux4`=o44k&*4V738xWjL=Ni-bro?roC;#B4zQU+HQxysM z@pzb`zeg8`&W0zrI7D+cb$`rVymY#{VHclC?|;YOQb;F14;|@Yq_}3eO!t@u?0yy!=g(jOew5sgc596QH)Xx ze~H0dc%+u@MLIi7p6)d5cZ{ zosWN5;mb|@()X{itDHHPqujY%fIXMnS=l|$u6iHd@vrFb^RH)tk8N~P*0qQaZH$tC K5PJ)60sapxOrkXa literal 0 HcmV?d00001 diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Vehicles.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Vehicles.php new file mode 100644 index 0000000000000000000000000000000000000000..e3dd430a3bf43572325505b3aa161cfa0b9862b7 GIT binary patch literal 4391 zcmb_gUvt{n6))JN_OU~-Y$q~~6NU9o9M2ZUPN&nw&9(vrVS|B1!fraus6t$@W`(4Y z1gV?x2k2|x`_jjLfO!$?TLDgzouwf9IUvxtCx4+PQGx zGoeN-;%Yt_2>naJzaWC++P(!Wn z-YFXBRj&>7&W=t1bW`&@;Vd)+??J$iGwGX#E_lA?9rD!cF4xbs&+6jGalfk5=?mQP$uGkX={>8|1Uw%bP0 zVsS+L8HDuB!Hdu>HD?TkgCNFY@m7$p1mB&IdGCVY5`W@aCoFDi;A-~Nivdh@j9%3s z=Ac9_w5egc#p3m@u8n+1wL`)TezI0fhUOFY>F#H^Dh3vWuZ^7_p?mIXjze58UX`Wt zXI~j%;>5vVmZvJ#^T7;Rit}^$=PtbXevtQg{ zdfp0alkC$_n*GA+EBFygp}8kF1>S{F1nar~tieyij^Q?7nRXqY5E2KgrKNw1OWZHv ze%P2Qtxm!xaV>rPEFZJ0d}v3eg4_vgc@xL6T_gpTdyVj`w3Nh9NaVS&oOySo?!9o{Uvp zLv}IzOa30}r?@WxG#}&aPkfAW1^ulZe}0!uF_PxWupWU#_sFlZfDZ0bjww-HjtGfBuYs>!R^6z1T(XsdSo<4 z(D^O&y~-)D7rTr((S}1q=O5p(Q6-RR+vcT-6kkF1rW;-6svojC#RjGMe88+`^FieX zb&92(pAkS%nqR}y_~?i=P#qh)ndk3-kk;C{cF6>}uVBX|V+|?M8mR*VOC9N69pij* zJ)UD$c5lUlME~;mOfx40i)R}rlNf!N=dc?2^Z19X2I8w`Var9>m}#jI^qG%^8$kaUw)&d>E!{8sCYIJW$$)=^>MOXT z4GU+?h;=8Ujfux+aVh6YJQmbeG7rkuCb^VgEpkUE)Vs$8m<-_HS zeBvlZrt`HC!Eul{NansvKzcEYTm$%s;jx>UKW&OVX%B({l|DXYB|m{X(O@iObMj&HXnC`)7tX(aexWJA_Wsh)g?3am2;G;C>J5uB{C) zi+CQ?FR--f+>&CE`4ofs4qB4~W3-VH*&ncU=3a6tq&)x9jFRx?|KchyQFev4~L73wYIEQ>atjBNEJ$FO;s*;B>ckQ zkn(QHi;c#I<(If;u(xQx+UiKPPOICjsJO$o$doUkuqdLu?z9vIq3KB9bdfaWTXCcg z|B-r>hY=VhQBkDMTLx`c4j@>3M*-;6>dhKL@C33q7IFWx^(6NQHgBv~yNw2N z{!`e!v49uiYs<^rW8iNH1lhqF&7=UPRBgPZVR{*5Zq!rp?+ z!pp8)!u()?ExbLicW@xdGKPx)Ei84L?MAm&!_HYQ{VM@aaPCA0pqQh7X(cRVubuc^ zRX6R)Ad;p7Yh>TP^5ZnaTmRgYbNVL>zy6wBDp#eyC9^el=g-p{Wxh)9{1W@qAb)oB zU9{K>{t*ann89)n{}cE=xfduGi&VQ Pb17$%!PWT+t^ocAm(z9? literal 0 HcmV?d00001 diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryInfo.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryInfo.php new file mode 100644 index 000000000000..ae3acb5ba812 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryInfo.php @@ -0,0 +1,135 @@ +maps.fleetengine.v1.BatteryInfo + */ +class BatteryInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Status of the battery, whether full or charging etc. + * + * Generated from protobuf field .maps.fleetengine.v1.BatteryStatus battery_status = 1; + */ + protected $battery_status = 0; + /** + * Status of battery power source. + * + * Generated from protobuf field .maps.fleetengine.v1.PowerSource power_source = 2; + */ + protected $power_source = 0; + /** + * Current battery percentage [0-100]. + * + * Generated from protobuf field float battery_percentage = 3; + */ + protected $battery_percentage = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $battery_status + * Status of the battery, whether full or charging etc. + * @type int $power_source + * Status of battery power source. + * @type float $battery_percentage + * Current battery percentage [0-100]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); + parent::__construct($data); + } + + /** + * Status of the battery, whether full or charging etc. + * + * Generated from protobuf field .maps.fleetengine.v1.BatteryStatus battery_status = 1; + * @return int + */ + public function getBatteryStatus() + { + return $this->battery_status; + } + + /** + * Status of the battery, whether full or charging etc. + * + * Generated from protobuf field .maps.fleetengine.v1.BatteryStatus battery_status = 1; + * @param int $var + * @return $this + */ + public function setBatteryStatus($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\BatteryStatus::class); + $this->battery_status = $var; + + return $this; + } + + /** + * Status of battery power source. + * + * Generated from protobuf field .maps.fleetengine.v1.PowerSource power_source = 2; + * @return int + */ + public function getPowerSource() + { + return $this->power_source; + } + + /** + * Status of battery power source. + * + * Generated from protobuf field .maps.fleetengine.v1.PowerSource power_source = 2; + * @param int $var + * @return $this + */ + public function setPowerSource($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\PowerSource::class); + $this->power_source = $var; + + return $this; + } + + /** + * Current battery percentage [0-100]. + * + * Generated from protobuf field float battery_percentage = 3; + * @return float + */ + public function getBatteryPercentage() + { + return $this->battery_percentage; + } + + /** + * Current battery percentage [0-100]. + * + * Generated from protobuf field float battery_percentage = 3; + * @param float $var + * @return $this + */ + public function setBatteryPercentage($var) + { + GPBUtil::checkFloat($var); + $this->battery_percentage = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryStatus.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryStatus.php new file mode 100644 index 000000000000..618208d92d46 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryStatus.php @@ -0,0 +1,82 @@ +maps.fleetengine.v1.BatteryStatus + */ +class BatteryStatus +{ + /** + * Battery status unknown. + * + * Generated from protobuf enum UNKNOWN_BATTERY_STATUS = 0; + */ + const UNKNOWN_BATTERY_STATUS = 0; + /** + * Battery is being charged. + * + * Generated from protobuf enum BATTERY_STATUS_CHARGING = 1; + */ + const BATTERY_STATUS_CHARGING = 1; + /** + * Battery is discharging. + * + * Generated from protobuf enum BATTERY_STATUS_DISCHARGING = 2; + */ + const BATTERY_STATUS_DISCHARGING = 2; + /** + * Battery is full. + * + * Generated from protobuf enum BATTERY_STATUS_FULL = 3; + */ + const BATTERY_STATUS_FULL = 3; + /** + * Battery is not charging. + * + * Generated from protobuf enum BATTERY_STATUS_NOT_CHARGING = 4; + */ + const BATTERY_STATUS_NOT_CHARGING = 4; + /** + * Battery is low on power. + * + * Generated from protobuf enum BATTERY_STATUS_POWER_LOW = 5; + */ + const BATTERY_STATUS_POWER_LOW = 5; + + private static $valueToName = [ + self::UNKNOWN_BATTERY_STATUS => 'UNKNOWN_BATTERY_STATUS', + self::BATTERY_STATUS_CHARGING => 'BATTERY_STATUS_CHARGING', + self::BATTERY_STATUS_DISCHARGING => 'BATTERY_STATUS_DISCHARGING', + self::BATTERY_STATUS_FULL => 'BATTERY_STATUS_FULL', + self::BATTERY_STATUS_NOT_CHARGING => 'BATTERY_STATUS_NOT_CHARGING', + self::BATTERY_STATUS_POWER_LOW => 'BATTERY_STATUS_POWER_LOW', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BillingPlatformIdentifier.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BillingPlatformIdentifier.php new file mode 100644 index 000000000000..6b3b7e454bdd --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BillingPlatformIdentifier.php @@ -0,0 +1,82 @@ +maps.fleetengine.v1.BillingPlatformIdentifier + */ +class BillingPlatformIdentifier +{ + /** + * Default. Used for unspecified platforms. + * + * Generated from protobuf enum BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED = 0; + */ + const BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED = 0; + /** + * The platform is a client server. + * + * Generated from protobuf enum SERVER = 1; + */ + const SERVER = 1; + /** + * The platform is a web browser. + * + * Generated from protobuf enum WEB = 2; + */ + const WEB = 2; + /** + * The platform is an Android mobile device. + * + * Generated from protobuf enum ANDROID = 3; + */ + const ANDROID = 3; + /** + * The platform is an IOS mobile device. + * + * Generated from protobuf enum IOS = 4; + */ + const IOS = 4; + /** + * Other platforms that are not listed in this enumeration. + * + * Generated from protobuf enum OTHERS = 5; + */ + const OTHERS = 5; + + private static $valueToName = [ + self::BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED => 'BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED', + self::SERVER => 'SERVER', + self::WEB => 'WEB', + self::ANDROID => 'ANDROID', + self::IOS => 'IOS', + self::OTHERS => 'OTHERS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ConsumableTrafficPolyline.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ConsumableTrafficPolyline.php new file mode 100644 index 000000000000..e9320fa4cdb4 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ConsumableTrafficPolyline.php @@ -0,0 +1,117 @@ +maps.fleetengine.v1.ConsumableTrafficPolyline + */ +class ConsumableTrafficPolyline extends \Google\Protobuf\Internal\Message +{ + /** + * Traffic speed along the path from the previous waypoint to the current + * waypoint. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.SpeedReadingInterval speed_reading_interval = 1; + */ + private $speed_reading_interval; + /** + * The path the driver is taking from the previous waypoint to the current + * waypoint. This path has landmarks in it so clients can show traffic markers + * along the path (see `speed_reading_interval`). Decoding is not yet + * supported. + * + * Generated from protobuf field string encoded_path_to_waypoint = 2; + */ + protected $encoded_path_to_waypoint = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Maps\FleetEngine\V1\SpeedReadingInterval>|\Google\Protobuf\Internal\RepeatedField $speed_reading_interval + * Traffic speed along the path from the previous waypoint to the current + * waypoint. + * @type string $encoded_path_to_waypoint + * The path the driver is taking from the previous waypoint to the current + * waypoint. This path has landmarks in it so clients can show traffic markers + * along the path (see `speed_reading_interval`). Decoding is not yet + * supported. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Traffic::initOnce(); + parent::__construct($data); + } + + /** + * Traffic speed along the path from the previous waypoint to the current + * waypoint. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.SpeedReadingInterval speed_reading_interval = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSpeedReadingInterval() + { + return $this->speed_reading_interval; + } + + /** + * Traffic speed along the path from the previous waypoint to the current + * waypoint. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.SpeedReadingInterval speed_reading_interval = 1; + * @param array<\Google\Maps\FleetEngine\V1\SpeedReadingInterval>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSpeedReadingInterval($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\SpeedReadingInterval::class); + $this->speed_reading_interval = $arr; + + return $this; + } + + /** + * The path the driver is taking from the previous waypoint to the current + * waypoint. This path has landmarks in it so clients can show traffic markers + * along the path (see `speed_reading_interval`). Decoding is not yet + * supported. + * + * Generated from protobuf field string encoded_path_to_waypoint = 2; + * @return string + */ + public function getEncodedPathToWaypoint() + { + return $this->encoded_path_to_waypoint; + } + + /** + * The path the driver is taking from the previous waypoint to the current + * waypoint. This path has landmarks in it so clients can show traffic markers + * along the path (see `speed_reading_interval`). Decoding is not yet + * supported. + * + * Generated from protobuf field string encoded_path_to_waypoint = 2; + * @param string $var + * @return $this + */ + public function setEncodedPathToWaypoint($var) + { + GPBUtil::checkString($var, True); + $this->encoded_path_to_waypoint = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateTripRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateTripRequest.php new file mode 100644 index 000000000000..d98b71603eaf --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateTripRequest.php @@ -0,0 +1,329 @@ +maps.fleetengine.v1.CreateTripRequest + */ +class CreateTripRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + */ + protected $header = null; + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Unique Trip ID. + * Subject to the following restrictions: + * * Must be a valid Unicode string. + * * Limited to a maximum length of 64 characters. + * * Normalized according to [Unicode Normalization Form C] + * (http://www.unicode.org/reports/tr15/). + * * May not contain any of the following ASCII characters: '/', ':', '?', + * ',', or '#'. + * + * Generated from protobuf field string trip_id = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $trip_id = ''; + /** + * Required. Trip entity to create. + * When creating a Trip, the following fields are required: + * * `trip_type` + * * `pickup_point` + * The following fields are used if you provide them: + * * `number_of_passengers` + * * `vehicle_id` + * * `dropoff_point` + * * `intermediate_destinations` + * * `vehicle_waypoints` + * All other Trip fields are ignored. For example, all trips start with a + * `trip_status` of `NEW` even if you pass in a `trip_status` of `CANCELED` in + * the creation request. + * Only `EXCLUSIVE` trips support `intermediate_destinations`. + * When `vehicle_id` is set for a shared trip, you must supply + * the list of `Trip.vehicle_waypoints` to specify the order of the remaining + * waypoints for the vehicle, otherwise the waypoint order will be + * undetermined. + * When you specify `Trip.vehicle_waypoints`, the list must contain all + * the remaining waypoints of the vehicle's trips, with no extra waypoints. + * You must order these waypoints such that for a given trip, the pickup + * point is before intermediate destinations, and all intermediate + * destinations come before the drop-off point. An `EXCLUSIVE` trip's + * waypoints must not interleave with any other trips. + * The `trip_id`, `waypoint_type` and `location` fields are used, and all + * other TripWaypoint fields in `vehicle_waypoints` are ignored. + * + * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $trip = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\RequestHeader $header + * The standard Fleet Engine request header. + * @type string $parent + * Required. Must be in the format `providers/{provider}`. + * 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. + * @type string $trip_id + * Required. Unique Trip ID. + * Subject to the following restrictions: + * * Must be a valid Unicode string. + * * Limited to a maximum length of 64 characters. + * * Normalized according to [Unicode Normalization Form C] + * (http://www.unicode.org/reports/tr15/). + * * May not contain any of the following ASCII characters: '/', ':', '?', + * ',', or '#'. + * @type \Google\Maps\FleetEngine\V1\Trip $trip + * Required. Trip entity to create. + * When creating a Trip, the following fields are required: + * * `trip_type` + * * `pickup_point` + * The following fields are used if you provide them: + * * `number_of_passengers` + * * `vehicle_id` + * * `dropoff_point` + * * `intermediate_destinations` + * * `vehicle_waypoints` + * All other Trip fields are ignored. For example, all trips start with a + * `trip_status` of `NEW` even if you pass in a `trip_status` of `CANCELED` in + * the creation request. + * Only `EXCLUSIVE` trips support `intermediate_destinations`. + * When `vehicle_id` is set for a shared trip, you must supply + * the list of `Trip.vehicle_waypoints` to specify the order of the remaining + * waypoints for the vehicle, otherwise the waypoint order will be + * undetermined. + * When you specify `Trip.vehicle_waypoints`, the list must contain all + * the remaining waypoints of the vehicle's trips, with no extra waypoints. + * You must order these waypoints such that for a given trip, the pickup + * point is before intermediate destinations, and all intermediate + * destinations come before the drop-off point. An `EXCLUSIVE` trip's + * waypoints must not interleave with any other trips. + * The `trip_id`, `waypoint_type` and `location` fields are used, and all + * other TripWaypoint fields in `vehicle_waypoints` are ignored. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); + parent::__construct($data); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @return \Google\Maps\FleetEngine\V1\RequestHeader|null + */ + public function getHeader() + { + return $this->header; + } + + public function hasHeader() + { + return isset($this->header); + } + + public function clearHeader() + { + unset($this->header); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @param \Google\Maps\FleetEngine\V1\RequestHeader $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); + $this->header = $var; + + return $this; + } + + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Unique Trip ID. + * Subject to the following restrictions: + * * Must be a valid Unicode string. + * * Limited to a maximum length of 64 characters. + * * Normalized according to [Unicode Normalization Form C] + * (http://www.unicode.org/reports/tr15/). + * * May not contain any of the following ASCII characters: '/', ':', '?', + * ',', or '#'. + * + * Generated from protobuf field string trip_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTripId() + { + return $this->trip_id; + } + + /** + * Required. Unique Trip ID. + * Subject to the following restrictions: + * * Must be a valid Unicode string. + * * Limited to a maximum length of 64 characters. + * * Normalized according to [Unicode Normalization Form C] + * (http://www.unicode.org/reports/tr15/). + * * May not contain any of the following ASCII characters: '/', ':', '?', + * ',', or '#'. + * + * Generated from protobuf field string trip_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTripId($var) + { + GPBUtil::checkString($var, True); + $this->trip_id = $var; + + return $this; + } + + /** + * Required. Trip entity to create. + * When creating a Trip, the following fields are required: + * * `trip_type` + * * `pickup_point` + * The following fields are used if you provide them: + * * `number_of_passengers` + * * `vehicle_id` + * * `dropoff_point` + * * `intermediate_destinations` + * * `vehicle_waypoints` + * All other Trip fields are ignored. For example, all trips start with a + * `trip_status` of `NEW` even if you pass in a `trip_status` of `CANCELED` in + * the creation request. + * Only `EXCLUSIVE` trips support `intermediate_destinations`. + * When `vehicle_id` is set for a shared trip, you must supply + * the list of `Trip.vehicle_waypoints` to specify the order of the remaining + * waypoints for the vehicle, otherwise the waypoint order will be + * undetermined. + * When you specify `Trip.vehicle_waypoints`, the list must contain all + * the remaining waypoints of the vehicle's trips, with no extra waypoints. + * You must order these waypoints such that for a given trip, the pickup + * point is before intermediate destinations, and all intermediate + * destinations come before the drop-off point. An `EXCLUSIVE` trip's + * waypoints must not interleave with any other trips. + * The `trip_id`, `waypoint_type` and `location` fields are used, and all + * other TripWaypoint fields in `vehicle_waypoints` are ignored. + * + * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Maps\FleetEngine\V1\Trip|null + */ + public function getTrip() + { + return $this->trip; + } + + public function hasTrip() + { + return isset($this->trip); + } + + public function clearTrip() + { + unset($this->trip); + } + + /** + * Required. Trip entity to create. + * When creating a Trip, the following fields are required: + * * `trip_type` + * * `pickup_point` + * The following fields are used if you provide them: + * * `number_of_passengers` + * * `vehicle_id` + * * `dropoff_point` + * * `intermediate_destinations` + * * `vehicle_waypoints` + * All other Trip fields are ignored. For example, all trips start with a + * `trip_status` of `NEW` even if you pass in a `trip_status` of `CANCELED` in + * the creation request. + * Only `EXCLUSIVE` trips support `intermediate_destinations`. + * When `vehicle_id` is set for a shared trip, you must supply + * the list of `Trip.vehicle_waypoints` to specify the order of the remaining + * waypoints for the vehicle, otherwise the waypoint order will be + * undetermined. + * When you specify `Trip.vehicle_waypoints`, the list must contain all + * the remaining waypoints of the vehicle's trips, with no extra waypoints. + * You must order these waypoints such that for a given trip, the pickup + * point is before intermediate destinations, and all intermediate + * destinations come before the drop-off point. An `EXCLUSIVE` trip's + * waypoints must not interleave with any other trips. + * The `trip_id`, `waypoint_type` and `location` fields are used, and all + * other TripWaypoint fields in `vehicle_waypoints` are ignored. + * + * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Maps\FleetEngine\V1\Trip $var + * @return $this + */ + public function setTrip($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Trip::class); + $this->trip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateVehicleRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateVehicleRequest.php new file mode 100644 index 000000000000..5cb20e991a11 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateVehicleRequest.php @@ -0,0 +1,313 @@ +maps.fleetengine.v1.CreateVehicleRequest + */ +class CreateVehicleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + */ + protected $header = null; + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Required. Unique Vehicle ID. + * Subject to the following restrictions: + * * Must be a valid Unicode string. + * * Limited to a maximum length of 64 characters. + * * Normalized according to [Unicode Normalization Form C] + * (http://www.unicode.org/reports/tr15/). + * * May not contain any of the following ASCII characters: '/', ':', '?', + * ',', or '#'. + * + * Generated from protobuf field string vehicle_id = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $vehicle_id = ''; + /** + * Required. The Vehicle entity to create. When creating a Vehicle, the + * following fields are required: + * * `vehicleState` + * * `supportedTripTypes` + * * `maximumCapacity` + * * `vehicleType` + * When creating a Vehicle, the following fields are ignored: + * * `name` + * * `currentTrips` + * * `availableCapacity` + * * `current_route_segment` + * * `current_route_segment_end_point` + * * `current_route_segment_version` + * * `current_route_segment_traffic` + * * `route` + * * `waypoints` + * * `waypoints_version` + * * `remaining_distance_meters` + * * `remaining_time_seconds` + * * `eta_to_next_waypoint` + * * `navigation_status` + * All other fields are optional and used if provided. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $vehicle = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\RequestHeader $header + * The standard Fleet Engine request header. + * @type string $parent + * Required. Must be in the format `providers/{provider}`. + * 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. + * @type string $vehicle_id + * Required. Unique Vehicle ID. + * Subject to the following restrictions: + * * Must be a valid Unicode string. + * * Limited to a maximum length of 64 characters. + * * Normalized according to [Unicode Normalization Form C] + * (http://www.unicode.org/reports/tr15/). + * * May not contain any of the following ASCII characters: '/', ':', '?', + * ',', or '#'. + * @type \Google\Maps\FleetEngine\V1\Vehicle $vehicle + * Required. The Vehicle entity to create. When creating a Vehicle, the + * following fields are required: + * * `vehicleState` + * * `supportedTripTypes` + * * `maximumCapacity` + * * `vehicleType` + * When creating a Vehicle, the following fields are ignored: + * * `name` + * * `currentTrips` + * * `availableCapacity` + * * `current_route_segment` + * * `current_route_segment_end_point` + * * `current_route_segment_version` + * * `current_route_segment_traffic` + * * `route` + * * `waypoints` + * * `waypoints_version` + * * `remaining_distance_meters` + * * `remaining_time_seconds` + * * `eta_to_next_waypoint` + * * `navigation_status` + * All other fields are optional and used if provided. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @return \Google\Maps\FleetEngine\V1\RequestHeader|null + */ + public function getHeader() + { + return $this->header; + } + + public function hasHeader() + { + return isset($this->header); + } + + public function clearHeader() + { + unset($this->header); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @param \Google\Maps\FleetEngine\V1\RequestHeader $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); + $this->header = $var; + + return $this; + } + + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Unique Vehicle ID. + * Subject to the following restrictions: + * * Must be a valid Unicode string. + * * Limited to a maximum length of 64 characters. + * * Normalized according to [Unicode Normalization Form C] + * (http://www.unicode.org/reports/tr15/). + * * May not contain any of the following ASCII characters: '/', ':', '?', + * ',', or '#'. + * + * Generated from protobuf field string vehicle_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getVehicleId() + { + return $this->vehicle_id; + } + + /** + * Required. Unique Vehicle ID. + * Subject to the following restrictions: + * * Must be a valid Unicode string. + * * Limited to a maximum length of 64 characters. + * * Normalized according to [Unicode Normalization Form C] + * (http://www.unicode.org/reports/tr15/). + * * May not contain any of the following ASCII characters: '/', ':', '?', + * ',', or '#'. + * + * Generated from protobuf field string vehicle_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setVehicleId($var) + { + GPBUtil::checkString($var, True); + $this->vehicle_id = $var; + + return $this; + } + + /** + * Required. The Vehicle entity to create. When creating a Vehicle, the + * following fields are required: + * * `vehicleState` + * * `supportedTripTypes` + * * `maximumCapacity` + * * `vehicleType` + * When creating a Vehicle, the following fields are ignored: + * * `name` + * * `currentTrips` + * * `availableCapacity` + * * `current_route_segment` + * * `current_route_segment_end_point` + * * `current_route_segment_version` + * * `current_route_segment_traffic` + * * `route` + * * `waypoints` + * * `waypoints_version` + * * `remaining_distance_meters` + * * `remaining_time_seconds` + * * `eta_to_next_waypoint` + * * `navigation_status` + * All other fields are optional and used if provided. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Maps\FleetEngine\V1\Vehicle|null + */ + public function getVehicle() + { + return $this->vehicle; + } + + public function hasVehicle() + { + return isset($this->vehicle); + } + + public function clearVehicle() + { + unset($this->vehicle); + } + + /** + * Required. The Vehicle entity to create. When creating a Vehicle, the + * following fields are required: + * * `vehicleState` + * * `supportedTripTypes` + * * `maximumCapacity` + * * `vehicleType` + * When creating a Vehicle, the following fields are ignored: + * * `name` + * * `currentTrips` + * * `availableCapacity` + * * `current_route_segment` + * * `current_route_segment_end_point` + * * `current_route_segment_version` + * * `current_route_segment_traffic` + * * `route` + * * `waypoints` + * * `waypoints_version` + * * `remaining_distance_meters` + * * `remaining_time_seconds` + * * `eta_to_next_waypoint` + * * `navigation_status` + * All other fields are optional and used if provided. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Maps\FleetEngine\V1\Vehicle $var + * @return $this + */ + public function setVehicle($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Vehicle::class); + $this->vehicle = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/DeviceSettings.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/DeviceSettings.php new file mode 100644 index 000000000000..7cd163b718f0 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/DeviceSettings.php @@ -0,0 +1,183 @@ +maps.fleetengine.v1.DeviceSettings + */ +class DeviceSettings extends \Google\Protobuf\Internal\Message +{ + /** + * How location features are set to behave on the device when battery saver is + * on. + * + * Generated from protobuf field .maps.fleetengine.v1.LocationPowerSaveMode location_power_save_mode = 1; + */ + protected $location_power_save_mode = 0; + /** + * Whether the device is currently in power save mode. + * + * Generated from protobuf field bool is_power_save_mode = 2; + */ + protected $is_power_save_mode = false; + /** + * Whether the device is in an interactive state. + * + * Generated from protobuf field bool is_interactive = 3; + */ + protected $is_interactive = false; + /** + * Information about the battery state. + * + * Generated from protobuf field .maps.fleetengine.v1.BatteryInfo battery_info = 4; + */ + protected $battery_info = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $location_power_save_mode + * How location features are set to behave on the device when battery saver is + * on. + * @type bool $is_power_save_mode + * Whether the device is currently in power save mode. + * @type bool $is_interactive + * Whether the device is in an interactive state. + * @type \Google\Maps\FleetEngine\V1\BatteryInfo $battery_info + * Information about the battery state. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); + parent::__construct($data); + } + + /** + * How location features are set to behave on the device when battery saver is + * on. + * + * Generated from protobuf field .maps.fleetengine.v1.LocationPowerSaveMode location_power_save_mode = 1; + * @return int + */ + public function getLocationPowerSaveMode() + { + return $this->location_power_save_mode; + } + + /** + * How location features are set to behave on the device when battery saver is + * on. + * + * Generated from protobuf field .maps.fleetengine.v1.LocationPowerSaveMode location_power_save_mode = 1; + * @param int $var + * @return $this + */ + public function setLocationPowerSaveMode($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\LocationPowerSaveMode::class); + $this->location_power_save_mode = $var; + + return $this; + } + + /** + * Whether the device is currently in power save mode. + * + * Generated from protobuf field bool is_power_save_mode = 2; + * @return bool + */ + public function getIsPowerSaveMode() + { + return $this->is_power_save_mode; + } + + /** + * Whether the device is currently in power save mode. + * + * Generated from protobuf field bool is_power_save_mode = 2; + * @param bool $var + * @return $this + */ + public function setIsPowerSaveMode($var) + { + GPBUtil::checkBool($var); + $this->is_power_save_mode = $var; + + return $this; + } + + /** + * Whether the device is in an interactive state. + * + * Generated from protobuf field bool is_interactive = 3; + * @return bool + */ + public function getIsInteractive() + { + return $this->is_interactive; + } + + /** + * Whether the device is in an interactive state. + * + * Generated from protobuf field bool is_interactive = 3; + * @param bool $var + * @return $this + */ + public function setIsInteractive($var) + { + GPBUtil::checkBool($var); + $this->is_interactive = $var; + + return $this; + } + + /** + * Information about the battery state. + * + * Generated from protobuf field .maps.fleetengine.v1.BatteryInfo battery_info = 4; + * @return \Google\Maps\FleetEngine\V1\BatteryInfo|null + */ + public function getBatteryInfo() + { + return $this->battery_info; + } + + public function hasBatteryInfo() + { + return isset($this->battery_info); + } + + public function clearBatteryInfo() + { + unset($this->battery_info); + } + + /** + * Information about the battery state. + * + * Generated from protobuf field .maps.fleetengine.v1.BatteryInfo battery_info = 4; + * @param \Google\Maps\FleetEngine\V1\BatteryInfo $var + * @return $this + */ + public function setBatteryInfo($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\BatteryInfo::class); + $this->battery_info = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetTripRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetTripRequest.php new file mode 100644 index 000000000000..471812e6a653 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetTripRequest.php @@ -0,0 +1,439 @@ +maps.fleetengine.v1.GetTripRequest + */ +class GetTripRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + */ + protected $header = null; + /** + * Required. Must be in the format `providers/{provider}/trips/{trip}`. + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * The subset of Trip fields that should be returned and their interpretation. + * + * Generated from protobuf field .maps.fleetengine.v1.TripView view = 11; + */ + protected $view = 0; + /** + * Indicates the minimum timestamp (exclusive) for which `Trip.route` or + * `Trip.current_route_segment` data are retrieved. If route data are + * unchanged since this timestamp, the route field is not set in the response. + * If a minimum is unspecified, the route data are always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 6; + */ + protected $current_route_segment_version = null; + /** + * Indicates the minimum timestamp (exclusive) for which + * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this + * timestamp, the `remaining_waypoints` are not set in the response. If this + * field is unspecified, `remaining_waypoints` is always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 7; + */ + protected $remaining_waypoints_version = null; + /** + * The returned current route format, `LAT_LNG_LIST_TYPE` (in `Trip.route`), + * or `ENCODED_POLYLINE_TYPE` (in `Trip.current_route_segment`). The default + * is `LAT_LNG_LIST_TYPE`. + * + * Generated from protobuf field .maps.fleetengine.v1.PolylineFormatType route_format_type = 8; + */ + protected $route_format_type = 0; + /** + * Indicates the minimum timestamp (exclusive) for which + * `Trip.current_route_segment_traffic` is retrieved. If traffic data are + * unchanged since this timestamp, the `current_route_segment_traffic` field + * is not set in the response. If a minimum is unspecified, the traffic data + * are always retrieved. Note that traffic is only available for On-Demand + * Rides and Deliveries Solution customers. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 9; + */ + protected $current_route_segment_traffic_version = null; + /** + * Indicates the minimum timestamp (exclusive) for which + * `Trip.remaining_waypoints.traffic_to_waypoint` and + * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved. If data are + * unchanged since this timestamp, the fields above are + * not set in the response. If `remaining_waypoints_route_version` is + * unspecified, traffic and path are always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 10; + */ + protected $remaining_waypoints_route_version = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\RequestHeader $header + * The standard Fleet Engine request header. + * @type string $name + * Required. Must be in the format `providers/{provider}/trips/{trip}`. + * 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. + * @type int $view + * The subset of Trip fields that should be returned and their interpretation. + * @type \Google\Protobuf\Timestamp $current_route_segment_version + * Indicates the minimum timestamp (exclusive) for which `Trip.route` or + * `Trip.current_route_segment` data are retrieved. If route data are + * unchanged since this timestamp, the route field is not set in the response. + * If a minimum is unspecified, the route data are always retrieved. + * @type \Google\Protobuf\Timestamp $remaining_waypoints_version + * Indicates the minimum timestamp (exclusive) for which + * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this + * timestamp, the `remaining_waypoints` are not set in the response. If this + * field is unspecified, `remaining_waypoints` is always retrieved. + * @type int $route_format_type + * The returned current route format, `LAT_LNG_LIST_TYPE` (in `Trip.route`), + * or `ENCODED_POLYLINE_TYPE` (in `Trip.current_route_segment`). The default + * is `LAT_LNG_LIST_TYPE`. + * @type \Google\Protobuf\Timestamp $current_route_segment_traffic_version + * Indicates the minimum timestamp (exclusive) for which + * `Trip.current_route_segment_traffic` is retrieved. If traffic data are + * unchanged since this timestamp, the `current_route_segment_traffic` field + * is not set in the response. If a minimum is unspecified, the traffic data + * are always retrieved. Note that traffic is only available for On-Demand + * Rides and Deliveries Solution customers. + * @type \Google\Protobuf\Timestamp $remaining_waypoints_route_version + * Indicates the minimum timestamp (exclusive) for which + * `Trip.remaining_waypoints.traffic_to_waypoint` and + * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved. If data are + * unchanged since this timestamp, the fields above are + * not set in the response. If `remaining_waypoints_route_version` is + * unspecified, traffic and path are always retrieved. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); + parent::__construct($data); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @return \Google\Maps\FleetEngine\V1\RequestHeader|null + */ + public function getHeader() + { + return $this->header; + } + + public function hasHeader() + { + return isset($this->header); + } + + public function clearHeader() + { + unset($this->header); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @param \Google\Maps\FleetEngine\V1\RequestHeader $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); + $this->header = $var; + + return $this; + } + + /** + * Required. Must be in the format `providers/{provider}/trips/{trip}`. + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Must be in the format `providers/{provider}/trips/{trip}`. + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The subset of Trip fields that should be returned and their interpretation. + * + * Generated from protobuf field .maps.fleetengine.v1.TripView view = 11; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * The subset of Trip fields that should be returned and their interpretation. + * + * Generated from protobuf field .maps.fleetengine.v1.TripView view = 11; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\TripView::class); + $this->view = $var; + + return $this; + } + + /** + * Indicates the minimum timestamp (exclusive) for which `Trip.route` or + * `Trip.current_route_segment` data are retrieved. If route data are + * unchanged since this timestamp, the route field is not set in the response. + * If a minimum is unspecified, the route data are always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 6; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCurrentRouteSegmentVersion() + { + return $this->current_route_segment_version; + } + + public function hasCurrentRouteSegmentVersion() + { + return isset($this->current_route_segment_version); + } + + public function clearCurrentRouteSegmentVersion() + { + unset($this->current_route_segment_version); + } + + /** + * Indicates the minimum timestamp (exclusive) for which `Trip.route` or + * `Trip.current_route_segment` data are retrieved. If route data are + * unchanged since this timestamp, the route field is not set in the response. + * If a minimum is unspecified, the route data are always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 6; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCurrentRouteSegmentVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->current_route_segment_version = $var; + + return $this; + } + + /** + * Indicates the minimum timestamp (exclusive) for which + * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this + * timestamp, the `remaining_waypoints` are not set in the response. If this + * field is unspecified, `remaining_waypoints` is always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 7; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRemainingWaypointsVersion() + { + return $this->remaining_waypoints_version; + } + + public function hasRemainingWaypointsVersion() + { + return isset($this->remaining_waypoints_version); + } + + public function clearRemainingWaypointsVersion() + { + unset($this->remaining_waypoints_version); + } + + /** + * Indicates the minimum timestamp (exclusive) for which + * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this + * timestamp, the `remaining_waypoints` are not set in the response. If this + * field is unspecified, `remaining_waypoints` is always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 7; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRemainingWaypointsVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->remaining_waypoints_version = $var; + + return $this; + } + + /** + * The returned current route format, `LAT_LNG_LIST_TYPE` (in `Trip.route`), + * or `ENCODED_POLYLINE_TYPE` (in `Trip.current_route_segment`). The default + * is `LAT_LNG_LIST_TYPE`. + * + * Generated from protobuf field .maps.fleetengine.v1.PolylineFormatType route_format_type = 8; + * @return int + */ + public function getRouteFormatType() + { + return $this->route_format_type; + } + + /** + * The returned current route format, `LAT_LNG_LIST_TYPE` (in `Trip.route`), + * or `ENCODED_POLYLINE_TYPE` (in `Trip.current_route_segment`). The default + * is `LAT_LNG_LIST_TYPE`. + * + * Generated from protobuf field .maps.fleetengine.v1.PolylineFormatType route_format_type = 8; + * @param int $var + * @return $this + */ + public function setRouteFormatType($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\PolylineFormatType::class); + $this->route_format_type = $var; + + return $this; + } + + /** + * Indicates the minimum timestamp (exclusive) for which + * `Trip.current_route_segment_traffic` is retrieved. If traffic data are + * unchanged since this timestamp, the `current_route_segment_traffic` field + * is not set in the response. If a minimum is unspecified, the traffic data + * are always retrieved. Note that traffic is only available for On-Demand + * Rides and Deliveries Solution customers. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 9; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCurrentRouteSegmentTrafficVersion() + { + return $this->current_route_segment_traffic_version; + } + + public function hasCurrentRouteSegmentTrafficVersion() + { + return isset($this->current_route_segment_traffic_version); + } + + public function clearCurrentRouteSegmentTrafficVersion() + { + unset($this->current_route_segment_traffic_version); + } + + /** + * Indicates the minimum timestamp (exclusive) for which + * `Trip.current_route_segment_traffic` is retrieved. If traffic data are + * unchanged since this timestamp, the `current_route_segment_traffic` field + * is not set in the response. If a minimum is unspecified, the traffic data + * are always retrieved. Note that traffic is only available for On-Demand + * Rides and Deliveries Solution customers. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 9; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCurrentRouteSegmentTrafficVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->current_route_segment_traffic_version = $var; + + return $this; + } + + /** + * Indicates the minimum timestamp (exclusive) for which + * `Trip.remaining_waypoints.traffic_to_waypoint` and + * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved. If data are + * unchanged since this timestamp, the fields above are + * not set in the response. If `remaining_waypoints_route_version` is + * unspecified, traffic and path are always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 10; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRemainingWaypointsRouteVersion() + { + return $this->remaining_waypoints_route_version; + } + + public function hasRemainingWaypointsRouteVersion() + { + return isset($this->remaining_waypoints_route_version); + } + + public function clearRemainingWaypointsRouteVersion() + { + unset($this->remaining_waypoints_route_version); + } + + /** + * Indicates the minimum timestamp (exclusive) for which + * `Trip.remaining_waypoints.traffic_to_waypoint` and + * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved. If data are + * unchanged since this timestamp, the fields above are + * not set in the response. If `remaining_waypoints_route_version` is + * unspecified, traffic and path are always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 10; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRemainingWaypointsRouteVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->remaining_waypoints_route_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetVehicleRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetVehicleRequest.php new file mode 100644 index 000000000000..90b14b5176c4 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetVehicleRequest.php @@ -0,0 +1,243 @@ +maps.fleetengine.v1.GetVehicleRequest + */ +class GetVehicleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + */ + protected $header = null; + /** + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Indicates the minimum timestamp (exclusive) for which + * `Vehicle.current_route_segment` is retrieved. + * If the route is unchanged since this timestamp, the `current_route_segment` + * field is not set in the response. If a minimum is unspecified, the + * `current_route_segment` is always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 4; + */ + protected $current_route_segment_version = null; + /** + * Indicates the minimum timestamp (exclusive) for which `Vehicle.waypoints` + * data is retrieved. If the waypoints are unchanged since this timestamp, the + * `vehicle.waypoints` data is not set in the response. If this field is + * unspecified, `vehicle.waypoints` is always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 5; + */ + protected $waypoints_version = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\RequestHeader $header + * The standard Fleet Engine request header. + * @type string $name + * 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. + * @type \Google\Protobuf\Timestamp $current_route_segment_version + * Indicates the minimum timestamp (exclusive) for which + * `Vehicle.current_route_segment` is retrieved. + * If the route is unchanged since this timestamp, the `current_route_segment` + * field is not set in the response. If a minimum is unspecified, the + * `current_route_segment` is always retrieved. + * @type \Google\Protobuf\Timestamp $waypoints_version + * Indicates the minimum timestamp (exclusive) for which `Vehicle.waypoints` + * data is retrieved. If the waypoints are unchanged since this timestamp, the + * `vehicle.waypoints` data is not set in the response. If this field is + * unspecified, `vehicle.waypoints` is always retrieved. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @return \Google\Maps\FleetEngine\V1\RequestHeader|null + */ + public function getHeader() + { + return $this->header; + } + + public function hasHeader() + { + return isset($this->header); + } + + public function clearHeader() + { + unset($this->header); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @param \Google\Maps\FleetEngine\V1\RequestHeader $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); + $this->header = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Indicates the minimum timestamp (exclusive) for which + * `Vehicle.current_route_segment` is retrieved. + * If the route is unchanged since this timestamp, the `current_route_segment` + * field is not set in the response. If a minimum is unspecified, the + * `current_route_segment` is always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 4; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCurrentRouteSegmentVersion() + { + return $this->current_route_segment_version; + } + + public function hasCurrentRouteSegmentVersion() + { + return isset($this->current_route_segment_version); + } + + public function clearCurrentRouteSegmentVersion() + { + unset($this->current_route_segment_version); + } + + /** + * Indicates the minimum timestamp (exclusive) for which + * `Vehicle.current_route_segment` is retrieved. + * If the route is unchanged since this timestamp, the `current_route_segment` + * field is not set in the response. If a minimum is unspecified, the + * `current_route_segment` is always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 4; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCurrentRouteSegmentVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->current_route_segment_version = $var; + + return $this; + } + + /** + * Indicates the minimum timestamp (exclusive) for which `Vehicle.waypoints` + * data is retrieved. If the waypoints are unchanged since this timestamp, the + * `vehicle.waypoints` data is not set in the response. If this field is + * unspecified, `vehicle.waypoints` is always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 5; + * @return \Google\Protobuf\Timestamp|null + */ + public function getWaypointsVersion() + { + return $this->waypoints_version; + } + + public function hasWaypointsVersion() + { + return isset($this->waypoints_version); + } + + public function clearWaypointsVersion() + { + unset($this->waypoints_version); + } + + /** + * Indicates the minimum timestamp (exclusive) for which `Vehicle.waypoints` + * data is retrieved. If the waypoints are unchanged since this timestamp, the + * `vehicle.waypoints` data is not set in the response. If this field is + * unspecified, `vehicle.waypoints` is always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 5; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setWaypointsVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->waypoints_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LicensePlate.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LicensePlate.php new file mode 100644 index 000000000000..8d2fe48298c7 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LicensePlate.php @@ -0,0 +1,123 @@ +maps.fleetengine.v1.LicensePlate + */ +class LicensePlate extends \Google\Protobuf\Internal\Message +{ + /** + * Required. CLDR Country/Region Code. For example, `US` for United States, + * or `IN` for India. + * + * Generated from protobuf field string country_code = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $country_code = ''; + /** + * The last digit of the license plate or "-1" to denote no numeric value + * is present in the license plate. + * * "ABC 1234" -> "4" + * * "AB 123 CD" -> "3" + * * "ABCDEF" -> "-1" + * + * Generated from protobuf field string last_character = 2; + */ + protected $last_character = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $country_code + * Required. CLDR Country/Region Code. For example, `US` for United States, + * or `IN` for India. + * @type string $last_character + * The last digit of the license plate or "-1" to denote no numeric value + * is present in the license plate. + * * "ABC 1234" -> "4" + * * "AB 123 CD" -> "3" + * * "ABCDEF" -> "-1" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); + parent::__construct($data); + } + + /** + * Required. CLDR Country/Region Code. For example, `US` for United States, + * or `IN` for India. + * + * Generated from protobuf field string country_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getCountryCode() + { + return $this->country_code; + } + + /** + * Required. CLDR Country/Region Code. For example, `US` for United States, + * or `IN` for India. + * + * Generated from protobuf field string country_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setCountryCode($var) + { + GPBUtil::checkString($var, True); + $this->country_code = $var; + + return $this; + } + + /** + * The last digit of the license plate or "-1" to denote no numeric value + * is present in the license plate. + * * "ABC 1234" -> "4" + * * "AB 123 CD" -> "3" + * * "ABCDEF" -> "-1" + * + * Generated from protobuf field string last_character = 2; + * @return string + */ + public function getLastCharacter() + { + return $this->last_character; + } + + /** + * The last digit of the license plate or "-1" to denote no numeric value + * is present in the license plate. + * * "ABC 1234" -> "4" + * * "AB 123 CD" -> "3" + * * "ABCDEF" -> "-1" + * + * Generated from protobuf field string last_character = 2; + * @param string $var + * @return $this + */ + public function setLastCharacter($var) + { + GPBUtil::checkString($var, True); + $this->last_character = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesRequest.php new file mode 100644 index 000000000000..e9849fa89a77 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesRequest.php @@ -0,0 +1,926 @@ +maps.fleetengine.v1.ListVehiclesRequest + */ +class ListVehiclesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 12; + */ + protected $header = null; + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * The maximum number of vehicles to return. + * Default value: 100. + * + * Generated from protobuf field int32 page_size = 3; + */ + protected $page_size = 0; + /** + * The value of the `next_page_token` provided by a previous call to + * `ListVehicles` so that you can paginate through groups of vehicles. The + * value is undefined if the filter criteria of the request is not the same as + * the filter criteria for the previous call to `ListVehicles`. + * + * Generated from protobuf field string page_token = 4; + */ + protected $page_token = ''; + /** + * Specifies the required minimum capacity of the vehicle. All vehicles + * returned will have a `maximum_capacity` greater than or equal to this + * value. If set, must be greater or equal to 0. + * + * Generated from protobuf field .google.protobuf.Int32Value minimum_capacity = 6; + */ + protected $minimum_capacity = null; + /** + * Restricts the response to vehicles that support at least one of the + * specified trip types. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 7; + */ + private $trip_types; + /** + * Restricts the response to vehicles that have sent location updates to Fleet + * Engine within the specified duration. Stationary vehicles still + * transmitting their locations are not considered stale. If present, must be + * a valid positive duration. + * + * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 8; + */ + protected $maximum_staleness = null; + /** + * Required. Restricts the response to vehicles with one of the specified type + * categories. `UNKNOWN` is not allowed. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType.Category vehicle_type_categories = 9 [(.google.api.field_behavior) = REQUIRED]; + */ + private $vehicle_type_categories; + /** + * Callers can form complex logical operations using any combination of the + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attribute_sets` fields. + * `required_attributes` is a list; `required_one_of_attributes` uses a + * message which allows a list of lists. In combination, the two fields allow + * the composition of this expression: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR + * ...) + * AND + * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR + * ...) + * ``` + * Restricts the response to vehicles with the specified attributes. This + * field is a conjunction/AND operation. A max of 50 required_attributes is + * allowed. This matches the maximum number of attributes allowed on a + * vehicle. Each repeated string should be of the format "key:value". + * + * Generated from protobuf field repeated string required_attributes = 10; + */ + private $required_attributes; + /** + * Restricts the response to vehicles with at least one of the specified + * attributes in each `VehicleAttributeList`. Within each list, a vehicle must + * match at least one of the attributes. This field is an inclusive + * disjunction/OR operation in each `VehicleAttributeList` and a + * conjunction/AND operation across the collection of `VehicleAttributeList`. + * Each repeated string should be of the format + * "key1:value1|key2:value2|key3:value3". + * + * Generated from protobuf field repeated string required_one_of_attributes = 13; + */ + private $required_one_of_attributes; + /** + * `required_one_of_attribute_sets` provides additional functionality. + * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` + * uses a message which allows a list of lists, allowing expressions such as + * this one: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * ( + * (required_one_of_attribute_sets[0][0] AND + * required_one_of_attribute_sets[0][1] AND + * ...) + * OR + * (required_one_of_attribute_sets[1][0] AND + * required_one_of_attribute_sets[1][1] AND + * ...) + * ) + * ``` + * Restricts the response to vehicles that match all the attributes in a + * `VehicleAttributeList`. Within each list, a vehicle must match all of the + * attributes. This field is a conjunction/AND operation in each + * `VehicleAttributeList` and inclusive disjunction/OR operation across the + * collection of `VehicleAttributeList`. Each repeated string should be of the + * format "key1:value1|key2:value2|key3:value3". + * + * Generated from protobuf field repeated string required_one_of_attribute_sets = 15; + */ + private $required_one_of_attribute_sets; + /** + * Restricts the response to vehicles that have this vehicle state. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 11; + */ + protected $vehicle_state = 0; + /** + * Only return the vehicles with current trip(s). + * + * Generated from protobuf field bool on_trip_only = 14; + */ + protected $on_trip_only = false; + /** + * Optional. A filter query to apply when listing vehicles. See + * http://aip.dev/160 for examples of the filter syntax. + * This field is designed to replace the `required_attributes`, + * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. + * If a non-empty value is specified here, the following fields must be empty: + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attributes_sets`. + * This filter functions as an AND clause with other constraints, + * such as `vehicle_state` or `on_trip_only`. + * Note that the only queries supported are on vehicle attributes (for + * example, `attributes. = ` or `attributes. = AND + * attributes. = `). The maximum number of restrictions allowed + * in a filter query is 50. + * Also, all attributes are stored as strings, so the only supported + * comparisons against attributes are string comparisons. In order to compare + * against number or boolean values, the values must be explicitly quoted to + * be treated as strings (for example, `attributes. = "10"` or + * `attributes. = "true"`). + * + * Generated from protobuf field string filter = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. A filter that limits the vehicles returned to those whose last + * known location was in the rectangular area defined by the viewport. + * + * Generated from protobuf field .google.geo.type.Viewport viewport = 17 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $viewport = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\RequestHeader $header + * The standard Fleet Engine request header. + * @type string $parent + * Required. Must be in the format `providers/{provider}`. + * 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. + * @type int $page_size + * The maximum number of vehicles to return. + * Default value: 100. + * @type string $page_token + * The value of the `next_page_token` provided by a previous call to + * `ListVehicles` so that you can paginate through groups of vehicles. The + * value is undefined if the filter criteria of the request is not the same as + * the filter criteria for the previous call to `ListVehicles`. + * @type \Google\Protobuf\Int32Value $minimum_capacity + * Specifies the required minimum capacity of the vehicle. All vehicles + * returned will have a `maximum_capacity` greater than or equal to this + * value. If set, must be greater or equal to 0. + * @type array|\Google\Protobuf\Internal\RepeatedField $trip_types + * Restricts the response to vehicles that support at least one of the + * specified trip types. + * @type \Google\Protobuf\Duration $maximum_staleness + * Restricts the response to vehicles that have sent location updates to Fleet + * Engine within the specified duration. Stationary vehicles still + * transmitting their locations are not considered stale. If present, must be + * a valid positive duration. + * @type array|\Google\Protobuf\Internal\RepeatedField $vehicle_type_categories + * Required. Restricts the response to vehicles with one of the specified type + * categories. `UNKNOWN` is not allowed. + * @type array|\Google\Protobuf\Internal\RepeatedField $required_attributes + * Callers can form complex logical operations using any combination of the + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attribute_sets` fields. + * `required_attributes` is a list; `required_one_of_attributes` uses a + * message which allows a list of lists. In combination, the two fields allow + * the composition of this expression: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR + * ...) + * AND + * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR + * ...) + * ``` + * Restricts the response to vehicles with the specified attributes. This + * field is a conjunction/AND operation. A max of 50 required_attributes is + * allowed. This matches the maximum number of attributes allowed on a + * vehicle. Each repeated string should be of the format "key:value". + * @type array|\Google\Protobuf\Internal\RepeatedField $required_one_of_attributes + * Restricts the response to vehicles with at least one of the specified + * attributes in each `VehicleAttributeList`. Within each list, a vehicle must + * match at least one of the attributes. This field is an inclusive + * disjunction/OR operation in each `VehicleAttributeList` and a + * conjunction/AND operation across the collection of `VehicleAttributeList`. + * Each repeated string should be of the format + * "key1:value1|key2:value2|key3:value3". + * @type array|\Google\Protobuf\Internal\RepeatedField $required_one_of_attribute_sets + * `required_one_of_attribute_sets` provides additional functionality. + * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` + * uses a message which allows a list of lists, allowing expressions such as + * this one: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * ( + * (required_one_of_attribute_sets[0][0] AND + * required_one_of_attribute_sets[0][1] AND + * ...) + * OR + * (required_one_of_attribute_sets[1][0] AND + * required_one_of_attribute_sets[1][1] AND + * ...) + * ) + * ``` + * Restricts the response to vehicles that match all the attributes in a + * `VehicleAttributeList`. Within each list, a vehicle must match all of the + * attributes. This field is a conjunction/AND operation in each + * `VehicleAttributeList` and inclusive disjunction/OR operation across the + * collection of `VehicleAttributeList`. Each repeated string should be of the + * format "key1:value1|key2:value2|key3:value3". + * @type int $vehicle_state + * Restricts the response to vehicles that have this vehicle state. + * @type bool $on_trip_only + * Only return the vehicles with current trip(s). + * @type string $filter + * Optional. A filter query to apply when listing vehicles. See + * http://aip.dev/160 for examples of the filter syntax. + * This field is designed to replace the `required_attributes`, + * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. + * If a non-empty value is specified here, the following fields must be empty: + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attributes_sets`. + * This filter functions as an AND clause with other constraints, + * such as `vehicle_state` or `on_trip_only`. + * Note that the only queries supported are on vehicle attributes (for + * example, `attributes. = ` or `attributes. = AND + * attributes. = `). The maximum number of restrictions allowed + * in a filter query is 50. + * Also, all attributes are stored as strings, so the only supported + * comparisons against attributes are string comparisons. In order to compare + * against number or boolean values, the values must be explicitly quoted to + * be treated as strings (for example, `attributes. = "10"` or + * `attributes. = "true"`). + * @type \Google\Geo\Type\Viewport $viewport + * Optional. A filter that limits the vehicles returned to those whose last + * known location was in the rectangular area defined by the viewport. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 12; + * @return \Google\Maps\FleetEngine\V1\RequestHeader|null + */ + public function getHeader() + { + return $this->header; + } + + public function hasHeader() + { + return isset($this->header); + } + + public function clearHeader() + { + unset($this->header); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 12; + * @param \Google\Maps\FleetEngine\V1\RequestHeader $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); + $this->header = $var; + + return $this; + } + + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of vehicles to return. + * Default value: 100. + * + * Generated from protobuf field int32 page_size = 3; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of vehicles to return. + * Default value: 100. + * + * Generated from protobuf field int32 page_size = 3; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * The value of the `next_page_token` provided by a previous call to + * `ListVehicles` so that you can paginate through groups of vehicles. The + * value is undefined if the filter criteria of the request is not the same as + * the filter criteria for the previous call to `ListVehicles`. + * + * Generated from protobuf field string page_token = 4; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The value of the `next_page_token` provided by a previous call to + * `ListVehicles` so that you can paginate through groups of vehicles. The + * value is undefined if the filter criteria of the request is not the same as + * the filter criteria for the previous call to `ListVehicles`. + * + * Generated from protobuf field string page_token = 4; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Specifies the required minimum capacity of the vehicle. All vehicles + * returned will have a `maximum_capacity` greater than or equal to this + * value. If set, must be greater or equal to 0. + * + * Generated from protobuf field .google.protobuf.Int32Value minimum_capacity = 6; + * @return \Google\Protobuf\Int32Value|null + */ + public function getMinimumCapacity() + { + return $this->minimum_capacity; + } + + public function hasMinimumCapacity() + { + return isset($this->minimum_capacity); + } + + public function clearMinimumCapacity() + { + unset($this->minimum_capacity); + } + + /** + * Returns the unboxed value from getMinimumCapacity() + + * Specifies the required minimum capacity of the vehicle. All vehicles + * returned will have a `maximum_capacity` greater than or equal to this + * value. If set, must be greater or equal to 0. + * + * Generated from protobuf field .google.protobuf.Int32Value minimum_capacity = 6; + * @return int|null + */ + public function getMinimumCapacityUnwrapped() + { + return $this->readWrapperValue("minimum_capacity"); + } + + /** + * Specifies the required minimum capacity of the vehicle. All vehicles + * returned will have a `maximum_capacity` greater than or equal to this + * value. If set, must be greater or equal to 0. + * + * Generated from protobuf field .google.protobuf.Int32Value minimum_capacity = 6; + * @param \Google\Protobuf\Int32Value $var + * @return $this + */ + public function setMinimumCapacity($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->minimum_capacity = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * Specifies the required minimum capacity of the vehicle. All vehicles + * returned will have a `maximum_capacity` greater than or equal to this + * value. If set, must be greater or equal to 0. + * + * Generated from protobuf field .google.protobuf.Int32Value minimum_capacity = 6; + * @param int|null $var + * @return $this + */ + public function setMinimumCapacityUnwrapped($var) + { + $this->writeWrapperValue("minimum_capacity", $var); + return $this;} + + /** + * Restricts the response to vehicles that support at least one of the + * specified trip types. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 7; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTripTypes() + { + return $this->trip_types; + } + + /** + * Restricts the response to vehicles that support at least one of the + * specified trip types. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 7; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTripTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Maps\FleetEngine\V1\TripType::class); + $this->trip_types = $arr; + + return $this; + } + + /** + * Restricts the response to vehicles that have sent location updates to Fleet + * Engine within the specified duration. Stationary vehicles still + * transmitting their locations are not considered stale. If present, must be + * a valid positive duration. + * + * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 8; + * @return \Google\Protobuf\Duration|null + */ + public function getMaximumStaleness() + { + return $this->maximum_staleness; + } + + public function hasMaximumStaleness() + { + return isset($this->maximum_staleness); + } + + public function clearMaximumStaleness() + { + unset($this->maximum_staleness); + } + + /** + * Restricts the response to vehicles that have sent location updates to Fleet + * Engine within the specified duration. Stationary vehicles still + * transmitting their locations are not considered stale. If present, must be + * a valid positive duration. + * + * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 8; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setMaximumStaleness($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->maximum_staleness = $var; + + return $this; + } + + /** + * Required. Restricts the response to vehicles with one of the specified type + * categories. `UNKNOWN` is not allowed. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType.Category vehicle_type_categories = 9 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getVehicleTypeCategories() + { + return $this->vehicle_type_categories; + } + + /** + * Required. Restricts the response to vehicles with one of the specified type + * categories. `UNKNOWN` is not allowed. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType.Category vehicle_type_categories = 9 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setVehicleTypeCategories($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Maps\FleetEngine\V1\Vehicle\VehicleType\Category::class); + $this->vehicle_type_categories = $arr; + + return $this; + } + + /** + * Callers can form complex logical operations using any combination of the + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attribute_sets` fields. + * `required_attributes` is a list; `required_one_of_attributes` uses a + * message which allows a list of lists. In combination, the two fields allow + * the composition of this expression: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR + * ...) + * AND + * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR + * ...) + * ``` + * Restricts the response to vehicles with the specified attributes. This + * field is a conjunction/AND operation. A max of 50 required_attributes is + * allowed. This matches the maximum number of attributes allowed on a + * vehicle. Each repeated string should be of the format "key:value". + * + * Generated from protobuf field repeated string required_attributes = 10; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequiredAttributes() + { + return $this->required_attributes; + } + + /** + * Callers can form complex logical operations using any combination of the + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attribute_sets` fields. + * `required_attributes` is a list; `required_one_of_attributes` uses a + * message which allows a list of lists. In combination, the two fields allow + * the composition of this expression: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR + * ...) + * AND + * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR + * ...) + * ``` + * Restricts the response to vehicles with the specified attributes. This + * field is a conjunction/AND operation. A max of 50 required_attributes is + * allowed. This matches the maximum number of attributes allowed on a + * vehicle. Each repeated string should be of the format "key:value". + * + * Generated from protobuf field repeated string required_attributes = 10; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequiredAttributes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->required_attributes = $arr; + + return $this; + } + + /** + * Restricts the response to vehicles with at least one of the specified + * attributes in each `VehicleAttributeList`. Within each list, a vehicle must + * match at least one of the attributes. This field is an inclusive + * disjunction/OR operation in each `VehicleAttributeList` and a + * conjunction/AND operation across the collection of `VehicleAttributeList`. + * Each repeated string should be of the format + * "key1:value1|key2:value2|key3:value3". + * + * Generated from protobuf field repeated string required_one_of_attributes = 13; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequiredOneOfAttributes() + { + return $this->required_one_of_attributes; + } + + /** + * Restricts the response to vehicles with at least one of the specified + * attributes in each `VehicleAttributeList`. Within each list, a vehicle must + * match at least one of the attributes. This field is an inclusive + * disjunction/OR operation in each `VehicleAttributeList` and a + * conjunction/AND operation across the collection of `VehicleAttributeList`. + * Each repeated string should be of the format + * "key1:value1|key2:value2|key3:value3". + * + * Generated from protobuf field repeated string required_one_of_attributes = 13; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequiredOneOfAttributes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->required_one_of_attributes = $arr; + + return $this; + } + + /** + * `required_one_of_attribute_sets` provides additional functionality. + * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` + * uses a message which allows a list of lists, allowing expressions such as + * this one: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * ( + * (required_one_of_attribute_sets[0][0] AND + * required_one_of_attribute_sets[0][1] AND + * ...) + * OR + * (required_one_of_attribute_sets[1][0] AND + * required_one_of_attribute_sets[1][1] AND + * ...) + * ) + * ``` + * Restricts the response to vehicles that match all the attributes in a + * `VehicleAttributeList`. Within each list, a vehicle must match all of the + * attributes. This field is a conjunction/AND operation in each + * `VehicleAttributeList` and inclusive disjunction/OR operation across the + * collection of `VehicleAttributeList`. Each repeated string should be of the + * format "key1:value1|key2:value2|key3:value3". + * + * Generated from protobuf field repeated string required_one_of_attribute_sets = 15; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequiredOneOfAttributeSets() + { + return $this->required_one_of_attribute_sets; + } + + /** + * `required_one_of_attribute_sets` provides additional functionality. + * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` + * uses a message which allows a list of lists, allowing expressions such as + * this one: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * ( + * (required_one_of_attribute_sets[0][0] AND + * required_one_of_attribute_sets[0][1] AND + * ...) + * OR + * (required_one_of_attribute_sets[1][0] AND + * required_one_of_attribute_sets[1][1] AND + * ...) + * ) + * ``` + * Restricts the response to vehicles that match all the attributes in a + * `VehicleAttributeList`. Within each list, a vehicle must match all of the + * attributes. This field is a conjunction/AND operation in each + * `VehicleAttributeList` and inclusive disjunction/OR operation across the + * collection of `VehicleAttributeList`. Each repeated string should be of the + * format "key1:value1|key2:value2|key3:value3". + * + * Generated from protobuf field repeated string required_one_of_attribute_sets = 15; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequiredOneOfAttributeSets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->required_one_of_attribute_sets = $arr; + + return $this; + } + + /** + * Restricts the response to vehicles that have this vehicle state. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 11; + * @return int + */ + public function getVehicleState() + { + return $this->vehicle_state; + } + + /** + * Restricts the response to vehicles that have this vehicle state. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 11; + * @param int $var + * @return $this + */ + public function setVehicleState($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\VehicleState::class); + $this->vehicle_state = $var; + + return $this; + } + + /** + * Only return the vehicles with current trip(s). + * + * Generated from protobuf field bool on_trip_only = 14; + * @return bool + */ + public function getOnTripOnly() + { + return $this->on_trip_only; + } + + /** + * Only return the vehicles with current trip(s). + * + * Generated from protobuf field bool on_trip_only = 14; + * @param bool $var + * @return $this + */ + public function setOnTripOnly($var) + { + GPBUtil::checkBool($var); + $this->on_trip_only = $var; + + return $this; + } + + /** + * Optional. A filter query to apply when listing vehicles. See + * http://aip.dev/160 for examples of the filter syntax. + * This field is designed to replace the `required_attributes`, + * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. + * If a non-empty value is specified here, the following fields must be empty: + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attributes_sets`. + * This filter functions as an AND clause with other constraints, + * such as `vehicle_state` or `on_trip_only`. + * Note that the only queries supported are on vehicle attributes (for + * example, `attributes. = ` or `attributes. = AND + * attributes. = `). The maximum number of restrictions allowed + * in a filter query is 50. + * Also, all attributes are stored as strings, so the only supported + * comparisons against attributes are string comparisons. In order to compare + * against number or boolean values, the values must be explicitly quoted to + * be treated as strings (for example, `attributes. = "10"` or + * `attributes. = "true"`). + * + * Generated from protobuf field string filter = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. A filter query to apply when listing vehicles. See + * http://aip.dev/160 for examples of the filter syntax. + * This field is designed to replace the `required_attributes`, + * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. + * If a non-empty value is specified here, the following fields must be empty: + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attributes_sets`. + * This filter functions as an AND clause with other constraints, + * such as `vehicle_state` or `on_trip_only`. + * Note that the only queries supported are on vehicle attributes (for + * example, `attributes. = ` or `attributes. = AND + * attributes. = `). The maximum number of restrictions allowed + * in a filter query is 50. + * Also, all attributes are stored as strings, so the only supported + * comparisons against attributes are string comparisons. In order to compare + * against number or boolean values, the values must be explicitly quoted to + * be treated as strings (for example, `attributes. = "10"` or + * `attributes. = "true"`). + * + * Generated from protobuf field string filter = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. A filter that limits the vehicles returned to those whose last + * known location was in the rectangular area defined by the viewport. + * + * Generated from protobuf field .google.geo.type.Viewport viewport = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Geo\Type\Viewport|null + */ + public function getViewport() + { + return $this->viewport; + } + + public function hasViewport() + { + return isset($this->viewport); + } + + public function clearViewport() + { + unset($this->viewport); + } + + /** + * Optional. A filter that limits the vehicles returned to those whose last + * known location was in the rectangular area defined by the viewport. + * + * Generated from protobuf field .google.geo.type.Viewport viewport = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Geo\Type\Viewport $var + * @return $this + */ + public function setViewport($var) + { + GPBUtil::checkMessage($var, \Google\Geo\Type\Viewport::class); + $this->viewport = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesResponse.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesResponse.php new file mode 100644 index 000000000000..2ba9724c211e --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesResponse.php @@ -0,0 +1,151 @@ +maps.fleetengine.v1.ListVehiclesResponse + */ +class ListVehiclesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Vehicles matching the criteria in the request. + * The maximum number of vehicles returned is determined by the `page_size` + * field in the request. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle vehicles = 1; + */ + private $vehicles; + /** + * Token to retrieve the next page of vehicles, or empty if there are no + * more vehicles that meet the request criteria. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Required. Total number of vehicles matching the request criteria across all + * pages. + * + * Generated from protobuf field int64 total_size = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Maps\FleetEngine\V1\Vehicle>|\Google\Protobuf\Internal\RepeatedField $vehicles + * Vehicles matching the criteria in the request. + * The maximum number of vehicles returned is determined by the `page_size` + * field in the request. + * @type string $next_page_token + * Token to retrieve the next page of vehicles, or empty if there are no + * more vehicles that meet the request criteria. + * @type int|string $total_size + * Required. Total number of vehicles matching the request criteria across all + * pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * Vehicles matching the criteria in the request. + * The maximum number of vehicles returned is determined by the `page_size` + * field in the request. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle vehicles = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getVehicles() + { + return $this->vehicles; + } + + /** + * Vehicles matching the criteria in the request. + * The maximum number of vehicles returned is determined by the `page_size` + * field in the request. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle vehicles = 1; + * @param array<\Google\Maps\FleetEngine\V1\Vehicle>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setVehicles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\Vehicle::class); + $this->vehicles = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of vehicles, or empty if there are no + * more vehicles that meet the request criteria. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of vehicles, or empty if there are no + * more vehicles that meet the request criteria. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Required. Total number of vehicles matching the request criteria across all + * pages. + * + * Generated from protobuf field int64 total_size = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return int|string + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Required. Total number of vehicles matching the request criteria across all + * pages. + * + * Generated from protobuf field int64 total_size = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param int|string $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt64($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationPowerSaveMode.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationPowerSaveMode.php new file mode 100644 index 000000000000..4eb20054c4f9 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationPowerSaveMode.php @@ -0,0 +1,89 @@ +maps.fleetengine.v1.LocationPowerSaveMode + */ +class LocationPowerSaveMode +{ + /** + * Undefined LocationPowerSaveMode + * + * Generated from protobuf enum UNKNOWN_LOCATION_POWER_SAVE_MODE = 0; + */ + const UNKNOWN_LOCATION_POWER_SAVE_MODE = 0; + /** + * Either the location providers shouldn't be affected by battery saver, or + * battery saver is off. + * + * Generated from protobuf enum LOCATION_MODE_NO_CHANGE = 1; + */ + const LOCATION_MODE_NO_CHANGE = 1; + /** + * The GPS based location provider should be disabled when battery saver is on + * and the device is non-interactive. + * + * Generated from protobuf enum LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF = 2; + */ + const LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF = 2; + /** + * All location providers should be disabled when battery saver is on and the + * device is non-interactive. + * + * Generated from protobuf enum LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF = 3; + */ + const LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF = 3; + /** + * All the location providers will be kept available, but location fixes + * should only be provided to foreground apps. + * + * Generated from protobuf enum LOCATION_MODE_FOREGROUND_ONLY = 4; + */ + const LOCATION_MODE_FOREGROUND_ONLY = 4; + /** + * Location will not be turned off, but LocationManager will throttle all + * requests to providers when the device is non-interactive. + * + * Generated from protobuf enum LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF = 5; + */ + const LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF = 5; + + private static $valueToName = [ + self::UNKNOWN_LOCATION_POWER_SAVE_MODE => 'UNKNOWN_LOCATION_POWER_SAVE_MODE', + self::LOCATION_MODE_NO_CHANGE => 'LOCATION_MODE_NO_CHANGE', + self::LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF => 'LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF', + self::LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF => 'LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF', + self::LOCATION_MODE_FOREGROUND_ONLY => 'LOCATION_MODE_FOREGROUND_ONLY', + self::LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF => 'LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationSensor.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationSensor.php new file mode 100644 index 000000000000..63194cc7ea5b --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationSensor.php @@ -0,0 +1,110 @@ +maps.fleetengine.v1.LocationSensor + */ +class LocationSensor +{ + /** + * The sensor is unspecified or unknown. + * + * Generated from protobuf enum UNKNOWN_SENSOR = 0; + */ + const UNKNOWN_SENSOR = 0; + /** + * GPS or Assisted GPS. + * + * Generated from protobuf enum GPS = 1; + */ + const GPS = 1; + /** + * Assisted GPS, cell tower ID, or WiFi access point. + * + * Generated from protobuf enum NETWORK = 2; + */ + const NETWORK = 2; + /** + * Cell tower ID or WiFi access point. + * + * Generated from protobuf enum PASSIVE = 3; + */ + const PASSIVE = 3; + /** + * A location determined by the mobile device to be the most likely + * road position. + * + * Generated from protobuf enum ROAD_SNAPPED_LOCATION_PROVIDER = 4; + */ + const ROAD_SNAPPED_LOCATION_PROVIDER = 4; + /** + * A customer-supplied location from an independent source. Typically, this + * value is used for a location provided from sources other than the mobile + * device running Driver SDK. If the original source is described by one of + * the other enum values, use that value. Locations marked + * CUSTOMER_SUPPLIED_LOCATION are typically provided via a Vehicle's + * `last_location.supplemental_location_sensor`. + * + * Generated from protobuf enum CUSTOMER_SUPPLIED_LOCATION = 5; + */ + const CUSTOMER_SUPPLIED_LOCATION = 5; + /** + * A location calculated by Fleet Engine based on the signals available to it. + * Output only. This value will be rejected if it is received in a request. + * + * Generated from protobuf enum FLEET_ENGINE_LOCATION = 6; + */ + const FLEET_ENGINE_LOCATION = 6; + /** + * Android's Fused Location Provider. + * + * Generated from protobuf enum FUSED_LOCATION_PROVIDER = 100; + */ + const FUSED_LOCATION_PROVIDER = 100; + /** + * The location provider on Apple operating systems. + * + * Generated from protobuf enum CORE_LOCATION = 200; + */ + const CORE_LOCATION = 200; + + private static $valueToName = [ + self::UNKNOWN_SENSOR => 'UNKNOWN_SENSOR', + self::GPS => 'GPS', + self::NETWORK => 'NETWORK', + self::PASSIVE => 'PASSIVE', + self::ROAD_SNAPPED_LOCATION_PROVIDER => 'ROAD_SNAPPED_LOCATION_PROVIDER', + self::CUSTOMER_SUPPLIED_LOCATION => 'CUSTOMER_SUPPLIED_LOCATION', + self::FLEET_ENGINE_LOCATION => 'FLEET_ENGINE_LOCATION', + self::FUSED_LOCATION_PROVIDER => 'FUSED_LOCATION_PROVIDER', + self::CORE_LOCATION => 'CORE_LOCATION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/NavigationStatus.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/NavigationStatus.php new file mode 100644 index 000000000000..40e2a39a9556 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/NavigationStatus.php @@ -0,0 +1,76 @@ +maps.fleetengine.v1.NavigationStatus + */ +class NavigationStatus +{ + /** + * Unspecified navigation status. + * + * Generated from protobuf enum UNKNOWN_NAVIGATION_STATUS = 0; + */ + const UNKNOWN_NAVIGATION_STATUS = 0; + /** + * The Driver app's navigation is in `FREE_NAV` mode. + * + * Generated from protobuf enum NO_GUIDANCE = 1; + */ + const NO_GUIDANCE = 1; + /** + * Turn-by-turn navigation is available and the Driver app navigation has + * entered `GUIDED_NAV` mode. + * + * Generated from protobuf enum ENROUTE_TO_DESTINATION = 2; + */ + const ENROUTE_TO_DESTINATION = 2; + /** + * The vehicle has gone off the suggested route. + * + * Generated from protobuf enum OFF_ROUTE = 3; + */ + const OFF_ROUTE = 3; + /** + * The vehicle is within approximately 50m of the destination. + * + * Generated from protobuf enum ARRIVED_AT_DESTINATION = 4; + */ + const ARRIVED_AT_DESTINATION = 4; + + private static $valueToName = [ + self::UNKNOWN_NAVIGATION_STATUS => 'UNKNOWN_NAVIGATION_STATUS', + self::NO_GUIDANCE => 'NO_GUIDANCE', + self::ENROUTE_TO_DESTINATION => 'ENROUTE_TO_DESTINATION', + self::OFF_ROUTE => 'OFF_ROUTE', + self::ARRIVED_AT_DESTINATION => 'ARRIVED_AT_DESTINATION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PolylineFormatType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PolylineFormatType.php new file mode 100644 index 000000000000..40a6b80a1726 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PolylineFormatType.php @@ -0,0 +1,62 @@ +maps.fleetengine.v1.PolylineFormatType + */ +class PolylineFormatType +{ + /** + * The format is unspecified or unknown. + * + * Generated from protobuf enum UNKNOWN_FORMAT_TYPE = 0; + */ + const UNKNOWN_FORMAT_TYPE = 0; + /** + * A list of `google.type.LatLng`. + * + * Generated from protobuf enum LAT_LNG_LIST_TYPE = 1; + */ + const LAT_LNG_LIST_TYPE = 1; + /** + * A polyline encoded with a polyline compression algorithm. Decoding is not + * yet supported. + * + * Generated from protobuf enum ENCODED_POLYLINE_TYPE = 2; + */ + const ENCODED_POLYLINE_TYPE = 2; + + private static $valueToName = [ + self::UNKNOWN_FORMAT_TYPE => 'UNKNOWN_FORMAT_TYPE', + self::LAT_LNG_LIST_TYPE => 'LAT_LNG_LIST_TYPE', + self::ENCODED_POLYLINE_TYPE => 'ENCODED_POLYLINE_TYPE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PowerSource.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PowerSource.php new file mode 100644 index 000000000000..1dd4ecfc1b49 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PowerSource.php @@ -0,0 +1,75 @@ +maps.fleetengine.v1.PowerSource + */ +class PowerSource +{ + /** + * Power source unknown. + * + * Generated from protobuf enum UNKNOWN_POWER_SOURCE = 0; + */ + const UNKNOWN_POWER_SOURCE = 0; + /** + * Power source is an AC charger. + * + * Generated from protobuf enum POWER_SOURCE_AC = 1; + */ + const POWER_SOURCE_AC = 1; + /** + * Power source is a USB port. + * + * Generated from protobuf enum POWER_SOURCE_USB = 2; + */ + const POWER_SOURCE_USB = 2; + /** + * Power source is wireless. + * + * Generated from protobuf enum POWER_SOURCE_WIRELESS = 3; + */ + const POWER_SOURCE_WIRELESS = 3; + /** + * Battery is unplugged. + * + * Generated from protobuf enum POWER_SOURCE_UNPLUGGED = 4; + */ + const POWER_SOURCE_UNPLUGGED = 4; + + private static $valueToName = [ + self::UNKNOWN_POWER_SOURCE => 'UNKNOWN_POWER_SOURCE', + self::POWER_SOURCE_AC => 'POWER_SOURCE_AC', + self::POWER_SOURCE_USB => 'POWER_SOURCE_USB', + self::POWER_SOURCE_WIRELESS => 'POWER_SOURCE_WIRELESS', + self::POWER_SOURCE_UNPLUGGED => 'POWER_SOURCE_UNPLUGGED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest.php new file mode 100644 index 000000000000..48d21dc5444e --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest.php @@ -0,0 +1,239 @@ +maps.fleetengine.v1.ReportBillableTripRequest + */ +class ReportBillableTripRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Must be in the format + * `providers/{provider}/billableTrips/{billable_trip}`. 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. + * + * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. Two letter country code of the country where the trip takes + * place. Price is defined according to country code. + * + * Generated from protobuf field string country_code = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $country_code = ''; + /** + * The platform upon which the request was issued. + * + * Generated from protobuf field .maps.fleetengine.v1.BillingPlatformIdentifier platform = 5; + */ + protected $platform = 0; + /** + * The identifiers that are directly related to the trip being reported. These + * are usually IDs (for example, session IDs) of pre-booking operations done + * before the trip ID is available. The number of `related_ids` is + * limited to 50. + * + * Generated from protobuf field repeated string related_ids = 6; + */ + private $related_ids; + /** + * The type of GMP product solution (for example, + * `ON_DEMAND_RIDESHARING_AND_DELIVERIES`) used for the reported trip. + * + * Generated from protobuf field .maps.fleetengine.v1.ReportBillableTripRequest.SolutionType solution_type = 7; + */ + protected $solution_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Must be in the format + * `providers/{provider}/billableTrips/{billable_trip}`. 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. + * @type string $country_code + * Required. Two letter country code of the country where the trip takes + * place. Price is defined according to country code. + * @type int $platform + * The platform upon which the request was issued. + * @type array|\Google\Protobuf\Internal\RepeatedField $related_ids + * The identifiers that are directly related to the trip being reported. These + * are usually IDs (for example, session IDs) of pre-booking operations done + * before the trip ID is available. The number of `related_ids` is + * limited to 50. + * @type int $solution_type + * The type of GMP product solution (for example, + * `ON_DEMAND_RIDESHARING_AND_DELIVERIES`) used for the reported trip. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); + parent::__construct($data); + } + + /** + * Required. Must be in the format + * `providers/{provider}/billableTrips/{billable_trip}`. 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. + * + * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Must be in the format + * `providers/{provider}/billableTrips/{billable_trip}`. 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. + * + * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Two letter country code of the country where the trip takes + * place. Price is defined according to country code. + * + * Generated from protobuf field string country_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getCountryCode() + { + return $this->country_code; + } + + /** + * Required. Two letter country code of the country where the trip takes + * place. Price is defined according to country code. + * + * Generated from protobuf field string country_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setCountryCode($var) + { + GPBUtil::checkString($var, True); + $this->country_code = $var; + + return $this; + } + + /** + * The platform upon which the request was issued. + * + * Generated from protobuf field .maps.fleetengine.v1.BillingPlatformIdentifier platform = 5; + * @return int + */ + public function getPlatform() + { + return $this->platform; + } + + /** + * The platform upon which the request was issued. + * + * Generated from protobuf field .maps.fleetengine.v1.BillingPlatformIdentifier platform = 5; + * @param int $var + * @return $this + */ + public function setPlatform($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\BillingPlatformIdentifier::class); + $this->platform = $var; + + return $this; + } + + /** + * The identifiers that are directly related to the trip being reported. These + * are usually IDs (for example, session IDs) of pre-booking operations done + * before the trip ID is available. The number of `related_ids` is + * limited to 50. + * + * Generated from protobuf field repeated string related_ids = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRelatedIds() + { + return $this->related_ids; + } + + /** + * The identifiers that are directly related to the trip being reported. These + * are usually IDs (for example, session IDs) of pre-booking operations done + * before the trip ID is available. The number of `related_ids` is + * limited to 50. + * + * Generated from protobuf field repeated string related_ids = 6; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRelatedIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->related_ids = $arr; + + return $this; + } + + /** + * The type of GMP product solution (for example, + * `ON_DEMAND_RIDESHARING_AND_DELIVERIES`) used for the reported trip. + * + * Generated from protobuf field .maps.fleetengine.v1.ReportBillableTripRequest.SolutionType solution_type = 7; + * @return int + */ + public function getSolutionType() + { + return $this->solution_type; + } + + /** + * The type of GMP product solution (for example, + * `ON_DEMAND_RIDESHARING_AND_DELIVERIES`) used for the reported trip. + * + * Generated from protobuf field .maps.fleetengine.v1.ReportBillableTripRequest.SolutionType solution_type = 7; + * @param int $var + * @return $this + */ + public function setSolutionType($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\ReportBillableTripRequest\SolutionType::class); + $this->solution_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest/SolutionType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest/SolutionType.php new file mode 100644 index 000000000000..c50613c46254 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest/SolutionType.php @@ -0,0 +1,59 @@ +maps.fleetengine.v1.ReportBillableTripRequest.SolutionType + */ +class SolutionType +{ + /** + * The default value. For backwards-compatibility, the API will use + * `ON_DEMAND_RIDESHARING_AND_DELIVERIES` by default which is the first + * supported solution type. + * + * Generated from protobuf enum SOLUTION_TYPE_UNSPECIFIED = 0; + */ + const SOLUTION_TYPE_UNSPECIFIED = 0; + /** + * The solution is an on-demand ridesharing and deliveries trip. + * + * Generated from protobuf enum ON_DEMAND_RIDESHARING_AND_DELIVERIES = 1; + */ + const ON_DEMAND_RIDESHARING_AND_DELIVERIES = 1; + + private static $valueToName = [ + self::SOLUTION_TYPE_UNSPECIFIED => 'SOLUTION_TYPE_UNSPECIFIED', + self::ON_DEMAND_RIDESHARING_AND_DELIVERIES => 'ON_DEMAND_RIDESHARING_AND_DELIVERIES', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SolutionType::class, \Google\Maps\FleetEngine\V1\ReportBillableTripRequest_SolutionType::class); + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader.php new file mode 100644 index 000000000000..c892bc38df04 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader.php @@ -0,0 +1,493 @@ +maps.fleetengine.v1.RequestHeader + */ +class RequestHeader extends \Google\Protobuf\Internal\Message +{ + /** + * The BCP-47 language code, such as en-US or sr-Latn. For more information, + * see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If none + * is specified, the response may be in any language, with a preference for + * English if such a name exists. Field value example: `en-US`. + * + * Generated from protobuf field string language_code = 1; + */ + protected $language_code = ''; + /** + * Required. CLDR region code of the region where the request originates. + * Field value example: `US`. + * + * Generated from protobuf field string region_code = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $region_code = ''; + /** + * Version of the calling SDK, if applicable. + * The version format is "major.minor.patch", example: `1.1.2`. + * + * Generated from protobuf field string sdk_version = 3; + */ + protected $sdk_version = ''; + /** + * Version of the operating system on which the calling SDK is running. + * Field value examples: `4.4.1`, `12.1`. + * + * Generated from protobuf field string os_version = 4; + */ + protected $os_version = ''; + /** + * Model of the device on which the calling SDK is running. + * Field value examples: `iPhone12,1`, `SM-G920F`. + * + * Generated from protobuf field string device_model = 5; + */ + protected $device_model = ''; + /** + * The type of SDK sending the request. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.SdkType sdk_type = 6; + */ + protected $sdk_type = 0; + /** + * Version of the MapSDK which the calling SDK depends on, if applicable. + * The version format is "major.minor.patch", example: `5.2.1`. + * + * Generated from protobuf field string maps_sdk_version = 7; + */ + protected $maps_sdk_version = ''; + /** + * Version of the NavSDK which the calling SDK depends on, if applicable. + * The version format is "major.minor.patch", example: `2.1.0`. + * + * Generated from protobuf field string nav_sdk_version = 8; + */ + protected $nav_sdk_version = ''; + /** + * Platform of the calling SDK. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.Platform platform = 9; + */ + protected $platform = 0; + /** + * Manufacturer of the Android device from the calling SDK, only applicable + * for the Android SDKs. + * Field value example: `Samsung`. + * + * Generated from protobuf field string manufacturer = 10; + */ + protected $manufacturer = ''; + /** + * Android API level of the calling SDK, only applicable for the Android SDKs. + * Field value example: `23`. + * + * Generated from protobuf field int32 android_api_level = 11; + */ + protected $android_api_level = 0; + /** + * Optional ID that can be provided for logging purposes in order to identify + * the request. + * + * Generated from protobuf field string trace_id = 12; + */ + protected $trace_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $language_code + * The BCP-47 language code, such as en-US or sr-Latn. For more information, + * see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If none + * is specified, the response may be in any language, with a preference for + * English if such a name exists. Field value example: `en-US`. + * @type string $region_code + * Required. CLDR region code of the region where the request originates. + * Field value example: `US`. + * @type string $sdk_version + * Version of the calling SDK, if applicable. + * The version format is "major.minor.patch", example: `1.1.2`. + * @type string $os_version + * Version of the operating system on which the calling SDK is running. + * Field value examples: `4.4.1`, `12.1`. + * @type string $device_model + * Model of the device on which the calling SDK is running. + * Field value examples: `iPhone12,1`, `SM-G920F`. + * @type int $sdk_type + * The type of SDK sending the request. + * @type string $maps_sdk_version + * Version of the MapSDK which the calling SDK depends on, if applicable. + * The version format is "major.minor.patch", example: `5.2.1`. + * @type string $nav_sdk_version + * Version of the NavSDK which the calling SDK depends on, if applicable. + * The version format is "major.minor.patch", example: `2.1.0`. + * @type int $platform + * Platform of the calling SDK. + * @type string $manufacturer + * Manufacturer of the Android device from the calling SDK, only applicable + * for the Android SDKs. + * Field value example: `Samsung`. + * @type int $android_api_level + * Android API level of the calling SDK, only applicable for the Android SDKs. + * Field value example: `23`. + * @type string $trace_id + * Optional ID that can be provided for logging purposes in order to identify + * the request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Header::initOnce(); + parent::__construct($data); + } + + /** + * The BCP-47 language code, such as en-US or sr-Latn. For more information, + * see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If none + * is specified, the response may be in any language, with a preference for + * English if such a name exists. Field value example: `en-US`. + * + * Generated from protobuf field string language_code = 1; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * The BCP-47 language code, such as en-US or sr-Latn. For more information, + * see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If none + * is specified, the response may be in any language, with a preference for + * English if such a name exists. Field value example: `en-US`. + * + * Generated from protobuf field string language_code = 1; + * @param string $var + * @return $this + */ + public function setLanguageCode($var) + { + GPBUtil::checkString($var, True); + $this->language_code = $var; + + return $this; + } + + /** + * Required. CLDR region code of the region where the request originates. + * Field value example: `US`. + * + * Generated from protobuf field string region_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getRegionCode() + { + return $this->region_code; + } + + /** + * Required. CLDR region code of the region where the request originates. + * Field value example: `US`. + * + * Generated from protobuf field string region_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setRegionCode($var) + { + GPBUtil::checkString($var, True); + $this->region_code = $var; + + return $this; + } + + /** + * Version of the calling SDK, if applicable. + * The version format is "major.minor.patch", example: `1.1.2`. + * + * Generated from protobuf field string sdk_version = 3; + * @return string + */ + public function getSdkVersion() + { + return $this->sdk_version; + } + + /** + * Version of the calling SDK, if applicable. + * The version format is "major.minor.patch", example: `1.1.2`. + * + * Generated from protobuf field string sdk_version = 3; + * @param string $var + * @return $this + */ + public function setSdkVersion($var) + { + GPBUtil::checkString($var, True); + $this->sdk_version = $var; + + return $this; + } + + /** + * Version of the operating system on which the calling SDK is running. + * Field value examples: `4.4.1`, `12.1`. + * + * Generated from protobuf field string os_version = 4; + * @return string + */ + public function getOsVersion() + { + return $this->os_version; + } + + /** + * Version of the operating system on which the calling SDK is running. + * Field value examples: `4.4.1`, `12.1`. + * + * Generated from protobuf field string os_version = 4; + * @param string $var + * @return $this + */ + public function setOsVersion($var) + { + GPBUtil::checkString($var, True); + $this->os_version = $var; + + return $this; + } + + /** + * Model of the device on which the calling SDK is running. + * Field value examples: `iPhone12,1`, `SM-G920F`. + * + * Generated from protobuf field string device_model = 5; + * @return string + */ + public function getDeviceModel() + { + return $this->device_model; + } + + /** + * Model of the device on which the calling SDK is running. + * Field value examples: `iPhone12,1`, `SM-G920F`. + * + * Generated from protobuf field string device_model = 5; + * @param string $var + * @return $this + */ + public function setDeviceModel($var) + { + GPBUtil::checkString($var, True); + $this->device_model = $var; + + return $this; + } + + /** + * The type of SDK sending the request. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.SdkType sdk_type = 6; + * @return int + */ + public function getSdkType() + { + return $this->sdk_type; + } + + /** + * The type of SDK sending the request. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.SdkType sdk_type = 6; + * @param int $var + * @return $this + */ + public function setSdkType($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\RequestHeader\SdkType::class); + $this->sdk_type = $var; + + return $this; + } + + /** + * Version of the MapSDK which the calling SDK depends on, if applicable. + * The version format is "major.minor.patch", example: `5.2.1`. + * + * Generated from protobuf field string maps_sdk_version = 7; + * @return string + */ + public function getMapsSdkVersion() + { + return $this->maps_sdk_version; + } + + /** + * Version of the MapSDK which the calling SDK depends on, if applicable. + * The version format is "major.minor.patch", example: `5.2.1`. + * + * Generated from protobuf field string maps_sdk_version = 7; + * @param string $var + * @return $this + */ + public function setMapsSdkVersion($var) + { + GPBUtil::checkString($var, True); + $this->maps_sdk_version = $var; + + return $this; + } + + /** + * Version of the NavSDK which the calling SDK depends on, if applicable. + * The version format is "major.minor.patch", example: `2.1.0`. + * + * Generated from protobuf field string nav_sdk_version = 8; + * @return string + */ + public function getNavSdkVersion() + { + return $this->nav_sdk_version; + } + + /** + * Version of the NavSDK which the calling SDK depends on, if applicable. + * The version format is "major.minor.patch", example: `2.1.0`. + * + * Generated from protobuf field string nav_sdk_version = 8; + * @param string $var + * @return $this + */ + public function setNavSdkVersion($var) + { + GPBUtil::checkString($var, True); + $this->nav_sdk_version = $var; + + return $this; + } + + /** + * Platform of the calling SDK. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.Platform platform = 9; + * @return int + */ + public function getPlatform() + { + return $this->platform; + } + + /** + * Platform of the calling SDK. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.Platform platform = 9; + * @param int $var + * @return $this + */ + public function setPlatform($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\RequestHeader\Platform::class); + $this->platform = $var; + + return $this; + } + + /** + * Manufacturer of the Android device from the calling SDK, only applicable + * for the Android SDKs. + * Field value example: `Samsung`. + * + * Generated from protobuf field string manufacturer = 10; + * @return string + */ + public function getManufacturer() + { + return $this->manufacturer; + } + + /** + * Manufacturer of the Android device from the calling SDK, only applicable + * for the Android SDKs. + * Field value example: `Samsung`. + * + * Generated from protobuf field string manufacturer = 10; + * @param string $var + * @return $this + */ + public function setManufacturer($var) + { + GPBUtil::checkString($var, True); + $this->manufacturer = $var; + + return $this; + } + + /** + * Android API level of the calling SDK, only applicable for the Android SDKs. + * Field value example: `23`. + * + * Generated from protobuf field int32 android_api_level = 11; + * @return int + */ + public function getAndroidApiLevel() + { + return $this->android_api_level; + } + + /** + * Android API level of the calling SDK, only applicable for the Android SDKs. + * Field value example: `23`. + * + * Generated from protobuf field int32 android_api_level = 11; + * @param int $var + * @return $this + */ + public function setAndroidApiLevel($var) + { + GPBUtil::checkInt32($var); + $this->android_api_level = $var; + + return $this; + } + + /** + * Optional ID that can be provided for logging purposes in order to identify + * the request. + * + * Generated from protobuf field string trace_id = 12; + * @return string + */ + public function getTraceId() + { + return $this->trace_id; + } + + /** + * Optional ID that can be provided for logging purposes in order to identify + * the request. + * + * Generated from protobuf field string trace_id = 12; + * @param string $var + * @return $this + */ + public function setTraceId($var) + { + GPBUtil::checkString($var, True); + $this->trace_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/Platform.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/Platform.php new file mode 100644 index 000000000000..dfe0f5d12542 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/Platform.php @@ -0,0 +1,71 @@ +maps.fleetengine.v1.RequestHeader.Platform + */ +class Platform +{ + /** + * The default value. This value is used if the platform is omitted. + * + * Generated from protobuf enum PLATFORM_UNSPECIFIED = 0; + */ + const PLATFORM_UNSPECIFIED = 0; + /** + * The request is coming from Android. + * + * Generated from protobuf enum ANDROID = 1; + */ + const ANDROID = 1; + /** + * The request is coming from iOS. + * + * Generated from protobuf enum IOS = 2; + */ + const IOS = 2; + /** + * The request is coming from the web. + * + * Generated from protobuf enum WEB = 3; + */ + const WEB = 3; + + private static $valueToName = [ + self::PLATFORM_UNSPECIFIED => 'PLATFORM_UNSPECIFIED', + self::ANDROID => 'ANDROID', + self::IOS => 'IOS', + self::WEB => 'WEB', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Platform::class, \Google\Maps\FleetEngine\V1\RequestHeader_Platform::class); + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/SdkType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/SdkType.php new file mode 100644 index 000000000000..3061cc50a581 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/SdkType.php @@ -0,0 +1,71 @@ +maps.fleetengine.v1.RequestHeader.SdkType + */ +class SdkType +{ + /** + * The default value. This value is used if the `sdk_type` is omitted. + * + * Generated from protobuf enum SDK_TYPE_UNSPECIFIED = 0; + */ + const SDK_TYPE_UNSPECIFIED = 0; + /** + * The calling SDK is Consumer. + * + * Generated from protobuf enum CONSUMER = 1; + */ + const CONSUMER = 1; + /** + * The calling SDK is Driver. + * + * Generated from protobuf enum DRIVER = 2; + */ + const DRIVER = 2; + /** + * The calling SDK is JavaScript. + * + * Generated from protobuf enum JAVASCRIPT = 3; + */ + const JAVASCRIPT = 3; + + private static $valueToName = [ + self::SDK_TYPE_UNSPECIFIED => 'SDK_TYPE_UNSPECIFIED', + self::CONSUMER => 'CONSUMER', + self::DRIVER => 'DRIVER', + self::JAVASCRIPT => 'JAVASCRIPT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SdkType::class, \Google\Maps\FleetEngine\V1\RequestHeader_SdkType::class); + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsRequest.php new file mode 100644 index 000000000000..05455c7754ea --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsRequest.php @@ -0,0 +1,335 @@ +maps.fleetengine.v1.SearchTripsRequest + */ +class SearchTripsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + */ + protected $header = null; + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * The vehicle associated with the trips in the request. If unspecified, the + * returned trips do not contain: + * * `current_route_segment` + * * `remaining_waypoints` + * * `remaining_distance_meters` + * * `eta_to_first_waypoint` + * + * Generated from protobuf field string vehicle_id = 4; + */ + protected $vehicle_id = ''; + /** + * If set to true, the response includes Trips that influence a driver's + * route. + * + * Generated from protobuf field bool active_trips_only = 5; + */ + protected $active_trips_only = false; + /** + * If not set, the server decides the number of results to return. + * + * Generated from protobuf field int32 page_size = 6; + */ + protected $page_size = 0; + /** + * Set this to a value previously returned in the `SearchTripsResponse` to + * continue from previous results. + * + * Generated from protobuf field string page_token = 7; + */ + protected $page_token = ''; + /** + * If specified, returns the trips that have not been updated after the time + * `(current - minimum_staleness)`. + * + * Generated from protobuf field .google.protobuf.Duration minimum_staleness = 8; + */ + protected $minimum_staleness = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\RequestHeader $header + * The standard Fleet Engine request header. + * @type string $parent + * Required. Must be in the format `providers/{provider}`. + * 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. + * @type string $vehicle_id + * The vehicle associated with the trips in the request. If unspecified, the + * returned trips do not contain: + * * `current_route_segment` + * * `remaining_waypoints` + * * `remaining_distance_meters` + * * `eta_to_first_waypoint` + * @type bool $active_trips_only + * If set to true, the response includes Trips that influence a driver's + * route. + * @type int $page_size + * If not set, the server decides the number of results to return. + * @type string $page_token + * Set this to a value previously returned in the `SearchTripsResponse` to + * continue from previous results. + * @type \Google\Protobuf\Duration $minimum_staleness + * If specified, returns the trips that have not been updated after the time + * `(current - minimum_staleness)`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); + parent::__construct($data); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @return \Google\Maps\FleetEngine\V1\RequestHeader|null + */ + public function getHeader() + { + return $this->header; + } + + public function hasHeader() + { + return isset($this->header); + } + + public function clearHeader() + { + unset($this->header); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @param \Google\Maps\FleetEngine\V1\RequestHeader $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); + $this->header = $var; + + return $this; + } + + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The vehicle associated with the trips in the request. If unspecified, the + * returned trips do not contain: + * * `current_route_segment` + * * `remaining_waypoints` + * * `remaining_distance_meters` + * * `eta_to_first_waypoint` + * + * Generated from protobuf field string vehicle_id = 4; + * @return string + */ + public function getVehicleId() + { + return $this->vehicle_id; + } + + /** + * The vehicle associated with the trips in the request. If unspecified, the + * returned trips do not contain: + * * `current_route_segment` + * * `remaining_waypoints` + * * `remaining_distance_meters` + * * `eta_to_first_waypoint` + * + * Generated from protobuf field string vehicle_id = 4; + * @param string $var + * @return $this + */ + public function setVehicleId($var) + { + GPBUtil::checkString($var, True); + $this->vehicle_id = $var; + + return $this; + } + + /** + * If set to true, the response includes Trips that influence a driver's + * route. + * + * Generated from protobuf field bool active_trips_only = 5; + * @return bool + */ + public function getActiveTripsOnly() + { + return $this->active_trips_only; + } + + /** + * If set to true, the response includes Trips that influence a driver's + * route. + * + * Generated from protobuf field bool active_trips_only = 5; + * @param bool $var + * @return $this + */ + public function setActiveTripsOnly($var) + { + GPBUtil::checkBool($var); + $this->active_trips_only = $var; + + return $this; + } + + /** + * If not set, the server decides the number of results to return. + * + * Generated from protobuf field int32 page_size = 6; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * If not set, the server decides the number of results to return. + * + * Generated from protobuf field int32 page_size = 6; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Set this to a value previously returned in the `SearchTripsResponse` to + * continue from previous results. + * + * Generated from protobuf field string page_token = 7; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Set this to a value previously returned in the `SearchTripsResponse` to + * continue from previous results. + * + * Generated from protobuf field string page_token = 7; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * If specified, returns the trips that have not been updated after the time + * `(current - minimum_staleness)`. + * + * Generated from protobuf field .google.protobuf.Duration minimum_staleness = 8; + * @return \Google\Protobuf\Duration|null + */ + public function getMinimumStaleness() + { + return $this->minimum_staleness; + } + + public function hasMinimumStaleness() + { + return isset($this->minimum_staleness); + } + + public function clearMinimumStaleness() + { + unset($this->minimum_staleness); + } + + /** + * If specified, returns the trips that have not been updated after the time + * `(current - minimum_staleness)`. + * + * Generated from protobuf field .google.protobuf.Duration minimum_staleness = 8; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setMinimumStaleness($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->minimum_staleness = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsResponse.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsResponse.php new file mode 100644 index 000000000000..a416a1ded2ab --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsResponse.php @@ -0,0 +1,109 @@ +maps.fleetengine.v1.SearchTripsResponse + */ +class SearchTripsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of trips for the requested vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Trip trips = 1; + */ + private $trips; + /** + * Pass this token in the SearchTripsRequest to page through list results. The + * API returns a trip list on each call, and when no more results remain the + * trip list is empty. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Maps\FleetEngine\V1\Trip>|\Google\Protobuf\Internal\RepeatedField $trips + * The list of trips for the requested vehicle. + * @type string $next_page_token + * Pass this token in the SearchTripsRequest to page through list results. The + * API returns a trip list on each call, and when no more results remain the + * trip list is empty. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); + parent::__construct($data); + } + + /** + * The list of trips for the requested vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Trip trips = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTrips() + { + return $this->trips; + } + + /** + * The list of trips for the requested vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Trip trips = 1; + * @param array<\Google\Maps\FleetEngine\V1\Trip>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTrips($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\Trip::class); + $this->trips = $arr; + + return $this; + } + + /** + * Pass this token in the SearchTripsRequest to page through list results. The + * API returns a trip list on each call, and when no more results remain the + * trip list is empty. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Pass this token in the SearchTripsRequest to page through list results. The + * API returns a trip list on each call, and when no more results remain the + * trip list is empty. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest.php new file mode 100644 index 000000000000..47e4b07b2d9a --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest.php @@ -0,0 +1,1029 @@ +maps.fleetengine.v1.SearchVehiclesRequest + */ +class SearchVehiclesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + */ + protected $header = null; + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Required. The pickup point to search near. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $pickup_point = null; + /** + * The customer's intended dropoff location. The field is required if + * `trip_types` contains `TripType.SHARED`. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 5; + */ + protected $dropoff_point = null; + /** + * Required. Defines the vehicle search radius around the pickup point. Only + * vehicles within the search radius will be returned. Value must be between + * 400 and 10000 meters (inclusive). + * + * Generated from protobuf field int32 pickup_radius_meters = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $pickup_radius_meters = 0; + /** + * Required. Specifies the maximum number of vehicles to return. The value + * must be between 1 and 50 (inclusive). + * + * Generated from protobuf field int32 count = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $count = 0; + /** + * Required. Specifies the number of passengers being considered for a trip. + * The value must be greater than or equal to one. The driver is not + * considered in the capacity value. + * + * Generated from protobuf field int32 minimum_capacity = 8 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $minimum_capacity = 0; + /** + * Required. Represents the type of proposed trip. Must include exactly one + * type. `UNKNOWN_TRIP_TYPE` is not allowed. Restricts the search to only + * those vehicles that can support that trip type. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 9 [(.google.api.field_behavior) = REQUIRED]; + */ + private $trip_types; + /** + * Restricts the search to only those vehicles that have sent location updates + * to Fleet Engine within the specified duration. Stationary vehicles still + * transmitting their locations are not considered stale. If this field is not + * set, the server uses five minutes as the default value. + * + * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 10; + */ + protected $maximum_staleness = null; + /** + * Required. Restricts the search to vehicles with one of the specified types. + * At least one vehicle type must be specified. VehicleTypes with a category + * of `UNKNOWN` are not allowed. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType vehicle_types = 14 [(.google.api.field_behavior) = REQUIRED]; + */ + private $vehicle_types; + /** + * Callers can form complex logical operations using any combination of the + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attribute_sets` fields. + * `required_attributes` is a list; `required_one_of_attributes` uses a + * message which allows a list of lists. In combination, the two fields allow + * the composition of this expression: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR + * ...) + * AND + * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR + * ...) + * ``` + * Restricts the search to only those vehicles with the specified attributes. + * This field is a conjunction/AND operation. A max of 50 required_attributes + * is allowed. This matches the maximum number of attributes allowed on a + * vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute required_attributes = 12; + */ + private $required_attributes; + /** + * Restricts the search to only those vehicles with at least one of + * the specified attributes in each `VehicleAttributeList`. Within each + * list, a vehicle must match at least one of the attributes. This field is an + * inclusive disjunction/OR operation in each `VehicleAttributeList` and a + * conjunction/AND operation across the collection of `VehicleAttributeList`. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attributes = 15; + */ + private $required_one_of_attributes; + /** + * `required_one_of_attribute_sets` provides additional functionality. + * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` + * uses a message which allows a list of lists, allowing expressions such as + * this one: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * ( + * (required_one_of_attribute_sets[0][0] AND + * required_one_of_attribute_sets[0][1] AND + * ...) + * OR + * (required_one_of_attribute_sets[1][0] AND + * required_one_of_attribute_sets[1][1] AND + * ...) + * ) + * ``` + * Restricts the search to only those vehicles with all the attributes in a + * `VehicleAttributeList`. Within each list, a + * vehicle must match all of the attributes. This field is a conjunction/AND + * operation in each `VehicleAttributeList` and inclusive disjunction/OR + * operation across the collection of `VehicleAttributeList`. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attribute_sets = 20; + */ + private $required_one_of_attribute_sets; + /** + * Required. Specifies the desired ordering criterion for results. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder order_by = 13 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $order_by = 0; + /** + * This indicates if vehicles with a single active trip are eligible for this + * search. This field is only used when `current_trips_present` is + * unspecified. When `current_trips_present` is unspecified and this field + * is `false`, vehicles with assigned trips are excluded from the search + * results. When `current_trips_present` is unspecified and this field is + * `true`, search results can include vehicles with one active trip that has a + * status of `ENROUTE_TO_DROPOFF`. When `current_trips_present` is specified, + * this field cannot be set to true. + * The default value is `false`. + * + * Generated from protobuf field bool include_back_to_back = 18; + */ + protected $include_back_to_back = false; + /** + * Indicates the trip associated with this `SearchVehicleRequest`. + * + * Generated from protobuf field string trip_id = 19; + */ + protected $trip_id = ''; + /** + * This indicates if vehicles with active trips are eligible for this search. + * This must be set to something other than + * `CURRENT_TRIPS_PRESENT_UNSPECIFIED` if `trip_type` includes `SHARED`. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.CurrentTripsPresent current_trips_present = 21; + */ + protected $current_trips_present = 0; + /** + * Optional. A filter query to apply when searching vehicles. See + * http://aip.dev/160 for examples of the filter syntax. + * This field is designed to replace the `required_attributes`, + * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. + * If a non-empty value is specified here, the following fields must be empty: + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attributes_sets`. + * This filter functions as an AND clause with other constraints, + * such as `minimum_capacity` or `vehicle_types`. + * Note that the only queries supported are on vehicle attributes (for + * example, `attributes. = ` or `attributes. = AND + * attributes. = `). The maximum number of restrictions allowed + * in a filter query is 50. + * Also, all attributes are stored as strings, so the only supported + * comparisons against attributes are string comparisons. In order to compare + * against number or boolean values, the values must be explicitly quoted to + * be treated as strings (for example, `attributes. = "10"` or + * `attributes. = "true"`). + * + * Generated from protobuf field string filter = 22 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\RequestHeader $header + * The standard Fleet Engine request header. + * @type string $parent + * Required. Must be in the format `providers/{provider}`. + * 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. + * @type \Google\Maps\FleetEngine\V1\TerminalLocation $pickup_point + * Required. The pickup point to search near. + * @type \Google\Maps\FleetEngine\V1\TerminalLocation $dropoff_point + * The customer's intended dropoff location. The field is required if + * `trip_types` contains `TripType.SHARED`. + * @type int $pickup_radius_meters + * Required. Defines the vehicle search radius around the pickup point. Only + * vehicles within the search radius will be returned. Value must be between + * 400 and 10000 meters (inclusive). + * @type int $count + * Required. Specifies the maximum number of vehicles to return. The value + * must be between 1 and 50 (inclusive). + * @type int $minimum_capacity + * Required. Specifies the number of passengers being considered for a trip. + * The value must be greater than or equal to one. The driver is not + * considered in the capacity value. + * @type array|\Google\Protobuf\Internal\RepeatedField $trip_types + * Required. Represents the type of proposed trip. Must include exactly one + * type. `UNKNOWN_TRIP_TYPE` is not allowed. Restricts the search to only + * those vehicles that can support that trip type. + * @type \Google\Protobuf\Duration $maximum_staleness + * Restricts the search to only those vehicles that have sent location updates + * to Fleet Engine within the specified duration. Stationary vehicles still + * transmitting their locations are not considered stale. If this field is not + * set, the server uses five minutes as the default value. + * @type array<\Google\Maps\FleetEngine\V1\Vehicle\VehicleType>|\Google\Protobuf\Internal\RepeatedField $vehicle_types + * Required. Restricts the search to vehicles with one of the specified types. + * At least one vehicle type must be specified. VehicleTypes with a category + * of `UNKNOWN` are not allowed. + * @type array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $required_attributes + * Callers can form complex logical operations using any combination of the + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attribute_sets` fields. + * `required_attributes` is a list; `required_one_of_attributes` uses a + * message which allows a list of lists. In combination, the two fields allow + * the composition of this expression: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR + * ...) + * AND + * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR + * ...) + * ``` + * Restricts the search to only those vehicles with the specified attributes. + * This field is a conjunction/AND operation. A max of 50 required_attributes + * is allowed. This matches the maximum number of attributes allowed on a + * vehicle. + * @type array<\Google\Maps\FleetEngine\V1\VehicleAttributeList>|\Google\Protobuf\Internal\RepeatedField $required_one_of_attributes + * Restricts the search to only those vehicles with at least one of + * the specified attributes in each `VehicleAttributeList`. Within each + * list, a vehicle must match at least one of the attributes. This field is an + * inclusive disjunction/OR operation in each `VehicleAttributeList` and a + * conjunction/AND operation across the collection of `VehicleAttributeList`. + * @type array<\Google\Maps\FleetEngine\V1\VehicleAttributeList>|\Google\Protobuf\Internal\RepeatedField $required_one_of_attribute_sets + * `required_one_of_attribute_sets` provides additional functionality. + * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` + * uses a message which allows a list of lists, allowing expressions such as + * this one: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * ( + * (required_one_of_attribute_sets[0][0] AND + * required_one_of_attribute_sets[0][1] AND + * ...) + * OR + * (required_one_of_attribute_sets[1][0] AND + * required_one_of_attribute_sets[1][1] AND + * ...) + * ) + * ``` + * Restricts the search to only those vehicles with all the attributes in a + * `VehicleAttributeList`. Within each list, a + * vehicle must match all of the attributes. This field is a conjunction/AND + * operation in each `VehicleAttributeList` and inclusive disjunction/OR + * operation across the collection of `VehicleAttributeList`. + * @type int $order_by + * Required. Specifies the desired ordering criterion for results. + * @type bool $include_back_to_back + * This indicates if vehicles with a single active trip are eligible for this + * search. This field is only used when `current_trips_present` is + * unspecified. When `current_trips_present` is unspecified and this field + * is `false`, vehicles with assigned trips are excluded from the search + * results. When `current_trips_present` is unspecified and this field is + * `true`, search results can include vehicles with one active trip that has a + * status of `ENROUTE_TO_DROPOFF`. When `current_trips_present` is specified, + * this field cannot be set to true. + * The default value is `false`. + * @type string $trip_id + * Indicates the trip associated with this `SearchVehicleRequest`. + * @type int $current_trips_present + * This indicates if vehicles with active trips are eligible for this search. + * This must be set to something other than + * `CURRENT_TRIPS_PRESENT_UNSPECIFIED` if `trip_type` includes `SHARED`. + * @type string $filter + * Optional. A filter query to apply when searching vehicles. See + * http://aip.dev/160 for examples of the filter syntax. + * This field is designed to replace the `required_attributes`, + * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. + * If a non-empty value is specified here, the following fields must be empty: + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attributes_sets`. + * This filter functions as an AND clause with other constraints, + * such as `minimum_capacity` or `vehicle_types`. + * Note that the only queries supported are on vehicle attributes (for + * example, `attributes. = ` or `attributes. = AND + * attributes. = `). The maximum number of restrictions allowed + * in a filter query is 50. + * Also, all attributes are stored as strings, so the only supported + * comparisons against attributes are string comparisons. In order to compare + * against number or boolean values, the values must be explicitly quoted to + * be treated as strings (for example, `attributes. = "10"` or + * `attributes. = "true"`). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @return \Google\Maps\FleetEngine\V1\RequestHeader|null + */ + public function getHeader() + { + return $this->header; + } + + public function hasHeader() + { + return isset($this->header); + } + + public function clearHeader() + { + unset($this->header); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @param \Google\Maps\FleetEngine\V1\RequestHeader $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); + $this->header = $var; + + return $this; + } + + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The pickup point to search near. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Maps\FleetEngine\V1\TerminalLocation|null + */ + public function getPickupPoint() + { + return $this->pickup_point; + } + + public function hasPickupPoint() + { + return isset($this->pickup_point); + } + + public function clearPickupPoint() + { + unset($this->pickup_point); + } + + /** + * Required. The pickup point to search near. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Maps\FleetEngine\V1\TerminalLocation $var + * @return $this + */ + public function setPickupPoint($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalLocation::class); + $this->pickup_point = $var; + + return $this; + } + + /** + * The customer's intended dropoff location. The field is required if + * `trip_types` contains `TripType.SHARED`. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 5; + * @return \Google\Maps\FleetEngine\V1\TerminalLocation|null + */ + public function getDropoffPoint() + { + return $this->dropoff_point; + } + + public function hasDropoffPoint() + { + return isset($this->dropoff_point); + } + + public function clearDropoffPoint() + { + unset($this->dropoff_point); + } + + /** + * The customer's intended dropoff location. The field is required if + * `trip_types` contains `TripType.SHARED`. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 5; + * @param \Google\Maps\FleetEngine\V1\TerminalLocation $var + * @return $this + */ + public function setDropoffPoint($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalLocation::class); + $this->dropoff_point = $var; + + return $this; + } + + /** + * Required. Defines the vehicle search radius around the pickup point. Only + * vehicles within the search radius will be returned. Value must be between + * 400 and 10000 meters (inclusive). + * + * Generated from protobuf field int32 pickup_radius_meters = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getPickupRadiusMeters() + { + return $this->pickup_radius_meters; + } + + /** + * Required. Defines the vehicle search radius around the pickup point. Only + * vehicles within the search radius will be returned. Value must be between + * 400 and 10000 meters (inclusive). + * + * Generated from protobuf field int32 pickup_radius_meters = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setPickupRadiusMeters($var) + { + GPBUtil::checkInt32($var); + $this->pickup_radius_meters = $var; + + return $this; + } + + /** + * Required. Specifies the maximum number of vehicles to return. The value + * must be between 1 and 50 (inclusive). + * + * Generated from protobuf field int32 count = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getCount() + { + return $this->count; + } + + /** + * Required. Specifies the maximum number of vehicles to return. The value + * must be between 1 and 50 (inclusive). + * + * Generated from protobuf field int32 count = 7 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setCount($var) + { + GPBUtil::checkInt32($var); + $this->count = $var; + + return $this; + } + + /** + * Required. Specifies the number of passengers being considered for a trip. + * The value must be greater than or equal to one. The driver is not + * considered in the capacity value. + * + * Generated from protobuf field int32 minimum_capacity = 8 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMinimumCapacity() + { + return $this->minimum_capacity; + } + + /** + * Required. Specifies the number of passengers being considered for a trip. + * The value must be greater than or equal to one. The driver is not + * considered in the capacity value. + * + * Generated from protobuf field int32 minimum_capacity = 8 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMinimumCapacity($var) + { + GPBUtil::checkInt32($var); + $this->minimum_capacity = $var; + + return $this; + } + + /** + * Required. Represents the type of proposed trip. Must include exactly one + * type. `UNKNOWN_TRIP_TYPE` is not allowed. Restricts the search to only + * those vehicles that can support that trip type. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 9 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTripTypes() + { + return $this->trip_types; + } + + /** + * Required. Represents the type of proposed trip. Must include exactly one + * type. `UNKNOWN_TRIP_TYPE` is not allowed. Restricts the search to only + * those vehicles that can support that trip type. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 9 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTripTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Maps\FleetEngine\V1\TripType::class); + $this->trip_types = $arr; + + return $this; + } + + /** + * Restricts the search to only those vehicles that have sent location updates + * to Fleet Engine within the specified duration. Stationary vehicles still + * transmitting their locations are not considered stale. If this field is not + * set, the server uses five minutes as the default value. + * + * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 10; + * @return \Google\Protobuf\Duration|null + */ + public function getMaximumStaleness() + { + return $this->maximum_staleness; + } + + public function hasMaximumStaleness() + { + return isset($this->maximum_staleness); + } + + public function clearMaximumStaleness() + { + unset($this->maximum_staleness); + } + + /** + * Restricts the search to only those vehicles that have sent location updates + * to Fleet Engine within the specified duration. Stationary vehicles still + * transmitting their locations are not considered stale. If this field is not + * set, the server uses five minutes as the default value. + * + * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 10; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setMaximumStaleness($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->maximum_staleness = $var; + + return $this; + } + + /** + * Required. Restricts the search to vehicles with one of the specified types. + * At least one vehicle type must be specified. VehicleTypes with a category + * of `UNKNOWN` are not allowed. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType vehicle_types = 14 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getVehicleTypes() + { + return $this->vehicle_types; + } + + /** + * Required. Restricts the search to vehicles with one of the specified types. + * At least one vehicle type must be specified. VehicleTypes with a category + * of `UNKNOWN` are not allowed. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType vehicle_types = 14 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Maps\FleetEngine\V1\Vehicle\VehicleType>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setVehicleTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\Vehicle\VehicleType::class); + $this->vehicle_types = $arr; + + return $this; + } + + /** + * Callers can form complex logical operations using any combination of the + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attribute_sets` fields. + * `required_attributes` is a list; `required_one_of_attributes` uses a + * message which allows a list of lists. In combination, the two fields allow + * the composition of this expression: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR + * ...) + * AND + * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR + * ...) + * ``` + * Restricts the search to only those vehicles with the specified attributes. + * This field is a conjunction/AND operation. A max of 50 required_attributes + * is allowed. This matches the maximum number of attributes allowed on a + * vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute required_attributes = 12; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequiredAttributes() + { + return $this->required_attributes; + } + + /** + * Callers can form complex logical operations using any combination of the + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attribute_sets` fields. + * `required_attributes` is a list; `required_one_of_attributes` uses a + * message which allows a list of lists. In combination, the two fields allow + * the composition of this expression: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR + * ...) + * AND + * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR + * ...) + * ``` + * Restricts the search to only those vehicles with the specified attributes. + * This field is a conjunction/AND operation. A max of 50 required_attributes + * is allowed. This matches the maximum number of attributes allowed on a + * vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute required_attributes = 12; + * @param array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequiredAttributes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttribute::class); + $this->required_attributes = $arr; + + return $this; + } + + /** + * Restricts the search to only those vehicles with at least one of + * the specified attributes in each `VehicleAttributeList`. Within each + * list, a vehicle must match at least one of the attributes. This field is an + * inclusive disjunction/OR operation in each `VehicleAttributeList` and a + * conjunction/AND operation across the collection of `VehicleAttributeList`. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attributes = 15; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequiredOneOfAttributes() + { + return $this->required_one_of_attributes; + } + + /** + * Restricts the search to only those vehicles with at least one of + * the specified attributes in each `VehicleAttributeList`. Within each + * list, a vehicle must match at least one of the attributes. This field is an + * inclusive disjunction/OR operation in each `VehicleAttributeList` and a + * conjunction/AND operation across the collection of `VehicleAttributeList`. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attributes = 15; + * @param array<\Google\Maps\FleetEngine\V1\VehicleAttributeList>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequiredOneOfAttributes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttributeList::class); + $this->required_one_of_attributes = $arr; + + return $this; + } + + /** + * `required_one_of_attribute_sets` provides additional functionality. + * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` + * uses a message which allows a list of lists, allowing expressions such as + * this one: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * ( + * (required_one_of_attribute_sets[0][0] AND + * required_one_of_attribute_sets[0][1] AND + * ...) + * OR + * (required_one_of_attribute_sets[1][0] AND + * required_one_of_attribute_sets[1][1] AND + * ...) + * ) + * ``` + * Restricts the search to only those vehicles with all the attributes in a + * `VehicleAttributeList`. Within each list, a + * vehicle must match all of the attributes. This field is a conjunction/AND + * operation in each `VehicleAttributeList` and inclusive disjunction/OR + * operation across the collection of `VehicleAttributeList`. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attribute_sets = 20; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequiredOneOfAttributeSets() + { + return $this->required_one_of_attribute_sets; + } + + /** + * `required_one_of_attribute_sets` provides additional functionality. + * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` + * uses a message which allows a list of lists, allowing expressions such as + * this one: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * ( + * (required_one_of_attribute_sets[0][0] AND + * required_one_of_attribute_sets[0][1] AND + * ...) + * OR + * (required_one_of_attribute_sets[1][0] AND + * required_one_of_attribute_sets[1][1] AND + * ...) + * ) + * ``` + * Restricts the search to only those vehicles with all the attributes in a + * `VehicleAttributeList`. Within each list, a + * vehicle must match all of the attributes. This field is a conjunction/AND + * operation in each `VehicleAttributeList` and inclusive disjunction/OR + * operation across the collection of `VehicleAttributeList`. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attribute_sets = 20; + * @param array<\Google\Maps\FleetEngine\V1\VehicleAttributeList>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequiredOneOfAttributeSets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttributeList::class); + $this->required_one_of_attribute_sets = $arr; + + return $this; + } + + /** + * Required. Specifies the desired ordering criterion for results. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder order_by = 13 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Required. Specifies the desired ordering criterion for results. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder order_by = 13 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest\VehicleMatchOrder::class); + $this->order_by = $var; + + return $this; + } + + /** + * This indicates if vehicles with a single active trip are eligible for this + * search. This field is only used when `current_trips_present` is + * unspecified. When `current_trips_present` is unspecified and this field + * is `false`, vehicles with assigned trips are excluded from the search + * results. When `current_trips_present` is unspecified and this field is + * `true`, search results can include vehicles with one active trip that has a + * status of `ENROUTE_TO_DROPOFF`. When `current_trips_present` is specified, + * this field cannot be set to true. + * The default value is `false`. + * + * Generated from protobuf field bool include_back_to_back = 18; + * @return bool + */ + public function getIncludeBackToBack() + { + return $this->include_back_to_back; + } + + /** + * This indicates if vehicles with a single active trip are eligible for this + * search. This field is only used when `current_trips_present` is + * unspecified. When `current_trips_present` is unspecified and this field + * is `false`, vehicles with assigned trips are excluded from the search + * results. When `current_trips_present` is unspecified and this field is + * `true`, search results can include vehicles with one active trip that has a + * status of `ENROUTE_TO_DROPOFF`. When `current_trips_present` is specified, + * this field cannot be set to true. + * The default value is `false`. + * + * Generated from protobuf field bool include_back_to_back = 18; + * @param bool $var + * @return $this + */ + public function setIncludeBackToBack($var) + { + GPBUtil::checkBool($var); + $this->include_back_to_back = $var; + + return $this; + } + + /** + * Indicates the trip associated with this `SearchVehicleRequest`. + * + * Generated from protobuf field string trip_id = 19; + * @return string + */ + public function getTripId() + { + return $this->trip_id; + } + + /** + * Indicates the trip associated with this `SearchVehicleRequest`. + * + * Generated from protobuf field string trip_id = 19; + * @param string $var + * @return $this + */ + public function setTripId($var) + { + GPBUtil::checkString($var, True); + $this->trip_id = $var; + + return $this; + } + + /** + * This indicates if vehicles with active trips are eligible for this search. + * This must be set to something other than + * `CURRENT_TRIPS_PRESENT_UNSPECIFIED` if `trip_type` includes `SHARED`. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.CurrentTripsPresent current_trips_present = 21; + * @return int + */ + public function getCurrentTripsPresent() + { + return $this->current_trips_present; + } + + /** + * This indicates if vehicles with active trips are eligible for this search. + * This must be set to something other than + * `CURRENT_TRIPS_PRESENT_UNSPECIFIED` if `trip_type` includes `SHARED`. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.CurrentTripsPresent current_trips_present = 21; + * @param int $var + * @return $this + */ + public function setCurrentTripsPresent($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest\CurrentTripsPresent::class); + $this->current_trips_present = $var; + + return $this; + } + + /** + * Optional. A filter query to apply when searching vehicles. See + * http://aip.dev/160 for examples of the filter syntax. + * This field is designed to replace the `required_attributes`, + * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. + * If a non-empty value is specified here, the following fields must be empty: + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attributes_sets`. + * This filter functions as an AND clause with other constraints, + * such as `minimum_capacity` or `vehicle_types`. + * Note that the only queries supported are on vehicle attributes (for + * example, `attributes. = ` or `attributes. = AND + * attributes. = `). The maximum number of restrictions allowed + * in a filter query is 50. + * Also, all attributes are stored as strings, so the only supported + * comparisons against attributes are string comparisons. In order to compare + * against number or boolean values, the values must be explicitly quoted to + * be treated as strings (for example, `attributes. = "10"` or + * `attributes. = "true"`). + * + * Generated from protobuf field string filter = 22 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. A filter query to apply when searching vehicles. See + * http://aip.dev/160 for examples of the filter syntax. + * This field is designed to replace the `required_attributes`, + * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. + * If a non-empty value is specified here, the following fields must be empty: + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attributes_sets`. + * This filter functions as an AND clause with other constraints, + * such as `minimum_capacity` or `vehicle_types`. + * Note that the only queries supported are on vehicle attributes (for + * example, `attributes. = ` or `attributes. = AND + * attributes. = `). The maximum number of restrictions allowed + * in a filter query is 50. + * Also, all attributes are stored as strings, so the only supported + * comparisons against attributes are string comparisons. In order to compare + * against number or boolean values, the values must be explicitly quoted to + * be treated as strings (for example, `attributes. = "10"` or + * `attributes. = "true"`). + * + * Generated from protobuf field string filter = 22 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/CurrentTripsPresent.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/CurrentTripsPresent.php new file mode 100644 index 000000000000..e9d8ed63eb8d --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/CurrentTripsPresent.php @@ -0,0 +1,68 @@ +maps.fleetengine.v1.SearchVehiclesRequest.CurrentTripsPresent + */ +class CurrentTripsPresent +{ + /** + * The availability of vehicles with trips present is governed by the + * `include_back_to_back` field. + * + * Generated from protobuf enum CURRENT_TRIPS_PRESENT_UNSPECIFIED = 0; + */ + const CURRENT_TRIPS_PRESENT_UNSPECIFIED = 0; + /** + * Vehicles without trips can appear in search results. When this value is + * used, `include_back_to_back` cannot be `true`. + * + * Generated from protobuf enum NONE = 1; + */ + const NONE = 1; + /** + * Vehicles with at most 5 current trips and 10 waypoints are included + * in the search results. When this value is used, `include_back_to_back` + * cannot be `true`. + * + * Generated from protobuf enum ANY = 2; + */ + const ANY = 2; + + private static $valueToName = [ + self::CURRENT_TRIPS_PRESENT_UNSPECIFIED => 'CURRENT_TRIPS_PRESENT_UNSPECIFIED', + self::NONE => 'NONE', + self::ANY => 'ANY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CurrentTripsPresent::class, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest_CurrentTripsPresent::class); + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/VehicleMatchOrder.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/VehicleMatchOrder.php new file mode 100644 index 000000000000..5abdd153b401 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/VehicleMatchOrder.php @@ -0,0 +1,90 @@ +maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder + */ +class VehicleMatchOrder +{ + /** + * Default, used for unspecified or unrecognized vehicle matches order. + * + * Generated from protobuf enum UNKNOWN_VEHICLE_MATCH_ORDER = 0; + */ + const UNKNOWN_VEHICLE_MATCH_ORDER = 0; + /** + * Ascending order by vehicle driving time to the pickup point. + * + * Generated from protobuf enum PICKUP_POINT_ETA = 1; + */ + const PICKUP_POINT_ETA = 1; + /** + * Ascending order by vehicle driving distance to the pickup point. + * + * Generated from protobuf enum PICKUP_POINT_DISTANCE = 2; + */ + const PICKUP_POINT_DISTANCE = 2; + /** + * Ascending order by vehicle driving time to the dropoff point. This order + * can only be used if the dropoff point is specified in the request. + * + * Generated from protobuf enum DROPOFF_POINT_ETA = 3; + */ + const DROPOFF_POINT_ETA = 3; + /** + * Ascending order by straight-line distance from the vehicle's last + * reported location to the pickup point. + * + * Generated from protobuf enum PICKUP_POINT_STRAIGHT_DISTANCE = 4; + */ + const PICKUP_POINT_STRAIGHT_DISTANCE = 4; + /** + * Ascending order by the configured match cost. Match cost is defined as a + * weighted calculation between straight-line distance and ETA. Weights are + * set with default values and can be modified per customer. Please contact + * Google support if these weights need to be modified for your project. + * + * Generated from protobuf enum COST = 5; + */ + const COST = 5; + + private static $valueToName = [ + self::UNKNOWN_VEHICLE_MATCH_ORDER => 'UNKNOWN_VEHICLE_MATCH_ORDER', + self::PICKUP_POINT_ETA => 'PICKUP_POINT_ETA', + self::PICKUP_POINT_DISTANCE => 'PICKUP_POINT_DISTANCE', + self::DROPOFF_POINT_ETA => 'DROPOFF_POINT_ETA', + self::PICKUP_POINT_STRAIGHT_DISTANCE => 'PICKUP_POINT_STRAIGHT_DISTANCE', + self::COST => 'COST', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(VehicleMatchOrder::class, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest_VehicleMatchOrder::class); + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesResponse.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesResponse.php new file mode 100644 index 000000000000..c521ea8c385e --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesResponse.php @@ -0,0 +1,71 @@ +maps.fleetengine.v1.SearchVehiclesResponse + */ +class SearchVehiclesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of vehicles that match the `SearchVehiclesRequest` criteria, ordered + * according to `SearchVehiclesRequest.order_by` field. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleMatch matches = 1; + */ + private $matches; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Maps\FleetEngine\V1\VehicleMatch>|\Google\Protobuf\Internal\RepeatedField $matches + * List of vehicles that match the `SearchVehiclesRequest` criteria, ordered + * according to `SearchVehiclesRequest.order_by` field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * List of vehicles that match the `SearchVehiclesRequest` criteria, ordered + * according to `SearchVehiclesRequest.order_by` field. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleMatch matches = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMatches() + { + return $this->matches; + } + + /** + * List of vehicles that match the `SearchVehiclesRequest` criteria, ordered + * according to `SearchVehiclesRequest.order_by` field. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleMatch matches = 1; + * @param array<\Google\Maps\FleetEngine\V1\VehicleMatch>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMatches($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleMatch::class); + $this->matches = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval.php new file mode 100644 index 000000000000..53d8e860e1d4 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval.php @@ -0,0 +1,145 @@ +maps.fleetengine.v1.SpeedReadingInterval + */ +class SpeedReadingInterval extends \Google\Protobuf\Internal\Message +{ + /** + * The starting index of this interval in the path. + * In JSON, when the index is 0, the field will appear to be unpopulated. + * + * Generated from protobuf field int32 start_polyline_point_index = 1; + */ + protected $start_polyline_point_index = 0; + /** + * The ending index of this interval in the path. + * In JSON, when the index is 0, the field will appear to be unpopulated. + * + * Generated from protobuf field int32 end_polyline_point_index = 2; + */ + protected $end_polyline_point_index = 0; + /** + * Traffic speed in this interval. + * + * Generated from protobuf field .maps.fleetengine.v1.SpeedReadingInterval.Speed speed = 3; + */ + protected $speed = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $start_polyline_point_index + * The starting index of this interval in the path. + * In JSON, when the index is 0, the field will appear to be unpopulated. + * @type int $end_polyline_point_index + * The ending index of this interval in the path. + * In JSON, when the index is 0, the field will appear to be unpopulated. + * @type int $speed + * Traffic speed in this interval. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Traffic::initOnce(); + parent::__construct($data); + } + + /** + * The starting index of this interval in the path. + * In JSON, when the index is 0, the field will appear to be unpopulated. + * + * Generated from protobuf field int32 start_polyline_point_index = 1; + * @return int + */ + public function getStartPolylinePointIndex() + { + return $this->start_polyline_point_index; + } + + /** + * The starting index of this interval in the path. + * In JSON, when the index is 0, the field will appear to be unpopulated. + * + * Generated from protobuf field int32 start_polyline_point_index = 1; + * @param int $var + * @return $this + */ + public function setStartPolylinePointIndex($var) + { + GPBUtil::checkInt32($var); + $this->start_polyline_point_index = $var; + + return $this; + } + + /** + * The ending index of this interval in the path. + * In JSON, when the index is 0, the field will appear to be unpopulated. + * + * Generated from protobuf field int32 end_polyline_point_index = 2; + * @return int + */ + public function getEndPolylinePointIndex() + { + return $this->end_polyline_point_index; + } + + /** + * The ending index of this interval in the path. + * In JSON, when the index is 0, the field will appear to be unpopulated. + * + * Generated from protobuf field int32 end_polyline_point_index = 2; + * @param int $var + * @return $this + */ + public function setEndPolylinePointIndex($var) + { + GPBUtil::checkInt32($var); + $this->end_polyline_point_index = $var; + + return $this; + } + + /** + * Traffic speed in this interval. + * + * Generated from protobuf field .maps.fleetengine.v1.SpeedReadingInterval.Speed speed = 3; + * @return int + */ + public function getSpeed() + { + return $this->speed; + } + + /** + * Traffic speed in this interval. + * + * Generated from protobuf field .maps.fleetengine.v1.SpeedReadingInterval.Speed speed = 3; + * @param int $var + * @return $this + */ + public function setSpeed($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\SpeedReadingInterval\Speed::class); + $this->speed = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval/Speed.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval/Speed.php new file mode 100644 index 000000000000..6291e7ebaf55 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval/Speed.php @@ -0,0 +1,71 @@ +maps.fleetengine.v1.SpeedReadingInterval.Speed + */ +class Speed +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum SPEED_UNSPECIFIED = 0; + */ + const SPEED_UNSPECIFIED = 0; + /** + * Normal speed, no slowdown is detected. + * + * Generated from protobuf enum NORMAL = 1; + */ + const NORMAL = 1; + /** + * Slowdown detected, but no traffic jam formed. + * + * Generated from protobuf enum SLOW = 2; + */ + const SLOW = 2; + /** + * Traffic jam detected. + * + * Generated from protobuf enum TRAFFIC_JAM = 3; + */ + const TRAFFIC_JAM = 3; + + private static $valueToName = [ + self::SPEED_UNSPECIFIED => 'SPEED_UNSPECIFIED', + self::NORMAL => 'NORMAL', + self::SLOW => 'SLOW', + self::TRAFFIC_JAM => 'TRAFFIC_JAM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Speed::class, \Google\Maps\FleetEngine\V1\SpeedReadingInterval_Speed::class); + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/StopLocation.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/StopLocation.php new file mode 100644 index 000000000000..6a2b230a3673 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/StopLocation.php @@ -0,0 +1,172 @@ +maps.fleetengine.v1.StopLocation + */ +class StopLocation extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Denotes the actual location. + * + * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $point = null; + /** + * Indicates when the stop happened. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; + */ + protected $timestamp = null; + /** + * Input only. Deprecated. Use the timestamp field. + * + * Generated from protobuf field .google.protobuf.Timestamp stop_time = 3 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; + * @deprecated + */ + protected $stop_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Type\LatLng $point + * Required. Denotes the actual location. + * @type \Google\Protobuf\Timestamp $timestamp + * Indicates when the stop happened. + * @type \Google\Protobuf\Timestamp $stop_time + * Input only. Deprecated. Use the timestamp field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Trips::initOnce(); + parent::__construct($data); + } + + /** + * Required. Denotes the actual location. + * + * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Type\LatLng|null + */ + public function getPoint() + { + return $this->point; + } + + public function hasPoint() + { + return isset($this->point); + } + + public function clearPoint() + { + unset($this->point); + } + + /** + * Required. Denotes the actual location. + * + * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Type\LatLng $var + * @return $this + */ + public function setPoint($var) + { + GPBUtil::checkMessage($var, \Google\Type\LatLng::class); + $this->point = $var; + + return $this; + } + + /** + * Indicates when the stop happened. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getTimestamp() + { + return $this->timestamp; + } + + public function hasTimestamp() + { + return isset($this->timestamp); + } + + public function clearTimestamp() + { + unset($this->timestamp); + } + + /** + * Indicates when the stop happened. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setTimestamp($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->timestamp = $var; + + return $this; + } + + /** + * Input only. Deprecated. Use the timestamp field. + * + * Generated from protobuf field .google.protobuf.Timestamp stop_time = 3 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + * @deprecated + */ + public function getStopTime() + { + @trigger_error('stop_time is deprecated.', E_USER_DEPRECATED); + return $this->stop_time; + } + + public function hasStopTime() + { + @trigger_error('stop_time is deprecated.', E_USER_DEPRECATED); + return isset($this->stop_time); + } + + public function clearStopTime() + { + @trigger_error('stop_time is deprecated.', E_USER_DEPRECATED); + unset($this->stop_time); + } + + /** + * Input only. Deprecated. Use the timestamp field. + * + * Generated from protobuf field .google.protobuf.Timestamp stop_time = 3 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + * @deprecated + */ + public function setStopTime($var) + { + @trigger_error('stop_time is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->stop_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalLocation.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalLocation.php new file mode 100644 index 000000000000..aa49ef72b229 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalLocation.php @@ -0,0 +1,245 @@ +maps.fleetengine.v1.TerminalLocation + */ +class TerminalLocation extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Denotes the location of a trip waypoint. + * + * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $point = null; + /** + * Deprecated: Specify the `point` field instead. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalPointId terminal_point_id = 2 [deprecated = true]; + * @deprecated + */ + protected $terminal_point_id = null; + /** + * Deprecated: Specify the `point` field instead. + * + * Generated from protobuf field string access_point_id = 3 [deprecated = true]; + * @deprecated + */ + protected $access_point_id = ''; + /** + * Deprecated. + * + * Generated from protobuf field string trip_id = 4 [deprecated = true]; + * @deprecated + */ + protected $trip_id = ''; + /** + * Deprecated: `Vehicle.waypoint` will have this data. + * + * Generated from protobuf field .maps.fleetengine.v1.WaypointType terminal_location_type = 5 [deprecated = true]; + * @deprecated + */ + protected $terminal_location_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Type\LatLng $point + * Required. Denotes the location of a trip waypoint. + * @type \Google\Maps\FleetEngine\V1\TerminalPointId $terminal_point_id + * Deprecated: Specify the `point` field instead. + * @type string $access_point_id + * Deprecated: Specify the `point` field instead. + * @type string $trip_id + * Deprecated. + * @type int $terminal_location_type + * Deprecated: `Vehicle.waypoint` will have this data. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Fleetengine::initOnce(); + parent::__construct($data); + } + + /** + * Required. Denotes the location of a trip waypoint. + * + * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Type\LatLng|null + */ + public function getPoint() + { + return $this->point; + } + + public function hasPoint() + { + return isset($this->point); + } + + public function clearPoint() + { + unset($this->point); + } + + /** + * Required. Denotes the location of a trip waypoint. + * + * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Type\LatLng $var + * @return $this + */ + public function setPoint($var) + { + GPBUtil::checkMessage($var, \Google\Type\LatLng::class); + $this->point = $var; + + return $this; + } + + /** + * Deprecated: Specify the `point` field instead. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalPointId terminal_point_id = 2 [deprecated = true]; + * @return \Google\Maps\FleetEngine\V1\TerminalPointId|null + * @deprecated + */ + public function getTerminalPointId() + { + @trigger_error('terminal_point_id is deprecated.', E_USER_DEPRECATED); + return $this->terminal_point_id; + } + + public function hasTerminalPointId() + { + @trigger_error('terminal_point_id is deprecated.', E_USER_DEPRECATED); + return isset($this->terminal_point_id); + } + + public function clearTerminalPointId() + { + @trigger_error('terminal_point_id is deprecated.', E_USER_DEPRECATED); + unset($this->terminal_point_id); + } + + /** + * Deprecated: Specify the `point` field instead. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalPointId terminal_point_id = 2 [deprecated = true]; + * @param \Google\Maps\FleetEngine\V1\TerminalPointId $var + * @return $this + * @deprecated + */ + public function setTerminalPointId($var) + { + @trigger_error('terminal_point_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalPointId::class); + $this->terminal_point_id = $var; + + return $this; + } + + /** + * Deprecated: Specify the `point` field instead. + * + * Generated from protobuf field string access_point_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getAccessPointId() + { + @trigger_error('access_point_id is deprecated.', E_USER_DEPRECATED); + return $this->access_point_id; + } + + /** + * Deprecated: Specify the `point` field instead. + * + * Generated from protobuf field string access_point_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setAccessPointId($var) + { + @trigger_error('access_point_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->access_point_id = $var; + + return $this; + } + + /** + * Deprecated. + * + * Generated from protobuf field string trip_id = 4 [deprecated = true]; + * @return string + * @deprecated + */ + public function getTripId() + { + @trigger_error('trip_id is deprecated.', E_USER_DEPRECATED); + return $this->trip_id; + } + + /** + * Deprecated. + * + * Generated from protobuf field string trip_id = 4 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setTripId($var) + { + @trigger_error('trip_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->trip_id = $var; + + return $this; + } + + /** + * Deprecated: `Vehicle.waypoint` will have this data. + * + * Generated from protobuf field .maps.fleetengine.v1.WaypointType terminal_location_type = 5 [deprecated = true]; + * @return int + * @deprecated + */ + public function getTerminalLocationType() + { + @trigger_error('terminal_location_type is deprecated.', E_USER_DEPRECATED); + return $this->terminal_location_type; + } + + /** + * Deprecated: `Vehicle.waypoint` will have this data. + * + * Generated from protobuf field .maps.fleetengine.v1.WaypointType terminal_location_type = 5 [deprecated = true]; + * @param int $var + * @return $this + * @deprecated + */ + public function setTerminalLocationType($var) + { + @trigger_error('terminal_location_type is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\WaypointType::class); + $this->terminal_location_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalPointId.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalPointId.php new file mode 100644 index 000000000000..dbd1ada8ce1c --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalPointId.php @@ -0,0 +1,159 @@ +maps.fleetengine.v1.TerminalPointId + */ +class TerminalPointId extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. + * + * Generated from protobuf field string value = 4 [deprecated = true]; + * @deprecated + */ + protected $value = ''; + protected $Id; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $place_id + * Deprecated. + * @type string $generated_id + * Deprecated. + * @type string $value + * Deprecated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Fleetengine::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. + * + * Generated from protobuf field string place_id = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getPlaceId() + { + @trigger_error('place_id is deprecated.', E_USER_DEPRECATED); + return $this->readOneof(2); + } + + public function hasPlaceId() + { + @trigger_error('place_id is deprecated.', E_USER_DEPRECATED); + return $this->hasOneof(2); + } + + /** + * Deprecated. + * + * Generated from protobuf field string place_id = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setPlaceId($var) + { + @trigger_error('place_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Deprecated. + * + * Generated from protobuf field string generated_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getGeneratedId() + { + @trigger_error('generated_id is deprecated.', E_USER_DEPRECATED); + return $this->readOneof(3); + } + + public function hasGeneratedId() + { + @trigger_error('generated_id is deprecated.', E_USER_DEPRECATED); + return $this->hasOneof(3); + } + + /** + * Deprecated. + * + * Generated from protobuf field string generated_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setGeneratedId($var) + { + @trigger_error('generated_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Deprecated. + * + * Generated from protobuf field string value = 4 [deprecated = true]; + * @return string + * @deprecated + */ + public function getValue() + { + @trigger_error('value is deprecated.', E_USER_DEPRECATED); + return $this->value; + } + + /** + * Deprecated. + * + * Generated from protobuf field string value = 4 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setValue($var) + { + @trigger_error('value is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * @return string + */ + public function getId() + { + return $this->whichOneof("Id"); + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TrafficPolylineData.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TrafficPolylineData.php new file mode 100644 index 000000000000..d40f215739bf --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TrafficPolylineData.php @@ -0,0 +1,81 @@ +maps.fleetengine.v1.TrafficPolylineData + */ +class TrafficPolylineData extends \Google\Protobuf\Internal\Message +{ + /** + * A polyline rendering of how fast traffic is for all regions along + * one stretch of a customer ride. + * + * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering traffic_rendering = 1; + */ + protected $traffic_rendering = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering $traffic_rendering + * A polyline rendering of how fast traffic is for all regions along + * one stretch of a customer ride. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); + parent::__construct($data); + } + + /** + * A polyline rendering of how fast traffic is for all regions along + * one stretch of a customer ride. + * + * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering traffic_rendering = 1; + * @return \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering|null + */ + public function getTrafficRendering() + { + return $this->traffic_rendering; + } + + public function hasTrafficRendering() + { + return isset($this->traffic_rendering); + } + + public function clearTrafficRendering() + { + unset($this->traffic_rendering); + } + + /** + * A polyline rendering of how fast traffic is for all regions along + * one stretch of a customer ride. + * + * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering traffic_rendering = 1; + * @param \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering $var + * @return $this + */ + public function setTrafficRendering($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering::class); + $this->traffic_rendering = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Trip.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Trip.php new file mode 100644 index 000000000000..8a5d139fee2e --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Trip.php @@ -0,0 +1,1614 @@ +maps.fleetengine.v1.Trip + */ +class Trip extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. In the format "providers/{provider}/trips/{trip}" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * ID of the vehicle making this trip. + * + * Generated from protobuf field string vehicle_id = 2; + */ + protected $vehicle_id = ''; + /** + * Current status of the trip. + * + * Generated from protobuf field .maps.fleetengine.v1.TripStatus trip_status = 3; + */ + protected $trip_status = 0; + /** + * The type of the trip. + * + * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 4; + */ + protected $trip_type = 0; + /** + * Location where customer indicates they will be picked up. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 5; + */ + protected $pickup_point = null; + /** + * Input only. The actual location when and where customer was picked up. + * This field is for provider to provide feedback on actual pickup + * information. + * + * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_point = 22 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $actual_pickup_point = null; + /** + * Input only. The actual time and location of the driver arrival at + * the pickup point. + * This field is for provider to provide feedback on actual arrival + * information at the pickup point. + * + * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_arrival_point = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $actual_pickup_arrival_point = null; + /** + * Output only. Either the estimated future time when the rider(s) will be + * picked up, or the actual time when they were picked up. + * + * Generated from protobuf field .google.protobuf.Timestamp pickup_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $pickup_time = null; + /** + * Intermediate stops in order that the trip requests (in addition + * to pickup and dropoff). Initially this will not be supported for shared + * trips. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation intermediate_destinations = 14; + */ + private $intermediate_destinations; + /** + * Indicates the last time the `intermediate_destinations` was modified. + * Your server should cache this value and pass it in `UpdateTripRequest` + * when update `intermediate_destination_index` to ensure the + * `intermediate_destinations` is not changed. + * + * Generated from protobuf field .google.protobuf.Timestamp intermediate_destinations_version = 25; + */ + protected $intermediate_destinations_version = null; + /** + * When `TripStatus` is `ENROUTE_TO_INTERMEDIATE_DESTINATION`, a number + * between [0..N-1] indicating which intermediate destination the vehicle will + * cross next. When `TripStatus` is `ARRIVED_AT_INTERMEDIATE_DESTINATION`, a + * number between [0..N-1] indicating which intermediate destination the + * vehicle is at. The provider sets this value. If there are no + * `intermediate_destinations`, this field is ignored. + * + * Generated from protobuf field int32 intermediate_destination_index = 15; + */ + protected $intermediate_destination_index = 0; + /** + * Input only. The actual time and location of the driver's arrival at + * an intermediate destination. + * This field is for provider to provide feedback on actual arrival + * information at intermediate destinations. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destination_arrival_points = 33 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + private $actual_intermediate_destination_arrival_points; + /** + * Input only. The actual time and location when and where the customer was + * picked up from an intermediate destination. This field is for provider to + * provide feedback on actual pickup information at intermediate destinations. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destinations = 34 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + private $actual_intermediate_destinations; + /** + * Location where customer indicates they will be dropped off. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 7; + */ + protected $dropoff_point = null; + /** + * Input only. The actual time and location when and where customer was + * dropped off. This field is for provider to provide feedback on actual + * dropoff information. + * + * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_dropoff_point = 23 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $actual_dropoff_point = null; + /** + * Output only. Either the estimated future time when the rider(s) will be + * dropped off at the final destination, or the actual time when they were + * dropped off. + * + * Generated from protobuf field .google.protobuf.Timestamp dropoff_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $dropoff_time = null; + /** + * Output only. The full path from the current location to the dropoff point, + * inclusive. This path could include waypoints from other trips. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint remaining_waypoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $remaining_waypoints; + /** + * This field supports manual ordering of the waypoints for the trip. It + * contains all of the remaining waypoints for the assigned vehicle, as well + * as the pickup and drop-off waypoints for this trip. If the trip hasn't been + * assigned to a vehicle, then Fleet Engine ignores this field. For privacy + * reasons, this field is only populated by the server on `UpdateTrip` and + * `CreateTrip` calls, NOT on `GetTrip` calls. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint vehicle_waypoints = 20; + */ + private $vehicle_waypoints; + /** + * Output only. Anticipated route for this trip to the first entry in + * remaining_waypoints. Note that the first waypoint may belong to a different + * trip. + * + * Generated from protobuf field repeated .google.type.LatLng route = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $route; + /** + * Output only. An encoded path to the next waypoint. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. Decoding is not yet supported. + * + * Generated from protobuf field string current_route_segment = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $current_route_segment = ''; + /** + * Output only. Indicates the last time the route was modified. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $current_route_segment_version = null; + /** + * Output only. Indicates the traffic conditions along the + * `current_route_segment` when they're available. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * + * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline current_route_segment_traffic = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $current_route_segment_traffic = null; + /** + * Output only. Indicates the last time the `current_route_segment_traffic` + * was modified. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $current_route_segment_traffic_version = null; + /** + * Output only. The waypoint where `current_route_segment` ends. + * + * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $current_route_segment_end_point = null; + /** + * Output only. The remaining driving distance in the `current_route_segment` + * field. The value is unspecified if the trip is not assigned to a vehicle, + * or the trip is completed or cancelled. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $remaining_distance_meters = null; + /** + * Output only. The ETA to the next waypoint (the first entry in the + * `remaining_waypoints` field). The value is unspecified if the trip is not + * assigned to a vehicle, or the trip is inactive (completed or cancelled). + * + * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $eta_to_first_waypoint = null; + /** + * Output only. The duration from when the Trip data is returned to the time + * in `Trip.eta_to_first_waypoint`. The value is unspecified if the trip is + * not assigned to a vehicle, or the trip is inactive (completed or + * cancelled). + * + * Generated from protobuf field .google.protobuf.Duration remaining_time_to_first_waypoint = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $remaining_time_to_first_waypoint = null; + /** + * Output only. Indicates the last time that `remaining_waypoints` was changed + * (a waypoint was added, removed, or changed). + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $remaining_waypoints_version = null; + /** + * Output only. Indicates the last time the + * `remaining_waypoints.path_to_waypoint` and + * `remaining_waypoints.traffic_to_waypoint` were modified. Your client app + * should cache this value and pass it in `GetTripRequest` to ensure the + * paths and traffic for `remaining_waypoints` are only returned if updated. + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $remaining_waypoints_route_version = null; + /** + * Immutable. Indicates the number of passengers on this trip and does not + * include the driver. A vehicle must have available capacity to be returned + * in a `SearchVehicles` response. + * + * Generated from protobuf field int32 number_of_passengers = 10 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $number_of_passengers = 0; + /** + * Output only. Indicates the last reported location of the vehicle along the + * route. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_location = null; + /** + * Output only. Indicates whether the vehicle's `last_location` can be snapped + * to the current_route_segment. False if `last_location` or + * `current_route_segment` doesn't exist. + * It is computed by Fleet Engine. Any update from clients will be ignored. + * + * Generated from protobuf field bool last_location_snappable = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_location_snappable = false; + /** + * The subset of Trip fields that are populated and how they should be + * interpreted. + * + * Generated from protobuf field .maps.fleetengine.v1.TripView view = 31; + */ + protected $view = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. In the format "providers/{provider}/trips/{trip}" + * @type string $vehicle_id + * ID of the vehicle making this trip. + * @type int $trip_status + * Current status of the trip. + * @type int $trip_type + * The type of the trip. + * @type \Google\Maps\FleetEngine\V1\TerminalLocation $pickup_point + * Location where customer indicates they will be picked up. + * @type \Google\Maps\FleetEngine\V1\StopLocation $actual_pickup_point + * Input only. The actual location when and where customer was picked up. + * This field is for provider to provide feedback on actual pickup + * information. + * @type \Google\Maps\FleetEngine\V1\StopLocation $actual_pickup_arrival_point + * Input only. The actual time and location of the driver arrival at + * the pickup point. + * This field is for provider to provide feedback on actual arrival + * information at the pickup point. + * @type \Google\Protobuf\Timestamp $pickup_time + * Output only. Either the estimated future time when the rider(s) will be + * picked up, or the actual time when they were picked up. + * @type array<\Google\Maps\FleetEngine\V1\TerminalLocation>|\Google\Protobuf\Internal\RepeatedField $intermediate_destinations + * Intermediate stops in order that the trip requests (in addition + * to pickup and dropoff). Initially this will not be supported for shared + * trips. + * @type \Google\Protobuf\Timestamp $intermediate_destinations_version + * Indicates the last time the `intermediate_destinations` was modified. + * Your server should cache this value and pass it in `UpdateTripRequest` + * when update `intermediate_destination_index` to ensure the + * `intermediate_destinations` is not changed. + * @type int $intermediate_destination_index + * When `TripStatus` is `ENROUTE_TO_INTERMEDIATE_DESTINATION`, a number + * between [0..N-1] indicating which intermediate destination the vehicle will + * cross next. When `TripStatus` is `ARRIVED_AT_INTERMEDIATE_DESTINATION`, a + * number between [0..N-1] indicating which intermediate destination the + * vehicle is at. The provider sets this value. If there are no + * `intermediate_destinations`, this field is ignored. + * @type array<\Google\Maps\FleetEngine\V1\StopLocation>|\Google\Protobuf\Internal\RepeatedField $actual_intermediate_destination_arrival_points + * Input only. The actual time and location of the driver's arrival at + * an intermediate destination. + * This field is for provider to provide feedback on actual arrival + * information at intermediate destinations. + * @type array<\Google\Maps\FleetEngine\V1\StopLocation>|\Google\Protobuf\Internal\RepeatedField $actual_intermediate_destinations + * Input only. The actual time and location when and where the customer was + * picked up from an intermediate destination. This field is for provider to + * provide feedback on actual pickup information at intermediate destinations. + * @type \Google\Maps\FleetEngine\V1\TerminalLocation $dropoff_point + * Location where customer indicates they will be dropped off. + * @type \Google\Maps\FleetEngine\V1\StopLocation $actual_dropoff_point + * Input only. The actual time and location when and where customer was + * dropped off. This field is for provider to provide feedback on actual + * dropoff information. + * @type \Google\Protobuf\Timestamp $dropoff_time + * Output only. Either the estimated future time when the rider(s) will be + * dropped off at the final destination, or the actual time when they were + * dropped off. + * @type array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $remaining_waypoints + * Output only. The full path from the current location to the dropoff point, + * inclusive. This path could include waypoints from other trips. + * @type array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $vehicle_waypoints + * This field supports manual ordering of the waypoints for the trip. It + * contains all of the remaining waypoints for the assigned vehicle, as well + * as the pickup and drop-off waypoints for this trip. If the trip hasn't been + * assigned to a vehicle, then Fleet Engine ignores this field. For privacy + * reasons, this field is only populated by the server on `UpdateTrip` and + * `CreateTrip` calls, NOT on `GetTrip` calls. + * @type array<\Google\Type\LatLng>|\Google\Protobuf\Internal\RepeatedField $route + * Output only. Anticipated route for this trip to the first entry in + * remaining_waypoints. Note that the first waypoint may belong to a different + * trip. + * @type string $current_route_segment + * Output only. An encoded path to the next waypoint. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. Decoding is not yet supported. + * @type \Google\Protobuf\Timestamp $current_route_segment_version + * Output only. Indicates the last time the route was modified. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * @type \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline $current_route_segment_traffic + * Output only. Indicates the traffic conditions along the + * `current_route_segment` when they're available. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * @type \Google\Protobuf\Timestamp $current_route_segment_traffic_version + * Output only. Indicates the last time the `current_route_segment_traffic` + * was modified. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * @type \Google\Maps\FleetEngine\V1\TripWaypoint $current_route_segment_end_point + * Output only. The waypoint where `current_route_segment` ends. + * @type \Google\Protobuf\Int32Value $remaining_distance_meters + * Output only. The remaining driving distance in the `current_route_segment` + * field. The value is unspecified if the trip is not assigned to a vehicle, + * or the trip is completed or cancelled. + * @type \Google\Protobuf\Timestamp $eta_to_first_waypoint + * Output only. The ETA to the next waypoint (the first entry in the + * `remaining_waypoints` field). The value is unspecified if the trip is not + * assigned to a vehicle, or the trip is inactive (completed or cancelled). + * @type \Google\Protobuf\Duration $remaining_time_to_first_waypoint + * Output only. The duration from when the Trip data is returned to the time + * in `Trip.eta_to_first_waypoint`. The value is unspecified if the trip is + * not assigned to a vehicle, or the trip is inactive (completed or + * cancelled). + * @type \Google\Protobuf\Timestamp $remaining_waypoints_version + * Output only. Indicates the last time that `remaining_waypoints` was changed + * (a waypoint was added, removed, or changed). + * @type \Google\Protobuf\Timestamp $remaining_waypoints_route_version + * Output only. Indicates the last time the + * `remaining_waypoints.path_to_waypoint` and + * `remaining_waypoints.traffic_to_waypoint` were modified. Your client app + * should cache this value and pass it in `GetTripRequest` to ensure the + * paths and traffic for `remaining_waypoints` are only returned if updated. + * @type int $number_of_passengers + * Immutable. Indicates the number of passengers on this trip and does not + * include the driver. A vehicle must have available capacity to be returned + * in a `SearchVehicles` response. + * @type \Google\Maps\FleetEngine\V1\VehicleLocation $last_location + * Output only. Indicates the last reported location of the vehicle along the + * route. + * @type bool $last_location_snappable + * Output only. Indicates whether the vehicle's `last_location` can be snapped + * to the current_route_segment. False if `last_location` or + * `current_route_segment` doesn't exist. + * It is computed by Fleet Engine. Any update from clients will be ignored. + * @type int $view + * The subset of Trip fields that are populated and how they should be + * interpreted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Trips::initOnce(); + parent::__construct($data); + } + + /** + * Output only. In the format "providers/{provider}/trips/{trip}" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. In the format "providers/{provider}/trips/{trip}" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * ID of the vehicle making this trip. + * + * Generated from protobuf field string vehicle_id = 2; + * @return string + */ + public function getVehicleId() + { + return $this->vehicle_id; + } + + /** + * ID of the vehicle making this trip. + * + * Generated from protobuf field string vehicle_id = 2; + * @param string $var + * @return $this + */ + public function setVehicleId($var) + { + GPBUtil::checkString($var, True); + $this->vehicle_id = $var; + + return $this; + } + + /** + * Current status of the trip. + * + * Generated from protobuf field .maps.fleetengine.v1.TripStatus trip_status = 3; + * @return int + */ + public function getTripStatus() + { + return $this->trip_status; + } + + /** + * Current status of the trip. + * + * Generated from protobuf field .maps.fleetengine.v1.TripStatus trip_status = 3; + * @param int $var + * @return $this + */ + public function setTripStatus($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\TripStatus::class); + $this->trip_status = $var; + + return $this; + } + + /** + * The type of the trip. + * + * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 4; + * @return int + */ + public function getTripType() + { + return $this->trip_type; + } + + /** + * The type of the trip. + * + * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 4; + * @param int $var + * @return $this + */ + public function setTripType($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\TripType::class); + $this->trip_type = $var; + + return $this; + } + + /** + * Location where customer indicates they will be picked up. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 5; + * @return \Google\Maps\FleetEngine\V1\TerminalLocation|null + */ + public function getPickupPoint() + { + return $this->pickup_point; + } + + public function hasPickupPoint() + { + return isset($this->pickup_point); + } + + public function clearPickupPoint() + { + unset($this->pickup_point); + } + + /** + * Location where customer indicates they will be picked up. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 5; + * @param \Google\Maps\FleetEngine\V1\TerminalLocation $var + * @return $this + */ + public function setPickupPoint($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalLocation::class); + $this->pickup_point = $var; + + return $this; + } + + /** + * Input only. The actual location when and where customer was picked up. + * This field is for provider to provide feedback on actual pickup + * information. + * + * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_point = 22 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Maps\FleetEngine\V1\StopLocation|null + */ + public function getActualPickupPoint() + { + return $this->actual_pickup_point; + } + + public function hasActualPickupPoint() + { + return isset($this->actual_pickup_point); + } + + public function clearActualPickupPoint() + { + unset($this->actual_pickup_point); + } + + /** + * Input only. The actual location when and where customer was picked up. + * This field is for provider to provide feedback on actual pickup + * information. + * + * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_point = 22 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Maps\FleetEngine\V1\StopLocation $var + * @return $this + */ + public function setActualPickupPoint($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\StopLocation::class); + $this->actual_pickup_point = $var; + + return $this; + } + + /** + * Input only. The actual time and location of the driver arrival at + * the pickup point. + * This field is for provider to provide feedback on actual arrival + * information at the pickup point. + * + * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_arrival_point = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Maps\FleetEngine\V1\StopLocation|null + */ + public function getActualPickupArrivalPoint() + { + return $this->actual_pickup_arrival_point; + } + + public function hasActualPickupArrivalPoint() + { + return isset($this->actual_pickup_arrival_point); + } + + public function clearActualPickupArrivalPoint() + { + unset($this->actual_pickup_arrival_point); + } + + /** + * Input only. The actual time and location of the driver arrival at + * the pickup point. + * This field is for provider to provide feedback on actual arrival + * information at the pickup point. + * + * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_arrival_point = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Maps\FleetEngine\V1\StopLocation $var + * @return $this + */ + public function setActualPickupArrivalPoint($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\StopLocation::class); + $this->actual_pickup_arrival_point = $var; + + return $this; + } + + /** + * Output only. Either the estimated future time when the rider(s) will be + * picked up, or the actual time when they were picked up. + * + * Generated from protobuf field .google.protobuf.Timestamp pickup_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getPickupTime() + { + return $this->pickup_time; + } + + public function hasPickupTime() + { + return isset($this->pickup_time); + } + + public function clearPickupTime() + { + unset($this->pickup_time); + } + + /** + * Output only. Either the estimated future time when the rider(s) will be + * picked up, or the actual time when they were picked up. + * + * Generated from protobuf field .google.protobuf.Timestamp pickup_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setPickupTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->pickup_time = $var; + + return $this; + } + + /** + * Intermediate stops in order that the trip requests (in addition + * to pickup and dropoff). Initially this will not be supported for shared + * trips. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation intermediate_destinations = 14; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getIntermediateDestinations() + { + return $this->intermediate_destinations; + } + + /** + * Intermediate stops in order that the trip requests (in addition + * to pickup and dropoff). Initially this will not be supported for shared + * trips. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation intermediate_destinations = 14; + * @param array<\Google\Maps\FleetEngine\V1\TerminalLocation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setIntermediateDestinations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\TerminalLocation::class); + $this->intermediate_destinations = $arr; + + return $this; + } + + /** + * Indicates the last time the `intermediate_destinations` was modified. + * Your server should cache this value and pass it in `UpdateTripRequest` + * when update `intermediate_destination_index` to ensure the + * `intermediate_destinations` is not changed. + * + * Generated from protobuf field .google.protobuf.Timestamp intermediate_destinations_version = 25; + * @return \Google\Protobuf\Timestamp|null + */ + public function getIntermediateDestinationsVersion() + { + return $this->intermediate_destinations_version; + } + + public function hasIntermediateDestinationsVersion() + { + return isset($this->intermediate_destinations_version); + } + + public function clearIntermediateDestinationsVersion() + { + unset($this->intermediate_destinations_version); + } + + /** + * Indicates the last time the `intermediate_destinations` was modified. + * Your server should cache this value and pass it in `UpdateTripRequest` + * when update `intermediate_destination_index` to ensure the + * `intermediate_destinations` is not changed. + * + * Generated from protobuf field .google.protobuf.Timestamp intermediate_destinations_version = 25; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setIntermediateDestinationsVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->intermediate_destinations_version = $var; + + return $this; + } + + /** + * When `TripStatus` is `ENROUTE_TO_INTERMEDIATE_DESTINATION`, a number + * between [0..N-1] indicating which intermediate destination the vehicle will + * cross next. When `TripStatus` is `ARRIVED_AT_INTERMEDIATE_DESTINATION`, a + * number between [0..N-1] indicating which intermediate destination the + * vehicle is at. The provider sets this value. If there are no + * `intermediate_destinations`, this field is ignored. + * + * Generated from protobuf field int32 intermediate_destination_index = 15; + * @return int + */ + public function getIntermediateDestinationIndex() + { + return $this->intermediate_destination_index; + } + + /** + * When `TripStatus` is `ENROUTE_TO_INTERMEDIATE_DESTINATION`, a number + * between [0..N-1] indicating which intermediate destination the vehicle will + * cross next. When `TripStatus` is `ARRIVED_AT_INTERMEDIATE_DESTINATION`, a + * number between [0..N-1] indicating which intermediate destination the + * vehicle is at. The provider sets this value. If there are no + * `intermediate_destinations`, this field is ignored. + * + * Generated from protobuf field int32 intermediate_destination_index = 15; + * @param int $var + * @return $this + */ + public function setIntermediateDestinationIndex($var) + { + GPBUtil::checkInt32($var); + $this->intermediate_destination_index = $var; + + return $this; + } + + /** + * Input only. The actual time and location of the driver's arrival at + * an intermediate destination. + * This field is for provider to provide feedback on actual arrival + * information at intermediate destinations. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destination_arrival_points = 33 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getActualIntermediateDestinationArrivalPoints() + { + return $this->actual_intermediate_destination_arrival_points; + } + + /** + * Input only. The actual time and location of the driver's arrival at + * an intermediate destination. + * This field is for provider to provide feedback on actual arrival + * information at intermediate destinations. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destination_arrival_points = 33 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param array<\Google\Maps\FleetEngine\V1\StopLocation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setActualIntermediateDestinationArrivalPoints($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\StopLocation::class); + $this->actual_intermediate_destination_arrival_points = $arr; + + return $this; + } + + /** + * Input only. The actual time and location when and where the customer was + * picked up from an intermediate destination. This field is for provider to + * provide feedback on actual pickup information at intermediate destinations. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destinations = 34 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getActualIntermediateDestinations() + { + return $this->actual_intermediate_destinations; + } + + /** + * Input only. The actual time and location when and where the customer was + * picked up from an intermediate destination. This field is for provider to + * provide feedback on actual pickup information at intermediate destinations. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destinations = 34 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param array<\Google\Maps\FleetEngine\V1\StopLocation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setActualIntermediateDestinations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\StopLocation::class); + $this->actual_intermediate_destinations = $arr; + + return $this; + } + + /** + * Location where customer indicates they will be dropped off. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 7; + * @return \Google\Maps\FleetEngine\V1\TerminalLocation|null + */ + public function getDropoffPoint() + { + return $this->dropoff_point; + } + + public function hasDropoffPoint() + { + return isset($this->dropoff_point); + } + + public function clearDropoffPoint() + { + unset($this->dropoff_point); + } + + /** + * Location where customer indicates they will be dropped off. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 7; + * @param \Google\Maps\FleetEngine\V1\TerminalLocation $var + * @return $this + */ + public function setDropoffPoint($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalLocation::class); + $this->dropoff_point = $var; + + return $this; + } + + /** + * Input only. The actual time and location when and where customer was + * dropped off. This field is for provider to provide feedback on actual + * dropoff information. + * + * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_dropoff_point = 23 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Maps\FleetEngine\V1\StopLocation|null + */ + public function getActualDropoffPoint() + { + return $this->actual_dropoff_point; + } + + public function hasActualDropoffPoint() + { + return isset($this->actual_dropoff_point); + } + + public function clearActualDropoffPoint() + { + unset($this->actual_dropoff_point); + } + + /** + * Input only. The actual time and location when and where customer was + * dropped off. This field is for provider to provide feedback on actual + * dropoff information. + * + * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_dropoff_point = 23 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Maps\FleetEngine\V1\StopLocation $var + * @return $this + */ + public function setActualDropoffPoint($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\StopLocation::class); + $this->actual_dropoff_point = $var; + + return $this; + } + + /** + * Output only. Either the estimated future time when the rider(s) will be + * dropped off at the final destination, or the actual time when they were + * dropped off. + * + * Generated from protobuf field .google.protobuf.Timestamp dropoff_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getDropoffTime() + { + return $this->dropoff_time; + } + + public function hasDropoffTime() + { + return isset($this->dropoff_time); + } + + public function clearDropoffTime() + { + unset($this->dropoff_time); + } + + /** + * Output only. Either the estimated future time when the rider(s) will be + * dropped off at the final destination, or the actual time when they were + * dropped off. + * + * Generated from protobuf field .google.protobuf.Timestamp dropoff_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setDropoffTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->dropoff_time = $var; + + return $this; + } + + /** + * Output only. The full path from the current location to the dropoff point, + * inclusive. This path could include waypoints from other trips. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint remaining_waypoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRemainingWaypoints() + { + return $this->remaining_waypoints; + } + + /** + * Output only. The full path from the current location to the dropoff point, + * inclusive. This path could include waypoints from other trips. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint remaining_waypoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRemainingWaypoints($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\TripWaypoint::class); + $this->remaining_waypoints = $arr; + + return $this; + } + + /** + * This field supports manual ordering of the waypoints for the trip. It + * contains all of the remaining waypoints for the assigned vehicle, as well + * as the pickup and drop-off waypoints for this trip. If the trip hasn't been + * assigned to a vehicle, then Fleet Engine ignores this field. For privacy + * reasons, this field is only populated by the server on `UpdateTrip` and + * `CreateTrip` calls, NOT on `GetTrip` calls. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint vehicle_waypoints = 20; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getVehicleWaypoints() + { + return $this->vehicle_waypoints; + } + + /** + * This field supports manual ordering of the waypoints for the trip. It + * contains all of the remaining waypoints for the assigned vehicle, as well + * as the pickup and drop-off waypoints for this trip. If the trip hasn't been + * assigned to a vehicle, then Fleet Engine ignores this field. For privacy + * reasons, this field is only populated by the server on `UpdateTrip` and + * `CreateTrip` calls, NOT on `GetTrip` calls. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint vehicle_waypoints = 20; + * @param array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setVehicleWaypoints($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\TripWaypoint::class); + $this->vehicle_waypoints = $arr; + + return $this; + } + + /** + * Output only. Anticipated route for this trip to the first entry in + * remaining_waypoints. Note that the first waypoint may belong to a different + * trip. + * + * Generated from protobuf field repeated .google.type.LatLng route = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRoute() + { + return $this->route; + } + + /** + * Output only. Anticipated route for this trip to the first entry in + * remaining_waypoints. Note that the first waypoint may belong to a different + * trip. + * + * Generated from protobuf field repeated .google.type.LatLng route = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Type\LatLng>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRoute($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Type\LatLng::class); + $this->route = $arr; + + return $this; + } + + /** + * Output only. An encoded path to the next waypoint. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. Decoding is not yet supported. + * + * Generated from protobuf field string current_route_segment = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCurrentRouteSegment() + { + return $this->current_route_segment; + } + + /** + * Output only. An encoded path to the next waypoint. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. Decoding is not yet supported. + * + * Generated from protobuf field string current_route_segment = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCurrentRouteSegment($var) + { + GPBUtil::checkString($var, True); + $this->current_route_segment = $var; + + return $this; + } + + /** + * Output only. Indicates the last time the route was modified. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCurrentRouteSegmentVersion() + { + return $this->current_route_segment_version; + } + + public function hasCurrentRouteSegmentVersion() + { + return isset($this->current_route_segment_version); + } + + public function clearCurrentRouteSegmentVersion() + { + unset($this->current_route_segment_version); + } + + /** + * Output only. Indicates the last time the route was modified. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCurrentRouteSegmentVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->current_route_segment_version = $var; + + return $this; + } + + /** + * Output only. Indicates the traffic conditions along the + * `current_route_segment` when they're available. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * + * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline current_route_segment_traffic = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline|null + */ + public function getCurrentRouteSegmentTraffic() + { + return $this->current_route_segment_traffic; + } + + public function hasCurrentRouteSegmentTraffic() + { + return isset($this->current_route_segment_traffic); + } + + public function clearCurrentRouteSegmentTraffic() + { + unset($this->current_route_segment_traffic); + } + + /** + * Output only. Indicates the traffic conditions along the + * `current_route_segment` when they're available. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * + * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline current_route_segment_traffic = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline $var + * @return $this + */ + public function setCurrentRouteSegmentTraffic($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline::class); + $this->current_route_segment_traffic = $var; + + return $this; + } + + /** + * Output only. Indicates the last time the `current_route_segment_traffic` + * was modified. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCurrentRouteSegmentTrafficVersion() + { + return $this->current_route_segment_traffic_version; + } + + public function hasCurrentRouteSegmentTrafficVersion() + { + return isset($this->current_route_segment_traffic_version); + } + + public function clearCurrentRouteSegmentTrafficVersion() + { + unset($this->current_route_segment_traffic_version); + } + + /** + * Output only. Indicates the last time the `current_route_segment_traffic` + * was modified. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCurrentRouteSegmentTrafficVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->current_route_segment_traffic_version = $var; + + return $this; + } + + /** + * Output only. The waypoint where `current_route_segment` ends. + * + * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Maps\FleetEngine\V1\TripWaypoint|null + */ + public function getCurrentRouteSegmentEndPoint() + { + return $this->current_route_segment_end_point; + } + + public function hasCurrentRouteSegmentEndPoint() + { + return isset($this->current_route_segment_end_point); + } + + public function clearCurrentRouteSegmentEndPoint() + { + unset($this->current_route_segment_end_point); + } + + /** + * Output only. The waypoint where `current_route_segment` ends. + * + * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Maps\FleetEngine\V1\TripWaypoint $var + * @return $this + */ + public function setCurrentRouteSegmentEndPoint($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TripWaypoint::class); + $this->current_route_segment_end_point = $var; + + return $this; + } + + /** + * Output only. The remaining driving distance in the `current_route_segment` + * field. The value is unspecified if the trip is not assigned to a vehicle, + * or the trip is completed or cancelled. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Int32Value|null + */ + public function getRemainingDistanceMeters() + { + return $this->remaining_distance_meters; + } + + public function hasRemainingDistanceMeters() + { + return isset($this->remaining_distance_meters); + } + + public function clearRemainingDistanceMeters() + { + unset($this->remaining_distance_meters); + } + + /** + * Returns the unboxed value from getRemainingDistanceMeters() + + * Output only. The remaining driving distance in the `current_route_segment` + * field. The value is unspecified if the trip is not assigned to a vehicle, + * or the trip is completed or cancelled. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|null + */ + public function getRemainingDistanceMetersUnwrapped() + { + return $this->readWrapperValue("remaining_distance_meters"); + } + + /** + * Output only. The remaining driving distance in the `current_route_segment` + * field. The value is unspecified if the trip is not assigned to a vehicle, + * or the trip is completed or cancelled. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Int32Value $var + * @return $this + */ + public function setRemainingDistanceMeters($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->remaining_distance_meters = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * Output only. The remaining driving distance in the `current_route_segment` + * field. The value is unspecified if the trip is not assigned to a vehicle, + * or the trip is completed or cancelled. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|null $var + * @return $this + */ + public function setRemainingDistanceMetersUnwrapped($var) + { + $this->writeWrapperValue("remaining_distance_meters", $var); + return $this;} + + /** + * Output only. The ETA to the next waypoint (the first entry in the + * `remaining_waypoints` field). The value is unspecified if the trip is not + * assigned to a vehicle, or the trip is inactive (completed or cancelled). + * + * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEtaToFirstWaypoint() + { + return $this->eta_to_first_waypoint; + } + + public function hasEtaToFirstWaypoint() + { + return isset($this->eta_to_first_waypoint); + } + + public function clearEtaToFirstWaypoint() + { + unset($this->eta_to_first_waypoint); + } + + /** + * Output only. The ETA to the next waypoint (the first entry in the + * `remaining_waypoints` field). The value is unspecified if the trip is not + * assigned to a vehicle, or the trip is inactive (completed or cancelled). + * + * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEtaToFirstWaypoint($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->eta_to_first_waypoint = $var; + + return $this; + } + + /** + * Output only. The duration from when the Trip data is returned to the time + * in `Trip.eta_to_first_waypoint`. The value is unspecified if the trip is + * not assigned to a vehicle, or the trip is inactive (completed or + * cancelled). + * + * Generated from protobuf field .google.protobuf.Duration remaining_time_to_first_waypoint = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Duration|null + */ + public function getRemainingTimeToFirstWaypoint() + { + return $this->remaining_time_to_first_waypoint; + } + + public function hasRemainingTimeToFirstWaypoint() + { + return isset($this->remaining_time_to_first_waypoint); + } + + public function clearRemainingTimeToFirstWaypoint() + { + unset($this->remaining_time_to_first_waypoint); + } + + /** + * Output only. The duration from when the Trip data is returned to the time + * in `Trip.eta_to_first_waypoint`. The value is unspecified if the trip is + * not assigned to a vehicle, or the trip is inactive (completed or + * cancelled). + * + * Generated from protobuf field .google.protobuf.Duration remaining_time_to_first_waypoint = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setRemainingTimeToFirstWaypoint($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->remaining_time_to_first_waypoint = $var; + + return $this; + } + + /** + * Output only. Indicates the last time that `remaining_waypoints` was changed + * (a waypoint was added, removed, or changed). + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRemainingWaypointsVersion() + { + return $this->remaining_waypoints_version; + } + + public function hasRemainingWaypointsVersion() + { + return isset($this->remaining_waypoints_version); + } + + public function clearRemainingWaypointsVersion() + { + unset($this->remaining_waypoints_version); + } + + /** + * Output only. Indicates the last time that `remaining_waypoints` was changed + * (a waypoint was added, removed, or changed). + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRemainingWaypointsVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->remaining_waypoints_version = $var; + + return $this; + } + + /** + * Output only. Indicates the last time the + * `remaining_waypoints.path_to_waypoint` and + * `remaining_waypoints.traffic_to_waypoint` were modified. Your client app + * should cache this value and pass it in `GetTripRequest` to ensure the + * paths and traffic for `remaining_waypoints` are only returned if updated. + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRemainingWaypointsRouteVersion() + { + return $this->remaining_waypoints_route_version; + } + + public function hasRemainingWaypointsRouteVersion() + { + return isset($this->remaining_waypoints_route_version); + } + + public function clearRemainingWaypointsRouteVersion() + { + unset($this->remaining_waypoints_route_version); + } + + /** + * Output only. Indicates the last time the + * `remaining_waypoints.path_to_waypoint` and + * `remaining_waypoints.traffic_to_waypoint` were modified. Your client app + * should cache this value and pass it in `GetTripRequest` to ensure the + * paths and traffic for `remaining_waypoints` are only returned if updated. + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRemainingWaypointsRouteVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->remaining_waypoints_route_version = $var; + + return $this; + } + + /** + * Immutable. Indicates the number of passengers on this trip and does not + * include the driver. A vehicle must have available capacity to be returned + * in a `SearchVehicles` response. + * + * Generated from protobuf field int32 number_of_passengers = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getNumberOfPassengers() + { + return $this->number_of_passengers; + } + + /** + * Immutable. Indicates the number of passengers on this trip and does not + * include the driver. A vehicle must have available capacity to be returned + * in a `SearchVehicles` response. + * + * Generated from protobuf field int32 number_of_passengers = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setNumberOfPassengers($var) + { + GPBUtil::checkInt32($var); + $this->number_of_passengers = $var; + + return $this; + } + + /** + * Output only. Indicates the last reported location of the vehicle along the + * route. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Maps\FleetEngine\V1\VehicleLocation|null + */ + public function getLastLocation() + { + return $this->last_location; + } + + public function hasLastLocation() + { + return isset($this->last_location); + } + + public function clearLastLocation() + { + unset($this->last_location); + } + + /** + * Output only. Indicates the last reported location of the vehicle along the + * route. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Maps\FleetEngine\V1\VehicleLocation $var + * @return $this + */ + public function setLastLocation($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\VehicleLocation::class); + $this->last_location = $var; + + return $this; + } + + /** + * Output only. Indicates whether the vehicle's `last_location` can be snapped + * to the current_route_segment. False if `last_location` or + * `current_route_segment` doesn't exist. + * It is computed by Fleet Engine. Any update from clients will be ignored. + * + * Generated from protobuf field bool last_location_snappable = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getLastLocationSnappable() + { + return $this->last_location_snappable; + } + + /** + * Output only. Indicates whether the vehicle's `last_location` can be snapped + * to the current_route_segment. False if `last_location` or + * `current_route_segment` doesn't exist. + * It is computed by Fleet Engine. Any update from clients will be ignored. + * + * Generated from protobuf field bool last_location_snappable = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setLastLocationSnappable($var) + { + GPBUtil::checkBool($var); + $this->last_location_snappable = $var; + + return $this; + } + + /** + * The subset of Trip fields that are populated and how they should be + * interpreted. + * + * Generated from protobuf field .maps.fleetengine.v1.TripView view = 31; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * The subset of Trip fields that are populated and how they should be + * interpreted. + * + * Generated from protobuf field .maps.fleetengine.v1.TripView view = 31; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\TripView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripStatus.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripStatus.php new file mode 100644 index 000000000000..7c6eea573533 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripStatus.php @@ -0,0 +1,111 @@ +maps.fleetengine.v1.TripStatus + */ +class TripStatus +{ + /** + * Default, used for unspecified or unrecognized trip status. + * + * Generated from protobuf enum UNKNOWN_TRIP_STATUS = 0; + */ + const UNKNOWN_TRIP_STATUS = 0; + /** + * Newly created trip. + * + * Generated from protobuf enum NEW = 1; + */ + const PBNEW = 1; + /** + * The driver is on their way to the pickup point. + * + * Generated from protobuf enum ENROUTE_TO_PICKUP = 2; + */ + const ENROUTE_TO_PICKUP = 2; + /** + * The driver has arrived at the pickup point. + * + * Generated from protobuf enum ARRIVED_AT_PICKUP = 3; + */ + const ARRIVED_AT_PICKUP = 3; + /** + * The driver has arrived at an intermediate destination and is waiting for + * the rider. + * + * Generated from protobuf enum ARRIVED_AT_INTERMEDIATE_DESTINATION = 7; + */ + const ARRIVED_AT_INTERMEDIATE_DESTINATION = 7; + /** + * The driver is on their way to an intermediate destination + * (not the dropoff point). + * + * Generated from protobuf enum ENROUTE_TO_INTERMEDIATE_DESTINATION = 8; + */ + const ENROUTE_TO_INTERMEDIATE_DESTINATION = 8; + /** + * The driver has picked up the rider and is on their way to the + * next destination. + * + * Generated from protobuf enum ENROUTE_TO_DROPOFF = 4; + */ + const ENROUTE_TO_DROPOFF = 4; + /** + * The rider has been dropped off and the trip is complete. + * + * Generated from protobuf enum COMPLETE = 5; + */ + const COMPLETE = 5; + /** + * The trip was canceled prior to pickup by the driver, rider, or + * rideshare provider. + * + * Generated from protobuf enum CANCELED = 6; + */ + const CANCELED = 6; + + private static $valueToName = [ + self::UNKNOWN_TRIP_STATUS => 'UNKNOWN_TRIP_STATUS', + self::PBNEW => 'NEW', + self::ENROUTE_TO_PICKUP => 'ENROUTE_TO_PICKUP', + self::ARRIVED_AT_PICKUP => 'ARRIVED_AT_PICKUP', + self::ARRIVED_AT_INTERMEDIATE_DESTINATION => 'ARRIVED_AT_INTERMEDIATE_DESTINATION', + self::ENROUTE_TO_INTERMEDIATE_DESTINATION => 'ENROUTE_TO_INTERMEDIATE_DESTINATION', + self::ENROUTE_TO_DROPOFF => 'ENROUTE_TO_DROPOFF', + self::COMPLETE => 'COMPLETE', + self::CANCELED => 'CANCELED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripType.php new file mode 100644 index 000000000000..94d7f9ab6998 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripType.php @@ -0,0 +1,61 @@ +maps.fleetengine.v1.TripType + */ +class TripType +{ + /** + * Default, used for unspecified or unrecognized trip types. + * + * Generated from protobuf enum UNKNOWN_TRIP_TYPE = 0; + */ + const UNKNOWN_TRIP_TYPE = 0; + /** + * The trip may share a vehicle with other trips. + * + * Generated from protobuf enum SHARED = 1; + */ + const SHARED = 1; + /** + * The trip is exclusive to a vehicle. + * + * Generated from protobuf enum EXCLUSIVE = 2; + */ + const EXCLUSIVE = 2; + + private static $valueToName = [ + self::UNKNOWN_TRIP_TYPE => 'UNKNOWN_TRIP_TYPE', + self::SHARED => 'SHARED', + self::EXCLUSIVE => 'EXCLUSIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripView.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripView.php new file mode 100644 index 000000000000..b341430b2420 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripView.php @@ -0,0 +1,67 @@ +maps.fleetengine.v1.TripView + */ +class TripView +{ + /** + * The default value. For backwards-compatibility, the API will default to an + * SDK view. To ensure stability and support, customers are + * advised to select a `TripView` other than `SDK`. + * + * Generated from protobuf enum TRIP_VIEW_UNSPECIFIED = 0; + */ + const TRIP_VIEW_UNSPECIFIED = 0; + /** + * Includes fields that may not be interpretable or supportable using + * publicly available libraries. + * + * Generated from protobuf enum SDK = 1; + */ + const SDK = 1; + /** + * Trip fields are populated for the Journey Sharing use case. This view is + * intended for server-to-server communications. + * + * Generated from protobuf enum JOURNEY_SHARING_V1S = 2; + */ + const JOURNEY_SHARING_V1S = 2; + + private static $valueToName = [ + self::TRIP_VIEW_UNSPECIFIED => 'TRIP_VIEW_UNSPECIFIED', + self::SDK => 'SDK', + self::JOURNEY_SHARING_V1S => 'JOURNEY_SHARING_V1S', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripWaypoint.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripWaypoint.php new file mode 100644 index 000000000000..fd7cfea0163e --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripWaypoint.php @@ -0,0 +1,451 @@ +maps.fleetengine.v1.TripWaypoint + */ +class TripWaypoint extends \Google\Protobuf\Internal\Message +{ + /** + * The location of this waypoint. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation location = 1; + */ + protected $location = null; + /** + * The trip associated with this waypoint. + * + * Generated from protobuf field string trip_id = 2; + */ + protected $trip_id = ''; + /** + * The role this waypoint plays in this trip, such as pickup or dropoff. + * + * Generated from protobuf field .maps.fleetengine.v1.WaypointType waypoint_type = 3; + */ + protected $waypoint_type = 0; + /** + * The path from the previous waypoint to the current waypoint. Undefined for + * the first waypoint in a list. This field is only populated when requested. + * + * Generated from protobuf field repeated .google.type.LatLng path_to_waypoint = 4; + */ + private $path_to_waypoint; + /** + * The encoded path from the previous waypoint to the current waypoint. + *

Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. Decoding is not yet supported. + * + * Generated from protobuf field string encoded_path_to_waypoint = 5; + */ + protected $encoded_path_to_waypoint = ''; + /** + * The traffic conditions along the path to this waypoint. Note that traffic + * is only available for Google Map Platform Rides and Deliveries Solution + * customers. + * + * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline traffic_to_waypoint = 10; + */ + protected $traffic_to_waypoint = null; + /** + * The path distance from the previous waypoint to the current waypoint. + * Undefined for the first waypoint in a list. + * + * Generated from protobuf field .google.protobuf.Int32Value distance_meters = 6; + */ + protected $distance_meters = null; + /** + * The estimated time of arrival at this waypoint. Undefined for the first + * waypoint in a list. + * + * Generated from protobuf field .google.protobuf.Timestamp eta = 7; + */ + protected $eta = null; + /** + * The travel time from previous waypoint to this point. Undefined for the + * first waypoint in a list. + * + * Generated from protobuf field .google.protobuf.Duration duration = 8; + */ + protected $duration = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\TerminalLocation $location + * The location of this waypoint. + * @type string $trip_id + * The trip associated with this waypoint. + * @type int $waypoint_type + * The role this waypoint plays in this trip, such as pickup or dropoff. + * @type array<\Google\Type\LatLng>|\Google\Protobuf\Internal\RepeatedField $path_to_waypoint + * The path from the previous waypoint to the current waypoint. Undefined for + * the first waypoint in a list. This field is only populated when requested. + * @type string $encoded_path_to_waypoint + * The encoded path from the previous waypoint to the current waypoint. + *

Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. Decoding is not yet supported. + * @type \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline $traffic_to_waypoint + * The traffic conditions along the path to this waypoint. Note that traffic + * is only available for Google Map Platform Rides and Deliveries Solution + * customers. + * @type \Google\Protobuf\Int32Value $distance_meters + * The path distance from the previous waypoint to the current waypoint. + * Undefined for the first waypoint in a list. + * @type \Google\Protobuf\Timestamp $eta + * The estimated time of arrival at this waypoint. Undefined for the first + * waypoint in a list. + * @type \Google\Protobuf\Duration $duration + * The travel time from previous waypoint to this point. Undefined for the + * first waypoint in a list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Fleetengine::initOnce(); + parent::__construct($data); + } + + /** + * The location of this waypoint. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation location = 1; + * @return \Google\Maps\FleetEngine\V1\TerminalLocation|null + */ + public function getLocation() + { + return $this->location; + } + + public function hasLocation() + { + return isset($this->location); + } + + public function clearLocation() + { + unset($this->location); + } + + /** + * The location of this waypoint. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation location = 1; + * @param \Google\Maps\FleetEngine\V1\TerminalLocation $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalLocation::class); + $this->location = $var; + + return $this; + } + + /** + * The trip associated with this waypoint. + * + * Generated from protobuf field string trip_id = 2; + * @return string + */ + public function getTripId() + { + return $this->trip_id; + } + + /** + * The trip associated with this waypoint. + * + * Generated from protobuf field string trip_id = 2; + * @param string $var + * @return $this + */ + public function setTripId($var) + { + GPBUtil::checkString($var, True); + $this->trip_id = $var; + + return $this; + } + + /** + * The role this waypoint plays in this trip, such as pickup or dropoff. + * + * Generated from protobuf field .maps.fleetengine.v1.WaypointType waypoint_type = 3; + * @return int + */ + public function getWaypointType() + { + return $this->waypoint_type; + } + + /** + * The role this waypoint plays in this trip, such as pickup or dropoff. + * + * Generated from protobuf field .maps.fleetengine.v1.WaypointType waypoint_type = 3; + * @param int $var + * @return $this + */ + public function setWaypointType($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\WaypointType::class); + $this->waypoint_type = $var; + + return $this; + } + + /** + * The path from the previous waypoint to the current waypoint. Undefined for + * the first waypoint in a list. This field is only populated when requested. + * + * Generated from protobuf field repeated .google.type.LatLng path_to_waypoint = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPathToWaypoint() + { + return $this->path_to_waypoint; + } + + /** + * The path from the previous waypoint to the current waypoint. Undefined for + * the first waypoint in a list. This field is only populated when requested. + * + * Generated from protobuf field repeated .google.type.LatLng path_to_waypoint = 4; + * @param array<\Google\Type\LatLng>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPathToWaypoint($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Type\LatLng::class); + $this->path_to_waypoint = $arr; + + return $this; + } + + /** + * The encoded path from the previous waypoint to the current waypoint. + *

Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. Decoding is not yet supported. + * + * Generated from protobuf field string encoded_path_to_waypoint = 5; + * @return string + */ + public function getEncodedPathToWaypoint() + { + return $this->encoded_path_to_waypoint; + } + + /** + * The encoded path from the previous waypoint to the current waypoint. + *

Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. Decoding is not yet supported. + * + * Generated from protobuf field string encoded_path_to_waypoint = 5; + * @param string $var + * @return $this + */ + public function setEncodedPathToWaypoint($var) + { + GPBUtil::checkString($var, True); + $this->encoded_path_to_waypoint = $var; + + return $this; + } + + /** + * The traffic conditions along the path to this waypoint. Note that traffic + * is only available for Google Map Platform Rides and Deliveries Solution + * customers. + * + * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline traffic_to_waypoint = 10; + * @return \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline|null + */ + public function getTrafficToWaypoint() + { + return $this->traffic_to_waypoint; + } + + public function hasTrafficToWaypoint() + { + return isset($this->traffic_to_waypoint); + } + + public function clearTrafficToWaypoint() + { + unset($this->traffic_to_waypoint); + } + + /** + * The traffic conditions along the path to this waypoint. Note that traffic + * is only available for Google Map Platform Rides and Deliveries Solution + * customers. + * + * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline traffic_to_waypoint = 10; + * @param \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline $var + * @return $this + */ + public function setTrafficToWaypoint($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline::class); + $this->traffic_to_waypoint = $var; + + return $this; + } + + /** + * The path distance from the previous waypoint to the current waypoint. + * Undefined for the first waypoint in a list. + * + * Generated from protobuf field .google.protobuf.Int32Value distance_meters = 6; + * @return \Google\Protobuf\Int32Value|null + */ + public function getDistanceMeters() + { + return $this->distance_meters; + } + + public function hasDistanceMeters() + { + return isset($this->distance_meters); + } + + public function clearDistanceMeters() + { + unset($this->distance_meters); + } + + /** + * Returns the unboxed value from getDistanceMeters() + + * The path distance from the previous waypoint to the current waypoint. + * Undefined for the first waypoint in a list. + * + * Generated from protobuf field .google.protobuf.Int32Value distance_meters = 6; + * @return int|null + */ + public function getDistanceMetersUnwrapped() + { + return $this->readWrapperValue("distance_meters"); + } + + /** + * The path distance from the previous waypoint to the current waypoint. + * Undefined for the first waypoint in a list. + * + * Generated from protobuf field .google.protobuf.Int32Value distance_meters = 6; + * @param \Google\Protobuf\Int32Value $var + * @return $this + */ + public function setDistanceMeters($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->distance_meters = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * The path distance from the previous waypoint to the current waypoint. + * Undefined for the first waypoint in a list. + * + * Generated from protobuf field .google.protobuf.Int32Value distance_meters = 6; + * @param int|null $var + * @return $this + */ + public function setDistanceMetersUnwrapped($var) + { + $this->writeWrapperValue("distance_meters", $var); + return $this;} + + /** + * The estimated time of arrival at this waypoint. Undefined for the first + * waypoint in a list. + * + * Generated from protobuf field .google.protobuf.Timestamp eta = 7; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEta() + { + return $this->eta; + } + + public function hasEta() + { + return isset($this->eta); + } + + public function clearEta() + { + unset($this->eta); + } + + /** + * The estimated time of arrival at this waypoint. Undefined for the first + * waypoint in a list. + * + * Generated from protobuf field .google.protobuf.Timestamp eta = 7; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEta($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->eta = $var; + + return $this; + } + + /** + * The travel time from previous waypoint to this point. Undefined for the + * first waypoint in a list. + * + * Generated from protobuf field .google.protobuf.Duration duration = 8; + * @return \Google\Protobuf\Duration|null + */ + public function getDuration() + { + return $this->duration; + } + + public function hasDuration() + { + return isset($this->duration); + } + + public function clearDuration() + { + unset($this->duration); + } + + /** + * The travel time from previous waypoint to this point. Undefined for the + * first waypoint in a list. + * + * Generated from protobuf field .google.protobuf.Duration duration = 8; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->duration = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateTripRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateTripRequest.php new file mode 100644 index 000000000000..309be11621d8 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateTripRequest.php @@ -0,0 +1,355 @@ +maps.fleetengine.v1.UpdateTripRequest + */ +class UpdateTripRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + */ + protected $header = null; + /** + * Required. Must be in the format + * `providers/{provider}/trips/{trip}`. The provider must + * be the Project ID (for example, `sample-consumer-project`) of the Google + * Cloud Project of which the service account making this call is a member. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. The Trip associated with the update. + * The following fields are maintained by the Fleet Engine. Do not update + * them using Trip.update. + * * `current_route_segment` + * * `current_route_segment_end_point` + * * `current_route_segment_traffic` + * * `current_route_segment_traffic_version` + * * `current_route_segment_version` + * * `dropoff_time` + * * `eta_to_next_waypoint` + * * `intermediate_destinations_version` + * * `last_location` + * * `name` + * * `number_of_passengers` + * * `pickup_time` + * * `remaining_distance_meters` + * * `remaining_time_to_first_waypoint` + * * `remaining_waypoints` + * * `remaining_waypoints_version` + * * `route` + * When you update the `Trip.vehicle_id` for a shared trip, you must supply + * the list of `Trip.vehicle_waypoints` to specify the order of the remaining + * waypoints, otherwise the order will be undetermined. + * When you specify `Trip.vehicle_waypoints`, the list must contain all + * the remaining waypoints of the vehicle's trips, with no extra waypoints. + * You must order these waypoints such that for a given trip, the pickup + * point is before intermediate destinations, and all intermediate + * destinations come before the drop-off point. An `EXCLUSIVE` trip's + * waypoints must not interleave with any other trips. + * The `trip_id`, `waypoint_type` and `location` fields are used, and all + * other TripWaypoint fields in `vehicle_waypoints` are ignored. + * To avoid a race condition for trips with multiple destinations, you + * should provide `Trip.intermediate_destinations_version` when updating + * the trip status to `ENROUTE_TO_INTERMEDIATE_DESTINATION`. The + * `Trip.intermediate_destinations_version` passed must be consistent with + * Fleet Engine's version. If it isn't, the request fails. + * + * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $trip = null; + /** + * Required. The field mask indicating which fields in Trip to update. + * The `update_mask` must contain at least one field. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\RequestHeader $header + * The standard Fleet Engine request header. + * @type string $name + * Required. Must be in the format + * `providers/{provider}/trips/{trip}`. The provider must + * be the Project ID (for example, `sample-consumer-project`) of the Google + * Cloud Project of which the service account making this call is a member. + * @type \Google\Maps\FleetEngine\V1\Trip $trip + * Required. The Trip associated with the update. + * The following fields are maintained by the Fleet Engine. Do not update + * them using Trip.update. + * * `current_route_segment` + * * `current_route_segment_end_point` + * * `current_route_segment_traffic` + * * `current_route_segment_traffic_version` + * * `current_route_segment_version` + * * `dropoff_time` + * * `eta_to_next_waypoint` + * * `intermediate_destinations_version` + * * `last_location` + * * `name` + * * `number_of_passengers` + * * `pickup_time` + * * `remaining_distance_meters` + * * `remaining_time_to_first_waypoint` + * * `remaining_waypoints` + * * `remaining_waypoints_version` + * * `route` + * When you update the `Trip.vehicle_id` for a shared trip, you must supply + * the list of `Trip.vehicle_waypoints` to specify the order of the remaining + * waypoints, otherwise the order will be undetermined. + * When you specify `Trip.vehicle_waypoints`, the list must contain all + * the remaining waypoints of the vehicle's trips, with no extra waypoints. + * You must order these waypoints such that for a given trip, the pickup + * point is before intermediate destinations, and all intermediate + * destinations come before the drop-off point. An `EXCLUSIVE` trip's + * waypoints must not interleave with any other trips. + * The `trip_id`, `waypoint_type` and `location` fields are used, and all + * other TripWaypoint fields in `vehicle_waypoints` are ignored. + * To avoid a race condition for trips with multiple destinations, you + * should provide `Trip.intermediate_destinations_version` when updating + * the trip status to `ENROUTE_TO_INTERMEDIATE_DESTINATION`. The + * `Trip.intermediate_destinations_version` passed must be consistent with + * Fleet Engine's version. If it isn't, the request fails. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The field mask indicating which fields in Trip to update. + * The `update_mask` must contain at least one field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); + parent::__construct($data); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @return \Google\Maps\FleetEngine\V1\RequestHeader|null + */ + public function getHeader() + { + return $this->header; + } + + public function hasHeader() + { + return isset($this->header); + } + + public function clearHeader() + { + unset($this->header); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @param \Google\Maps\FleetEngine\V1\RequestHeader $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); + $this->header = $var; + + return $this; + } + + /** + * Required. Must be in the format + * `providers/{provider}/trips/{trip}`. The provider must + * be the Project ID (for example, `sample-consumer-project`) of the Google + * Cloud Project of which the service account making this call is a member. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Must be in the format + * `providers/{provider}/trips/{trip}`. The provider must + * be the Project ID (for example, `sample-consumer-project`) of the Google + * Cloud Project of which the service account making this call is a member. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The Trip associated with the update. + * The following fields are maintained by the Fleet Engine. Do not update + * them using Trip.update. + * * `current_route_segment` + * * `current_route_segment_end_point` + * * `current_route_segment_traffic` + * * `current_route_segment_traffic_version` + * * `current_route_segment_version` + * * `dropoff_time` + * * `eta_to_next_waypoint` + * * `intermediate_destinations_version` + * * `last_location` + * * `name` + * * `number_of_passengers` + * * `pickup_time` + * * `remaining_distance_meters` + * * `remaining_time_to_first_waypoint` + * * `remaining_waypoints` + * * `remaining_waypoints_version` + * * `route` + * When you update the `Trip.vehicle_id` for a shared trip, you must supply + * the list of `Trip.vehicle_waypoints` to specify the order of the remaining + * waypoints, otherwise the order will be undetermined. + * When you specify `Trip.vehicle_waypoints`, the list must contain all + * the remaining waypoints of the vehicle's trips, with no extra waypoints. + * You must order these waypoints such that for a given trip, the pickup + * point is before intermediate destinations, and all intermediate + * destinations come before the drop-off point. An `EXCLUSIVE` trip's + * waypoints must not interleave with any other trips. + * The `trip_id`, `waypoint_type` and `location` fields are used, and all + * other TripWaypoint fields in `vehicle_waypoints` are ignored. + * To avoid a race condition for trips with multiple destinations, you + * should provide `Trip.intermediate_destinations_version` when updating + * the trip status to `ENROUTE_TO_INTERMEDIATE_DESTINATION`. The + * `Trip.intermediate_destinations_version` passed must be consistent with + * Fleet Engine's version. If it isn't, the request fails. + * + * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Maps\FleetEngine\V1\Trip|null + */ + public function getTrip() + { + return $this->trip; + } + + public function hasTrip() + { + return isset($this->trip); + } + + public function clearTrip() + { + unset($this->trip); + } + + /** + * Required. The Trip associated with the update. + * The following fields are maintained by the Fleet Engine. Do not update + * them using Trip.update. + * * `current_route_segment` + * * `current_route_segment_end_point` + * * `current_route_segment_traffic` + * * `current_route_segment_traffic_version` + * * `current_route_segment_version` + * * `dropoff_time` + * * `eta_to_next_waypoint` + * * `intermediate_destinations_version` + * * `last_location` + * * `name` + * * `number_of_passengers` + * * `pickup_time` + * * `remaining_distance_meters` + * * `remaining_time_to_first_waypoint` + * * `remaining_waypoints` + * * `remaining_waypoints_version` + * * `route` + * When you update the `Trip.vehicle_id` for a shared trip, you must supply + * the list of `Trip.vehicle_waypoints` to specify the order of the remaining + * waypoints, otherwise the order will be undetermined. + * When you specify `Trip.vehicle_waypoints`, the list must contain all + * the remaining waypoints of the vehicle's trips, with no extra waypoints. + * You must order these waypoints such that for a given trip, the pickup + * point is before intermediate destinations, and all intermediate + * destinations come before the drop-off point. An `EXCLUSIVE` trip's + * waypoints must not interleave with any other trips. + * The `trip_id`, `waypoint_type` and `location` fields are used, and all + * other TripWaypoint fields in `vehicle_waypoints` are ignored. + * To avoid a race condition for trips with multiple destinations, you + * should provide `Trip.intermediate_destinations_version` when updating + * the trip status to `ENROUTE_TO_INTERMEDIATE_DESTINATION`. The + * `Trip.intermediate_destinations_version` passed must be consistent with + * Fleet Engine's version. If it isn't, the request fails. + * + * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Maps\FleetEngine\V1\Trip $var + * @return $this + */ + public function setTrip($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Trip::class); + $this->trip = $var; + + return $this; + } + + /** + * Required. The field mask indicating which fields in Trip to update. + * The `update_mask` must contain at least one field. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The field mask indicating which fields in Trip to update. + * The `update_mask` must contain at least one field. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesRequest.php new file mode 100644 index 000000000000..30be79f52ba3 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesRequest.php @@ -0,0 +1,161 @@ +maps.fleetengine.v1.UpdateVehicleAttributesRequest + */ +class UpdateVehicleAttributesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + */ + protected $header = null; + /** + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. The vehicle attributes to update. Unmentioned attributes are not + * altered or removed. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + private $attributes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\RequestHeader $header + * The standard Fleet Engine request header. + * @type string $name + * 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. + * @type array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $attributes + * Required. The vehicle attributes to update. Unmentioned attributes are not + * altered or removed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @return \Google\Maps\FleetEngine\V1\RequestHeader|null + */ + public function getHeader() + { + return $this->header; + } + + public function hasHeader() + { + return isset($this->header); + } + + public function clearHeader() + { + unset($this->header); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @param \Google\Maps\FleetEngine\V1\RequestHeader $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); + $this->header = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The vehicle attributes to update. Unmentioned attributes are not + * altered or removed. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAttributes() + { + return $this->attributes; + } + + /** + * Required. The vehicle attributes to update. Unmentioned attributes are not + * altered or removed. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAttributes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttribute::class); + $this->attributes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesResponse.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesResponse.php new file mode 100644 index 000000000000..ba1eb389f4f9 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesResponse.php @@ -0,0 +1,71 @@ +maps.fleetengine.v1.UpdateVehicleAttributesResponse + */ +class UpdateVehicleAttributesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The updated full list of vehicle attributes, including new, + * altered, and untouched attributes. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $attributes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $attributes + * Required. The updated full list of vehicle attributes, including new, + * altered, and untouched attributes. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * Required. The updated full list of vehicle attributes, including new, + * altered, and untouched attributes. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAttributes() + { + return $this->attributes; + } + + /** + * Required. The updated full list of vehicle attributes, including new, + * altered, and untouched attributes. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAttributes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttribute::class); + $this->attributes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleRequest.php new file mode 100644 index 000000000000..3aded0e174b6 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleRequest.php @@ -0,0 +1,267 @@ +maps.fleetengine.v1.UpdateVehicleRequest + */ +class UpdateVehicleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + */ + protected $header = null; + /** + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. The `Vehicle` entity values to apply. When updating a `Vehicle`, + * the following fields may not be updated as they are managed by the + * server. + * * `available_capacity` + * * `current_route_segment_version` + * * `current_trips` + * * `name` + * * `waypoints_version` + * If the `attributes` field is updated, **all** the vehicle's attributes are + * replaced with the attributes provided in the request. If you want to update + * only some attributes, see the `UpdateVehicleAttributes` method. + * Likewise, the `waypoints` field can be updated, but must contain all the + * waypoints currently on the vehicle, and no other waypoints. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $vehicle = null; + /** + * Required. A field mask indicating which fields of the `Vehicle` to update. + * At least one field name must be provided. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\RequestHeader $header + * The standard Fleet Engine request header. + * @type string $name + * 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. + * @type \Google\Maps\FleetEngine\V1\Vehicle $vehicle + * Required. The `Vehicle` entity values to apply. When updating a `Vehicle`, + * the following fields may not be updated as they are managed by the + * server. + * * `available_capacity` + * * `current_route_segment_version` + * * `current_trips` + * * `name` + * * `waypoints_version` + * If the `attributes` field is updated, **all** the vehicle's attributes are + * replaced with the attributes provided in the request. If you want to update + * only some attributes, see the `UpdateVehicleAttributes` method. + * Likewise, the `waypoints` field can be updated, but must contain all the + * waypoints currently on the vehicle, and no other waypoints. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. A field mask indicating which fields of the `Vehicle` to update. + * At least one field name must be provided. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @return \Google\Maps\FleetEngine\V1\RequestHeader|null + */ + public function getHeader() + { + return $this->header; + } + + public function hasHeader() + { + return isset($this->header); + } + + public function clearHeader() + { + unset($this->header); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @param \Google\Maps\FleetEngine\V1\RequestHeader $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); + $this->header = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The `Vehicle` entity values to apply. When updating a `Vehicle`, + * the following fields may not be updated as they are managed by the + * server. + * * `available_capacity` + * * `current_route_segment_version` + * * `current_trips` + * * `name` + * * `waypoints_version` + * If the `attributes` field is updated, **all** the vehicle's attributes are + * replaced with the attributes provided in the request. If you want to update + * only some attributes, see the `UpdateVehicleAttributes` method. + * Likewise, the `waypoints` field can be updated, but must contain all the + * waypoints currently on the vehicle, and no other waypoints. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Maps\FleetEngine\V1\Vehicle|null + */ + public function getVehicle() + { + return $this->vehicle; + } + + public function hasVehicle() + { + return isset($this->vehicle); + } + + public function clearVehicle() + { + unset($this->vehicle); + } + + /** + * Required. The `Vehicle` entity values to apply. When updating a `Vehicle`, + * the following fields may not be updated as they are managed by the + * server. + * * `available_capacity` + * * `current_route_segment_version` + * * `current_trips` + * * `name` + * * `waypoints_version` + * If the `attributes` field is updated, **all** the vehicle's attributes are + * replaced with the attributes provided in the request. If you want to update + * only some attributes, see the `UpdateVehicleAttributes` method. + * Likewise, the `waypoints` field can be updated, but must contain all the + * waypoints currently on the vehicle, and no other waypoints. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Maps\FleetEngine\V1\Vehicle $var + * @return $this + */ + public function setVehicle($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Vehicle::class); + $this->vehicle = $var; + + return $this; + } + + /** + * Required. A field mask indicating which fields of the `Vehicle` to update. + * At least one field name must be provided. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. A field mask indicating which fields of the `Vehicle` to update. + * At least one field name must be provided. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle.php new file mode 100644 index 000000000000..cef7be90d471 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle.php @@ -0,0 +1,1108 @@ +maps.fleetengine.v1.Vehicle + */ +class Vehicle extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The unique name for this vehicle. + * The format is `providers/{provider}/vehicles/{vehicle}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * The vehicle state. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 2; + */ + protected $vehicle_state = 0; + /** + * Trip types supported by this vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripType supported_trip_types = 3; + */ + private $supported_trip_types; + /** + * Output only. List of `trip_id`'s for trips currently assigned to this + * vehicle. + * + * Generated from protobuf field repeated string current_trips = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $current_trips; + /** + * Last reported location of the vehicle. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 5; + */ + protected $last_location = null; + /** + * The total numbers of riders this vehicle can carry. The driver is not + * considered in this value. This value must be greater than or equal to one. + * + * Generated from protobuf field int32 maximum_capacity = 6; + */ + protected $maximum_capacity = 0; + /** + * List of vehicle attributes. A vehicle can have at most 100 + * attributes, and each attribute must have a unique key. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 8; + */ + private $attributes; + /** + * Required. The type of this vehicle. Can be used to filter vehicles in + * `SearchVehicles` results. Also influences ETA and route calculations. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType vehicle_type = 9 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $vehicle_type = null; + /** + * License plate information for the vehicle. + * + * Generated from protobuf field .maps.fleetengine.v1.LicensePlate license_plate = 10; + */ + protected $license_plate = null; + /** + * Deprecated: Use `Vehicle.waypoints` instead. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation route = 12 [deprecated = true]; + * @deprecated + */ + private $route; + /** + * The polyline specifying the route the driver app intends to take to + * the next waypoint. This list is also returned in + * `Trip.current_route_segment` for all active trips assigned to the vehicle. + * Note: This field is intended only for use by the Driver SDK. Decoding is + * not yet supported. + * + * Generated from protobuf field string current_route_segment = 20; + */ + protected $current_route_segment = ''; + /** + * Input only. Fleet Engine uses this information to improve journey sharing. + * Note: This field is intended only for use by the Driver SDK. + * + * Generated from protobuf field .maps.fleetengine.v1.TrafficPolylineData current_route_segment_traffic = 28 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $current_route_segment_traffic = null; + /** + * Output only. Time when `current_route_segment` was set. It can be stored by + * the client and passed in future `GetVehicle` requests to prevent returning + * routes that haven't changed. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $current_route_segment_version = null; + /** + * The waypoint where `current_route_segment` ends. This can be supplied by + * drivers on `UpdateVehicle` calls either as a full trip waypoint, a waypoint + * `LatLng`, or as the last `LatLng` of the `current_route_segment`. Fleet + * Engine will then do its best to interpolate to an actual waypoint if it is + * not fully specified. This field is ignored in `UpdateVehicle` calls unless + * `current_route_segment` is also specified. + * + * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24; + */ + protected $current_route_segment_end_point = null; + /** + * The remaining driving distance for the `current_route_segment`. + * This value is also returned in `Trip.remaining_distance_meters` for all + * active trips assigned to the vehicle. The value is unspecified if the + * `current_route_segment` field is empty. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 18; + */ + protected $remaining_distance_meters = null; + /** + * The ETA to the first entry in the `waypoints` field. The value is + * unspecified if the `waypoints` field is empty or the + * `Vehicle.current_route_segment` field is empty. + * When updating a vehicle, `remaining_time_seconds` takes precedence over + * `eta_to_first_waypoint` in the same request. + * + * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 19; + */ + protected $eta_to_first_waypoint = null; + /** + * Input only. The remaining driving time for the `current_route_segment`. The + * value is unspecified if the `waypoints` field is empty or the + * `Vehicle.current_route_segment` field is empty. This value should match + * `eta_to_first_waypoint` - `current_time` if all parties are using the same + * clock. + * When updating a vehicle, `remaining_time_seconds` takes precedence over + * `eta_to_first_waypoint` in the same request. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_time_seconds = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $remaining_time_seconds = null; + /** + * The remaining waypoints assigned to this Vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint waypoints = 22; + */ + private $waypoints; + /** + * Output only. Last time the `waypoints` field was updated. Clients should + * cache this value and pass it in `GetVehicleRequest` to ensure the + * `waypoints` field is only returned if it is updated. + * + * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $waypoints_version = null; + /** + * Indicates if the driver accepts back-to-back trips. If `true`, + * `SearchVehicles` may include the vehicle even if it is currently assigned + * to a trip. The default value is `false`. + * + * Generated from protobuf field bool back_to_back_enabled = 23; + */ + protected $back_to_back_enabled = false; + /** + * The vehicle's navigation status. + * + * Generated from protobuf field .maps.fleetengine.v1.NavigationStatus navigation_status = 26; + */ + protected $navigation_status = 0; + /** + * Input only. Information about settings in the mobile device being used by + * the driver. + * + * Generated from protobuf field .maps.fleetengine.v1.DeviceSettings device_settings = 27 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $device_settings = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The unique name for this vehicle. + * The format is `providers/{provider}/vehicles/{vehicle}`. + * @type int $vehicle_state + * The vehicle state. + * @type array|\Google\Protobuf\Internal\RepeatedField $supported_trip_types + * Trip types supported by this vehicle. + * @type array|\Google\Protobuf\Internal\RepeatedField $current_trips + * Output only. List of `trip_id`'s for trips currently assigned to this + * vehicle. + * @type \Google\Maps\FleetEngine\V1\VehicleLocation $last_location + * Last reported location of the vehicle. + * @type int $maximum_capacity + * The total numbers of riders this vehicle can carry. The driver is not + * considered in this value. This value must be greater than or equal to one. + * @type array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $attributes + * List of vehicle attributes. A vehicle can have at most 100 + * attributes, and each attribute must have a unique key. + * @type \Google\Maps\FleetEngine\V1\Vehicle\VehicleType $vehicle_type + * Required. The type of this vehicle. Can be used to filter vehicles in + * `SearchVehicles` results. Also influences ETA and route calculations. + * @type \Google\Maps\FleetEngine\V1\LicensePlate $license_plate + * License plate information for the vehicle. + * @type array<\Google\Maps\FleetEngine\V1\TerminalLocation>|\Google\Protobuf\Internal\RepeatedField $route + * Deprecated: Use `Vehicle.waypoints` instead. + * @type string $current_route_segment + * The polyline specifying the route the driver app intends to take to + * the next waypoint. This list is also returned in + * `Trip.current_route_segment` for all active trips assigned to the vehicle. + * Note: This field is intended only for use by the Driver SDK. Decoding is + * not yet supported. + * @type \Google\Maps\FleetEngine\V1\TrafficPolylineData $current_route_segment_traffic + * Input only. Fleet Engine uses this information to improve journey sharing. + * Note: This field is intended only for use by the Driver SDK. + * @type \Google\Protobuf\Timestamp $current_route_segment_version + * Output only. Time when `current_route_segment` was set. It can be stored by + * the client and passed in future `GetVehicle` requests to prevent returning + * routes that haven't changed. + * @type \Google\Maps\FleetEngine\V1\TripWaypoint $current_route_segment_end_point + * The waypoint where `current_route_segment` ends. This can be supplied by + * drivers on `UpdateVehicle` calls either as a full trip waypoint, a waypoint + * `LatLng`, or as the last `LatLng` of the `current_route_segment`. Fleet + * Engine will then do its best to interpolate to an actual waypoint if it is + * not fully specified. This field is ignored in `UpdateVehicle` calls unless + * `current_route_segment` is also specified. + * @type \Google\Protobuf\Int32Value $remaining_distance_meters + * The remaining driving distance for the `current_route_segment`. + * This value is also returned in `Trip.remaining_distance_meters` for all + * active trips assigned to the vehicle. The value is unspecified if the + * `current_route_segment` field is empty. + * @type \Google\Protobuf\Timestamp $eta_to_first_waypoint + * The ETA to the first entry in the `waypoints` field. The value is + * unspecified if the `waypoints` field is empty or the + * `Vehicle.current_route_segment` field is empty. + * When updating a vehicle, `remaining_time_seconds` takes precedence over + * `eta_to_first_waypoint` in the same request. + * @type \Google\Protobuf\Int32Value $remaining_time_seconds + * Input only. The remaining driving time for the `current_route_segment`. The + * value is unspecified if the `waypoints` field is empty or the + * `Vehicle.current_route_segment` field is empty. This value should match + * `eta_to_first_waypoint` - `current_time` if all parties are using the same + * clock. + * When updating a vehicle, `remaining_time_seconds` takes precedence over + * `eta_to_first_waypoint` in the same request. + * @type array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $waypoints + * The remaining waypoints assigned to this Vehicle. + * @type \Google\Protobuf\Timestamp $waypoints_version + * Output only. Last time the `waypoints` field was updated. Clients should + * cache this value and pass it in `GetVehicleRequest` to ensure the + * `waypoints` field is only returned if it is updated. + * @type bool $back_to_back_enabled + * Indicates if the driver accepts back-to-back trips. If `true`, + * `SearchVehicles` may include the vehicle even if it is currently assigned + * to a trip. The default value is `false`. + * @type int $navigation_status + * The vehicle's navigation status. + * @type \Google\Maps\FleetEngine\V1\DeviceSettings $device_settings + * Input only. Information about settings in the mobile device being used by + * the driver. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The unique name for this vehicle. + * The format is `providers/{provider}/vehicles/{vehicle}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The unique name for this vehicle. + * The format is `providers/{provider}/vehicles/{vehicle}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The vehicle state. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 2; + * @return int + */ + public function getVehicleState() + { + return $this->vehicle_state; + } + + /** + * The vehicle state. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 2; + * @param int $var + * @return $this + */ + public function setVehicleState($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\VehicleState::class); + $this->vehicle_state = $var; + + return $this; + } + + /** + * Trip types supported by this vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripType supported_trip_types = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSupportedTripTypes() + { + return $this->supported_trip_types; + } + + /** + * Trip types supported by this vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripType supported_trip_types = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSupportedTripTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Maps\FleetEngine\V1\TripType::class); + $this->supported_trip_types = $arr; + + return $this; + } + + /** + * Output only. List of `trip_id`'s for trips currently assigned to this + * vehicle. + * + * Generated from protobuf field repeated string current_trips = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCurrentTrips() + { + return $this->current_trips; + } + + /** + * Output only. List of `trip_id`'s for trips currently assigned to this + * vehicle. + * + * Generated from protobuf field repeated string current_trips = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCurrentTrips($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->current_trips = $arr; + + return $this; + } + + /** + * Last reported location of the vehicle. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 5; + * @return \Google\Maps\FleetEngine\V1\VehicleLocation|null + */ + public function getLastLocation() + { + return $this->last_location; + } + + public function hasLastLocation() + { + return isset($this->last_location); + } + + public function clearLastLocation() + { + unset($this->last_location); + } + + /** + * Last reported location of the vehicle. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 5; + * @param \Google\Maps\FleetEngine\V1\VehicleLocation $var + * @return $this + */ + public function setLastLocation($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\VehicleLocation::class); + $this->last_location = $var; + + return $this; + } + + /** + * The total numbers of riders this vehicle can carry. The driver is not + * considered in this value. This value must be greater than or equal to one. + * + * Generated from protobuf field int32 maximum_capacity = 6; + * @return int + */ + public function getMaximumCapacity() + { + return $this->maximum_capacity; + } + + /** + * The total numbers of riders this vehicle can carry. The driver is not + * considered in this value. This value must be greater than or equal to one. + * + * Generated from protobuf field int32 maximum_capacity = 6; + * @param int $var + * @return $this + */ + public function setMaximumCapacity($var) + { + GPBUtil::checkInt32($var); + $this->maximum_capacity = $var; + + return $this; + } + + /** + * List of vehicle attributes. A vehicle can have at most 100 + * attributes, and each attribute must have a unique key. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 8; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAttributes() + { + return $this->attributes; + } + + /** + * List of vehicle attributes. A vehicle can have at most 100 + * attributes, and each attribute must have a unique key. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 8; + * @param array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAttributes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttribute::class); + $this->attributes = $arr; + + return $this; + } + + /** + * Required. The type of this vehicle. Can be used to filter vehicles in + * `SearchVehicles` results. Also influences ETA and route calculations. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType vehicle_type = 9 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Maps\FleetEngine\V1\Vehicle\VehicleType|null + */ + public function getVehicleType() + { + return $this->vehicle_type; + } + + public function hasVehicleType() + { + return isset($this->vehicle_type); + } + + public function clearVehicleType() + { + unset($this->vehicle_type); + } + + /** + * Required. The type of this vehicle. Can be used to filter vehicles in + * `SearchVehicles` results. Also influences ETA and route calculations. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType vehicle_type = 9 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Maps\FleetEngine\V1\Vehicle\VehicleType $var + * @return $this + */ + public function setVehicleType($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Vehicle\VehicleType::class); + $this->vehicle_type = $var; + + return $this; + } + + /** + * License plate information for the vehicle. + * + * Generated from protobuf field .maps.fleetengine.v1.LicensePlate license_plate = 10; + * @return \Google\Maps\FleetEngine\V1\LicensePlate|null + */ + public function getLicensePlate() + { + return $this->license_plate; + } + + public function hasLicensePlate() + { + return isset($this->license_plate); + } + + public function clearLicensePlate() + { + unset($this->license_plate); + } + + /** + * License plate information for the vehicle. + * + * Generated from protobuf field .maps.fleetengine.v1.LicensePlate license_plate = 10; + * @param \Google\Maps\FleetEngine\V1\LicensePlate $var + * @return $this + */ + public function setLicensePlate($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\LicensePlate::class); + $this->license_plate = $var; + + return $this; + } + + /** + * Deprecated: Use `Vehicle.waypoints` instead. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation route = 12 [deprecated = true]; + * @return \Google\Protobuf\Internal\RepeatedField + * @deprecated + */ + public function getRoute() + { + @trigger_error('route is deprecated.', E_USER_DEPRECATED); + return $this->route; + } + + /** + * Deprecated: Use `Vehicle.waypoints` instead. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation route = 12 [deprecated = true]; + * @param array<\Google\Maps\FleetEngine\V1\TerminalLocation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + * @deprecated + */ + public function setRoute($var) + { + @trigger_error('route is deprecated.', E_USER_DEPRECATED); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\TerminalLocation::class); + $this->route = $arr; + + return $this; + } + + /** + * The polyline specifying the route the driver app intends to take to + * the next waypoint. This list is also returned in + * `Trip.current_route_segment` for all active trips assigned to the vehicle. + * Note: This field is intended only for use by the Driver SDK. Decoding is + * not yet supported. + * + * Generated from protobuf field string current_route_segment = 20; + * @return string + */ + public function getCurrentRouteSegment() + { + return $this->current_route_segment; + } + + /** + * The polyline specifying the route the driver app intends to take to + * the next waypoint. This list is also returned in + * `Trip.current_route_segment` for all active trips assigned to the vehicle. + * Note: This field is intended only for use by the Driver SDK. Decoding is + * not yet supported. + * + * Generated from protobuf field string current_route_segment = 20; + * @param string $var + * @return $this + */ + public function setCurrentRouteSegment($var) + { + GPBUtil::checkString($var, True); + $this->current_route_segment = $var; + + return $this; + } + + /** + * Input only. Fleet Engine uses this information to improve journey sharing. + * Note: This field is intended only for use by the Driver SDK. + * + * Generated from protobuf field .maps.fleetengine.v1.TrafficPolylineData current_route_segment_traffic = 28 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Maps\FleetEngine\V1\TrafficPolylineData|null + */ + public function getCurrentRouteSegmentTraffic() + { + return $this->current_route_segment_traffic; + } + + public function hasCurrentRouteSegmentTraffic() + { + return isset($this->current_route_segment_traffic); + } + + public function clearCurrentRouteSegmentTraffic() + { + unset($this->current_route_segment_traffic); + } + + /** + * Input only. Fleet Engine uses this information to improve journey sharing. + * Note: This field is intended only for use by the Driver SDK. + * + * Generated from protobuf field .maps.fleetengine.v1.TrafficPolylineData current_route_segment_traffic = 28 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Maps\FleetEngine\V1\TrafficPolylineData $var + * @return $this + */ + public function setCurrentRouteSegmentTraffic($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TrafficPolylineData::class); + $this->current_route_segment_traffic = $var; + + return $this; + } + + /** + * Output only. Time when `current_route_segment` was set. It can be stored by + * the client and passed in future `GetVehicle` requests to prevent returning + * routes that haven't changed. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCurrentRouteSegmentVersion() + { + return $this->current_route_segment_version; + } + + public function hasCurrentRouteSegmentVersion() + { + return isset($this->current_route_segment_version); + } + + public function clearCurrentRouteSegmentVersion() + { + unset($this->current_route_segment_version); + } + + /** + * Output only. Time when `current_route_segment` was set. It can be stored by + * the client and passed in future `GetVehicle` requests to prevent returning + * routes that haven't changed. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCurrentRouteSegmentVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->current_route_segment_version = $var; + + return $this; + } + + /** + * The waypoint where `current_route_segment` ends. This can be supplied by + * drivers on `UpdateVehicle` calls either as a full trip waypoint, a waypoint + * `LatLng`, or as the last `LatLng` of the `current_route_segment`. Fleet + * Engine will then do its best to interpolate to an actual waypoint if it is + * not fully specified. This field is ignored in `UpdateVehicle` calls unless + * `current_route_segment` is also specified. + * + * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24; + * @return \Google\Maps\FleetEngine\V1\TripWaypoint|null + */ + public function getCurrentRouteSegmentEndPoint() + { + return $this->current_route_segment_end_point; + } + + public function hasCurrentRouteSegmentEndPoint() + { + return isset($this->current_route_segment_end_point); + } + + public function clearCurrentRouteSegmentEndPoint() + { + unset($this->current_route_segment_end_point); + } + + /** + * The waypoint where `current_route_segment` ends. This can be supplied by + * drivers on `UpdateVehicle` calls either as a full trip waypoint, a waypoint + * `LatLng`, or as the last `LatLng` of the `current_route_segment`. Fleet + * Engine will then do its best to interpolate to an actual waypoint if it is + * not fully specified. This field is ignored in `UpdateVehicle` calls unless + * `current_route_segment` is also specified. + * + * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24; + * @param \Google\Maps\FleetEngine\V1\TripWaypoint $var + * @return $this + */ + public function setCurrentRouteSegmentEndPoint($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TripWaypoint::class); + $this->current_route_segment_end_point = $var; + + return $this; + } + + /** + * The remaining driving distance for the `current_route_segment`. + * This value is also returned in `Trip.remaining_distance_meters` for all + * active trips assigned to the vehicle. The value is unspecified if the + * `current_route_segment` field is empty. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 18; + * @return \Google\Protobuf\Int32Value|null + */ + public function getRemainingDistanceMeters() + { + return $this->remaining_distance_meters; + } + + public function hasRemainingDistanceMeters() + { + return isset($this->remaining_distance_meters); + } + + public function clearRemainingDistanceMeters() + { + unset($this->remaining_distance_meters); + } + + /** + * Returns the unboxed value from getRemainingDistanceMeters() + + * The remaining driving distance for the `current_route_segment`. + * This value is also returned in `Trip.remaining_distance_meters` for all + * active trips assigned to the vehicle. The value is unspecified if the + * `current_route_segment` field is empty. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 18; + * @return int|null + */ + public function getRemainingDistanceMetersUnwrapped() + { + return $this->readWrapperValue("remaining_distance_meters"); + } + + /** + * The remaining driving distance for the `current_route_segment`. + * This value is also returned in `Trip.remaining_distance_meters` for all + * active trips assigned to the vehicle. The value is unspecified if the + * `current_route_segment` field is empty. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 18; + * @param \Google\Protobuf\Int32Value $var + * @return $this + */ + public function setRemainingDistanceMeters($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->remaining_distance_meters = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * The remaining driving distance for the `current_route_segment`. + * This value is also returned in `Trip.remaining_distance_meters` for all + * active trips assigned to the vehicle. The value is unspecified if the + * `current_route_segment` field is empty. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 18; + * @param int|null $var + * @return $this + */ + public function setRemainingDistanceMetersUnwrapped($var) + { + $this->writeWrapperValue("remaining_distance_meters", $var); + return $this;} + + /** + * The ETA to the first entry in the `waypoints` field. The value is + * unspecified if the `waypoints` field is empty or the + * `Vehicle.current_route_segment` field is empty. + * When updating a vehicle, `remaining_time_seconds` takes precedence over + * `eta_to_first_waypoint` in the same request. + * + * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 19; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEtaToFirstWaypoint() + { + return $this->eta_to_first_waypoint; + } + + public function hasEtaToFirstWaypoint() + { + return isset($this->eta_to_first_waypoint); + } + + public function clearEtaToFirstWaypoint() + { + unset($this->eta_to_first_waypoint); + } + + /** + * The ETA to the first entry in the `waypoints` field. The value is + * unspecified if the `waypoints` field is empty or the + * `Vehicle.current_route_segment` field is empty. + * When updating a vehicle, `remaining_time_seconds` takes precedence over + * `eta_to_first_waypoint` in the same request. + * + * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 19; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEtaToFirstWaypoint($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->eta_to_first_waypoint = $var; + + return $this; + } + + /** + * Input only. The remaining driving time for the `current_route_segment`. The + * value is unspecified if the `waypoints` field is empty or the + * `Vehicle.current_route_segment` field is empty. This value should match + * `eta_to_first_waypoint` - `current_time` if all parties are using the same + * clock. + * When updating a vehicle, `remaining_time_seconds` takes precedence over + * `eta_to_first_waypoint` in the same request. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_time_seconds = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Protobuf\Int32Value|null + */ + public function getRemainingTimeSeconds() + { + return $this->remaining_time_seconds; + } + + public function hasRemainingTimeSeconds() + { + return isset($this->remaining_time_seconds); + } + + public function clearRemainingTimeSeconds() + { + unset($this->remaining_time_seconds); + } + + /** + * Returns the unboxed value from getRemainingTimeSeconds() + + * Input only. The remaining driving time for the `current_route_segment`. The + * value is unspecified if the `waypoints` field is empty or the + * `Vehicle.current_route_segment` field is empty. This value should match + * `eta_to_first_waypoint` - `current_time` if all parties are using the same + * clock. + * When updating a vehicle, `remaining_time_seconds` takes precedence over + * `eta_to_first_waypoint` in the same request. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_time_seconds = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return int|null + */ + public function getRemainingTimeSecondsUnwrapped() + { + return $this->readWrapperValue("remaining_time_seconds"); + } + + /** + * Input only. The remaining driving time for the `current_route_segment`. The + * value is unspecified if the `waypoints` field is empty or the + * `Vehicle.current_route_segment` field is empty. This value should match + * `eta_to_first_waypoint` - `current_time` if all parties are using the same + * clock. + * When updating a vehicle, `remaining_time_seconds` takes precedence over + * `eta_to_first_waypoint` in the same request. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_time_seconds = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Protobuf\Int32Value $var + * @return $this + */ + public function setRemainingTimeSeconds($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->remaining_time_seconds = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * Input only. The remaining driving time for the `current_route_segment`. The + * value is unspecified if the `waypoints` field is empty or the + * `Vehicle.current_route_segment` field is empty. This value should match + * `eta_to_first_waypoint` - `current_time` if all parties are using the same + * clock. + * When updating a vehicle, `remaining_time_seconds` takes precedence over + * `eta_to_first_waypoint` in the same request. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_time_seconds = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param int|null $var + * @return $this + */ + public function setRemainingTimeSecondsUnwrapped($var) + { + $this->writeWrapperValue("remaining_time_seconds", $var); + return $this;} + + /** + * The remaining waypoints assigned to this Vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint waypoints = 22; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getWaypoints() + { + return $this->waypoints; + } + + /** + * The remaining waypoints assigned to this Vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint waypoints = 22; + * @param array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setWaypoints($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\TripWaypoint::class); + $this->waypoints = $arr; + + return $this; + } + + /** + * Output only. Last time the `waypoints` field was updated. Clients should + * cache this value and pass it in `GetVehicleRequest` to ensure the + * `waypoints` field is only returned if it is updated. + * + * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getWaypointsVersion() + { + return $this->waypoints_version; + } + + public function hasWaypointsVersion() + { + return isset($this->waypoints_version); + } + + public function clearWaypointsVersion() + { + unset($this->waypoints_version); + } + + /** + * Output only. Last time the `waypoints` field was updated. Clients should + * cache this value and pass it in `GetVehicleRequest` to ensure the + * `waypoints` field is only returned if it is updated. + * + * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setWaypointsVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->waypoints_version = $var; + + return $this; + } + + /** + * Indicates if the driver accepts back-to-back trips. If `true`, + * `SearchVehicles` may include the vehicle even if it is currently assigned + * to a trip. The default value is `false`. + * + * Generated from protobuf field bool back_to_back_enabled = 23; + * @return bool + */ + public function getBackToBackEnabled() + { + return $this->back_to_back_enabled; + } + + /** + * Indicates if the driver accepts back-to-back trips. If `true`, + * `SearchVehicles` may include the vehicle even if it is currently assigned + * to a trip. The default value is `false`. + * + * Generated from protobuf field bool back_to_back_enabled = 23; + * @param bool $var + * @return $this + */ + public function setBackToBackEnabled($var) + { + GPBUtil::checkBool($var); + $this->back_to_back_enabled = $var; + + return $this; + } + + /** + * The vehicle's navigation status. + * + * Generated from protobuf field .maps.fleetengine.v1.NavigationStatus navigation_status = 26; + * @return int + */ + public function getNavigationStatus() + { + return $this->navigation_status; + } + + /** + * The vehicle's navigation status. + * + * Generated from protobuf field .maps.fleetengine.v1.NavigationStatus navigation_status = 26; + * @param int $var + * @return $this + */ + public function setNavigationStatus($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\NavigationStatus::class); + $this->navigation_status = $var; + + return $this; + } + + /** + * Input only. Information about settings in the mobile device being used by + * the driver. + * + * Generated from protobuf field .maps.fleetengine.v1.DeviceSettings device_settings = 27 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Maps\FleetEngine\V1\DeviceSettings|null + */ + public function getDeviceSettings() + { + return $this->device_settings; + } + + public function hasDeviceSettings() + { + return isset($this->device_settings); + } + + public function clearDeviceSettings() + { + unset($this->device_settings); + } + + /** + * Input only. Information about settings in the mobile device being used by + * the driver. + * + * Generated from protobuf field .maps.fleetengine.v1.DeviceSettings device_settings = 27 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Maps\FleetEngine\V1\DeviceSettings $var + * @return $this + */ + public function setDeviceSettings($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\DeviceSettings::class); + $this->device_settings = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType.php new file mode 100644 index 000000000000..2b1dfb175e0d --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType.php @@ -0,0 +1,70 @@ +maps.fleetengine.v1.Vehicle.VehicleType + */ +class VehicleType extends \Google\Protobuf\Internal\Message +{ + /** + * Vehicle type category + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType.Category category = 1; + */ + protected $category = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $category + * Vehicle type category + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); + parent::__construct($data); + } + + /** + * Vehicle type category + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType.Category category = 1; + * @return int + */ + public function getCategory() + { + return $this->category; + } + + /** + * Vehicle type category + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType.Category category = 1; + * @param int $var + * @return $this + */ + public function setCategory($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\Vehicle\VehicleType\Category::class); + $this->category = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(VehicleType::class, \Google\Maps\FleetEngine\V1\Vehicle_VehicleType::class); + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType/Category.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType/Category.php new file mode 100644 index 000000000000..8133764e8bc8 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType/Category.php @@ -0,0 +1,93 @@ +maps.fleetengine.v1.Vehicle.VehicleType.Category + */ +class Category +{ + /** + * Default, used for unspecified or unrecognized vehicle categories. + * + * Generated from protobuf enum UNKNOWN = 0; + */ + const UNKNOWN = 0; + /** + * An automobile. + * + * Generated from protobuf enum AUTO = 1; + */ + const AUTO = 1; + /** + * Any vehicle that acts as a taxi (typically licensed or regulated). + * + * Generated from protobuf enum TAXI = 2; + */ + const TAXI = 2; + /** + * Generally, a vehicle with a large storage capacity. + * + * Generated from protobuf enum TRUCK = 3; + */ + const TRUCK = 3; + /** + * A motorcycle, moped, or other two-wheeled vehicle + * + * Generated from protobuf enum TWO_WHEELER = 4; + */ + const TWO_WHEELER = 4; + /** + * Human-powered transport. + * + * Generated from protobuf enum BICYCLE = 5; + */ + const BICYCLE = 5; + /** + * A human transporter, typically walking or running, traveling along + * pedestrian pathways. + * + * Generated from protobuf enum PEDESTRIAN = 6; + */ + const PEDESTRIAN = 6; + + private static $valueToName = [ + self::UNKNOWN => 'UNKNOWN', + self::AUTO => 'AUTO', + self::TAXI => 'TAXI', + self::TRUCK => 'TRUCK', + self::TWO_WHEELER => 'TWO_WHEELER', + self::BICYCLE => 'BICYCLE', + self::PEDESTRIAN => 'PEDESTRIAN', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Category::class, \Google\Maps\FleetEngine\V1\Vehicle_VehicleType_Category::class); + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttribute.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttribute.php new file mode 100644 index 000000000000..33dc410a64bc --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttribute.php @@ -0,0 +1,225 @@ +maps.fleetengine.v1.VehicleAttribute + */ +class VehicleAttribute extends \Google\Protobuf\Internal\Message +{ + /** + * The attribute's key. Keys may not contain the colon character (:). + * + * Generated from protobuf field string key = 1; + */ + protected $key = ''; + /** + * The attribute's value. + * + * Generated from protobuf field string value = 2; + */ + protected $value = ''; + protected $vehicle_attribute_value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * The attribute's key. Keys may not contain the colon character (:). + * @type string $value + * The attribute's value. + * @type string $string_value + * String typed attribute value. + * Note: This is identical to the `value` field which will eventually be + * deprecated. For create or update methods, either field can be used, but + * it's strongly recommended to use `string_value`. If both `string_value` + * and `value` are set, they must be identical or an error will be thrown. + * Both fields are populated in responses. + * @type bool $bool_value + * Boolean typed attribute value. + * @type float $number_value + * Double typed attribute value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Fleetengine::initOnce(); + parent::__construct($data); + } + + /** + * The attribute's key. Keys may not contain the colon character (:). + * + * Generated from protobuf field string key = 1; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * The attribute's key. Keys may not contain the colon character (:). + * + * Generated from protobuf field string key = 1; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + + /** + * The attribute's value. + * + * Generated from protobuf field string value = 2; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * The attribute's value. + * + * Generated from protobuf field string value = 2; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * String typed attribute value. + * Note: This is identical to the `value` field which will eventually be + * deprecated. For create or update methods, either field can be used, but + * it's strongly recommended to use `string_value`. If both `string_value` + * and `value` are set, they must be identical or an error will be thrown. + * Both fields are populated in responses. + * + * Generated from protobuf field string string_value = 3; + * @return string + */ + public function getStringValue() + { + return $this->readOneof(3); + } + + public function hasStringValue() + { + return $this->hasOneof(3); + } + + /** + * String typed attribute value. + * Note: This is identical to the `value` field which will eventually be + * deprecated. For create or update methods, either field can be used, but + * it's strongly recommended to use `string_value`. If both `string_value` + * and `value` are set, they must be identical or an error will be thrown. + * Both fields are populated in responses. + * + * Generated from protobuf field string string_value = 3; + * @param string $var + * @return $this + */ + public function setStringValue($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Boolean typed attribute value. + * + * Generated from protobuf field bool bool_value = 4; + * @return bool + */ + public function getBoolValue() + { + return $this->readOneof(4); + } + + public function hasBoolValue() + { + return $this->hasOneof(4); + } + + /** + * Boolean typed attribute value. + * + * Generated from protobuf field bool bool_value = 4; + * @param bool $var + * @return $this + */ + public function setBoolValue($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Double typed attribute value. + * + * Generated from protobuf field double number_value = 5; + * @return float + */ + public function getNumberValue() + { + return $this->readOneof(5); + } + + public function hasNumberValue() + { + return $this->hasOneof(5); + } + + /** + * Double typed attribute value. + * + * Generated from protobuf field double number_value = 5; + * @param float $var + * @return $this + */ + public function setNumberValue($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * @return string + */ + public function getVehicleAttributeValue() + { + return $this->whichOneof("vehicle_attribute_value"); + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttributeList.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttributeList.php new file mode 100644 index 000000000000..99d5f9de749e --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttributeList.php @@ -0,0 +1,67 @@ +maps.fleetengine.v1.VehicleAttributeList + */ +class VehicleAttributeList extends \Google\Protobuf\Internal\Message +{ + /** + * A list of attributes in this collection. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1; + */ + private $attributes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $attributes + * A list of attributes in this collection. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * A list of attributes in this collection. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAttributes() + { + return $this->attributes; + } + + /** + * A list of attributes in this collection. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1; + * @param array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAttributes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttribute::class); + $this->attributes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleLocation.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleLocation.php new file mode 100644 index 000000000000..a4efa0721e4a --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleLocation.php @@ -0,0 +1,1789 @@ +maps.fleetengine.v1.VehicleLocation + */ +class VehicleLocation extends \Google\Protobuf\Internal\Message +{ + /** + * The location of the vehicle. + * When it is sent to Fleet Engine, the vehicle's location is a GPS location. + * When you receive it in a response, the vehicle's location can be either a + * GPS location, a supplemental location, or some other estimated location. + * The source is specified in `location_sensor`. + * + * Generated from protobuf field .google.type.LatLng location = 1; + */ + protected $location = null; + /** + * Deprecated: Use `latlng_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; + * @deprecated + */ + protected $horizontal_accuracy = null; + /** + * Accuracy of `location` in meters as a radius. + * + * Generated from protobuf field .google.protobuf.DoubleValue latlng_accuracy = 22; + */ + protected $latlng_accuracy = null; + /** + * Direction the vehicle is moving in degrees. 0 represents North. + * The valid range is [0,360). + * + * Generated from protobuf field .google.protobuf.Int32Value heading = 2; + */ + protected $heading = null; + /** + * Deprecated: Use `heading_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; + * @deprecated + */ + protected $bearing_accuracy = null; + /** + * Accuracy of `heading` in degrees. + * + * Generated from protobuf field .google.protobuf.DoubleValue heading_accuracy = 23; + */ + protected $heading_accuracy = null; + /** + * Altitude in meters above WGS84. + * + * Generated from protobuf field .google.protobuf.DoubleValue altitude = 5; + */ + protected $altitude = null; + /** + * Deprecated: Use `altitude_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; + * @deprecated + */ + protected $vertical_accuracy = null; + /** + * Accuracy of `altitude` in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue altitude_accuracy = 24; + */ + protected $altitude_accuracy = null; + /** + * Speed of the vehicle in kilometers per hour. + * Deprecated: Use `speed` instead. + * + * Generated from protobuf field .google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; + * @deprecated + */ + protected $speed_kmph = null; + /** + * Speed of the vehicle in meters/second + * + * Generated from protobuf field .google.protobuf.DoubleValue speed = 6; + */ + protected $speed = null; + /** + * Accuracy of `speed` in meters/second. + * + * Generated from protobuf field .google.protobuf.DoubleValue speed_accuracy = 7; + */ + protected $speed_accuracy = null; + /** + * The time when `location` was reported by the sensor according to the + * sensor's clock. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; + */ + protected $update_time = null; + /** + * Output only. The time when the server received the location information. + * + * Generated from protobuf field .google.protobuf.Timestamp server_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $server_time = null; + /** + * Provider of location data (for example, `GPS`). + * + * Generated from protobuf field .maps.fleetengine.v1.LocationSensor location_sensor = 11; + */ + protected $location_sensor = 0; + /** + * Whether `location` is snapped to a road. + * + * Generated from protobuf field .google.protobuf.BoolValue is_road_snapped = 27; + */ + protected $is_road_snapped = null; + /** + * Input only. Indicates whether the GPS sensor is enabled on the mobile + * device. + * + * Generated from protobuf field .google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $is_gps_sensor_enabled = null; + /** + * Input only. Time (in seconds) since this location was first sent to the + * server. This will be zero for the first update. If the time is unknown (for + * example, when the app restarts), this value resets to zero. + * + * Generated from protobuf field .google.protobuf.Int32Value time_since_update = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $time_since_update = null; + /** + * Input only. Deprecated: Other signals are now used to determine if a + * location is stale. + * + * Generated from protobuf field .google.protobuf.Int32Value num_stale_updates = 15 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; + * @deprecated + */ + protected $num_stale_updates = null; + /** + * Raw vehicle location (unprocessed by road-snapper). + * + * Generated from protobuf field .google.type.LatLng raw_location = 16; + */ + protected $raw_location = null; + /** + * Timestamp associated with the raw location. + * + * Generated from protobuf field .google.protobuf.Timestamp raw_location_time = 17; + */ + protected $raw_location_time = null; + /** + * Source of the raw location. Defaults to `GPS`. + * + * Generated from protobuf field .maps.fleetengine.v1.LocationSensor raw_location_sensor = 28; + */ + protected $raw_location_sensor = 0; + /** + * Accuracy of `raw_location` as a radius, in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue raw_location_accuracy = 25; + */ + protected $raw_location_accuracy = null; + /** + * Supplemental location provided by the integrating app. + * + * Generated from protobuf field .google.type.LatLng supplemental_location = 18; + */ + protected $supplemental_location = null; + /** + * Timestamp associated with the supplemental location. + * + * Generated from protobuf field .google.protobuf.Timestamp supplemental_location_time = 19; + */ + protected $supplemental_location_time = null; + /** + * Source of the supplemental location. Defaults to + * `CUSTOMER_SUPPLIED_LOCATION`. + * + * Generated from protobuf field .maps.fleetengine.v1.LocationSensor supplemental_location_sensor = 20; + */ + protected $supplemental_location_sensor = 0; + /** + * Accuracy of `supplemental_location` as a radius, in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue supplemental_location_accuracy = 21; + */ + protected $supplemental_location_accuracy = null; + /** + * Deprecated: Use `is_road_snapped` instead. + * + * Generated from protobuf field bool road_snapped = 26 [deprecated = true]; + * @deprecated + */ + protected $road_snapped = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Type\LatLng $location + * The location of the vehicle. + * When it is sent to Fleet Engine, the vehicle's location is a GPS location. + * When you receive it in a response, the vehicle's location can be either a + * GPS location, a supplemental location, or some other estimated location. + * The source is specified in `location_sensor`. + * @type \Google\Protobuf\DoubleValue $horizontal_accuracy + * Deprecated: Use `latlng_accuracy` instead. + * @type \Google\Protobuf\DoubleValue $latlng_accuracy + * Accuracy of `location` in meters as a radius. + * @type \Google\Protobuf\Int32Value $heading + * Direction the vehicle is moving in degrees. 0 represents North. + * The valid range is [0,360). + * @type \Google\Protobuf\DoubleValue $bearing_accuracy + * Deprecated: Use `heading_accuracy` instead. + * @type \Google\Protobuf\DoubleValue $heading_accuracy + * Accuracy of `heading` in degrees. + * @type \Google\Protobuf\DoubleValue $altitude + * Altitude in meters above WGS84. + * @type \Google\Protobuf\DoubleValue $vertical_accuracy + * Deprecated: Use `altitude_accuracy` instead. + * @type \Google\Protobuf\DoubleValue $altitude_accuracy + * Accuracy of `altitude` in meters. + * @type \Google\Protobuf\Int32Value $speed_kmph + * Speed of the vehicle in kilometers per hour. + * Deprecated: Use `speed` instead. + * @type \Google\Protobuf\DoubleValue $speed + * Speed of the vehicle in meters/second + * @type \Google\Protobuf\DoubleValue $speed_accuracy + * Accuracy of `speed` in meters/second. + * @type \Google\Protobuf\Timestamp $update_time + * The time when `location` was reported by the sensor according to the + * sensor's clock. + * @type \Google\Protobuf\Timestamp $server_time + * Output only. The time when the server received the location information. + * @type int $location_sensor + * Provider of location data (for example, `GPS`). + * @type \Google\Protobuf\BoolValue $is_road_snapped + * Whether `location` is snapped to a road. + * @type \Google\Protobuf\BoolValue $is_gps_sensor_enabled + * Input only. Indicates whether the GPS sensor is enabled on the mobile + * device. + * @type \Google\Protobuf\Int32Value $time_since_update + * Input only. Time (in seconds) since this location was first sent to the + * server. This will be zero for the first update. If the time is unknown (for + * example, when the app restarts), this value resets to zero. + * @type \Google\Protobuf\Int32Value $num_stale_updates + * Input only. Deprecated: Other signals are now used to determine if a + * location is stale. + * @type \Google\Type\LatLng $raw_location + * Raw vehicle location (unprocessed by road-snapper). + * @type \Google\Protobuf\Timestamp $raw_location_time + * Timestamp associated with the raw location. + * @type int $raw_location_sensor + * Source of the raw location. Defaults to `GPS`. + * @type \Google\Protobuf\DoubleValue $raw_location_accuracy + * Accuracy of `raw_location` as a radius, in meters. + * @type \Google\Type\LatLng $supplemental_location + * Supplemental location provided by the integrating app. + * @type \Google\Protobuf\Timestamp $supplemental_location_time + * Timestamp associated with the supplemental location. + * @type int $supplemental_location_sensor + * Source of the supplemental location. Defaults to + * `CUSTOMER_SUPPLIED_LOCATION`. + * @type \Google\Protobuf\DoubleValue $supplemental_location_accuracy + * Accuracy of `supplemental_location` as a radius, in meters. + * @type bool $road_snapped + * Deprecated: Use `is_road_snapped` instead. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Fleetengine::initOnce(); + parent::__construct($data); + } + + /** + * The location of the vehicle. + * When it is sent to Fleet Engine, the vehicle's location is a GPS location. + * When you receive it in a response, the vehicle's location can be either a + * GPS location, a supplemental location, or some other estimated location. + * The source is specified in `location_sensor`. + * + * Generated from protobuf field .google.type.LatLng location = 1; + * @return \Google\Type\LatLng|null + */ + public function getLocation() + { + return $this->location; + } + + public function hasLocation() + { + return isset($this->location); + } + + public function clearLocation() + { + unset($this->location); + } + + /** + * The location of the vehicle. + * When it is sent to Fleet Engine, the vehicle's location is a GPS location. + * When you receive it in a response, the vehicle's location can be either a + * GPS location, a supplemental location, or some other estimated location. + * The source is specified in `location_sensor`. + * + * Generated from protobuf field .google.type.LatLng location = 1; + * @param \Google\Type\LatLng $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkMessage($var, \Google\Type\LatLng::class); + $this->location = $var; + + return $this; + } + + /** + * Deprecated: Use `latlng_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; + * @return \Google\Protobuf\DoubleValue|null + * @deprecated + */ + public function getHorizontalAccuracy() + { + @trigger_error('horizontal_accuracy is deprecated.', E_USER_DEPRECATED); + return $this->horizontal_accuracy; + } + + public function hasHorizontalAccuracy() + { + @trigger_error('horizontal_accuracy is deprecated.', E_USER_DEPRECATED); + return isset($this->horizontal_accuracy); + } + + public function clearHorizontalAccuracy() + { + @trigger_error('horizontal_accuracy is deprecated.', E_USER_DEPRECATED); + unset($this->horizontal_accuracy); + } + + /** + * Returns the unboxed value from getHorizontalAccuracy() + + * Deprecated: Use `latlng_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; + * @return float|null + */ + public function getHorizontalAccuracyUnwrapped() + { + @trigger_error('horizontal_accuracy is deprecated.', E_USER_DEPRECATED); + return $this->readWrapperValue("horizontal_accuracy"); + } + + /** + * Deprecated: Use `latlng_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; + * @param \Google\Protobuf\DoubleValue $var + * @return $this + * @deprecated + */ + public function setHorizontalAccuracy($var) + { + @trigger_error('horizontal_accuracy is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); + $this->horizontal_accuracy = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. + + * Deprecated: Use `latlng_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; + * @param float|null $var + * @return $this + */ + public function setHorizontalAccuracyUnwrapped($var) + { + $this->writeWrapperValue("horizontal_accuracy", $var); + return $this;} + + /** + * Accuracy of `location` in meters as a radius. + * + * Generated from protobuf field .google.protobuf.DoubleValue latlng_accuracy = 22; + * @return \Google\Protobuf\DoubleValue|null + */ + public function getLatlngAccuracy() + { + return $this->latlng_accuracy; + } + + public function hasLatlngAccuracy() + { + return isset($this->latlng_accuracy); + } + + public function clearLatlngAccuracy() + { + unset($this->latlng_accuracy); + } + + /** + * Returns the unboxed value from getLatlngAccuracy() + + * Accuracy of `location` in meters as a radius. + * + * Generated from protobuf field .google.protobuf.DoubleValue latlng_accuracy = 22; + * @return float|null + */ + public function getLatlngAccuracyUnwrapped() + { + return $this->readWrapperValue("latlng_accuracy"); + } + + /** + * Accuracy of `location` in meters as a radius. + * + * Generated from protobuf field .google.protobuf.DoubleValue latlng_accuracy = 22; + * @param \Google\Protobuf\DoubleValue $var + * @return $this + */ + public function setLatlngAccuracy($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); + $this->latlng_accuracy = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. + + * Accuracy of `location` in meters as a radius. + * + * Generated from protobuf field .google.protobuf.DoubleValue latlng_accuracy = 22; + * @param float|null $var + * @return $this + */ + public function setLatlngAccuracyUnwrapped($var) + { + $this->writeWrapperValue("latlng_accuracy", $var); + return $this;} + + /** + * Direction the vehicle is moving in degrees. 0 represents North. + * The valid range is [0,360). + * + * Generated from protobuf field .google.protobuf.Int32Value heading = 2; + * @return \Google\Protobuf\Int32Value|null + */ + public function getHeading() + { + return $this->heading; + } + + public function hasHeading() + { + return isset($this->heading); + } + + public function clearHeading() + { + unset($this->heading); + } + + /** + * Returns the unboxed value from getHeading() + + * Direction the vehicle is moving in degrees. 0 represents North. + * The valid range is [0,360). + * + * Generated from protobuf field .google.protobuf.Int32Value heading = 2; + * @return int|null + */ + public function getHeadingUnwrapped() + { + return $this->readWrapperValue("heading"); + } + + /** + * Direction the vehicle is moving in degrees. 0 represents North. + * The valid range is [0,360). + * + * Generated from protobuf field .google.protobuf.Int32Value heading = 2; + * @param \Google\Protobuf\Int32Value $var + * @return $this + */ + public function setHeading($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->heading = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * Direction the vehicle is moving in degrees. 0 represents North. + * The valid range is [0,360). + * + * Generated from protobuf field .google.protobuf.Int32Value heading = 2; + * @param int|null $var + * @return $this + */ + public function setHeadingUnwrapped($var) + { + $this->writeWrapperValue("heading", $var); + return $this;} + + /** + * Deprecated: Use `heading_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; + * @return \Google\Protobuf\DoubleValue|null + * @deprecated + */ + public function getBearingAccuracy() + { + @trigger_error('bearing_accuracy is deprecated.', E_USER_DEPRECATED); + return $this->bearing_accuracy; + } + + public function hasBearingAccuracy() + { + @trigger_error('bearing_accuracy is deprecated.', E_USER_DEPRECATED); + return isset($this->bearing_accuracy); + } + + public function clearBearingAccuracy() + { + @trigger_error('bearing_accuracy is deprecated.', E_USER_DEPRECATED); + unset($this->bearing_accuracy); + } + + /** + * Returns the unboxed value from getBearingAccuracy() + + * Deprecated: Use `heading_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; + * @return float|null + */ + public function getBearingAccuracyUnwrapped() + { + @trigger_error('bearing_accuracy is deprecated.', E_USER_DEPRECATED); + return $this->readWrapperValue("bearing_accuracy"); + } + + /** + * Deprecated: Use `heading_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; + * @param \Google\Protobuf\DoubleValue $var + * @return $this + * @deprecated + */ + public function setBearingAccuracy($var) + { + @trigger_error('bearing_accuracy is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); + $this->bearing_accuracy = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. + + * Deprecated: Use `heading_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; + * @param float|null $var + * @return $this + */ + public function setBearingAccuracyUnwrapped($var) + { + $this->writeWrapperValue("bearing_accuracy", $var); + return $this;} + + /** + * Accuracy of `heading` in degrees. + * + * Generated from protobuf field .google.protobuf.DoubleValue heading_accuracy = 23; + * @return \Google\Protobuf\DoubleValue|null + */ + public function getHeadingAccuracy() + { + return $this->heading_accuracy; + } + + public function hasHeadingAccuracy() + { + return isset($this->heading_accuracy); + } + + public function clearHeadingAccuracy() + { + unset($this->heading_accuracy); + } + + /** + * Returns the unboxed value from getHeadingAccuracy() + + * Accuracy of `heading` in degrees. + * + * Generated from protobuf field .google.protobuf.DoubleValue heading_accuracy = 23; + * @return float|null + */ + public function getHeadingAccuracyUnwrapped() + { + return $this->readWrapperValue("heading_accuracy"); + } + + /** + * Accuracy of `heading` in degrees. + * + * Generated from protobuf field .google.protobuf.DoubleValue heading_accuracy = 23; + * @param \Google\Protobuf\DoubleValue $var + * @return $this + */ + public function setHeadingAccuracy($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); + $this->heading_accuracy = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. + + * Accuracy of `heading` in degrees. + * + * Generated from protobuf field .google.protobuf.DoubleValue heading_accuracy = 23; + * @param float|null $var + * @return $this + */ + public function setHeadingAccuracyUnwrapped($var) + { + $this->writeWrapperValue("heading_accuracy", $var); + return $this;} + + /** + * Altitude in meters above WGS84. + * + * Generated from protobuf field .google.protobuf.DoubleValue altitude = 5; + * @return \Google\Protobuf\DoubleValue|null + */ + public function getAltitude() + { + return $this->altitude; + } + + public function hasAltitude() + { + return isset($this->altitude); + } + + public function clearAltitude() + { + unset($this->altitude); + } + + /** + * Returns the unboxed value from getAltitude() + + * Altitude in meters above WGS84. + * + * Generated from protobuf field .google.protobuf.DoubleValue altitude = 5; + * @return float|null + */ + public function getAltitudeUnwrapped() + { + return $this->readWrapperValue("altitude"); + } + + /** + * Altitude in meters above WGS84. + * + * Generated from protobuf field .google.protobuf.DoubleValue altitude = 5; + * @param \Google\Protobuf\DoubleValue $var + * @return $this + */ + public function setAltitude($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); + $this->altitude = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. + + * Altitude in meters above WGS84. + * + * Generated from protobuf field .google.protobuf.DoubleValue altitude = 5; + * @param float|null $var + * @return $this + */ + public function setAltitudeUnwrapped($var) + { + $this->writeWrapperValue("altitude", $var); + return $this;} + + /** + * Deprecated: Use `altitude_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; + * @return \Google\Protobuf\DoubleValue|null + * @deprecated + */ + public function getVerticalAccuracy() + { + @trigger_error('vertical_accuracy is deprecated.', E_USER_DEPRECATED); + return $this->vertical_accuracy; + } + + public function hasVerticalAccuracy() + { + @trigger_error('vertical_accuracy is deprecated.', E_USER_DEPRECATED); + return isset($this->vertical_accuracy); + } + + public function clearVerticalAccuracy() + { + @trigger_error('vertical_accuracy is deprecated.', E_USER_DEPRECATED); + unset($this->vertical_accuracy); + } + + /** + * Returns the unboxed value from getVerticalAccuracy() + + * Deprecated: Use `altitude_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; + * @return float|null + */ + public function getVerticalAccuracyUnwrapped() + { + @trigger_error('vertical_accuracy is deprecated.', E_USER_DEPRECATED); + return $this->readWrapperValue("vertical_accuracy"); + } + + /** + * Deprecated: Use `altitude_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; + * @param \Google\Protobuf\DoubleValue $var + * @return $this + * @deprecated + */ + public function setVerticalAccuracy($var) + { + @trigger_error('vertical_accuracy is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); + $this->vertical_accuracy = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. + + * Deprecated: Use `altitude_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; + * @param float|null $var + * @return $this + */ + public function setVerticalAccuracyUnwrapped($var) + { + $this->writeWrapperValue("vertical_accuracy", $var); + return $this;} + + /** + * Accuracy of `altitude` in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue altitude_accuracy = 24; + * @return \Google\Protobuf\DoubleValue|null + */ + public function getAltitudeAccuracy() + { + return $this->altitude_accuracy; + } + + public function hasAltitudeAccuracy() + { + return isset($this->altitude_accuracy); + } + + public function clearAltitudeAccuracy() + { + unset($this->altitude_accuracy); + } + + /** + * Returns the unboxed value from getAltitudeAccuracy() + + * Accuracy of `altitude` in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue altitude_accuracy = 24; + * @return float|null + */ + public function getAltitudeAccuracyUnwrapped() + { + return $this->readWrapperValue("altitude_accuracy"); + } + + /** + * Accuracy of `altitude` in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue altitude_accuracy = 24; + * @param \Google\Protobuf\DoubleValue $var + * @return $this + */ + public function setAltitudeAccuracy($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); + $this->altitude_accuracy = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. + + * Accuracy of `altitude` in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue altitude_accuracy = 24; + * @param float|null $var + * @return $this + */ + public function setAltitudeAccuracyUnwrapped($var) + { + $this->writeWrapperValue("altitude_accuracy", $var); + return $this;} + + /** + * Speed of the vehicle in kilometers per hour. + * Deprecated: Use `speed` instead. + * + * Generated from protobuf field .google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; + * @return \Google\Protobuf\Int32Value|null + * @deprecated + */ + public function getSpeedKmph() + { + @trigger_error('speed_kmph is deprecated.', E_USER_DEPRECATED); + return $this->speed_kmph; + } + + public function hasSpeedKmph() + { + @trigger_error('speed_kmph is deprecated.', E_USER_DEPRECATED); + return isset($this->speed_kmph); + } + + public function clearSpeedKmph() + { + @trigger_error('speed_kmph is deprecated.', E_USER_DEPRECATED); + unset($this->speed_kmph); + } + + /** + * Returns the unboxed value from getSpeedKmph() + + * Speed of the vehicle in kilometers per hour. + * Deprecated: Use `speed` instead. + * + * Generated from protobuf field .google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; + * @return int|null + */ + public function getSpeedKmphUnwrapped() + { + @trigger_error('speed_kmph is deprecated.', E_USER_DEPRECATED); + return $this->readWrapperValue("speed_kmph"); + } + + /** + * Speed of the vehicle in kilometers per hour. + * Deprecated: Use `speed` instead. + * + * Generated from protobuf field .google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; + * @param \Google\Protobuf\Int32Value $var + * @return $this + * @deprecated + */ + public function setSpeedKmph($var) + { + @trigger_error('speed_kmph is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->speed_kmph = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * Speed of the vehicle in kilometers per hour. + * Deprecated: Use `speed` instead. + * + * Generated from protobuf field .google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; + * @param int|null $var + * @return $this + */ + public function setSpeedKmphUnwrapped($var) + { + $this->writeWrapperValue("speed_kmph", $var); + return $this;} + + /** + * Speed of the vehicle in meters/second + * + * Generated from protobuf field .google.protobuf.DoubleValue speed = 6; + * @return \Google\Protobuf\DoubleValue|null + */ + public function getSpeed() + { + return $this->speed; + } + + public function hasSpeed() + { + return isset($this->speed); + } + + public function clearSpeed() + { + unset($this->speed); + } + + /** + * Returns the unboxed value from getSpeed() + + * Speed of the vehicle in meters/second + * + * Generated from protobuf field .google.protobuf.DoubleValue speed = 6; + * @return float|null + */ + public function getSpeedUnwrapped() + { + return $this->readWrapperValue("speed"); + } + + /** + * Speed of the vehicle in meters/second + * + * Generated from protobuf field .google.protobuf.DoubleValue speed = 6; + * @param \Google\Protobuf\DoubleValue $var + * @return $this + */ + public function setSpeed($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); + $this->speed = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. + + * Speed of the vehicle in meters/second + * + * Generated from protobuf field .google.protobuf.DoubleValue speed = 6; + * @param float|null $var + * @return $this + */ + public function setSpeedUnwrapped($var) + { + $this->writeWrapperValue("speed", $var); + return $this;} + + /** + * Accuracy of `speed` in meters/second. + * + * Generated from protobuf field .google.protobuf.DoubleValue speed_accuracy = 7; + * @return \Google\Protobuf\DoubleValue|null + */ + public function getSpeedAccuracy() + { + return $this->speed_accuracy; + } + + public function hasSpeedAccuracy() + { + return isset($this->speed_accuracy); + } + + public function clearSpeedAccuracy() + { + unset($this->speed_accuracy); + } + + /** + * Returns the unboxed value from getSpeedAccuracy() + + * Accuracy of `speed` in meters/second. + * + * Generated from protobuf field .google.protobuf.DoubleValue speed_accuracy = 7; + * @return float|null + */ + public function getSpeedAccuracyUnwrapped() + { + return $this->readWrapperValue("speed_accuracy"); + } + + /** + * Accuracy of `speed` in meters/second. + * + * Generated from protobuf field .google.protobuf.DoubleValue speed_accuracy = 7; + * @param \Google\Protobuf\DoubleValue $var + * @return $this + */ + public function setSpeedAccuracy($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); + $this->speed_accuracy = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. + + * Accuracy of `speed` in meters/second. + * + * Generated from protobuf field .google.protobuf.DoubleValue speed_accuracy = 7; + * @param float|null $var + * @return $this + */ + public function setSpeedAccuracyUnwrapped($var) + { + $this->writeWrapperValue("speed_accuracy", $var); + return $this;} + + /** + * The time when `location` was reported by the sensor according to the + * sensor's clock. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * The time when `location` was reported by the sensor according to the + * sensor's clock. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. The time when the server received the location information. + * + * Generated from protobuf field .google.protobuf.Timestamp server_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getServerTime() + { + return $this->server_time; + } + + public function hasServerTime() + { + return isset($this->server_time); + } + + public function clearServerTime() + { + unset($this->server_time); + } + + /** + * Output only. The time when the server received the location information. + * + * Generated from protobuf field .google.protobuf.Timestamp server_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setServerTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->server_time = $var; + + return $this; + } + + /** + * Provider of location data (for example, `GPS`). + * + * Generated from protobuf field .maps.fleetengine.v1.LocationSensor location_sensor = 11; + * @return int + */ + public function getLocationSensor() + { + return $this->location_sensor; + } + + /** + * Provider of location data (for example, `GPS`). + * + * Generated from protobuf field .maps.fleetengine.v1.LocationSensor location_sensor = 11; + * @param int $var + * @return $this + */ + public function setLocationSensor($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\LocationSensor::class); + $this->location_sensor = $var; + + return $this; + } + + /** + * Whether `location` is snapped to a road. + * + * Generated from protobuf field .google.protobuf.BoolValue is_road_snapped = 27; + * @return \Google\Protobuf\BoolValue|null + */ + public function getIsRoadSnapped() + { + return $this->is_road_snapped; + } + + public function hasIsRoadSnapped() + { + return isset($this->is_road_snapped); + } + + public function clearIsRoadSnapped() + { + unset($this->is_road_snapped); + } + + /** + * Returns the unboxed value from getIsRoadSnapped() + + * Whether `location` is snapped to a road. + * + * Generated from protobuf field .google.protobuf.BoolValue is_road_snapped = 27; + * @return bool|null + */ + public function getIsRoadSnappedUnwrapped() + { + return $this->readWrapperValue("is_road_snapped"); + } + + /** + * Whether `location` is snapped to a road. + * + * Generated from protobuf field .google.protobuf.BoolValue is_road_snapped = 27; + * @param \Google\Protobuf\BoolValue $var + * @return $this + */ + public function setIsRoadSnapped($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); + $this->is_road_snapped = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. + + * Whether `location` is snapped to a road. + * + * Generated from protobuf field .google.protobuf.BoolValue is_road_snapped = 27; + * @param bool|null $var + * @return $this + */ + public function setIsRoadSnappedUnwrapped($var) + { + $this->writeWrapperValue("is_road_snapped", $var); + return $this;} + + /** + * Input only. Indicates whether the GPS sensor is enabled on the mobile + * device. + * + * Generated from protobuf field .google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Protobuf\BoolValue|null + */ + public function getIsGpsSensorEnabled() + { + return $this->is_gps_sensor_enabled; + } + + public function hasIsGpsSensorEnabled() + { + return isset($this->is_gps_sensor_enabled); + } + + public function clearIsGpsSensorEnabled() + { + unset($this->is_gps_sensor_enabled); + } + + /** + * Returns the unboxed value from getIsGpsSensorEnabled() + + * Input only. Indicates whether the GPS sensor is enabled on the mobile + * device. + * + * Generated from protobuf field .google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return bool|null + */ + public function getIsGpsSensorEnabledUnwrapped() + { + return $this->readWrapperValue("is_gps_sensor_enabled"); + } + + /** + * Input only. Indicates whether the GPS sensor is enabled on the mobile + * device. + * + * Generated from protobuf field .google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Protobuf\BoolValue $var + * @return $this + */ + public function setIsGpsSensorEnabled($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); + $this->is_gps_sensor_enabled = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. + + * Input only. Indicates whether the GPS sensor is enabled on the mobile + * device. + * + * Generated from protobuf field .google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param bool|null $var + * @return $this + */ + public function setIsGpsSensorEnabledUnwrapped($var) + { + $this->writeWrapperValue("is_gps_sensor_enabled", $var); + return $this;} + + /** + * Input only. Time (in seconds) since this location was first sent to the + * server. This will be zero for the first update. If the time is unknown (for + * example, when the app restarts), this value resets to zero. + * + * Generated from protobuf field .google.protobuf.Int32Value time_since_update = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Protobuf\Int32Value|null + */ + public function getTimeSinceUpdate() + { + return $this->time_since_update; + } + + public function hasTimeSinceUpdate() + { + return isset($this->time_since_update); + } + + public function clearTimeSinceUpdate() + { + unset($this->time_since_update); + } + + /** + * Returns the unboxed value from getTimeSinceUpdate() + + * Input only. Time (in seconds) since this location was first sent to the + * server. This will be zero for the first update. If the time is unknown (for + * example, when the app restarts), this value resets to zero. + * + * Generated from protobuf field .google.protobuf.Int32Value time_since_update = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return int|null + */ + public function getTimeSinceUpdateUnwrapped() + { + return $this->readWrapperValue("time_since_update"); + } + + /** + * Input only. Time (in seconds) since this location was first sent to the + * server. This will be zero for the first update. If the time is unknown (for + * example, when the app restarts), this value resets to zero. + * + * Generated from protobuf field .google.protobuf.Int32Value time_since_update = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Protobuf\Int32Value $var + * @return $this + */ + public function setTimeSinceUpdate($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->time_since_update = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * Input only. Time (in seconds) since this location was first sent to the + * server. This will be zero for the first update. If the time is unknown (for + * example, when the app restarts), this value resets to zero. + * + * Generated from protobuf field .google.protobuf.Int32Value time_since_update = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param int|null $var + * @return $this + */ + public function setTimeSinceUpdateUnwrapped($var) + { + $this->writeWrapperValue("time_since_update", $var); + return $this;} + + /** + * Input only. Deprecated: Other signals are now used to determine if a + * location is stale. + * + * Generated from protobuf field .google.protobuf.Int32Value num_stale_updates = 15 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Protobuf\Int32Value|null + * @deprecated + */ + public function getNumStaleUpdates() + { + @trigger_error('num_stale_updates is deprecated.', E_USER_DEPRECATED); + return $this->num_stale_updates; + } + + public function hasNumStaleUpdates() + { + @trigger_error('num_stale_updates is deprecated.', E_USER_DEPRECATED); + return isset($this->num_stale_updates); + } + + public function clearNumStaleUpdates() + { + @trigger_error('num_stale_updates is deprecated.', E_USER_DEPRECATED); + unset($this->num_stale_updates); + } + + /** + * Returns the unboxed value from getNumStaleUpdates() + + * Input only. Deprecated: Other signals are now used to determine if a + * location is stale. + * + * Generated from protobuf field .google.protobuf.Int32Value num_stale_updates = 15 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; + * @return int|null + */ + public function getNumStaleUpdatesUnwrapped() + { + @trigger_error('num_stale_updates is deprecated.', E_USER_DEPRECATED); + return $this->readWrapperValue("num_stale_updates"); + } + + /** + * Input only. Deprecated: Other signals are now used to determine if a + * location is stale. + * + * Generated from protobuf field .google.protobuf.Int32Value num_stale_updates = 15 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Protobuf\Int32Value $var + * @return $this + * @deprecated + */ + public function setNumStaleUpdates($var) + { + @trigger_error('num_stale_updates is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->num_stale_updates = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * Input only. Deprecated: Other signals are now used to determine if a + * location is stale. + * + * Generated from protobuf field .google.protobuf.Int32Value num_stale_updates = 15 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; + * @param int|null $var + * @return $this + */ + public function setNumStaleUpdatesUnwrapped($var) + { + $this->writeWrapperValue("num_stale_updates", $var); + return $this;} + + /** + * Raw vehicle location (unprocessed by road-snapper). + * + * Generated from protobuf field .google.type.LatLng raw_location = 16; + * @return \Google\Type\LatLng|null + */ + public function getRawLocation() + { + return $this->raw_location; + } + + public function hasRawLocation() + { + return isset($this->raw_location); + } + + public function clearRawLocation() + { + unset($this->raw_location); + } + + /** + * Raw vehicle location (unprocessed by road-snapper). + * + * Generated from protobuf field .google.type.LatLng raw_location = 16; + * @param \Google\Type\LatLng $var + * @return $this + */ + public function setRawLocation($var) + { + GPBUtil::checkMessage($var, \Google\Type\LatLng::class); + $this->raw_location = $var; + + return $this; + } + + /** + * Timestamp associated with the raw location. + * + * Generated from protobuf field .google.protobuf.Timestamp raw_location_time = 17; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRawLocationTime() + { + return $this->raw_location_time; + } + + public function hasRawLocationTime() + { + return isset($this->raw_location_time); + } + + public function clearRawLocationTime() + { + unset($this->raw_location_time); + } + + /** + * Timestamp associated with the raw location. + * + * Generated from protobuf field .google.protobuf.Timestamp raw_location_time = 17; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRawLocationTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->raw_location_time = $var; + + return $this; + } + + /** + * Source of the raw location. Defaults to `GPS`. + * + * Generated from protobuf field .maps.fleetengine.v1.LocationSensor raw_location_sensor = 28; + * @return int + */ + public function getRawLocationSensor() + { + return $this->raw_location_sensor; + } + + /** + * Source of the raw location. Defaults to `GPS`. + * + * Generated from protobuf field .maps.fleetengine.v1.LocationSensor raw_location_sensor = 28; + * @param int $var + * @return $this + */ + public function setRawLocationSensor($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\LocationSensor::class); + $this->raw_location_sensor = $var; + + return $this; + } + + /** + * Accuracy of `raw_location` as a radius, in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue raw_location_accuracy = 25; + * @return \Google\Protobuf\DoubleValue|null + */ + public function getRawLocationAccuracy() + { + return $this->raw_location_accuracy; + } + + public function hasRawLocationAccuracy() + { + return isset($this->raw_location_accuracy); + } + + public function clearRawLocationAccuracy() + { + unset($this->raw_location_accuracy); + } + + /** + * Returns the unboxed value from getRawLocationAccuracy() + + * Accuracy of `raw_location` as a radius, in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue raw_location_accuracy = 25; + * @return float|null + */ + public function getRawLocationAccuracyUnwrapped() + { + return $this->readWrapperValue("raw_location_accuracy"); + } + + /** + * Accuracy of `raw_location` as a radius, in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue raw_location_accuracy = 25; + * @param \Google\Protobuf\DoubleValue $var + * @return $this + */ + public function setRawLocationAccuracy($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); + $this->raw_location_accuracy = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. + + * Accuracy of `raw_location` as a radius, in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue raw_location_accuracy = 25; + * @param float|null $var + * @return $this + */ + public function setRawLocationAccuracyUnwrapped($var) + { + $this->writeWrapperValue("raw_location_accuracy", $var); + return $this;} + + /** + * Supplemental location provided by the integrating app. + * + * Generated from protobuf field .google.type.LatLng supplemental_location = 18; + * @return \Google\Type\LatLng|null + */ + public function getSupplementalLocation() + { + return $this->supplemental_location; + } + + public function hasSupplementalLocation() + { + return isset($this->supplemental_location); + } + + public function clearSupplementalLocation() + { + unset($this->supplemental_location); + } + + /** + * Supplemental location provided by the integrating app. + * + * Generated from protobuf field .google.type.LatLng supplemental_location = 18; + * @param \Google\Type\LatLng $var + * @return $this + */ + public function setSupplementalLocation($var) + { + GPBUtil::checkMessage($var, \Google\Type\LatLng::class); + $this->supplemental_location = $var; + + return $this; + } + + /** + * Timestamp associated with the supplemental location. + * + * Generated from protobuf field .google.protobuf.Timestamp supplemental_location_time = 19; + * @return \Google\Protobuf\Timestamp|null + */ + public function getSupplementalLocationTime() + { + return $this->supplemental_location_time; + } + + public function hasSupplementalLocationTime() + { + return isset($this->supplemental_location_time); + } + + public function clearSupplementalLocationTime() + { + unset($this->supplemental_location_time); + } + + /** + * Timestamp associated with the supplemental location. + * + * Generated from protobuf field .google.protobuf.Timestamp supplemental_location_time = 19; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setSupplementalLocationTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->supplemental_location_time = $var; + + return $this; + } + + /** + * Source of the supplemental location. Defaults to + * `CUSTOMER_SUPPLIED_LOCATION`. + * + * Generated from protobuf field .maps.fleetengine.v1.LocationSensor supplemental_location_sensor = 20; + * @return int + */ + public function getSupplementalLocationSensor() + { + return $this->supplemental_location_sensor; + } + + /** + * Source of the supplemental location. Defaults to + * `CUSTOMER_SUPPLIED_LOCATION`. + * + * Generated from protobuf field .maps.fleetengine.v1.LocationSensor supplemental_location_sensor = 20; + * @param int $var + * @return $this + */ + public function setSupplementalLocationSensor($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\LocationSensor::class); + $this->supplemental_location_sensor = $var; + + return $this; + } + + /** + * Accuracy of `supplemental_location` as a radius, in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue supplemental_location_accuracy = 21; + * @return \Google\Protobuf\DoubleValue|null + */ + public function getSupplementalLocationAccuracy() + { + return $this->supplemental_location_accuracy; + } + + public function hasSupplementalLocationAccuracy() + { + return isset($this->supplemental_location_accuracy); + } + + public function clearSupplementalLocationAccuracy() + { + unset($this->supplemental_location_accuracy); + } + + /** + * Returns the unboxed value from getSupplementalLocationAccuracy() + + * Accuracy of `supplemental_location` as a radius, in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue supplemental_location_accuracy = 21; + * @return float|null + */ + public function getSupplementalLocationAccuracyUnwrapped() + { + return $this->readWrapperValue("supplemental_location_accuracy"); + } + + /** + * Accuracy of `supplemental_location` as a radius, in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue supplemental_location_accuracy = 21; + * @param \Google\Protobuf\DoubleValue $var + * @return $this + */ + public function setSupplementalLocationAccuracy($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); + $this->supplemental_location_accuracy = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. + + * Accuracy of `supplemental_location` as a radius, in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue supplemental_location_accuracy = 21; + * @param float|null $var + * @return $this + */ + public function setSupplementalLocationAccuracyUnwrapped($var) + { + $this->writeWrapperValue("supplemental_location_accuracy", $var); + return $this;} + + /** + * Deprecated: Use `is_road_snapped` instead. + * + * Generated from protobuf field bool road_snapped = 26 [deprecated = true]; + * @return bool + * @deprecated + */ + public function getRoadSnapped() + { + @trigger_error('road_snapped is deprecated.', E_USER_DEPRECATED); + return $this->road_snapped; + } + + /** + * Deprecated: Use `is_road_snapped` instead. + * + * Generated from protobuf field bool road_snapped = 26 [deprecated = true]; + * @param bool $var + * @return $this + * @deprecated + */ + public function setRoadSnapped($var) + { + @trigger_error('road_snapped is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkBool($var); + $this->road_snapped = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch.php new file mode 100644 index 000000000000..70cfc1b7f9f8 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch.php @@ -0,0 +1,693 @@ +maps.fleetengine.v1.VehicleMatch + */ +class VehicleMatch extends \Google\Protobuf\Internal\Message +{ + /** + * Required. A vehicle that matches the request. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $vehicle = null; + /** + * The vehicle's driving ETA to the pickup point specified in the + * request. An empty value indicates a failure in calculating ETA for the + * vehicle. If `SearchVehiclesRequest.include_back_to_back` was `true` and + * this vehicle has an active trip, `vehicle_pickup_eta` includes the time + * required to complete the current active trip. + * + * Generated from protobuf field .google.protobuf.Timestamp vehicle_pickup_eta = 2; + */ + protected $vehicle_pickup_eta = null; + /** + * The distance from the Vehicle's current location to the pickup point + * specified in the request, including any intermediate pickup or dropoff + * points for existing trips. This distance comprises the calculated driving + * (route) distance, plus the straight line distance between the navigation + * end point and the requested pickup point. (The distance between the + * navigation end point and the requested pickup point is typically small.) An + * empty value indicates an error in calculating the distance. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_distance_meters = 3; + */ + protected $vehicle_pickup_distance_meters = null; + /** + * Required. The straight-line distance between the vehicle and the pickup + * point specified in the request. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_straight_line_distance_meters = 11 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $vehicle_pickup_straight_line_distance_meters = null; + /** + * The complete vehicle's driving ETA to the drop off point specified in the + * request. The ETA includes stopping at any waypoints before the + * `dropoff_point` specified in the request. The value will only be populated + * when a drop off point is specified in the request. An empty value indicates + * an error calculating the ETA. + * + * Generated from protobuf field .google.protobuf.Timestamp vehicle_dropoff_eta = 4; + */ + protected $vehicle_dropoff_eta = null; + /** + * The vehicle's driving distance (in meters) from the pickup point + * to the drop off point specified in the request. The distance is only + * between the two points and does not include the vehicle location or any + * other points that must be visited before the vehicle visits either the + * pickup point or dropoff point. The value will only be populated when a + * `dropoff_point` is specified in the request. An empty value indicates + * a failure in calculating the distance from the pickup to + * drop off point specified in the request. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_to_dropoff_distance_meters = 5; + */ + protected $vehicle_pickup_to_dropoff_distance_meters = null; + /** + * Required. The trip type of the request that was used to calculate the ETA + * to the pickup point. + * + * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $trip_type = 0; + /** + * The ordered list of waypoints used to calculate the ETA. The list + * includes vehicle location, the pickup points of active + * trips for the vehicle, and the pickup points provided in the + * request. An empty list indicates a failure in calculating ETA for the + * vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Waypoint vehicle_trips_waypoints = 7; + */ + private $vehicle_trips_waypoints; + /** + * Type of the vehicle match. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleMatch.VehicleMatchType vehicle_match_type = 8; + */ + protected $vehicle_match_type = 0; + /** + * The order requested for sorting vehicle matches. Equivalent to + * `ordered_by`. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; + */ + protected $requested_ordered_by = 0; + /** + * The order requested for sorting vehicle matches. Equivalent to + * `requested_ordered_by`. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; + */ + protected $ordered_by = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\Vehicle $vehicle + * Required. A vehicle that matches the request. + * @type \Google\Protobuf\Timestamp $vehicle_pickup_eta + * The vehicle's driving ETA to the pickup point specified in the + * request. An empty value indicates a failure in calculating ETA for the + * vehicle. If `SearchVehiclesRequest.include_back_to_back` was `true` and + * this vehicle has an active trip, `vehicle_pickup_eta` includes the time + * required to complete the current active trip. + * @type \Google\Protobuf\Int32Value $vehicle_pickup_distance_meters + * The distance from the Vehicle's current location to the pickup point + * specified in the request, including any intermediate pickup or dropoff + * points for existing trips. This distance comprises the calculated driving + * (route) distance, plus the straight line distance between the navigation + * end point and the requested pickup point. (The distance between the + * navigation end point and the requested pickup point is typically small.) An + * empty value indicates an error in calculating the distance. + * @type \Google\Protobuf\Int32Value $vehicle_pickup_straight_line_distance_meters + * Required. The straight-line distance between the vehicle and the pickup + * point specified in the request. + * @type \Google\Protobuf\Timestamp $vehicle_dropoff_eta + * The complete vehicle's driving ETA to the drop off point specified in the + * request. The ETA includes stopping at any waypoints before the + * `dropoff_point` specified in the request. The value will only be populated + * when a drop off point is specified in the request. An empty value indicates + * an error calculating the ETA. + * @type \Google\Protobuf\Int32Value $vehicle_pickup_to_dropoff_distance_meters + * The vehicle's driving distance (in meters) from the pickup point + * to the drop off point specified in the request. The distance is only + * between the two points and does not include the vehicle location or any + * other points that must be visited before the vehicle visits either the + * pickup point or dropoff point. The value will only be populated when a + * `dropoff_point` is specified in the request. An empty value indicates + * a failure in calculating the distance from the pickup to + * drop off point specified in the request. + * @type int $trip_type + * Required. The trip type of the request that was used to calculate the ETA + * to the pickup point. + * @type array<\Google\Maps\FleetEngine\V1\Waypoint>|\Google\Protobuf\Internal\RepeatedField $vehicle_trips_waypoints + * The ordered list of waypoints used to calculate the ETA. The list + * includes vehicle location, the pickup points of active + * trips for the vehicle, and the pickup points provided in the + * request. An empty list indicates a failure in calculating ETA for the + * vehicle. + * @type int $vehicle_match_type + * Type of the vehicle match. + * @type int $requested_ordered_by + * The order requested for sorting vehicle matches. Equivalent to + * `ordered_by`. + * @type int $ordered_by + * The order requested for sorting vehicle matches. Equivalent to + * `requested_ordered_by`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * Required. A vehicle that matches the request. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Maps\FleetEngine\V1\Vehicle|null + */ + public function getVehicle() + { + return $this->vehicle; + } + + public function hasVehicle() + { + return isset($this->vehicle); + } + + public function clearVehicle() + { + unset($this->vehicle); + } + + /** + * Required. A vehicle that matches the request. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Maps\FleetEngine\V1\Vehicle $var + * @return $this + */ + public function setVehicle($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Vehicle::class); + $this->vehicle = $var; + + return $this; + } + + /** + * The vehicle's driving ETA to the pickup point specified in the + * request. An empty value indicates a failure in calculating ETA for the + * vehicle. If `SearchVehiclesRequest.include_back_to_back` was `true` and + * this vehicle has an active trip, `vehicle_pickup_eta` includes the time + * required to complete the current active trip. + * + * Generated from protobuf field .google.protobuf.Timestamp vehicle_pickup_eta = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getVehiclePickupEta() + { + return $this->vehicle_pickup_eta; + } + + public function hasVehiclePickupEta() + { + return isset($this->vehicle_pickup_eta); + } + + public function clearVehiclePickupEta() + { + unset($this->vehicle_pickup_eta); + } + + /** + * The vehicle's driving ETA to the pickup point specified in the + * request. An empty value indicates a failure in calculating ETA for the + * vehicle. If `SearchVehiclesRequest.include_back_to_back` was `true` and + * this vehicle has an active trip, `vehicle_pickup_eta` includes the time + * required to complete the current active trip. + * + * Generated from protobuf field .google.protobuf.Timestamp vehicle_pickup_eta = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setVehiclePickupEta($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->vehicle_pickup_eta = $var; + + return $this; + } + + /** + * The distance from the Vehicle's current location to the pickup point + * specified in the request, including any intermediate pickup or dropoff + * points for existing trips. This distance comprises the calculated driving + * (route) distance, plus the straight line distance between the navigation + * end point and the requested pickup point. (The distance between the + * navigation end point and the requested pickup point is typically small.) An + * empty value indicates an error in calculating the distance. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_distance_meters = 3; + * @return \Google\Protobuf\Int32Value|null + */ + public function getVehiclePickupDistanceMeters() + { + return $this->vehicle_pickup_distance_meters; + } + + public function hasVehiclePickupDistanceMeters() + { + return isset($this->vehicle_pickup_distance_meters); + } + + public function clearVehiclePickupDistanceMeters() + { + unset($this->vehicle_pickup_distance_meters); + } + + /** + * Returns the unboxed value from getVehiclePickupDistanceMeters() + + * The distance from the Vehicle's current location to the pickup point + * specified in the request, including any intermediate pickup or dropoff + * points for existing trips. This distance comprises the calculated driving + * (route) distance, plus the straight line distance between the navigation + * end point and the requested pickup point. (The distance between the + * navigation end point and the requested pickup point is typically small.) An + * empty value indicates an error in calculating the distance. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_distance_meters = 3; + * @return int|null + */ + public function getVehiclePickupDistanceMetersUnwrapped() + { + return $this->readWrapperValue("vehicle_pickup_distance_meters"); + } + + /** + * The distance from the Vehicle's current location to the pickup point + * specified in the request, including any intermediate pickup or dropoff + * points for existing trips. This distance comprises the calculated driving + * (route) distance, plus the straight line distance between the navigation + * end point and the requested pickup point. (The distance between the + * navigation end point and the requested pickup point is typically small.) An + * empty value indicates an error in calculating the distance. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_distance_meters = 3; + * @param \Google\Protobuf\Int32Value $var + * @return $this + */ + public function setVehiclePickupDistanceMeters($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->vehicle_pickup_distance_meters = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * The distance from the Vehicle's current location to the pickup point + * specified in the request, including any intermediate pickup or dropoff + * points for existing trips. This distance comprises the calculated driving + * (route) distance, plus the straight line distance between the navigation + * end point and the requested pickup point. (The distance between the + * navigation end point and the requested pickup point is typically small.) An + * empty value indicates an error in calculating the distance. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_distance_meters = 3; + * @param int|null $var + * @return $this + */ + public function setVehiclePickupDistanceMetersUnwrapped($var) + { + $this->writeWrapperValue("vehicle_pickup_distance_meters", $var); + return $this;} + + /** + * Required. The straight-line distance between the vehicle and the pickup + * point specified in the request. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_straight_line_distance_meters = 11 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Int32Value|null + */ + public function getVehiclePickupStraightLineDistanceMeters() + { + return $this->vehicle_pickup_straight_line_distance_meters; + } + + public function hasVehiclePickupStraightLineDistanceMeters() + { + return isset($this->vehicle_pickup_straight_line_distance_meters); + } + + public function clearVehiclePickupStraightLineDistanceMeters() + { + unset($this->vehicle_pickup_straight_line_distance_meters); + } + + /** + * Returns the unboxed value from getVehiclePickupStraightLineDistanceMeters() + + * Required. The straight-line distance between the vehicle and the pickup + * point specified in the request. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_straight_line_distance_meters = 11 [(.google.api.field_behavior) = REQUIRED]; + * @return int|null + */ + public function getVehiclePickupStraightLineDistanceMetersUnwrapped() + { + return $this->readWrapperValue("vehicle_pickup_straight_line_distance_meters"); + } + + /** + * Required. The straight-line distance between the vehicle and the pickup + * point specified in the request. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_straight_line_distance_meters = 11 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\Int32Value $var + * @return $this + */ + public function setVehiclePickupStraightLineDistanceMeters($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->vehicle_pickup_straight_line_distance_meters = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * Required. The straight-line distance between the vehicle and the pickup + * point specified in the request. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_straight_line_distance_meters = 11 [(.google.api.field_behavior) = REQUIRED]; + * @param int|null $var + * @return $this + */ + public function setVehiclePickupStraightLineDistanceMetersUnwrapped($var) + { + $this->writeWrapperValue("vehicle_pickup_straight_line_distance_meters", $var); + return $this;} + + /** + * The complete vehicle's driving ETA to the drop off point specified in the + * request. The ETA includes stopping at any waypoints before the + * `dropoff_point` specified in the request. The value will only be populated + * when a drop off point is specified in the request. An empty value indicates + * an error calculating the ETA. + * + * Generated from protobuf field .google.protobuf.Timestamp vehicle_dropoff_eta = 4; + * @return \Google\Protobuf\Timestamp|null + */ + public function getVehicleDropoffEta() + { + return $this->vehicle_dropoff_eta; + } + + public function hasVehicleDropoffEta() + { + return isset($this->vehicle_dropoff_eta); + } + + public function clearVehicleDropoffEta() + { + unset($this->vehicle_dropoff_eta); + } + + /** + * The complete vehicle's driving ETA to the drop off point specified in the + * request. The ETA includes stopping at any waypoints before the + * `dropoff_point` specified in the request. The value will only be populated + * when a drop off point is specified in the request. An empty value indicates + * an error calculating the ETA. + * + * Generated from protobuf field .google.protobuf.Timestamp vehicle_dropoff_eta = 4; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setVehicleDropoffEta($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->vehicle_dropoff_eta = $var; + + return $this; + } + + /** + * The vehicle's driving distance (in meters) from the pickup point + * to the drop off point specified in the request. The distance is only + * between the two points and does not include the vehicle location or any + * other points that must be visited before the vehicle visits either the + * pickup point or dropoff point. The value will only be populated when a + * `dropoff_point` is specified in the request. An empty value indicates + * a failure in calculating the distance from the pickup to + * drop off point specified in the request. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_to_dropoff_distance_meters = 5; + * @return \Google\Protobuf\Int32Value|null + */ + public function getVehiclePickupToDropoffDistanceMeters() + { + return $this->vehicle_pickup_to_dropoff_distance_meters; + } + + public function hasVehiclePickupToDropoffDistanceMeters() + { + return isset($this->vehicle_pickup_to_dropoff_distance_meters); + } + + public function clearVehiclePickupToDropoffDistanceMeters() + { + unset($this->vehicle_pickup_to_dropoff_distance_meters); + } + + /** + * Returns the unboxed value from getVehiclePickupToDropoffDistanceMeters() + + * The vehicle's driving distance (in meters) from the pickup point + * to the drop off point specified in the request. The distance is only + * between the two points and does not include the vehicle location or any + * other points that must be visited before the vehicle visits either the + * pickup point or dropoff point. The value will only be populated when a + * `dropoff_point` is specified in the request. An empty value indicates + * a failure in calculating the distance from the pickup to + * drop off point specified in the request. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_to_dropoff_distance_meters = 5; + * @return int|null + */ + public function getVehiclePickupToDropoffDistanceMetersUnwrapped() + { + return $this->readWrapperValue("vehicle_pickup_to_dropoff_distance_meters"); + } + + /** + * The vehicle's driving distance (in meters) from the pickup point + * to the drop off point specified in the request. The distance is only + * between the two points and does not include the vehicle location or any + * other points that must be visited before the vehicle visits either the + * pickup point or dropoff point. The value will only be populated when a + * `dropoff_point` is specified in the request. An empty value indicates + * a failure in calculating the distance from the pickup to + * drop off point specified in the request. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_to_dropoff_distance_meters = 5; + * @param \Google\Protobuf\Int32Value $var + * @return $this + */ + public function setVehiclePickupToDropoffDistanceMeters($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->vehicle_pickup_to_dropoff_distance_meters = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * The vehicle's driving distance (in meters) from the pickup point + * to the drop off point specified in the request. The distance is only + * between the two points and does not include the vehicle location or any + * other points that must be visited before the vehicle visits either the + * pickup point or dropoff point. The value will only be populated when a + * `dropoff_point` is specified in the request. An empty value indicates + * a failure in calculating the distance from the pickup to + * drop off point specified in the request. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_to_dropoff_distance_meters = 5; + * @param int|null $var + * @return $this + */ + public function setVehiclePickupToDropoffDistanceMetersUnwrapped($var) + { + $this->writeWrapperValue("vehicle_pickup_to_dropoff_distance_meters", $var); + return $this;} + + /** + * Required. The trip type of the request that was used to calculate the ETA + * to the pickup point. + * + * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getTripType() + { + return $this->trip_type; + } + + /** + * Required. The trip type of the request that was used to calculate the ETA + * to the pickup point. + * + * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setTripType($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\TripType::class); + $this->trip_type = $var; + + return $this; + } + + /** + * The ordered list of waypoints used to calculate the ETA. The list + * includes vehicle location, the pickup points of active + * trips for the vehicle, and the pickup points provided in the + * request. An empty list indicates a failure in calculating ETA for the + * vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Waypoint vehicle_trips_waypoints = 7; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getVehicleTripsWaypoints() + { + return $this->vehicle_trips_waypoints; + } + + /** + * The ordered list of waypoints used to calculate the ETA. The list + * includes vehicle location, the pickup points of active + * trips for the vehicle, and the pickup points provided in the + * request. An empty list indicates a failure in calculating ETA for the + * vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Waypoint vehicle_trips_waypoints = 7; + * @param array<\Google\Maps\FleetEngine\V1\Waypoint>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setVehicleTripsWaypoints($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\Waypoint::class); + $this->vehicle_trips_waypoints = $arr; + + return $this; + } + + /** + * Type of the vehicle match. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleMatch.VehicleMatchType vehicle_match_type = 8; + * @return int + */ + public function getVehicleMatchType() + { + return $this->vehicle_match_type; + } + + /** + * Type of the vehicle match. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleMatch.VehicleMatchType vehicle_match_type = 8; + * @param int $var + * @return $this + */ + public function setVehicleMatchType($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\VehicleMatch\VehicleMatchType::class); + $this->vehicle_match_type = $var; + + return $this; + } + + /** + * The order requested for sorting vehicle matches. Equivalent to + * `ordered_by`. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; + * @return int + */ + public function getRequestedOrderedBy() + { + return $this->requested_ordered_by; + } + + /** + * The order requested for sorting vehicle matches. Equivalent to + * `ordered_by`. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; + * @param int $var + * @return $this + */ + public function setRequestedOrderedBy($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest\VehicleMatchOrder::class); + $this->requested_ordered_by = $var; + + return $this; + } + + /** + * The order requested for sorting vehicle matches. Equivalent to + * `requested_ordered_by`. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; + * @return int + */ + public function getOrderedBy() + { + return $this->ordered_by; + } + + /** + * The order requested for sorting vehicle matches. Equivalent to + * `requested_ordered_by`. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; + * @param int $var + * @return $this + */ + public function setOrderedBy($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest\VehicleMatchOrder::class); + $this->ordered_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch/VehicleMatchType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch/VehicleMatchType.php new file mode 100644 index 000000000000..e578da5397d6 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch/VehicleMatchType.php @@ -0,0 +1,83 @@ +maps.fleetengine.v1.VehicleMatch.VehicleMatchType + */ +class VehicleMatchType +{ + /** + * Unknown vehicle match type + * + * Generated from protobuf enum UNKNOWN = 0; + */ + const UNKNOWN = 0; + /** + * The vehicle currently has no trip assigned to it and can proceed to the + * pickup point. + * + * Generated from protobuf enum EXCLUSIVE = 1; + */ + const EXCLUSIVE = 1; + /** + * The vehicle is currently assigned to a trip, but can proceed to the + * pickup point after completing the in-progress trip. ETA and distance + * calculations take the existing trip into account. + * + * Generated from protobuf enum BACK_TO_BACK = 2; + */ + const BACK_TO_BACK = 2; + /** + * The vehicle has sufficient capacity for a shared ride. + * + * Generated from protobuf enum CARPOOL = 3; + */ + const CARPOOL = 3; + /** + * The vehicle will finish its current, active trip before proceeding to the + * pickup point. ETA and distance calculations take the existing trip into + * account. + * + * Generated from protobuf enum CARPOOL_BACK_TO_BACK = 4; + */ + const CARPOOL_BACK_TO_BACK = 4; + + private static $valueToName = [ + self::UNKNOWN => 'UNKNOWN', + self::EXCLUSIVE => 'EXCLUSIVE', + self::BACK_TO_BACK => 'BACK_TO_BACK', + self::CARPOOL => 'CARPOOL', + self::CARPOOL_BACK_TO_BACK => 'CARPOOL_BACK_TO_BACK', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(VehicleMatchType::class, \Google\Maps\FleetEngine\V1\VehicleMatch_VehicleMatchType::class); + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleState.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleState.php new file mode 100644 index 000000000000..b2964c65ab9f --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleState.php @@ -0,0 +1,62 @@ +maps.fleetengine.v1.VehicleState + */ +class VehicleState +{ + /** + * Default, used for unspecified or unrecognized vehicle states. + * + * Generated from protobuf enum UNKNOWN_VEHICLE_STATE = 0; + */ + const UNKNOWN_VEHICLE_STATE = 0; + /** + * The vehicle is not accepting new trips. Note: the vehicle may continue to + * operate in this state while completing a trip assigned to it. + * + * Generated from protobuf enum OFFLINE = 1; + */ + const OFFLINE = 1; + /** + * The vehicle is accepting new trips. + * + * Generated from protobuf enum ONLINE = 2; + */ + const ONLINE = 2; + + private static $valueToName = [ + self::UNKNOWN_VEHICLE_STATE => 'UNKNOWN_VEHICLE_STATE', + self::OFFLINE => 'OFFLINE', + self::ONLINE => 'ONLINE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering.php new file mode 100644 index 000000000000..ccaba2879f9f --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering.php @@ -0,0 +1,84 @@ +maps.fleetengine.v1.VisualTrafficReportPolylineRendering + */ +class VisualTrafficReportPolylineRendering extends \Google\Protobuf\Internal\Message +{ + /** + * 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. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch road_stretch = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $road_stretch; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering\RoadStretch>|\Google\Protobuf\Internal\RepeatedField $road_stretch + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); + parent::__construct($data); + } + + /** + * 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. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch road_stretch = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRoadStretch() + { + return $this->road_stretch; + } + + /** + * 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. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch road_stretch = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering\RoadStretch>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRoadStretch($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering\RoadStretch::class); + $this->road_stretch = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch.php new file mode 100644 index 000000000000..c0504a6c4426 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch.php @@ -0,0 +1,142 @@ +maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch + */ +class RoadStretch extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The style to apply. + * + * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch.Style style = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $style = 0; + /** + * Required. The style should be applied between `[offset_meters, + * offset_meters + length_meters)`. + * + * Generated from protobuf field int32 offset_meters = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $offset_meters = 0; + /** + * Required. The length of the path where to apply the style. + * + * Generated from protobuf field int32 length_meters = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $length_meters = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $style + * Required. The style to apply. + * @type int $offset_meters + * Required. The style should be applied between `[offset_meters, + * offset_meters + length_meters)`. + * @type int $length_meters + * Required. The length of the path where to apply the style. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); + parent::__construct($data); + } + + /** + * Required. The style to apply. + * + * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch.Style style = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getStyle() + { + return $this->style; + } + + /** + * Required. The style to apply. + * + * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch.Style style = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setStyle($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering\RoadStretch\Style::class); + $this->style = $var; + + return $this; + } + + /** + * Required. The style should be applied between `[offset_meters, + * offset_meters + length_meters)`. + * + * Generated from protobuf field int32 offset_meters = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getOffsetMeters() + { + return $this->offset_meters; + } + + /** + * Required. The style should be applied between `[offset_meters, + * offset_meters + length_meters)`. + * + * Generated from protobuf field int32 offset_meters = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setOffsetMeters($var) + { + GPBUtil::checkInt32($var); + $this->offset_meters = $var; + + return $this; + } + + /** + * Required. The length of the path where to apply the style. + * + * Generated from protobuf field int32 length_meters = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getLengthMeters() + { + return $this->length_meters; + } + + /** + * Required. The length of the path where to apply the style. + * + * Generated from protobuf field int32 length_meters = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setLengthMeters($var) + { + GPBUtil::checkInt32($var); + $this->length_meters = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RoadStretch::class, \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering_RoadStretch::class); + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch/Style.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch/Style.php new file mode 100644 index 000000000000..a712c06ecdce --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch/Style.php @@ -0,0 +1,64 @@ +maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch.Style + */ +class Style +{ + /** + * No style selected. + * + * Generated from protobuf enum STYLE_UNSPECIFIED = 0; + */ + const STYLE_UNSPECIFIED = 0; + /** + * Traffic is slowing down. + * + * Generated from protobuf enum SLOWER_TRAFFIC = 1; + */ + const SLOWER_TRAFFIC = 1; + /** + * There is a traffic jam. + * + * Generated from protobuf enum TRAFFIC_JAM = 2; + */ + const TRAFFIC_JAM = 2; + + private static $valueToName = [ + self::STYLE_UNSPECIFIED => 'STYLE_UNSPECIFIED', + self::SLOWER_TRAFFIC => 'SLOWER_TRAFFIC', + self::TRAFFIC_JAM => 'TRAFFIC_JAM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Style::class, \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering_RoadStretch_Style::class); + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Waypoint.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Waypoint.php new file mode 100644 index 000000000000..06827e4e93bc --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Waypoint.php @@ -0,0 +1,123 @@ +maps.fleetengine.v1.Waypoint + */ +class Waypoint extends \Google\Protobuf\Internal\Message +{ + /** + * The location of this waypoint. + * + * Generated from protobuf field .google.type.LatLng lat_lng = 1; + */ + protected $lat_lng = null; + /** + * The estimated time that the vehicle will arrive at this waypoint. + * + * Generated from protobuf field .google.protobuf.Timestamp eta = 2; + */ + protected $eta = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Type\LatLng $lat_lng + * The location of this waypoint. + * @type \Google\Protobuf\Timestamp $eta + * The estimated time that the vehicle will arrive at this waypoint. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * The location of this waypoint. + * + * Generated from protobuf field .google.type.LatLng lat_lng = 1; + * @return \Google\Type\LatLng|null + */ + public function getLatLng() + { + return $this->lat_lng; + } + + public function hasLatLng() + { + return isset($this->lat_lng); + } + + public function clearLatLng() + { + unset($this->lat_lng); + } + + /** + * The location of this waypoint. + * + * Generated from protobuf field .google.type.LatLng lat_lng = 1; + * @param \Google\Type\LatLng $var + * @return $this + */ + public function setLatLng($var) + { + GPBUtil::checkMessage($var, \Google\Type\LatLng::class); + $this->lat_lng = $var; + + return $this; + } + + /** + * The estimated time that the vehicle will arrive at this waypoint. + * + * Generated from protobuf field .google.protobuf.Timestamp eta = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEta() + { + return $this->eta; + } + + public function hasEta() + { + return isset($this->eta); + } + + public function clearEta() + { + unset($this->eta); + } + + /** + * The estimated time that the vehicle will arrive at this waypoint. + * + * Generated from protobuf field .google.protobuf.Timestamp eta = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEta($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->eta = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/WaypointType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/WaypointType.php new file mode 100644 index 000000000000..7e3a3120d30b --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/WaypointType.php @@ -0,0 +1,68 @@ +maps.fleetengine.v1.WaypointType + */ +class WaypointType +{ + /** + * Unknown or unspecified waypoint type. + * + * Generated from protobuf enum UNKNOWN_WAYPOINT_TYPE = 0; + */ + const UNKNOWN_WAYPOINT_TYPE = 0; + /** + * Waypoints for picking up riders or items. + * + * Generated from protobuf enum PICKUP_WAYPOINT_TYPE = 1; + */ + const PICKUP_WAYPOINT_TYPE = 1; + /** + * Waypoints for dropping off riders or items. + * + * Generated from protobuf enum DROP_OFF_WAYPOINT_TYPE = 2; + */ + const DROP_OFF_WAYPOINT_TYPE = 2; + /** + * Waypoints for intermediate destinations in a multi-destination trip. + * + * Generated from protobuf enum INTERMEDIATE_DESTINATION_WAYPOINT_TYPE = 3; + */ + const INTERMEDIATE_DESTINATION_WAYPOINT_TYPE = 3; + + private static $valueToName = [ + self::UNKNOWN_WAYPOINT_TYPE => 'UNKNOWN_WAYPOINT_TYPE', + self::PICKUP_WAYPOINT_TYPE => 'PICKUP_WAYPOINT_TYPE', + self::DROP_OFF_WAYPOINT_TYPE => 'DROP_OFF_WAYPOINT_TYPE', + self::INTERMEDIATE_DESTINATION_WAYPOINT_TYPE => 'INTERMEDIATE_DESTINATION_WAYPOINT_TYPE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/create_trip.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/create_trip.php new file mode 100644 index 000000000000..f5eeb732199a --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/create_trip.php @@ -0,0 +1,87 @@ +setParent($formattedParent) + ->setTripId($tripId) + ->setTrip($trip); + + // Call the API and handle any network failures. + try { + /** @var Trip $response */ + $response = $tripServiceClient->createTrip($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = TripServiceClient::tripName('[PROVIDER]', '[TRIP]'); + $tripId = '[TRIP_ID]'; + + create_trip_sample($formattedParent, $tripId); +} +// [END fleetengine_v1_generated_TripService_CreateTrip_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/get_trip.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/get_trip.php new file mode 100644 index 000000000000..8a9dc4e2c9ff --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/get_trip.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Trip $response */ + $response = $tripServiceClient->getTrip($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = TripServiceClient::tripName('[PROVIDER]', '[TRIP]'); + + get_trip_sample($formattedName); +} +// [END fleetengine_v1_generated_TripService_GetTrip_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/report_billable_trip.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/report_billable_trip.php new file mode 100644 index 000000000000..1a87dbda4869 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/report_billable_trip.php @@ -0,0 +1,76 @@ +setName($name) + ->setCountryCode($countryCode); + + // Call the API and handle any network failures. + try { + $tripServiceClient->reportBillableTrip($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $name = '[NAME]'; + $countryCode = '[COUNTRY_CODE]'; + + report_billable_trip_sample($name, $countryCode); +} +// [END fleetengine_v1_generated_TripService_ReportBillableTrip_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/search_trips.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/search_trips.php new file mode 100644 index 000000000000..726d56e085b1 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/search_trips.php @@ -0,0 +1,78 @@ +setParent($parent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $tripServiceClient->searchTrips($request); + + /** @var Trip $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $parent = '[PARENT]'; + + search_trips_sample($parent); +} +// [END fleetengine_v1_generated_TripService_SearchTrips_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/update_trip.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/update_trip.php new file mode 100644 index 000000000000..82e653ec835f --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/update_trip.php @@ -0,0 +1,78 @@ +setName($name) + ->setTrip($trip) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var Trip $response */ + $response = $tripServiceClient->updateTrip($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $name = '[NAME]'; + + update_trip_sample($name); +} +// [END fleetengine_v1_generated_TripService_UpdateTrip_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/create_vehicle.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/create_vehicle.php new file mode 100644 index 000000000000..ef62555f9cc2 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/create_vehicle.php @@ -0,0 +1,116 @@ +setVehicleType($vehicleVehicleType); + $request = (new CreateVehicleRequest()) + ->setParent($parent) + ->setVehicleId($vehicleId) + ->setVehicle($vehicle); + + // Call the API and handle any network failures. + try { + /** @var Vehicle $response */ + $response = $vehicleServiceClient->createVehicle($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $parent = '[PARENT]'; + $vehicleId = '[VEHICLE_ID]'; + + create_vehicle_sample($parent, $vehicleId); +} +// [END fleetengine_v1_generated_VehicleService_CreateVehicle_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/get_vehicle.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/get_vehicle.php new file mode 100644 index 000000000000..7e0840142f46 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/get_vehicle.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Vehicle $response */ + $response = $vehicleServiceClient->getVehicle($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = VehicleServiceClient::vehicleName('[PROVIDER]', '[VEHICLE]'); + + get_vehicle_sample($formattedName); +} +// [END fleetengine_v1_generated_VehicleService_GetVehicle_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/list_vehicles.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/list_vehicles.php new file mode 100644 index 000000000000..0d0629cd08e6 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/list_vehicles.php @@ -0,0 +1,85 @@ +setParent($parent) + ->setVehicleTypeCategories($vehicleTypeCategories); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $vehicleServiceClient->listVehicles($request); + + /** @var Vehicle $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $parent = '[PARENT]'; + $vehicleTypeCategoriesElement = Category::UNKNOWN; + + list_vehicles_sample($parent, $vehicleTypeCategoriesElement); +} +// [END fleetengine_v1_generated_VehicleService_ListVehicles_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/search_vehicles.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/search_vehicles.php new file mode 100644 index 000000000000..0671afa2ba59 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/search_vehicles.php @@ -0,0 +1,120 @@ +setPoint($pickupPointPoint); + $tripTypes = [$tripTypesElement,]; + $vehicleTypes = [new VehicleType()]; + $request = (new SearchVehiclesRequest()) + ->setParent($parent) + ->setPickupPoint($pickupPoint) + ->setPickupRadiusMeters($pickupRadiusMeters) + ->setCount($count) + ->setMinimumCapacity($minimumCapacity) + ->setTripTypes($tripTypes) + ->setVehicleTypes($vehicleTypes) + ->setOrderBy($orderBy); + + // Call the API and handle any network failures. + try { + /** @var SearchVehiclesResponse $response */ + $response = $vehicleServiceClient->searchVehicles($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $parent = '[PARENT]'; + $pickupRadiusMeters = 0; + $count = 0; + $minimumCapacity = 0; + $tripTypesElement = TripType::UNKNOWN_TRIP_TYPE; + $orderBy = VehicleMatchOrder::UNKNOWN_VEHICLE_MATCH_ORDER; + + search_vehicles_sample( + $parent, + $pickupRadiusMeters, + $count, + $minimumCapacity, + $tripTypesElement, + $orderBy + ); +} +// [END fleetengine_v1_generated_VehicleService_SearchVehicles_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle.php new file mode 100644 index 000000000000..740fb26c6caa --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle.php @@ -0,0 +1,98 @@ +setVehicleType($vehicleVehicleType); + $updateMask = new FieldMask(); + $request = (new UpdateVehicleRequest()) + ->setName($name) + ->setVehicle($vehicle) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var Vehicle $response */ + $response = $vehicleServiceClient->updateVehicle($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $name = '[NAME]'; + + update_vehicle_sample($name); +} +// [END fleetengine_v1_generated_VehicleService_UpdateVehicle_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle_attributes.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle_attributes.php new file mode 100644 index 000000000000..9c8ed7a0c76a --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle_attributes.php @@ -0,0 +1,80 @@ +setName($name) + ->setAttributes($attributes); + + // Call the API and handle any network failures. + try { + /** @var UpdateVehicleAttributesResponse $response */ + $response = $vehicleServiceClient->updateVehicleAttributes($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $name = '[NAME]'; + + update_vehicle_attributes_sample($name); +} +// [END fleetengine_v1_generated_VehicleService_UpdateVehicleAttributes_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/TripServiceClient.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/TripServiceClient.php new file mode 100644 index 000000000000..3dc8954fe608 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/TripServiceClient.php @@ -0,0 +1,348 @@ + createTripAsync(CreateTripRequest $request, array $optionalArgs = []) + * @method PromiseInterface getTripAsync(GetTripRequest $request, array $optionalArgs = []) + * @method PromiseInterface reportBillableTripAsync(ReportBillableTripRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchTripsAsync(SearchTripsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateTripAsync(UpdateTripRequest $request, array $optionalArgs = []) + */ +final class TripServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'maps.fleetengine.v1.TripService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'fleetengine.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'fleetengine.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/trip_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/trip_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/trip_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/trip_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a trip + * resource. + * + * @param string $provider + * @param string $trip + * + * @return string The formatted trip resource. + */ + public static function tripName(string $provider, string $trip): string + { + return self::getPathTemplate('trip')->render([ + 'provider' => $provider, + 'trip' => $trip, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - trip: providers/{provider}/trips/{trip} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'fleetengine.googleapis.com:443'. + * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * } + * + * @throws ValidationException + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Creates a trip in the Fleet Engine and returns the new trip. + * + * The async variant is {@see TripServiceClient::createTripAsync()} . + * + * @example samples/V1/TripServiceClient/create_trip.php + * + * @param CreateTripRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Trip + * + * @throws ApiException Thrown if the API call fails. + */ + public function createTrip(CreateTripRequest $request, array $callOptions = []): Trip + { + return $this->startApiCall('CreateTrip', $request, $callOptions)->wait(); + } + + /** + * Get information about a single trip. + * + * The async variant is {@see TripServiceClient::getTripAsync()} . + * + * @example samples/V1/TripServiceClient/get_trip.php + * + * @param GetTripRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Trip + * + * @throws ApiException Thrown if the API call fails. + */ + public function getTrip(GetTripRequest $request, array $callOptions = []): Trip + { + return $this->startApiCall('GetTrip', $request, $callOptions)->wait(); + } + + /** + * Report billable trip usage. + * + * The async variant is {@see TripServiceClient::reportBillableTripAsync()} . + * + * @example samples/V1/TripServiceClient/report_billable_trip.php + * + * @param ReportBillableTripRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function reportBillableTrip(ReportBillableTripRequest $request, array $callOptions = []): void + { + $this->startApiCall('ReportBillableTrip', $request, $callOptions)->wait(); + } + + /** + * Get all the trips for a specific vehicle. + * + * The async variant is {@see TripServiceClient::searchTripsAsync()} . + * + * @example samples/V1/TripServiceClient/search_trips.php + * + * @param SearchTripsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function searchTrips(SearchTripsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('SearchTrips', $request, $callOptions); + } + + /** + * Updates trip data. + * + * The async variant is {@see TripServiceClient::updateTripAsync()} . + * + * @example samples/V1/TripServiceClient/update_trip.php + * + * @param UpdateTripRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Trip + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateTrip(UpdateTripRequest $request, array $callOptions = []): Trip + { + return $this->startApiCall('UpdateTrip', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/VehicleServiceClient.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/VehicleServiceClient.php new file mode 100644 index 000000000000..c341e83579a1 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/VehicleServiceClient.php @@ -0,0 +1,430 @@ + createVehicleAsync(CreateVehicleRequest $request, array $optionalArgs = []) + * @method PromiseInterface getVehicleAsync(GetVehicleRequest $request, array $optionalArgs = []) + * @method PromiseInterface listVehiclesAsync(ListVehiclesRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchVehiclesAsync(SearchVehiclesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateVehicleAsync(UpdateVehicleRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateVehicleAttributesAsync(UpdateVehicleAttributesRequest $request, array $optionalArgs = []) + */ +final class VehicleServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'maps.fleetengine.v1.VehicleService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'fleetengine.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'fleetengine.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/vehicle_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/vehicle_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/vehicle_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/vehicle_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a vehicle + * resource. + * + * @param string $provider + * @param string $vehicle + * + * @return string The formatted vehicle resource. + */ + public static function vehicleName(string $provider, string $vehicle): string + { + return self::getPathTemplate('vehicle')->render([ + 'provider' => $provider, + 'vehicle' => $vehicle, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - vehicle: providers/{provider}/vehicles/{vehicle} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'fleetengine.googleapis.com:443'. + * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * } + * + * @throws ValidationException + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Instantiates a new vehicle associated with an on-demand rideshare or + * deliveries provider. Each `Vehicle` must have a unique vehicle ID. + * + * The following `Vehicle` fields are required when creating a `Vehicle`: + * + * * `vehicleState` + * * `supportedTripTypes` + * * `maximumCapacity` + * * `vehicleType` + * + * The following `Vehicle` fields are ignored when creating a `Vehicle`: + * + * * `name` + * * `currentTrips` + * * `availableCapacity` + * * `current_route_segment` + * * `current_route_segment_end_point` + * * `current_route_segment_version` + * * `current_route_segment_traffic` + * * `route` + * * `waypoints` + * * `waypoints_version` + * * `remaining_distance_meters` + * * `remaining_time_seconds` + * * `eta_to_next_waypoint` + * * `navigation_status` + * + * All other fields are optional and used if provided. + * + * The async variant is {@see VehicleServiceClient::createVehicleAsync()} . + * + * @example samples/V1/VehicleServiceClient/create_vehicle.php + * + * @param CreateVehicleRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Vehicle + * + * @throws ApiException Thrown if the API call fails. + */ + public function createVehicle(CreateVehicleRequest $request, array $callOptions = []): Vehicle + { + return $this->startApiCall('CreateVehicle', $request, $callOptions)->wait(); + } + + /** + * Returns a vehicle from the Fleet Engine. + * + * The async variant is {@see VehicleServiceClient::getVehicleAsync()} . + * + * @example samples/V1/VehicleServiceClient/get_vehicle.php + * + * @param GetVehicleRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Vehicle + * + * @throws ApiException Thrown if the API call fails. + */ + public function getVehicle(GetVehicleRequest $request, array $callOptions = []): Vehicle + { + return $this->startApiCall('GetVehicle', $request, $callOptions)->wait(); + } + + /** + * Returns a paginated list of vehicles associated with + * a provider that match the request options. + * + * The async variant is {@see VehicleServiceClient::listVehiclesAsync()} . + * + * @example samples/V1/VehicleServiceClient/list_vehicles.php + * + * @param ListVehiclesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listVehicles(ListVehiclesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListVehicles', $request, $callOptions); + } + + /** + * Returns a list of vehicles that match the request options. + * + * The async variant is {@see VehicleServiceClient::searchVehiclesAsync()} . + * + * @example samples/V1/VehicleServiceClient/search_vehicles.php + * + * @param SearchVehiclesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return SearchVehiclesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function searchVehicles(SearchVehiclesRequest $request, array $callOptions = []): SearchVehiclesResponse + { + return $this->startApiCall('SearchVehicles', $request, $callOptions)->wait(); + } + + /** + * Writes updated vehicle data to the Fleet Engine. + * + * When updating a `Vehicle`, the following fields cannot be updated since + * they are managed by the server: + * + * * `currentTrips` + * * `availableCapacity` + * * `current_route_segment_version` + * * `waypoints_version` + * + * The vehicle `name` also cannot be updated. + * + * If the `attributes` field is updated, **all** the vehicle's attributes are + * replaced with the attributes provided in the request. If you want to update + * only some attributes, see the `UpdateVehicleAttributes` method. Likewise, + * the `waypoints` field can be updated, but must contain all the waypoints + * currently on the vehicle, and no other waypoints. + * + * The async variant is {@see VehicleServiceClient::updateVehicleAsync()} . + * + * @example samples/V1/VehicleServiceClient/update_vehicle.php + * + * @param UpdateVehicleRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Vehicle + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateVehicle(UpdateVehicleRequest $request, array $callOptions = []): Vehicle + { + return $this->startApiCall('UpdateVehicle', $request, $callOptions)->wait(); + } + + /** + * Partially updates a vehicle's attributes. + * Only the attributes mentioned in the request will be updated, other + * attributes will NOT be altered. Note: this is different in `UpdateVehicle`, + * where the whole `attributes` field will be replaced by the one in + * `UpdateVehicleRequest`, attributes not in the request would be removed. + * + * The async variant is {@see VehicleServiceClient::updateVehicleAttributesAsync()} + * . + * + * @example samples/V1/VehicleServiceClient/update_vehicle_attributes.php + * + * @param UpdateVehicleAttributesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return UpdateVehicleAttributesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateVehicleAttributes(UpdateVehicleAttributesRequest $request, array $callOptions = []): UpdateVehicleAttributesResponse + { + return $this->startApiCall('UpdateVehicleAttributes', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/gapic_metadata.json b/owl-bot-staging/MapsFleetEngine/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..280373142e1a --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/src/V1/gapic_metadata.json @@ -0,0 +1,82 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "maps.fleetengine.v1", + "libraryPackage": "Google\\Maps\\FleetEngine\\V1", + "services": { + "TripService": { + "clients": { + "grpc": { + "libraryClient": "TripServiceGapicClient", + "rpcs": { + "CreateTrip": { + "methods": [ + "createTrip" + ] + }, + "GetTrip": { + "methods": [ + "getTrip" + ] + }, + "ReportBillableTrip": { + "methods": [ + "reportBillableTrip" + ] + }, + "SearchTrips": { + "methods": [ + "searchTrips" + ] + }, + "UpdateTrip": { + "methods": [ + "updateTrip" + ] + } + } + } + } + }, + "VehicleService": { + "clients": { + "grpc": { + "libraryClient": "VehicleServiceGapicClient", + "rpcs": { + "CreateVehicle": { + "methods": [ + "createVehicle" + ] + }, + "GetVehicle": { + "methods": [ + "getVehicle" + ] + }, + "ListVehicles": { + "methods": [ + "listVehicles" + ] + }, + "SearchVehicles": { + "methods": [ + "searchVehicles" + ] + }, + "UpdateVehicle": { + "methods": [ + "updateVehicle" + ] + }, + "UpdateVehicleAttributes": { + "methods": [ + "updateVehicleAttributes" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_client_config.json b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_client_config.json new file mode 100644 index 000000000000..baf7c028dc49 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_client_config.json @@ -0,0 +1,59 @@ +{ + "interfaces": { + "maps.fleetengine.v1.TripService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 15000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 15000, + "total_timeout_millis": 15000 + } + }, + "methods": { + "CreateTrip": { + "timeout_millis": 15000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetTrip": { + "timeout_millis": 15000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ReportBillableTrip": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SearchTrips": { + "timeout_millis": 15000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateTrip": { + "timeout_millis": 15000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_descriptor_config.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_descriptor_config.php new file mode 100644 index 000000000000..1e3977139b4b --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_descriptor_config.php @@ -0,0 +1,114 @@ + [ + 'maps.fleetengine.v1.TripService' => [ + 'CreateTrip' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Maps\FleetEngine\V1\Trip', + 'headerParams' => [ + [ + 'keyName' => 'provider_id', + 'fieldAccessors' => [ + 'getParent', + ], + 'matchers' => [ + '/^(?providers\/[^\/]+)$/', + ], + ], + ], + ], + 'GetTrip' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Maps\FleetEngine\V1\Trip', + 'headerParams' => [ + [ + 'keyName' => 'provider_id', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?providers\/[^\/]+)$/', + ], + ], + ], + ], + 'ReportBillableTrip' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'provider_id', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?providers\/[^\/]+)$/', + ], + ], + ], + ], + 'SearchTrips' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getTrips', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Maps\FleetEngine\V1\SearchTripsResponse', + 'headerParams' => [ + [ + 'keyName' => 'provider_id', + 'fieldAccessors' => [ + 'getParent', + ], + 'matchers' => [ + '/^(?providers\/[^\/]+)$/', + ], + ], + ], + ], + 'UpdateTrip' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Maps\FleetEngine\V1\Trip', + 'headerParams' => [ + [ + 'keyName' => 'provider_id', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?providers\/[^\/]+)$/', + ], + ], + ], + ], + 'templateMap' => [ + 'trip' => 'providers/{provider}/trips/{trip}', + ], + ], + ], +]; diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_rest_client_config.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_rest_client_config.php new file mode 100644 index 000000000000..961afdee4c09 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_rest_client_config.php @@ -0,0 +1,94 @@ + [ + 'maps.fleetengine.v1.TripService' => [ + 'CreateTrip' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=providers/*}/trips', + 'body' => 'trip', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'trip_id', + ], + ], + 'GetTrip' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=providers/*/trips/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ReportBillableTrip' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=providers/*/billableTrips/*}:report', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'SearchTrips' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=providers/*}/trips:search', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateTrip' => [ + 'method' => 'put', + 'uriTemplate' => '/v1/{name=providers/*/trips/*}', + 'body' => 'trip', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_client_config.json b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_client_config.json new file mode 100644 index 000000000000..8d97cde39440 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_client_config.json @@ -0,0 +1,64 @@ +{ + "interfaces": { + "maps.fleetengine.v1.VehicleService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 15000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 15000, + "total_timeout_millis": 15000 + } + }, + "methods": { + "CreateVehicle": { + "timeout_millis": 15000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetVehicle": { + "timeout_millis": 15000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListVehicles": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SearchVehicles": { + "timeout_millis": 15000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateVehicle": { + "timeout_millis": 15000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateVehicleAttributes": { + "timeout_millis": 15000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_descriptor_config.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_descriptor_config.php new file mode 100644 index 000000000000..ec49a409478c --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_descriptor_config.php @@ -0,0 +1,129 @@ + [ + 'maps.fleetengine.v1.VehicleService' => [ + 'CreateVehicle' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Maps\FleetEngine\V1\Vehicle', + 'headerParams' => [ + [ + 'keyName' => 'provider_id', + 'fieldAccessors' => [ + 'getParent', + ], + 'matchers' => [ + '/^(?providers\/[^\/]+)$/', + ], + ], + ], + ], + 'GetVehicle' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Maps\FleetEngine\V1\Vehicle', + 'headerParams' => [ + [ + 'keyName' => 'provider_id', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?providers\/[^\/]+)$/', + ], + ], + ], + ], + 'ListVehicles' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getVehicles', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Maps\FleetEngine\V1\ListVehiclesResponse', + 'headerParams' => [ + [ + 'keyName' => 'provider_id', + 'fieldAccessors' => [ + 'getParent', + ], + 'matchers' => [ + '/^(?providers\/[^\/]+)$/', + ], + ], + ], + ], + 'SearchVehicles' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Maps\FleetEngine\V1\SearchVehiclesResponse', + 'headerParams' => [ + [ + 'keyName' => 'provider_id', + 'fieldAccessors' => [ + 'getParent', + ], + 'matchers' => [ + '/^(?providers\/[^\/]+)$/', + ], + ], + ], + ], + 'UpdateVehicle' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Maps\FleetEngine\V1\Vehicle', + 'headerParams' => [ + [ + 'keyName' => 'provider_id', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?providers\/[^\/]+)$/', + ], + ], + ], + ], + 'UpdateVehicleAttributes' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Maps\FleetEngine\V1\UpdateVehicleAttributesResponse', + 'headerParams' => [ + [ + 'keyName' => 'provider_id', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?providers\/[^\/]+)$/', + ], + ], + ], + ], + 'templateMap' => [ + 'vehicle' => 'providers/{provider}/vehicles/{vehicle}', + ], + ], + ], +]; diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_rest_client_config.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_rest_client_config.php new file mode 100644 index 000000000000..ac8a656607f0 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_rest_client_config.php @@ -0,0 +1,108 @@ + [ + 'maps.fleetengine.v1.VehicleService' => [ + 'CreateVehicle' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=providers/*}/vehicles', + 'body' => 'vehicle', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'vehicle_id', + ], + ], + 'GetVehicle' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=providers/*/vehicles/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListVehicles' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=providers/*}/vehicles', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'vehicle_type_categories', + ], + ], + 'SearchVehicles' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=providers/*}/vehicles:search', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateVehicle' => [ + 'method' => 'put', + 'uriTemplate' => '/v1/{name=providers/*/vehicles/*}', + 'body' => 'vehicle', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateVehicleAttributes' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=providers/*/vehicles/*}:updateAttributes', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/TripServiceClientTest.php b/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/TripServiceClientTest.php new file mode 100644 index 000000000000..24ec467b67de --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/TripServiceClientTest.php @@ -0,0 +1,501 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return TripServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new TripServiceClient($options); + } + + /** @test */ + public function createTripTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $vehicleId = 'vehicleId-1378647282'; + $intermediateDestinationIndex = 144716901; + $currentRouteSegment = 'currentRouteSegment-289364233'; + $numberOfPassengers = 674364405; + $lastLocationSnappable = false; + $expectedResponse = new Trip(); + $expectedResponse->setName($name); + $expectedResponse->setVehicleId($vehicleId); + $expectedResponse->setIntermediateDestinationIndex($intermediateDestinationIndex); + $expectedResponse->setCurrentRouteSegment($currentRouteSegment); + $expectedResponse->setNumberOfPassengers($numberOfPassengers); + $expectedResponse->setLastLocationSnappable($lastLocationSnappable); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->tripName('[PROVIDER]', '[TRIP]'); + $tripId = 'tripId-1059631243'; + $trip = new Trip(); + $request = (new CreateTripRequest()) + ->setParent($formattedParent) + ->setTripId($tripId) + ->setTrip($trip); + $response = $gapicClient->createTrip($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.TripService/CreateTrip', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getTripId(); + $this->assertProtobufEquals($tripId, $actualValue); + $actualValue = $actualRequestObject->getTrip(); + $this->assertProtobufEquals($trip, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createTripExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->tripName('[PROVIDER]', '[TRIP]'); + $tripId = 'tripId-1059631243'; + $trip = new Trip(); + $request = (new CreateTripRequest()) + ->setParent($formattedParent) + ->setTripId($tripId) + ->setTrip($trip); + try { + $gapicClient->createTrip($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTripTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $vehicleId = 'vehicleId-1378647282'; + $intermediateDestinationIndex = 144716901; + $currentRouteSegment = 'currentRouteSegment-289364233'; + $numberOfPassengers = 674364405; + $lastLocationSnappable = false; + $expectedResponse = new Trip(); + $expectedResponse->setName($name2); + $expectedResponse->setVehicleId($vehicleId); + $expectedResponse->setIntermediateDestinationIndex($intermediateDestinationIndex); + $expectedResponse->setCurrentRouteSegment($currentRouteSegment); + $expectedResponse->setNumberOfPassengers($numberOfPassengers); + $expectedResponse->setLastLocationSnappable($lastLocationSnappable); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->tripName('[PROVIDER]', '[TRIP]'); + $request = (new GetTripRequest()) + ->setName($formattedName); + $response = $gapicClient->getTrip($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.TripService/GetTrip', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTripExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->tripName('[PROVIDER]', '[TRIP]'); + $request = (new GetTripRequest()) + ->setName($formattedName); + try { + $gapicClient->getTrip($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function reportBillableTripTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $countryCode = 'countryCode1481071862'; + $request = (new ReportBillableTripRequest()) + ->setName($name) + ->setCountryCode($countryCode); + $gapicClient->reportBillableTrip($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.TripService/ReportBillableTrip', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $actualValue = $actualRequestObject->getCountryCode(); + $this->assertProtobufEquals($countryCode, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function reportBillableTripExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $name = 'name3373707'; + $countryCode = 'countryCode1481071862'; + $request = (new ReportBillableTripRequest()) + ->setName($name) + ->setCountryCode($countryCode); + try { + $gapicClient->reportBillableTrip($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchTripsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $tripsElement = new Trip(); + $trips = [ + $tripsElement, + ]; + $expectedResponse = new SearchTripsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTrips($trips); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $request = (new SearchTripsRequest()) + ->setParent($parent); + $response = $gapicClient->searchTrips($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getTrips()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.TripService/SearchTrips', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchTripsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $parent = 'parent-995424086'; + $request = (new SearchTripsRequest()) + ->setParent($parent); + try { + $gapicClient->searchTrips($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateTripTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $vehicleId = 'vehicleId-1378647282'; + $intermediateDestinationIndex = 144716901; + $currentRouteSegment = 'currentRouteSegment-289364233'; + $numberOfPassengers = 674364405; + $lastLocationSnappable = false; + $expectedResponse = new Trip(); + $expectedResponse->setName($name2); + $expectedResponse->setVehicleId($vehicleId); + $expectedResponse->setIntermediateDestinationIndex($intermediateDestinationIndex); + $expectedResponse->setCurrentRouteSegment($currentRouteSegment); + $expectedResponse->setNumberOfPassengers($numberOfPassengers); + $expectedResponse->setLastLocationSnappable($lastLocationSnappable); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $trip = new Trip(); + $updateMask = new FieldMask(); + $request = (new UpdateTripRequest()) + ->setName($name) + ->setTrip($trip) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateTrip($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.TripService/UpdateTrip', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $actualValue = $actualRequestObject->getTrip(); + $this->assertProtobufEquals($trip, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateTripExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $name = 'name3373707'; + $trip = new Trip(); + $updateMask = new FieldMask(); + $request = (new UpdateTripRequest()) + ->setName($name) + ->setTrip($trip) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateTrip($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createTripAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $vehicleId = 'vehicleId-1378647282'; + $intermediateDestinationIndex = 144716901; + $currentRouteSegment = 'currentRouteSegment-289364233'; + $numberOfPassengers = 674364405; + $lastLocationSnappable = false; + $expectedResponse = new Trip(); + $expectedResponse->setName($name); + $expectedResponse->setVehicleId($vehicleId); + $expectedResponse->setIntermediateDestinationIndex($intermediateDestinationIndex); + $expectedResponse->setCurrentRouteSegment($currentRouteSegment); + $expectedResponse->setNumberOfPassengers($numberOfPassengers); + $expectedResponse->setLastLocationSnappable($lastLocationSnappable); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->tripName('[PROVIDER]', '[TRIP]'); + $tripId = 'tripId-1059631243'; + $trip = new Trip(); + $request = (new CreateTripRequest()) + ->setParent($formattedParent) + ->setTripId($tripId) + ->setTrip($trip); + $response = $gapicClient->createTripAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.TripService/CreateTrip', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getTripId(); + $this->assertProtobufEquals($tripId, $actualValue); + $actualValue = $actualRequestObject->getTrip(); + $this->assertProtobufEquals($trip, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/VehicleServiceClientTest.php b/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/VehicleServiceClientTest.php new file mode 100644 index 000000000000..55dff33beee6 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/VehicleServiceClientTest.php @@ -0,0 +1,618 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return VehicleServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new VehicleServiceClient($options); + } + + /** @test */ + public function createVehicleTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $maximumCapacity = 582710265; + $currentRouteSegment = 'currentRouteSegment-289364233'; + $backToBackEnabled = false; + $expectedResponse = new Vehicle(); + $expectedResponse->setName($name); + $expectedResponse->setMaximumCapacity($maximumCapacity); + $expectedResponse->setCurrentRouteSegment($currentRouteSegment); + $expectedResponse->setBackToBackEnabled($backToBackEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $vehicleId = 'vehicleId-1378647282'; + $vehicle = new Vehicle(); + $vehicleVehicleType = new VehicleType(); + $vehicle->setVehicleType($vehicleVehicleType); + $request = (new CreateVehicleRequest()) + ->setParent($parent) + ->setVehicleId($vehicleId) + ->setVehicle($vehicle); + $response = $gapicClient->createVehicle($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.VehicleService/CreateVehicle', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $actualValue = $actualRequestObject->getVehicleId(); + $this->assertProtobufEquals($vehicleId, $actualValue); + $actualValue = $actualRequestObject->getVehicle(); + $this->assertProtobufEquals($vehicle, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createVehicleExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $parent = 'parent-995424086'; + $vehicleId = 'vehicleId-1378647282'; + $vehicle = new Vehicle(); + $vehicleVehicleType = new VehicleType(); + $vehicle->setVehicleType($vehicleVehicleType); + $request = (new CreateVehicleRequest()) + ->setParent($parent) + ->setVehicleId($vehicleId) + ->setVehicle($vehicle); + try { + $gapicClient->createVehicle($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getVehicleTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $maximumCapacity = 582710265; + $currentRouteSegment = 'currentRouteSegment-289364233'; + $backToBackEnabled = false; + $expectedResponse = new Vehicle(); + $expectedResponse->setName($name2); + $expectedResponse->setMaximumCapacity($maximumCapacity); + $expectedResponse->setCurrentRouteSegment($currentRouteSegment); + $expectedResponse->setBackToBackEnabled($backToBackEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->vehicleName('[PROVIDER]', '[VEHICLE]'); + $request = (new GetVehicleRequest()) + ->setName($formattedName); + $response = $gapicClient->getVehicle($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.VehicleService/GetVehicle', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getVehicleExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->vehicleName('[PROVIDER]', '[VEHICLE]'); + $request = (new GetVehicleRequest()) + ->setName($formattedName); + try { + $gapicClient->getVehicle($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listVehiclesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $vehiclesElement = new Vehicle(); + $vehicles = [ + $vehiclesElement, + ]; + $expectedResponse = new ListVehiclesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setVehicles($vehicles); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $vehicleTypeCategories = []; + $request = (new ListVehiclesRequest()) + ->setParent($parent) + ->setVehicleTypeCategories($vehicleTypeCategories); + $response = $gapicClient->listVehicles($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getVehicles()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.VehicleService/ListVehicles', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $actualValue = $actualRequestObject->getVehicleTypeCategories(); + $this->assertProtobufEquals($vehicleTypeCategories, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listVehiclesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $parent = 'parent-995424086'; + $vehicleTypeCategories = []; + $request = (new ListVehiclesRequest()) + ->setParent($parent) + ->setVehicleTypeCategories($vehicleTypeCategories); + try { + $gapicClient->listVehicles($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchVehiclesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new SearchVehiclesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $pickupPoint = new TerminalLocation(); + $pickupPointPoint = new LatLng(); + $pickupPoint->setPoint($pickupPointPoint); + $pickupRadiusMeters = 254656044; + $count = 94851343; + $minimumCapacity = 518841803; + $tripTypes = []; + $vehicleTypes = []; + $orderBy = VehicleMatchOrder::UNKNOWN_VEHICLE_MATCH_ORDER; + $request = (new SearchVehiclesRequest()) + ->setParent($parent) + ->setPickupPoint($pickupPoint) + ->setPickupRadiusMeters($pickupRadiusMeters) + ->setCount($count) + ->setMinimumCapacity($minimumCapacity) + ->setTripTypes($tripTypes) + ->setVehicleTypes($vehicleTypes) + ->setOrderBy($orderBy); + $response = $gapicClient->searchVehicles($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.VehicleService/SearchVehicles', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $actualValue = $actualRequestObject->getPickupPoint(); + $this->assertProtobufEquals($pickupPoint, $actualValue); + $actualValue = $actualRequestObject->getPickupRadiusMeters(); + $this->assertProtobufEquals($pickupRadiusMeters, $actualValue); + $actualValue = $actualRequestObject->getCount(); + $this->assertProtobufEquals($count, $actualValue); + $actualValue = $actualRequestObject->getMinimumCapacity(); + $this->assertProtobufEquals($minimumCapacity, $actualValue); + $actualValue = $actualRequestObject->getTripTypes(); + $this->assertProtobufEquals($tripTypes, $actualValue); + $actualValue = $actualRequestObject->getVehicleTypes(); + $this->assertProtobufEquals($vehicleTypes, $actualValue); + $actualValue = $actualRequestObject->getOrderBy(); + $this->assertProtobufEquals($orderBy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchVehiclesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $parent = 'parent-995424086'; + $pickupPoint = new TerminalLocation(); + $pickupPointPoint = new LatLng(); + $pickupPoint->setPoint($pickupPointPoint); + $pickupRadiusMeters = 254656044; + $count = 94851343; + $minimumCapacity = 518841803; + $tripTypes = []; + $vehicleTypes = []; + $orderBy = VehicleMatchOrder::UNKNOWN_VEHICLE_MATCH_ORDER; + $request = (new SearchVehiclesRequest()) + ->setParent($parent) + ->setPickupPoint($pickupPoint) + ->setPickupRadiusMeters($pickupRadiusMeters) + ->setCount($count) + ->setMinimumCapacity($minimumCapacity) + ->setTripTypes($tripTypes) + ->setVehicleTypes($vehicleTypes) + ->setOrderBy($orderBy); + try { + $gapicClient->searchVehicles($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateVehicleTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $maximumCapacity = 582710265; + $currentRouteSegment = 'currentRouteSegment-289364233'; + $backToBackEnabled = false; + $expectedResponse = new Vehicle(); + $expectedResponse->setName($name2); + $expectedResponse->setMaximumCapacity($maximumCapacity); + $expectedResponse->setCurrentRouteSegment($currentRouteSegment); + $expectedResponse->setBackToBackEnabled($backToBackEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $vehicle = new Vehicle(); + $vehicleVehicleType = new VehicleType(); + $vehicle->setVehicleType($vehicleVehicleType); + $updateMask = new FieldMask(); + $request = (new UpdateVehicleRequest()) + ->setName($name) + ->setVehicle($vehicle) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateVehicle($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.VehicleService/UpdateVehicle', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $actualValue = $actualRequestObject->getVehicle(); + $this->assertProtobufEquals($vehicle, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateVehicleExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $name = 'name3373707'; + $vehicle = new Vehicle(); + $vehicleVehicleType = new VehicleType(); + $vehicle->setVehicleType($vehicleVehicleType); + $updateMask = new FieldMask(); + $request = (new UpdateVehicleRequest()) + ->setName($name) + ->setVehicle($vehicle) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateVehicle($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateVehicleAttributesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new UpdateVehicleAttributesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $attributes = []; + $request = (new UpdateVehicleAttributesRequest()) + ->setName($name) + ->setAttributes($attributes); + $response = $gapicClient->updateVehicleAttributes($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.VehicleService/UpdateVehicleAttributes', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $actualValue = $actualRequestObject->getAttributes(); + $this->assertProtobufEquals($attributes, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateVehicleAttributesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $name = 'name3373707'; + $attributes = []; + $request = (new UpdateVehicleAttributesRequest()) + ->setName($name) + ->setAttributes($attributes); + try { + $gapicClient->updateVehicleAttributes($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createVehicleAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $maximumCapacity = 582710265; + $currentRouteSegment = 'currentRouteSegment-289364233'; + $backToBackEnabled = false; + $expectedResponse = new Vehicle(); + $expectedResponse->setName($name); + $expectedResponse->setMaximumCapacity($maximumCapacity); + $expectedResponse->setCurrentRouteSegment($currentRouteSegment); + $expectedResponse->setBackToBackEnabled($backToBackEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $vehicleId = 'vehicleId-1378647282'; + $vehicle = new Vehicle(); + $vehicleVehicleType = new VehicleType(); + $vehicle->setVehicleType($vehicleVehicleType); + $request = (new CreateVehicleRequest()) + ->setParent($parent) + ->setVehicleId($vehicleId) + ->setVehicle($vehicle); + $response = $gapicClient->createVehicleAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.VehicleService/CreateVehicle', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $actualValue = $actualRequestObject->getVehicleId(); + $this->assertProtobufEquals($vehicleId, $actualValue); + $actualValue = $actualRequestObject->getVehicle(); + $this->assertProtobufEquals($vehicle, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} From 0a404dfada0affe700a191f7813f0a352b41d49e Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 10 Dec 2024 00:04:47 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- MapsFleetEngine/src/V1/VehicleMatch.php | 36 +- .../Maps/Fleetengine/V1/Fleetengine.php | Bin 4557 -> 0 bytes .../Google/Maps/Fleetengine/V1/Header.php | Bin 1414 -> 0 bytes .../Google/Maps/Fleetengine/V1/Traffic.php | Bin 1210 -> 0 bytes .../Google/Maps/Fleetengine/V1/TripApi.php | Bin 4480 -> 0 bytes .../Google/Maps/Fleetengine/V1/Trips.php | Bin 4253 -> 0 bytes .../Google/Maps/Fleetengine/V1/VehicleApi.php | Bin 7424 -> 0 bytes .../Google/Maps/Fleetengine/V1/Vehicles.php | Bin 4391 -> 0 bytes .../Maps/FleetEngine/V1/BatteryInfo.php | 135 -- .../Maps/FleetEngine/V1/BatteryStatus.php | 82 - .../V1/BillingPlatformIdentifier.php | 82 - .../V1/ConsumableTrafficPolyline.php | 117 -- .../Maps/FleetEngine/V1/CreateTripRequest.php | 329 --- .../FleetEngine/V1/CreateVehicleRequest.php | 313 --- .../Maps/FleetEngine/V1/DeviceSettings.php | 183 -- .../Maps/FleetEngine/V1/GetTripRequest.php | 439 ---- .../Maps/FleetEngine/V1/GetVehicleRequest.php | 243 --- .../Maps/FleetEngine/V1/LicensePlate.php | 123 -- .../FleetEngine/V1/ListVehiclesRequest.php | 926 --------- .../FleetEngine/V1/ListVehiclesResponse.php | 151 -- .../FleetEngine/V1/LocationPowerSaveMode.php | 89 - .../Maps/FleetEngine/V1/LocationSensor.php | 110 - .../Maps/FleetEngine/V1/NavigationStatus.php | 76 - .../FleetEngine/V1/PolylineFormatType.php | 62 - .../Maps/FleetEngine/V1/PowerSource.php | 75 - .../V1/ReportBillableTripRequest.php | 239 --- .../SolutionType.php | 59 - .../Maps/FleetEngine/V1/RequestHeader.php | 493 ----- .../FleetEngine/V1/RequestHeader/Platform.php | 71 - .../FleetEngine/V1/RequestHeader/SdkType.php | 71 - .../FleetEngine/V1/SearchTripsRequest.php | 335 --- .../FleetEngine/V1/SearchTripsResponse.php | 109 - .../FleetEngine/V1/SearchVehiclesRequest.php | 1029 ---------- .../CurrentTripsPresent.php | 68 - .../VehicleMatchOrder.php | 90 - .../FleetEngine/V1/SearchVehiclesResponse.php | 71 - .../FleetEngine/V1/SpeedReadingInterval.php | 145 -- .../V1/SpeedReadingInterval/Speed.php | 71 - .../Maps/FleetEngine/V1/StopLocation.php | 172 -- .../Maps/FleetEngine/V1/TerminalLocation.php | 245 --- .../Maps/FleetEngine/V1/TerminalPointId.php | 159 -- .../FleetEngine/V1/TrafficPolylineData.php | 81 - .../src/Google/Maps/FleetEngine/V1/Trip.php | 1614 --------------- .../Google/Maps/FleetEngine/V1/TripStatus.php | 111 - .../Google/Maps/FleetEngine/V1/TripType.php | 61 - .../Google/Maps/FleetEngine/V1/TripView.php | 67 - .../Maps/FleetEngine/V1/TripWaypoint.php | 451 ----- .../Maps/FleetEngine/V1/UpdateTripRequest.php | 355 ---- .../V1/UpdateVehicleAttributesRequest.php | 161 -- .../V1/UpdateVehicleAttributesResponse.php | 71 - .../FleetEngine/V1/UpdateVehicleRequest.php | 267 --- .../Google/Maps/FleetEngine/V1/Vehicle.php | 1108 ---------- .../FleetEngine/V1/Vehicle/VehicleType.php | 70 - .../V1/Vehicle/VehicleType/Category.php | 93 - .../Maps/FleetEngine/V1/VehicleAttribute.php | 225 --- .../FleetEngine/V1/VehicleAttributeList.php | 67 - .../Maps/FleetEngine/V1/VehicleLocation.php | 1789 ----------------- .../Maps/FleetEngine/V1/VehicleMatch.php | 693 ------- .../V1/VehicleMatch/VehicleMatchType.php | 83 - .../Maps/FleetEngine/V1/VehicleState.php | 62 - .../VisualTrafficReportPolylineRendering.php | 84 - .../RoadStretch.php | 142 -- .../RoadStretch/Style.php | 64 - .../Google/Maps/FleetEngine/V1/Waypoint.php | 123 -- .../Maps/FleetEngine/V1/WaypointType.php | 68 - .../V1/TripServiceClient/create_trip.php | 87 - .../samples/V1/TripServiceClient/get_trip.php | 74 - .../report_billable_trip.php | 76 - .../V1/TripServiceClient/search_trips.php | 78 - .../V1/TripServiceClient/update_trip.php | 78 - .../VehicleServiceClient/create_vehicle.php | 116 -- .../V1/VehicleServiceClient/get_vehicle.php | 75 - .../V1/VehicleServiceClient/list_vehicles.php | 85 - .../VehicleServiceClient/search_vehicles.php | 120 -- .../VehicleServiceClient/update_vehicle.php | 98 - .../update_vehicle_attributes.php | 80 - .../v1/src/V1/Client/TripServiceClient.php | 348 ---- .../v1/src/V1/Client/VehicleServiceClient.php | 430 ---- .../v1/src/V1/gapic_metadata.json | 82 - .../resources/trip_service_client_config.json | 59 - .../trip_service_descriptor_config.php | 114 -- .../trip_service_rest_client_config.php | 94 - .../vehicle_service_client_config.json | 64 - .../vehicle_service_descriptor_config.php | 129 -- .../vehicle_service_rest_client_config.php | 108 - .../Unit/V1/Client/TripServiceClientTest.php | 501 ----- .../V1/Client/VehicleServiceClientTest.php | 618 ------ 87 files changed, 16 insertions(+), 18406 deletions(-) delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Fleetengine.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Header.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Traffic.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/TripApi.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Trips.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/VehicleApi.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Vehicles.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryInfo.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryStatus.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BillingPlatformIdentifier.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ConsumableTrafficPolyline.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateTripRequest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateVehicleRequest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/DeviceSettings.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetTripRequest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetVehicleRequest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LicensePlate.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesRequest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesResponse.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationPowerSaveMode.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationSensor.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/NavigationStatus.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PolylineFormatType.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PowerSource.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest/SolutionType.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/Platform.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/SdkType.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsRequest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsResponse.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/CurrentTripsPresent.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/VehicleMatchOrder.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesResponse.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval/Speed.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/StopLocation.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalLocation.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalPointId.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TrafficPolylineData.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Trip.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripStatus.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripType.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripView.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripWaypoint.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateTripRequest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesRequest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesResponse.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleRequest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType/Category.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttribute.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttributeList.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleLocation.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch/VehicleMatchType.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleState.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch/Style.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Waypoint.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/WaypointType.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/create_trip.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/get_trip.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/report_billable_trip.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/search_trips.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/update_trip.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/create_vehicle.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/get_vehicle.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/list_vehicles.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/search_vehicles.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle_attributes.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/TripServiceClient.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/VehicleServiceClient.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_client_config.json delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_descriptor_config.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_rest_client_config.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_client_config.json delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_descriptor_config.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_rest_client_config.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/TripServiceClientTest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/VehicleServiceClientTest.php diff --git a/MapsFleetEngine/src/V1/VehicleMatch.php b/MapsFleetEngine/src/V1/VehicleMatch.php index d0945ffdbcbf..70cfc1b7f9f8 100644 --- a/MapsFleetEngine/src/V1/VehicleMatch.php +++ b/MapsFleetEngine/src/V1/VehicleMatch.php @@ -98,16 +98,15 @@ class VehicleMatch extends \Google\Protobuf\Internal\Message */ protected $vehicle_match_type = 0; /** - * The order requested for sorting vehicle matches. + * The order requested for sorting vehicle matches. Equivalent to + * `ordered_by`. * * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; */ protected $requested_ordered_by = 0; /** - * The actual order that was used for this vehicle. Normally this - * will match the 'order_by' field from the request; however, in certain - * circumstances such as an internal server error, a different method - * may be used (such as `PICKUP_POINT_STRAIGHT_DISTANCE`). + * The order requested for sorting vehicle matches. Equivalent to + * `requested_ordered_by`. * * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; */ @@ -165,12 +164,11 @@ class VehicleMatch extends \Google\Protobuf\Internal\Message * @type int $vehicle_match_type * Type of the vehicle match. * @type int $requested_ordered_by - * The order requested for sorting vehicle matches. + * The order requested for sorting vehicle matches. Equivalent to + * `ordered_by`. * @type int $ordered_by - * The actual order that was used for this vehicle. Normally this - * will match the 'order_by' field from the request; however, in certain - * circumstances such as an internal server error, a different method - * may be used (such as `PICKUP_POINT_STRAIGHT_DISTANCE`). + * The order requested for sorting vehicle matches. Equivalent to + * `requested_ordered_by`. * } */ public function __construct($data = NULL) { @@ -636,7 +634,8 @@ public function setVehicleMatchType($var) } /** - * The order requested for sorting vehicle matches. + * The order requested for sorting vehicle matches. Equivalent to + * `ordered_by`. * * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; * @return int @@ -647,7 +646,8 @@ public function getRequestedOrderedBy() } /** - * The order requested for sorting vehicle matches. + * The order requested for sorting vehicle matches. Equivalent to + * `ordered_by`. * * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; * @param int $var @@ -662,10 +662,8 @@ public function setRequestedOrderedBy($var) } /** - * The actual order that was used for this vehicle. Normally this - * will match the 'order_by' field from the request; however, in certain - * circumstances such as an internal server error, a different method - * may be used (such as `PICKUP_POINT_STRAIGHT_DISTANCE`). + * The order requested for sorting vehicle matches. Equivalent to + * `requested_ordered_by`. * * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; * @return int @@ -676,10 +674,8 @@ public function getOrderedBy() } /** - * The actual order that was used for this vehicle. Normally this - * will match the 'order_by' field from the request; however, in certain - * circumstances such as an internal server error, a different method - * may be used (such as `PICKUP_POINT_STRAIGHT_DISTANCE`). + * The order requested for sorting vehicle matches. Equivalent to + * `requested_ordered_by`. * * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; * @param int $var diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Fleetengine.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Fleetengine.php deleted file mode 100644 index 11ab219baf22a4e85eda528d0b9885d9bf5540bd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4557 zcmbVQT~piG8D85E;5ETU1R_Y5YT0Z<*sK|xY`0@VT7Sr_Cq~lPGBh2}Xk_bPG%HIQ zNhZT~@&h`(=zr++s`tI?59ss{^tRXi2Yc7|9DUdXW9a6FSm%A-kLUe3A8&r+Ubyh3 za7=9C=>ai>-jxts5W)4F!09`d&>Nkf6Hn+nL)Wy3R}h4nEJ(5{h_#0L1wwsi8O z7&y+rBKt$#_4m&$LIPqBOq=Xq9!&l$FvS42J|w=Y_la<0-6y**git4yedanC|B(=TrBF(cj&8#ah-d3ow?_QFXS#voDJWVh4M>m> zNx$sAh|E%T=DDyN`dBL6aPmk9yb+nSE(jh8MxK4h{H6*%CjaYB;jHYM-MUFEqe3q9 zOVja6rEyeaCDWi&=Px=#uE1q)}oTWrW06d3sd8(I<`L=>OG4@ z6H0NcD+~7-?lt5L6Q>7`aczjZkLU9bn4%|fjl_*oXxPE4;wh~>T2L9>efR|?x^+V| z8A;sNuoyQOzsRIFZ%D_pZ|Bcgyr<;C>|3N9V3qVn0pYTc`GH)q^eu4@ zV*8HAXA!wl{Br7iiF>2XM3KB4o+mv=H#Fa-2MmLMa*N#xwrMz1-oiS92ClD#1~p>S zfo1T^cR{JkbF@w0 zOc|eN$f;xDTUebG4YRU(ONiq+`de7L28)vN6oL0l$|0;@(~y+iCNn;}?254Nk6hOx zL&C;c5-E3kq;FwsDkcnh?aq)J@N_ypiv7|3W3R#XbX5rn>-Qjm$1G3Q^cG?kY2)v` zfkk@mpa&6d9acNiJ4rs1G_}=GH1)kA=0D>A9<;wNx5QdLg}d02_`7Pe({7xK`SjkO zQm`B!S(u7VSdUelmES9JLsDZkJUmhw)ps35yS|dbBjZM`B`ca-uYa z;Ptbtids!TzopHJKj(am`jggEq19cw@%85Ll|xoe>J6Jt=VWt zpHm!$AWBuaCe}1XZoY3eBryyjz4u4lvk~`7ac+HwocFF@v4X`|UJEJ&hyCb!<99sHq`+boG0ZU?qoa=E6prLv-+ zsis^FV^CW1X`?2#@^joaY*jmLRX!10TDzkt&Blaaex8z6Z;GO-iPAA8EY^{KfM@E* z^-g<2TubyC90w1pa%)2VpQ#E)wvEpZ@i}A4*}alwuL2@_a8OdeulFryWW)f(?hl-s z4->j;UVoc#dxsO3F}L@Zbf#Jt|CZi5X3r7@dQUD)SSp+z{3~AUhL0BEt3~KY7oRQu zoBlimmr4{}DowykrPG7n19m8V^*p&tz6@UiCLRuOl;fFU%A*0346pVd;UmER0BK5- AfB*mh diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Header.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Header.php deleted file mode 100644 index 52f1053ac43c8dcfc58a40db1bf162d39d348b9d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1414 zcma)6-EPxJ6y7Azgww(XQ-oP*SF_zp4S$XTcP<6xw`6zISV;&1S+XYfNjk#unDICg zpx*KzNZjx!d&>)O%~LS8+cc$JiQHs-=6v7zoAW(>8Xku57um-E1(oQL$y*{1k%WRv z?sA_@;^`Cxarr!CJ_>`7R-YX7N2J~Aj{a28h{wW3lgv1u`B{M2W$S1z26w zs)tBD1x+~t0y@Viq%M+utI-_xIM1z0=PbnBJwPyf%ibvFN`NX zb4etrRDatna#+A5qdt45s@Nk_>PM)c=Y6Mf;7Y~=k^uUFi~0`Y1k|@%7`cLlk_$_@n&u4UvVDoAa_2Z~LdT}0lI3Wc=aSqbQpC6#oe+UC z7Qt?scS3NqJlPkts~$4D!_fB{ct{tF3)4KU>Xalc>cJCsTteORmKk@{R4dCENyHua zvv`=4tViB!XMrM8*Lop!*8q65v|UPVo3P>Gg1P9-6|b*fPOXojl)&ZN z5cM@>x%Tj`aY3fWnJkT=_j;rdDy?$j?5t)`OnGm?uK``0xhSO zdp{A-I)-Sfia8D9DRtHSQRtA8-iGTm@C0X`Lqq2HxKIVItE5T{zcn>QnPpr$6ZZz_$*?`ax^Z@3s_O5enV@P;sfli*}=2Xne`R zA4)rn>@{7~kVY|kA(54P)p30udne8cSDo?milRE9L}lg0g_GSgUmx>@W~co*|63+1 zMj|RkDk|+%lZfgc5XA|pV2dD_4~0sgB~+>_fuoe0ON-LPu7a8-YD1BbC2M1k)0H+}%U%}> z>YY3PfFnPJU%;Ikzk;{d>W%?cpoB2h=2f(&apTJ94B0G zpEEql!VnVd^GQq@Bqqk4K0fRZvEAtopGs)Tv&07rk2xPRXiP|)HbMpNI(Q}_Y1t+lX%zpi+4|&+X(rLq$wV%Jm@pR@`1c=z#nG}Zk=(%|$zbtzj1v%9 z5^Wc}^8^?3Rl)4VE}imd1;PAUM>fZp2j;L1^tFPFt9C`dmp9H_XqW)v{L*4UT)0i^tl@U1-JayDMh3*#Ra-R=nw8Thynlr diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/TripApi.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/TripApi.php deleted file mode 100644 index 3f22c6d8e70f2da43348ea1cc03de3bf7ccd9098..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4480 zcmbtYOK;mo5Uy;;j#sH0uZu=f;DnZ)SV!y+=IRau^kRRzo0I{N05)q1I z$)#L3@FmAyd+V`>qUe8Ud+8}afui{XJ@nH4gq}LPBxO3H{772yZq>Z z)wR%~v_TDO6GmH7^H5@4Dp|J4Ox4t-rrT~)TT;!QrRmhpN>XWC+S=Zg%BAY=0=PP+ zYpYb2I;PptX|6{sC)d^~Wz^_s2F>+Xa?I8&g;-ivL`BFTJ?dCQrP4;NxJeml5k?vt zB0ysk0yHYe0UG-&s|cw&aU5wE0u?L`Jw+1yv)rbxsglD8gFj1}qiBZ4G@@%?Ln3QZ zo9GS&-(lOfYp6^!4T(E!8!FA*k-V7PcF8g!@ii$xRO7XPIy9;VqqafxMu|EqKw+j` z15;Vd`0| zhRLg78jdU<=X4xml;gUtQG;E~r=n54Ris_g*G&6ju663OnXng+qB+7Q@JdGNu~Kr-cszd^-^zG%VNhDdewTe|ep9lK6{(rVpIGy7YhwzC}>9fdvct?HQzhi=o+do5I$@ zIbWw=x4nEVx#`0f6s?uGBwWYA6W>D<{AprBAV@|c;O<3koqjffW;Q6}4_+sU z56}eP{4SiryJ(`X(St-Bz|Q37M}pl4BV0i9s%!I7DK?OiDh}=R_^&>-9Z-+Nq)0iH z^@`IS3@d(suG_RnU@I{?$^kjFOc+sT5Mb)e07W$Gy}NDNJ;D@rXwk%FfxfXE z3BP9QhdLY>D#BqG>~R&{icW;tq}|rk0iNkI@s!a*R6-ucpf2dFFzMgNP_j-f(`H3Y z*GW@9LF-w+yJHY%TJQ!Z(G}Hn4Q3xIs@Vz}F9`Svx@_r$@d626&g8R^h2d|4Hq?CE zY71Ja!6e#v4#jN>k7*0I?Lb?{Gt;<^-gHbIc1+Xos?M7=lV6RDJu;WOXZ!1g?e>s zL*c(m1a=lvKxf)CV0`jnD!SU}z9bZKrg4%oHaPbMp@1wXYkSJW=L`UNJ;Taih zhMq3`6GM215?k$ZX>eXg8|GdTIFSQJs873^s#7jsT&t#mQ?mq)uYIa;0do}7&<_RP z%Xk(|TciUM4@Y1z=9e%;5RaJogc=D>hH1!kwg|a9Y;)OJf9p=h2YSU z{uIrfNY%06yh)+kmjn*b@^R4e(MpQ1p|=eB6;ncZ#Hi%|m_l)0za47#HI?EYV+bAZ z8u)f3caIJHs;5T3I{oio@=E%Y(bgJ?{=5y7G^_ O?h8xrT7HC%5c(gd2H+_G diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Trips.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Trips.php deleted file mode 100644 index 2fa51c46dc0ef2fe9bb3a34f8a912ef55298b374..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4253 zcmbVP+fv(B6s} zOh2JN(5F832l@|v>mPLbn6KzQN0KqYCQkAaEbYCtFKgdkeCM1x=svfHE$pg3*13~& z&OgPRd9TR7}s^ewb zCdNLtI);U_XWLodH5`wpkO*077kiGXVQ#NhIK;lHtG?RWquQ-Q&~BA4wOh^YU4%4K z^*l}{DCiyH;GYwmn1;rAzUsq&8-}MCmf;(!Y5W2{yyV)d>0!{kF53<)%{Od|BMMbZ z!&{HI5R=GmI5znFl8f!BkuX3ATB7A+*HX<^340nC;@fTwM02?g_Itr2PqrRKpCxcc zo7)O)%;l~b`I7V90QY~L<6P_quC+_;CIA<`zgh#Lm3NF**}$e=z^Ce&VY|89rB|0A z!&K`y%H7CX1JcuKd+e%?gI#ZQ zRr%b(t%~ZKR%fsh<=?YcM#Q$fuJ_1QhVt9$(SeX-6aAJ!4@avzW}Xx#-&dIY+4f>4 zQdS)!>qcw{>vZwy4Y>U%w5k`kZjkoFyhgYyktEfF%F60d@}l>vAHMhF3=IQ#8>Jz7 z&qe?~#5!xzSch-c|4O5A(nOd!G)}q@o8S^#(}m=}`6R<2bcRn2&BThKvt#51^9`CI zol7AV9C&OJ9^T$rN#QSmP04-ewQC-(KBbd}6 z?vubEY>_D>b?gLHUgX2HgsFhM^S#Oo6R?jml=WS#8!(6z9m*0MC1vfgx4Go#5fRYZ zP$cCH>J=c_%*U)^9-@_DFfeR%{4@I{V5FEI5g)~FsQ8s=dh8nYX4Kr&5cd&$k6r&H z#24t6?%IysZb$i@q`?@Ga3ypnvgazuJqj|aSKp%9Se>$D>SOr`SpsZ#aaV;YXLXdf z>N(}7$EI)apOoftBpHIdKyz`eUqaj&5rS!LqLga~K4zz>%6!ahQt&)9_lngCzq5`O zw7_+-buptzo#)7VTV&Z59 z*KG6Lgyk*tLqZP*+ZbW@Y+V`6)+$;ZjE5~fVkAqE29xP}LW?MK$qLGi-;r5< zvHp7k&GwH?+6BVlNS271onc*IjClt8K)k}x#bRdXhG7Ux$Fv9YS)pB#tQ{br0TJx$aS%%G~~Q|)JT89OroSD9H$e^0-6(~di6*a6uGL@ z#NxqGEj>ma=j(N`DU_7F96wGHZ}0a#7bRJ!AHo5c2lbNBkVPpki&ZH-NhSM$he}Q{ zcM;PkSgKcR)p9vK&dj2zV)d|A5o95qqQCM|QK$%|^u*&|QKn#+(3v_l*zDT2+ZA?X=kE1lY~){iIXN$tz;fm9<40Pju2bYNV3zJYD&=5l}tn; zS(38j2HA93bk~2-MGFkNEsFku7M*1ablpW)MOR(6z@Xtx2tQi1|m*kEOd2ZxTEo`>!jOSC41_=ZrY=<)`-ZN zk(8{NeOEU+XWwdrn9ataMVdQ0Ij~H71Op=yFqn^L*C9&KbE3A$2ri3~A*x`6IQ!|l z*2hA}967rYJ}Zm)mg>Cv2D}X&3*J?G);HjNX{(k+>=CSGao<$k?nw#5s{6q+UDR^E z)$&Vs9dT~iFE(0wci@*9xIYTONeey1uygF;7^}s@#7M8Lr zDoYSt4iMO)e8f^RxWsEjtXvZ-9b#r&EQHLyCJ+cZ4`<*-?bwV>vD4 z-W@_HT7h#!MYaWkYo;Z#Q>=Sk#b4*%>0u5E3eR;uh3h5SNn0FUS|%EZ79wqA0f-`Dq`MSjxhAZg4Ut$CjtFsdPlN(}J3pyR-o3E!9StO^zc^e0BUE z`7!AdfN+SSw~`Zsg)B^ph2%N5#ru(42)&rF)c;~Izd_t@LDx@Ug7#;j={?l+zxi8` z3g!e4F($H;#?c@nHkI;lRqNZ-OvT1rB#J{iJ^Hkd<%^)hY@E(6r8z%$G{!yc!-Mo8 z%pa(SmWie5_-xz>L)cP(#$at*I7NIL!I}>_fQ2d$5gMoI?CBAa9>H{jiDJwvu+PdG+z_0sS4LmRMfF>3?Wi@ zi`d9p{3#9>>qND+J&|JX)Av|H(*ihZ>uf6?j&j3JFw2@AZ3% zrs5>6yNAiC!SY7{m^GF{Va-X#(eZQHtC6v7AQ|nKe5*$=-&0>RvDmJ=crI|9B(RLX ze5`7{SwdQa*?lqO^9|=%q?aQ%6p>7e-@)FiuwWy^>NaU9fyA5{A#0>9Sn_3<22sp* zP}Bt`>h3VL{2brZ5$ZpMYbT0BaC4pH;;16)FlE{}0V=zP$ys#lT=q$%K9OnfIc-aI zwY>@z!^8GIEb4~V?YD@st7@+l*JQs*2{)LMF2E#925d45_#!TS0T(@-rVEZ@;Z#AJ z(?zDxvk??3aJ;8kuwAPaQIAHg zRIMx3TCq-_w#)Tuu~1qs71vN_lvA#hi>T)$jOWXrCB{;l@ZQmY3W&tc(xcJDGUfPq zBhvdp*QLImfCZYL;$;LV&Y2#0okMoUoTh;1b2V>Ff|(dI^{I1Gt1p>5`6V z>pmo|4D+>DY!so=1+MQ3Q~{b2$5b1JL9>kJgHwTpVpUxFWPq&n`hX;-(dN1A z&>X2#LM)sa(@fznLiGcQf)dobml4U+R=pW@*mO(8w)ouYX$zlOzd z{)uExqa^NdFPn$XNjL#tFvx3H31rq7)r*eCF5YHz2N^idJfHdure2EqP`U+^II$~u z$`h0Lf|qqnWjp|G8Xc*52gdP+DM*RMrmMKO)3&ZB_5=p_lMBPB|))X47zy+^COX!ISHa zI@BsY3LhV72jhGh?s|;E8`zpW5l6M*bJI}h_z>bOrD=fKh;$lqaQ&YJfPghT|BQh% z6`gydXCpt;%7dUXux4`=o44k&*4V738xWjL=Ni-bro?roC;#B4zQU+HQxysM z@pzb`zeg8`&W0zrI7D+cb$`rVymY#{VHclC?|;YOQb;F14;|@Yq_}3eO!t@u?0yy!=g(jOew5sgc596QH)Xx ze~H0dc%+u@MLIi7p6)d5cZ{ zosWN5;mb|@()X{itDHHPqujY%fIXMnS=l|$u6iHd@vrFb^RH)tk8N~P*0qQaZH$tC K5PJ)60sapxOrkXa diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Vehicles.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Vehicles.php deleted file mode 100644 index e3dd430a3bf43572325505b3aa161cfa0b9862b7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4391 zcmb_gUvt{n6))JN_OU~-Y$q~~6NU9o9M2ZUPN&nw&9(vrVS|B1!fraus6t$@W`(4Y z1gV?x2k2|x`_jjLfO!$?TLDgzouwf9IUvxtCx4+PQGx zGoeN-;%Yt_2>naJzaWC++P(!Wn z-YFXBRj&>7&W=t1bW`&@;Vd)+??J$iGwGX#E_lA?9rD!cF4xbs&+6jGalfk5=?mQP$uGkX={>8|1Uw%bP0 zVsS+L8HDuB!Hdu>HD?TkgCNFY@m7$p1mB&IdGCVY5`W@aCoFDi;A-~Nivdh@j9%3s z=Ac9_w5egc#p3m@u8n+1wL`)TezI0fhUOFY>F#H^Dh3vWuZ^7_p?mIXjze58UX`Wt zXI~j%;>5vVmZvJ#^T7;Rit}^$=PtbXevtQg{ zdfp0alkC$_n*GA+EBFygp}8kF1>S{F1nar~tieyij^Q?7nRXqY5E2KgrKNw1OWZHv ze%P2Qtxm!xaV>rPEFZJ0d}v3eg4_vgc@xL6T_gpTdyVj`w3Nh9NaVS&oOySo?!9o{Uvp zLv}IzOa30}r?@WxG#}&aPkfAW1^ulZe}0!uF_PxWupWU#_sFlZfDZ0bjww-HjtGfBuYs>!R^6z1T(XsdSo<4 z(D^O&y~-)D7rTr((S}1q=O5p(Q6-RR+vcT-6kkF1rW;-6svojC#RjGMe88+`^FieX zb&92(pAkS%nqR}y_~?i=P#qh)ndk3-kk;C{cF6>}uVBX|V+|?M8mR*VOC9N69pij* zJ)UD$c5lUlME~;mOfx40i)R}rlNf!N=dc?2^Z19X2I8w`Var9>m}#jI^qG%^8$kaUw)&d>E!{8sCYIJW$$)=^>MOXT z4GU+?h;=8Ujfux+aVh6YJQmbeG7rkuCb^VgEpkUE)Vs$8m<-_HS zeBvlZrt`HC!Eul{NansvKzcEYTm$%s;jx>UKW&OVX%B({l|DXYB|m{X(O@iObMj&HXnC`)7tX(aexWJA_Wsh)g?3am2;G;C>J5uB{C) zi+CQ?FR--f+>&CE`4ofs4qB4~W3-VH*&ncU=3a6tq&)x9jFRx?|KchyQFev4~L73wYIEQ>atjBNEJ$FO;s*;B>ckQ zkn(QHi;c#I<(If;u(xQx+UiKPPOICjsJO$o$doUkuqdLu?z9vIq3KB9bdfaWTXCcg z|B-r>hY=VhQBkDMTLx`c4j@>3M*-;6>dhKL@C33q7IFWx^(6NQHgBv~yNw2N z{!`e!v49uiYs<^rW8iNH1lhqF&7=UPRBgPZVR{*5Zq!rp?+ z!pp8)!u()?ExbLicW@xdGKPx)Ei84L?MAm&!_HYQ{VM@aaPCA0pqQh7X(cRVubuc^ zRX6R)Ad;p7Yh>TP^5ZnaTmRgYbNVL>zy6wBDp#eyC9^el=g-p{Wxh)9{1W@qAb)oB zU9{K>{t*ann89)n{}cE=xfduGi&VQ Pb17$%!PWT+t^ocAm(z9? diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryInfo.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryInfo.php deleted file mode 100644 index ae3acb5ba812..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryInfo.php +++ /dev/null @@ -1,135 +0,0 @@ -maps.fleetengine.v1.BatteryInfo - */ -class BatteryInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Status of the battery, whether full or charging etc. - * - * Generated from protobuf field .maps.fleetengine.v1.BatteryStatus battery_status = 1; - */ - protected $battery_status = 0; - /** - * Status of battery power source. - * - * Generated from protobuf field .maps.fleetengine.v1.PowerSource power_source = 2; - */ - protected $power_source = 0; - /** - * Current battery percentage [0-100]. - * - * Generated from protobuf field float battery_percentage = 3; - */ - protected $battery_percentage = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $battery_status - * Status of the battery, whether full or charging etc. - * @type int $power_source - * Status of battery power source. - * @type float $battery_percentage - * Current battery percentage [0-100]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); - parent::__construct($data); - } - - /** - * Status of the battery, whether full or charging etc. - * - * Generated from protobuf field .maps.fleetengine.v1.BatteryStatus battery_status = 1; - * @return int - */ - public function getBatteryStatus() - { - return $this->battery_status; - } - - /** - * Status of the battery, whether full or charging etc. - * - * Generated from protobuf field .maps.fleetengine.v1.BatteryStatus battery_status = 1; - * @param int $var - * @return $this - */ - public function setBatteryStatus($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\BatteryStatus::class); - $this->battery_status = $var; - - return $this; - } - - /** - * Status of battery power source. - * - * Generated from protobuf field .maps.fleetengine.v1.PowerSource power_source = 2; - * @return int - */ - public function getPowerSource() - { - return $this->power_source; - } - - /** - * Status of battery power source. - * - * Generated from protobuf field .maps.fleetengine.v1.PowerSource power_source = 2; - * @param int $var - * @return $this - */ - public function setPowerSource($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\PowerSource::class); - $this->power_source = $var; - - return $this; - } - - /** - * Current battery percentage [0-100]. - * - * Generated from protobuf field float battery_percentage = 3; - * @return float - */ - public function getBatteryPercentage() - { - return $this->battery_percentage; - } - - /** - * Current battery percentage [0-100]. - * - * Generated from protobuf field float battery_percentage = 3; - * @param float $var - * @return $this - */ - public function setBatteryPercentage($var) - { - GPBUtil::checkFloat($var); - $this->battery_percentage = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryStatus.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryStatus.php deleted file mode 100644 index 618208d92d46..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryStatus.php +++ /dev/null @@ -1,82 +0,0 @@ -maps.fleetengine.v1.BatteryStatus - */ -class BatteryStatus -{ - /** - * Battery status unknown. - * - * Generated from protobuf enum UNKNOWN_BATTERY_STATUS = 0; - */ - const UNKNOWN_BATTERY_STATUS = 0; - /** - * Battery is being charged. - * - * Generated from protobuf enum BATTERY_STATUS_CHARGING = 1; - */ - const BATTERY_STATUS_CHARGING = 1; - /** - * Battery is discharging. - * - * Generated from protobuf enum BATTERY_STATUS_DISCHARGING = 2; - */ - const BATTERY_STATUS_DISCHARGING = 2; - /** - * Battery is full. - * - * Generated from protobuf enum BATTERY_STATUS_FULL = 3; - */ - const BATTERY_STATUS_FULL = 3; - /** - * Battery is not charging. - * - * Generated from protobuf enum BATTERY_STATUS_NOT_CHARGING = 4; - */ - const BATTERY_STATUS_NOT_CHARGING = 4; - /** - * Battery is low on power. - * - * Generated from protobuf enum BATTERY_STATUS_POWER_LOW = 5; - */ - const BATTERY_STATUS_POWER_LOW = 5; - - private static $valueToName = [ - self::UNKNOWN_BATTERY_STATUS => 'UNKNOWN_BATTERY_STATUS', - self::BATTERY_STATUS_CHARGING => 'BATTERY_STATUS_CHARGING', - self::BATTERY_STATUS_DISCHARGING => 'BATTERY_STATUS_DISCHARGING', - self::BATTERY_STATUS_FULL => 'BATTERY_STATUS_FULL', - self::BATTERY_STATUS_NOT_CHARGING => 'BATTERY_STATUS_NOT_CHARGING', - self::BATTERY_STATUS_POWER_LOW => 'BATTERY_STATUS_POWER_LOW', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BillingPlatformIdentifier.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BillingPlatformIdentifier.php deleted file mode 100644 index 6b3b7e454bdd..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BillingPlatformIdentifier.php +++ /dev/null @@ -1,82 +0,0 @@ -maps.fleetengine.v1.BillingPlatformIdentifier - */ -class BillingPlatformIdentifier -{ - /** - * Default. Used for unspecified platforms. - * - * Generated from protobuf enum BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED = 0; - */ - const BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED = 0; - /** - * The platform is a client server. - * - * Generated from protobuf enum SERVER = 1; - */ - const SERVER = 1; - /** - * The platform is a web browser. - * - * Generated from protobuf enum WEB = 2; - */ - const WEB = 2; - /** - * The platform is an Android mobile device. - * - * Generated from protobuf enum ANDROID = 3; - */ - const ANDROID = 3; - /** - * The platform is an IOS mobile device. - * - * Generated from protobuf enum IOS = 4; - */ - const IOS = 4; - /** - * Other platforms that are not listed in this enumeration. - * - * Generated from protobuf enum OTHERS = 5; - */ - const OTHERS = 5; - - private static $valueToName = [ - self::BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED => 'BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED', - self::SERVER => 'SERVER', - self::WEB => 'WEB', - self::ANDROID => 'ANDROID', - self::IOS => 'IOS', - self::OTHERS => 'OTHERS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ConsumableTrafficPolyline.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ConsumableTrafficPolyline.php deleted file mode 100644 index e9320fa4cdb4..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ConsumableTrafficPolyline.php +++ /dev/null @@ -1,117 +0,0 @@ -maps.fleetengine.v1.ConsumableTrafficPolyline - */ -class ConsumableTrafficPolyline extends \Google\Protobuf\Internal\Message -{ - /** - * Traffic speed along the path from the previous waypoint to the current - * waypoint. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.SpeedReadingInterval speed_reading_interval = 1; - */ - private $speed_reading_interval; - /** - * The path the driver is taking from the previous waypoint to the current - * waypoint. This path has landmarks in it so clients can show traffic markers - * along the path (see `speed_reading_interval`). Decoding is not yet - * supported. - * - * Generated from protobuf field string encoded_path_to_waypoint = 2; - */ - protected $encoded_path_to_waypoint = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Maps\FleetEngine\V1\SpeedReadingInterval>|\Google\Protobuf\Internal\RepeatedField $speed_reading_interval - * Traffic speed along the path from the previous waypoint to the current - * waypoint. - * @type string $encoded_path_to_waypoint - * The path the driver is taking from the previous waypoint to the current - * waypoint. This path has landmarks in it so clients can show traffic markers - * along the path (see `speed_reading_interval`). Decoding is not yet - * supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Traffic::initOnce(); - parent::__construct($data); - } - - /** - * Traffic speed along the path from the previous waypoint to the current - * waypoint. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.SpeedReadingInterval speed_reading_interval = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSpeedReadingInterval() - { - return $this->speed_reading_interval; - } - - /** - * Traffic speed along the path from the previous waypoint to the current - * waypoint. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.SpeedReadingInterval speed_reading_interval = 1; - * @param array<\Google\Maps\FleetEngine\V1\SpeedReadingInterval>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSpeedReadingInterval($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\SpeedReadingInterval::class); - $this->speed_reading_interval = $arr; - - return $this; - } - - /** - * The path the driver is taking from the previous waypoint to the current - * waypoint. This path has landmarks in it so clients can show traffic markers - * along the path (see `speed_reading_interval`). Decoding is not yet - * supported. - * - * Generated from protobuf field string encoded_path_to_waypoint = 2; - * @return string - */ - public function getEncodedPathToWaypoint() - { - return $this->encoded_path_to_waypoint; - } - - /** - * The path the driver is taking from the previous waypoint to the current - * waypoint. This path has landmarks in it so clients can show traffic markers - * along the path (see `speed_reading_interval`). Decoding is not yet - * supported. - * - * Generated from protobuf field string encoded_path_to_waypoint = 2; - * @param string $var - * @return $this - */ - public function setEncodedPathToWaypoint($var) - { - GPBUtil::checkString($var, True); - $this->encoded_path_to_waypoint = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateTripRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateTripRequest.php deleted file mode 100644 index d98b71603eaf..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateTripRequest.php +++ /dev/null @@ -1,329 +0,0 @@ -maps.fleetengine.v1.CreateTripRequest - */ -class CreateTripRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - */ - protected $header = null; - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Unique Trip ID. - * Subject to the following restrictions: - * * Must be a valid Unicode string. - * * Limited to a maximum length of 64 characters. - * * Normalized according to [Unicode Normalization Form C] - * (http://www.unicode.org/reports/tr15/). - * * May not contain any of the following ASCII characters: '/', ':', '?', - * ',', or '#'. - * - * Generated from protobuf field string trip_id = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $trip_id = ''; - /** - * Required. Trip entity to create. - * When creating a Trip, the following fields are required: - * * `trip_type` - * * `pickup_point` - * The following fields are used if you provide them: - * * `number_of_passengers` - * * `vehicle_id` - * * `dropoff_point` - * * `intermediate_destinations` - * * `vehicle_waypoints` - * All other Trip fields are ignored. For example, all trips start with a - * `trip_status` of `NEW` even if you pass in a `trip_status` of `CANCELED` in - * the creation request. - * Only `EXCLUSIVE` trips support `intermediate_destinations`. - * When `vehicle_id` is set for a shared trip, you must supply - * the list of `Trip.vehicle_waypoints` to specify the order of the remaining - * waypoints for the vehicle, otherwise the waypoint order will be - * undetermined. - * When you specify `Trip.vehicle_waypoints`, the list must contain all - * the remaining waypoints of the vehicle's trips, with no extra waypoints. - * You must order these waypoints such that for a given trip, the pickup - * point is before intermediate destinations, and all intermediate - * destinations come before the drop-off point. An `EXCLUSIVE` trip's - * waypoints must not interleave with any other trips. - * The `trip_id`, `waypoint_type` and `location` fields are used, and all - * other TripWaypoint fields in `vehicle_waypoints` are ignored. - * - * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $trip = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\RequestHeader $header - * The standard Fleet Engine request header. - * @type string $parent - * Required. Must be in the format `providers/{provider}`. - * 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. - * @type string $trip_id - * Required. Unique Trip ID. - * Subject to the following restrictions: - * * Must be a valid Unicode string. - * * Limited to a maximum length of 64 characters. - * * Normalized according to [Unicode Normalization Form C] - * (http://www.unicode.org/reports/tr15/). - * * May not contain any of the following ASCII characters: '/', ':', '?', - * ',', or '#'. - * @type \Google\Maps\FleetEngine\V1\Trip $trip - * Required. Trip entity to create. - * When creating a Trip, the following fields are required: - * * `trip_type` - * * `pickup_point` - * The following fields are used if you provide them: - * * `number_of_passengers` - * * `vehicle_id` - * * `dropoff_point` - * * `intermediate_destinations` - * * `vehicle_waypoints` - * All other Trip fields are ignored. For example, all trips start with a - * `trip_status` of `NEW` even if you pass in a `trip_status` of `CANCELED` in - * the creation request. - * Only `EXCLUSIVE` trips support `intermediate_destinations`. - * When `vehicle_id` is set for a shared trip, you must supply - * the list of `Trip.vehicle_waypoints` to specify the order of the remaining - * waypoints for the vehicle, otherwise the waypoint order will be - * undetermined. - * When you specify `Trip.vehicle_waypoints`, the list must contain all - * the remaining waypoints of the vehicle's trips, with no extra waypoints. - * You must order these waypoints such that for a given trip, the pickup - * point is before intermediate destinations, and all intermediate - * destinations come before the drop-off point. An `EXCLUSIVE` trip's - * waypoints must not interleave with any other trips. - * The `trip_id`, `waypoint_type` and `location` fields are used, and all - * other TripWaypoint fields in `vehicle_waypoints` are ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); - parent::__construct($data); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @return \Google\Maps\FleetEngine\V1\RequestHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @param \Google\Maps\FleetEngine\V1\RequestHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); - $this->header = $var; - - return $this; - } - - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Unique Trip ID. - * Subject to the following restrictions: - * * Must be a valid Unicode string. - * * Limited to a maximum length of 64 characters. - * * Normalized according to [Unicode Normalization Form C] - * (http://www.unicode.org/reports/tr15/). - * * May not contain any of the following ASCII characters: '/', ':', '?', - * ',', or '#'. - * - * Generated from protobuf field string trip_id = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTripId() - { - return $this->trip_id; - } - - /** - * Required. Unique Trip ID. - * Subject to the following restrictions: - * * Must be a valid Unicode string. - * * Limited to a maximum length of 64 characters. - * * Normalized according to [Unicode Normalization Form C] - * (http://www.unicode.org/reports/tr15/). - * * May not contain any of the following ASCII characters: '/', ':', '?', - * ',', or '#'. - * - * Generated from protobuf field string trip_id = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTripId($var) - { - GPBUtil::checkString($var, True); - $this->trip_id = $var; - - return $this; - } - - /** - * Required. Trip entity to create. - * When creating a Trip, the following fields are required: - * * `trip_type` - * * `pickup_point` - * The following fields are used if you provide them: - * * `number_of_passengers` - * * `vehicle_id` - * * `dropoff_point` - * * `intermediate_destinations` - * * `vehicle_waypoints` - * All other Trip fields are ignored. For example, all trips start with a - * `trip_status` of `NEW` even if you pass in a `trip_status` of `CANCELED` in - * the creation request. - * Only `EXCLUSIVE` trips support `intermediate_destinations`. - * When `vehicle_id` is set for a shared trip, you must supply - * the list of `Trip.vehicle_waypoints` to specify the order of the remaining - * waypoints for the vehicle, otherwise the waypoint order will be - * undetermined. - * When you specify `Trip.vehicle_waypoints`, the list must contain all - * the remaining waypoints of the vehicle's trips, with no extra waypoints. - * You must order these waypoints such that for a given trip, the pickup - * point is before intermediate destinations, and all intermediate - * destinations come before the drop-off point. An `EXCLUSIVE` trip's - * waypoints must not interleave with any other trips. - * The `trip_id`, `waypoint_type` and `location` fields are used, and all - * other TripWaypoint fields in `vehicle_waypoints` are ignored. - * - * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Maps\FleetEngine\V1\Trip|null - */ - public function getTrip() - { - return $this->trip; - } - - public function hasTrip() - { - return isset($this->trip); - } - - public function clearTrip() - { - unset($this->trip); - } - - /** - * Required. Trip entity to create. - * When creating a Trip, the following fields are required: - * * `trip_type` - * * `pickup_point` - * The following fields are used if you provide them: - * * `number_of_passengers` - * * `vehicle_id` - * * `dropoff_point` - * * `intermediate_destinations` - * * `vehicle_waypoints` - * All other Trip fields are ignored. For example, all trips start with a - * `trip_status` of `NEW` even if you pass in a `trip_status` of `CANCELED` in - * the creation request. - * Only `EXCLUSIVE` trips support `intermediate_destinations`. - * When `vehicle_id` is set for a shared trip, you must supply - * the list of `Trip.vehicle_waypoints` to specify the order of the remaining - * waypoints for the vehicle, otherwise the waypoint order will be - * undetermined. - * When you specify `Trip.vehicle_waypoints`, the list must contain all - * the remaining waypoints of the vehicle's trips, with no extra waypoints. - * You must order these waypoints such that for a given trip, the pickup - * point is before intermediate destinations, and all intermediate - * destinations come before the drop-off point. An `EXCLUSIVE` trip's - * waypoints must not interleave with any other trips. - * The `trip_id`, `waypoint_type` and `location` fields are used, and all - * other TripWaypoint fields in `vehicle_waypoints` are ignored. - * - * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Maps\FleetEngine\V1\Trip $var - * @return $this - */ - public function setTrip($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Trip::class); - $this->trip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateVehicleRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateVehicleRequest.php deleted file mode 100644 index 5cb20e991a11..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateVehicleRequest.php +++ /dev/null @@ -1,313 +0,0 @@ -maps.fleetengine.v1.CreateVehicleRequest - */ -class CreateVehicleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - */ - protected $header = null; - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * Required. Unique Vehicle ID. - * Subject to the following restrictions: - * * Must be a valid Unicode string. - * * Limited to a maximum length of 64 characters. - * * Normalized according to [Unicode Normalization Form C] - * (http://www.unicode.org/reports/tr15/). - * * May not contain any of the following ASCII characters: '/', ':', '?', - * ',', or '#'. - * - * Generated from protobuf field string vehicle_id = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $vehicle_id = ''; - /** - * Required. The Vehicle entity to create. When creating a Vehicle, the - * following fields are required: - * * `vehicleState` - * * `supportedTripTypes` - * * `maximumCapacity` - * * `vehicleType` - * When creating a Vehicle, the following fields are ignored: - * * `name` - * * `currentTrips` - * * `availableCapacity` - * * `current_route_segment` - * * `current_route_segment_end_point` - * * `current_route_segment_version` - * * `current_route_segment_traffic` - * * `route` - * * `waypoints` - * * `waypoints_version` - * * `remaining_distance_meters` - * * `remaining_time_seconds` - * * `eta_to_next_waypoint` - * * `navigation_status` - * All other fields are optional and used if provided. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $vehicle = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\RequestHeader $header - * The standard Fleet Engine request header. - * @type string $parent - * Required. Must be in the format `providers/{provider}`. - * 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. - * @type string $vehicle_id - * Required. Unique Vehicle ID. - * Subject to the following restrictions: - * * Must be a valid Unicode string. - * * Limited to a maximum length of 64 characters. - * * Normalized according to [Unicode Normalization Form C] - * (http://www.unicode.org/reports/tr15/). - * * May not contain any of the following ASCII characters: '/', ':', '?', - * ',', or '#'. - * @type \Google\Maps\FleetEngine\V1\Vehicle $vehicle - * Required. The Vehicle entity to create. When creating a Vehicle, the - * following fields are required: - * * `vehicleState` - * * `supportedTripTypes` - * * `maximumCapacity` - * * `vehicleType` - * When creating a Vehicle, the following fields are ignored: - * * `name` - * * `currentTrips` - * * `availableCapacity` - * * `current_route_segment` - * * `current_route_segment_end_point` - * * `current_route_segment_version` - * * `current_route_segment_traffic` - * * `route` - * * `waypoints` - * * `waypoints_version` - * * `remaining_distance_meters` - * * `remaining_time_seconds` - * * `eta_to_next_waypoint` - * * `navigation_status` - * All other fields are optional and used if provided. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @return \Google\Maps\FleetEngine\V1\RequestHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @param \Google\Maps\FleetEngine\V1\RequestHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); - $this->header = $var; - - return $this; - } - - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Unique Vehicle ID. - * Subject to the following restrictions: - * * Must be a valid Unicode string. - * * Limited to a maximum length of 64 characters. - * * Normalized according to [Unicode Normalization Form C] - * (http://www.unicode.org/reports/tr15/). - * * May not contain any of the following ASCII characters: '/', ':', '?', - * ',', or '#'. - * - * Generated from protobuf field string vehicle_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getVehicleId() - { - return $this->vehicle_id; - } - - /** - * Required. Unique Vehicle ID. - * Subject to the following restrictions: - * * Must be a valid Unicode string. - * * Limited to a maximum length of 64 characters. - * * Normalized according to [Unicode Normalization Form C] - * (http://www.unicode.org/reports/tr15/). - * * May not contain any of the following ASCII characters: '/', ':', '?', - * ',', or '#'. - * - * Generated from protobuf field string vehicle_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setVehicleId($var) - { - GPBUtil::checkString($var, True); - $this->vehicle_id = $var; - - return $this; - } - - /** - * Required. The Vehicle entity to create. When creating a Vehicle, the - * following fields are required: - * * `vehicleState` - * * `supportedTripTypes` - * * `maximumCapacity` - * * `vehicleType` - * When creating a Vehicle, the following fields are ignored: - * * `name` - * * `currentTrips` - * * `availableCapacity` - * * `current_route_segment` - * * `current_route_segment_end_point` - * * `current_route_segment_version` - * * `current_route_segment_traffic` - * * `route` - * * `waypoints` - * * `waypoints_version` - * * `remaining_distance_meters` - * * `remaining_time_seconds` - * * `eta_to_next_waypoint` - * * `navigation_status` - * All other fields are optional and used if provided. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Maps\FleetEngine\V1\Vehicle|null - */ - public function getVehicle() - { - return $this->vehicle; - } - - public function hasVehicle() - { - return isset($this->vehicle); - } - - public function clearVehicle() - { - unset($this->vehicle); - } - - /** - * Required. The Vehicle entity to create. When creating a Vehicle, the - * following fields are required: - * * `vehicleState` - * * `supportedTripTypes` - * * `maximumCapacity` - * * `vehicleType` - * When creating a Vehicle, the following fields are ignored: - * * `name` - * * `currentTrips` - * * `availableCapacity` - * * `current_route_segment` - * * `current_route_segment_end_point` - * * `current_route_segment_version` - * * `current_route_segment_traffic` - * * `route` - * * `waypoints` - * * `waypoints_version` - * * `remaining_distance_meters` - * * `remaining_time_seconds` - * * `eta_to_next_waypoint` - * * `navigation_status` - * All other fields are optional and used if provided. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Maps\FleetEngine\V1\Vehicle $var - * @return $this - */ - public function setVehicle($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Vehicle::class); - $this->vehicle = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/DeviceSettings.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/DeviceSettings.php deleted file mode 100644 index 7cd163b718f0..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/DeviceSettings.php +++ /dev/null @@ -1,183 +0,0 @@ -maps.fleetengine.v1.DeviceSettings - */ -class DeviceSettings extends \Google\Protobuf\Internal\Message -{ - /** - * How location features are set to behave on the device when battery saver is - * on. - * - * Generated from protobuf field .maps.fleetengine.v1.LocationPowerSaveMode location_power_save_mode = 1; - */ - protected $location_power_save_mode = 0; - /** - * Whether the device is currently in power save mode. - * - * Generated from protobuf field bool is_power_save_mode = 2; - */ - protected $is_power_save_mode = false; - /** - * Whether the device is in an interactive state. - * - * Generated from protobuf field bool is_interactive = 3; - */ - protected $is_interactive = false; - /** - * Information about the battery state. - * - * Generated from protobuf field .maps.fleetengine.v1.BatteryInfo battery_info = 4; - */ - protected $battery_info = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $location_power_save_mode - * How location features are set to behave on the device when battery saver is - * on. - * @type bool $is_power_save_mode - * Whether the device is currently in power save mode. - * @type bool $is_interactive - * Whether the device is in an interactive state. - * @type \Google\Maps\FleetEngine\V1\BatteryInfo $battery_info - * Information about the battery state. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); - parent::__construct($data); - } - - /** - * How location features are set to behave on the device when battery saver is - * on. - * - * Generated from protobuf field .maps.fleetengine.v1.LocationPowerSaveMode location_power_save_mode = 1; - * @return int - */ - public function getLocationPowerSaveMode() - { - return $this->location_power_save_mode; - } - - /** - * How location features are set to behave on the device when battery saver is - * on. - * - * Generated from protobuf field .maps.fleetengine.v1.LocationPowerSaveMode location_power_save_mode = 1; - * @param int $var - * @return $this - */ - public function setLocationPowerSaveMode($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\LocationPowerSaveMode::class); - $this->location_power_save_mode = $var; - - return $this; - } - - /** - * Whether the device is currently in power save mode. - * - * Generated from protobuf field bool is_power_save_mode = 2; - * @return bool - */ - public function getIsPowerSaveMode() - { - return $this->is_power_save_mode; - } - - /** - * Whether the device is currently in power save mode. - * - * Generated from protobuf field bool is_power_save_mode = 2; - * @param bool $var - * @return $this - */ - public function setIsPowerSaveMode($var) - { - GPBUtil::checkBool($var); - $this->is_power_save_mode = $var; - - return $this; - } - - /** - * Whether the device is in an interactive state. - * - * Generated from protobuf field bool is_interactive = 3; - * @return bool - */ - public function getIsInteractive() - { - return $this->is_interactive; - } - - /** - * Whether the device is in an interactive state. - * - * Generated from protobuf field bool is_interactive = 3; - * @param bool $var - * @return $this - */ - public function setIsInteractive($var) - { - GPBUtil::checkBool($var); - $this->is_interactive = $var; - - return $this; - } - - /** - * Information about the battery state. - * - * Generated from protobuf field .maps.fleetengine.v1.BatteryInfo battery_info = 4; - * @return \Google\Maps\FleetEngine\V1\BatteryInfo|null - */ - public function getBatteryInfo() - { - return $this->battery_info; - } - - public function hasBatteryInfo() - { - return isset($this->battery_info); - } - - public function clearBatteryInfo() - { - unset($this->battery_info); - } - - /** - * Information about the battery state. - * - * Generated from protobuf field .maps.fleetengine.v1.BatteryInfo battery_info = 4; - * @param \Google\Maps\FleetEngine\V1\BatteryInfo $var - * @return $this - */ - public function setBatteryInfo($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\BatteryInfo::class); - $this->battery_info = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetTripRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetTripRequest.php deleted file mode 100644 index 471812e6a653..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetTripRequest.php +++ /dev/null @@ -1,439 +0,0 @@ -maps.fleetengine.v1.GetTripRequest - */ -class GetTripRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - */ - protected $header = null; - /** - * Required. Must be in the format `providers/{provider}/trips/{trip}`. - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The subset of Trip fields that should be returned and their interpretation. - * - * Generated from protobuf field .maps.fleetengine.v1.TripView view = 11; - */ - protected $view = 0; - /** - * Indicates the minimum timestamp (exclusive) for which `Trip.route` or - * `Trip.current_route_segment` data are retrieved. If route data are - * unchanged since this timestamp, the route field is not set in the response. - * If a minimum is unspecified, the route data are always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 6; - */ - protected $current_route_segment_version = null; - /** - * Indicates the minimum timestamp (exclusive) for which - * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this - * timestamp, the `remaining_waypoints` are not set in the response. If this - * field is unspecified, `remaining_waypoints` is always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 7; - */ - protected $remaining_waypoints_version = null; - /** - * The returned current route format, `LAT_LNG_LIST_TYPE` (in `Trip.route`), - * or `ENCODED_POLYLINE_TYPE` (in `Trip.current_route_segment`). The default - * is `LAT_LNG_LIST_TYPE`. - * - * Generated from protobuf field .maps.fleetengine.v1.PolylineFormatType route_format_type = 8; - */ - protected $route_format_type = 0; - /** - * Indicates the minimum timestamp (exclusive) for which - * `Trip.current_route_segment_traffic` is retrieved. If traffic data are - * unchanged since this timestamp, the `current_route_segment_traffic` field - * is not set in the response. If a minimum is unspecified, the traffic data - * are always retrieved. Note that traffic is only available for On-Demand - * Rides and Deliveries Solution customers. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 9; - */ - protected $current_route_segment_traffic_version = null; - /** - * Indicates the minimum timestamp (exclusive) for which - * `Trip.remaining_waypoints.traffic_to_waypoint` and - * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved. If data are - * unchanged since this timestamp, the fields above are - * not set in the response. If `remaining_waypoints_route_version` is - * unspecified, traffic and path are always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 10; - */ - protected $remaining_waypoints_route_version = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\RequestHeader $header - * The standard Fleet Engine request header. - * @type string $name - * Required. Must be in the format `providers/{provider}/trips/{trip}`. - * 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. - * @type int $view - * The subset of Trip fields that should be returned and their interpretation. - * @type \Google\Protobuf\Timestamp $current_route_segment_version - * Indicates the minimum timestamp (exclusive) for which `Trip.route` or - * `Trip.current_route_segment` data are retrieved. If route data are - * unchanged since this timestamp, the route field is not set in the response. - * If a minimum is unspecified, the route data are always retrieved. - * @type \Google\Protobuf\Timestamp $remaining_waypoints_version - * Indicates the minimum timestamp (exclusive) for which - * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this - * timestamp, the `remaining_waypoints` are not set in the response. If this - * field is unspecified, `remaining_waypoints` is always retrieved. - * @type int $route_format_type - * The returned current route format, `LAT_LNG_LIST_TYPE` (in `Trip.route`), - * or `ENCODED_POLYLINE_TYPE` (in `Trip.current_route_segment`). The default - * is `LAT_LNG_LIST_TYPE`. - * @type \Google\Protobuf\Timestamp $current_route_segment_traffic_version - * Indicates the minimum timestamp (exclusive) for which - * `Trip.current_route_segment_traffic` is retrieved. If traffic data are - * unchanged since this timestamp, the `current_route_segment_traffic` field - * is not set in the response. If a minimum is unspecified, the traffic data - * are always retrieved. Note that traffic is only available for On-Demand - * Rides and Deliveries Solution customers. - * @type \Google\Protobuf\Timestamp $remaining_waypoints_route_version - * Indicates the minimum timestamp (exclusive) for which - * `Trip.remaining_waypoints.traffic_to_waypoint` and - * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved. If data are - * unchanged since this timestamp, the fields above are - * not set in the response. If `remaining_waypoints_route_version` is - * unspecified, traffic and path are always retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); - parent::__construct($data); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @return \Google\Maps\FleetEngine\V1\RequestHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @param \Google\Maps\FleetEngine\V1\RequestHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); - $this->header = $var; - - return $this; - } - - /** - * Required. Must be in the format `providers/{provider}/trips/{trip}`. - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Must be in the format `providers/{provider}/trips/{trip}`. - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The subset of Trip fields that should be returned and their interpretation. - * - * Generated from protobuf field .maps.fleetengine.v1.TripView view = 11; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * The subset of Trip fields that should be returned and their interpretation. - * - * Generated from protobuf field .maps.fleetengine.v1.TripView view = 11; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\TripView::class); - $this->view = $var; - - return $this; - } - - /** - * Indicates the minimum timestamp (exclusive) for which `Trip.route` or - * `Trip.current_route_segment` data are retrieved. If route data are - * unchanged since this timestamp, the route field is not set in the response. - * If a minimum is unspecified, the route data are always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCurrentRouteSegmentVersion() - { - return $this->current_route_segment_version; - } - - public function hasCurrentRouteSegmentVersion() - { - return isset($this->current_route_segment_version); - } - - public function clearCurrentRouteSegmentVersion() - { - unset($this->current_route_segment_version); - } - - /** - * Indicates the minimum timestamp (exclusive) for which `Trip.route` or - * `Trip.current_route_segment` data are retrieved. If route data are - * unchanged since this timestamp, the route field is not set in the response. - * If a minimum is unspecified, the route data are always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCurrentRouteSegmentVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->current_route_segment_version = $var; - - return $this; - } - - /** - * Indicates the minimum timestamp (exclusive) for which - * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this - * timestamp, the `remaining_waypoints` are not set in the response. If this - * field is unspecified, `remaining_waypoints` is always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 7; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRemainingWaypointsVersion() - { - return $this->remaining_waypoints_version; - } - - public function hasRemainingWaypointsVersion() - { - return isset($this->remaining_waypoints_version); - } - - public function clearRemainingWaypointsVersion() - { - unset($this->remaining_waypoints_version); - } - - /** - * Indicates the minimum timestamp (exclusive) for which - * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this - * timestamp, the `remaining_waypoints` are not set in the response. If this - * field is unspecified, `remaining_waypoints` is always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRemainingWaypointsVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->remaining_waypoints_version = $var; - - return $this; - } - - /** - * The returned current route format, `LAT_LNG_LIST_TYPE` (in `Trip.route`), - * or `ENCODED_POLYLINE_TYPE` (in `Trip.current_route_segment`). The default - * is `LAT_LNG_LIST_TYPE`. - * - * Generated from protobuf field .maps.fleetengine.v1.PolylineFormatType route_format_type = 8; - * @return int - */ - public function getRouteFormatType() - { - return $this->route_format_type; - } - - /** - * The returned current route format, `LAT_LNG_LIST_TYPE` (in `Trip.route`), - * or `ENCODED_POLYLINE_TYPE` (in `Trip.current_route_segment`). The default - * is `LAT_LNG_LIST_TYPE`. - * - * Generated from protobuf field .maps.fleetengine.v1.PolylineFormatType route_format_type = 8; - * @param int $var - * @return $this - */ - public function setRouteFormatType($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\PolylineFormatType::class); - $this->route_format_type = $var; - - return $this; - } - - /** - * Indicates the minimum timestamp (exclusive) for which - * `Trip.current_route_segment_traffic` is retrieved. If traffic data are - * unchanged since this timestamp, the `current_route_segment_traffic` field - * is not set in the response. If a minimum is unspecified, the traffic data - * are always retrieved. Note that traffic is only available for On-Demand - * Rides and Deliveries Solution customers. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 9; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCurrentRouteSegmentTrafficVersion() - { - return $this->current_route_segment_traffic_version; - } - - public function hasCurrentRouteSegmentTrafficVersion() - { - return isset($this->current_route_segment_traffic_version); - } - - public function clearCurrentRouteSegmentTrafficVersion() - { - unset($this->current_route_segment_traffic_version); - } - - /** - * Indicates the minimum timestamp (exclusive) for which - * `Trip.current_route_segment_traffic` is retrieved. If traffic data are - * unchanged since this timestamp, the `current_route_segment_traffic` field - * is not set in the response. If a minimum is unspecified, the traffic data - * are always retrieved. Note that traffic is only available for On-Demand - * Rides and Deliveries Solution customers. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 9; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCurrentRouteSegmentTrafficVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->current_route_segment_traffic_version = $var; - - return $this; - } - - /** - * Indicates the minimum timestamp (exclusive) for which - * `Trip.remaining_waypoints.traffic_to_waypoint` and - * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved. If data are - * unchanged since this timestamp, the fields above are - * not set in the response. If `remaining_waypoints_route_version` is - * unspecified, traffic and path are always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 10; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRemainingWaypointsRouteVersion() - { - return $this->remaining_waypoints_route_version; - } - - public function hasRemainingWaypointsRouteVersion() - { - return isset($this->remaining_waypoints_route_version); - } - - public function clearRemainingWaypointsRouteVersion() - { - unset($this->remaining_waypoints_route_version); - } - - /** - * Indicates the minimum timestamp (exclusive) for which - * `Trip.remaining_waypoints.traffic_to_waypoint` and - * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved. If data are - * unchanged since this timestamp, the fields above are - * not set in the response. If `remaining_waypoints_route_version` is - * unspecified, traffic and path are always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 10; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRemainingWaypointsRouteVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->remaining_waypoints_route_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetVehicleRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetVehicleRequest.php deleted file mode 100644 index 90b14b5176c4..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetVehicleRequest.php +++ /dev/null @@ -1,243 +0,0 @@ -maps.fleetengine.v1.GetVehicleRequest - */ -class GetVehicleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - */ - protected $header = null; - /** - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Indicates the minimum timestamp (exclusive) for which - * `Vehicle.current_route_segment` is retrieved. - * If the route is unchanged since this timestamp, the `current_route_segment` - * field is not set in the response. If a minimum is unspecified, the - * `current_route_segment` is always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 4; - */ - protected $current_route_segment_version = null; - /** - * Indicates the minimum timestamp (exclusive) for which `Vehicle.waypoints` - * data is retrieved. If the waypoints are unchanged since this timestamp, the - * `vehicle.waypoints` data is not set in the response. If this field is - * unspecified, `vehicle.waypoints` is always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 5; - */ - protected $waypoints_version = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\RequestHeader $header - * The standard Fleet Engine request header. - * @type string $name - * 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. - * @type \Google\Protobuf\Timestamp $current_route_segment_version - * Indicates the minimum timestamp (exclusive) for which - * `Vehicle.current_route_segment` is retrieved. - * If the route is unchanged since this timestamp, the `current_route_segment` - * field is not set in the response. If a minimum is unspecified, the - * `current_route_segment` is always retrieved. - * @type \Google\Protobuf\Timestamp $waypoints_version - * Indicates the minimum timestamp (exclusive) for which `Vehicle.waypoints` - * data is retrieved. If the waypoints are unchanged since this timestamp, the - * `vehicle.waypoints` data is not set in the response. If this field is - * unspecified, `vehicle.waypoints` is always retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @return \Google\Maps\FleetEngine\V1\RequestHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @param \Google\Maps\FleetEngine\V1\RequestHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); - $this->header = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Indicates the minimum timestamp (exclusive) for which - * `Vehicle.current_route_segment` is retrieved. - * If the route is unchanged since this timestamp, the `current_route_segment` - * field is not set in the response. If a minimum is unspecified, the - * `current_route_segment` is always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCurrentRouteSegmentVersion() - { - return $this->current_route_segment_version; - } - - public function hasCurrentRouteSegmentVersion() - { - return isset($this->current_route_segment_version); - } - - public function clearCurrentRouteSegmentVersion() - { - unset($this->current_route_segment_version); - } - - /** - * Indicates the minimum timestamp (exclusive) for which - * `Vehicle.current_route_segment` is retrieved. - * If the route is unchanged since this timestamp, the `current_route_segment` - * field is not set in the response. If a minimum is unspecified, the - * `current_route_segment` is always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCurrentRouteSegmentVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->current_route_segment_version = $var; - - return $this; - } - - /** - * Indicates the minimum timestamp (exclusive) for which `Vehicle.waypoints` - * data is retrieved. If the waypoints are unchanged since this timestamp, the - * `vehicle.waypoints` data is not set in the response. If this field is - * unspecified, `vehicle.waypoints` is always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 5; - * @return \Google\Protobuf\Timestamp|null - */ - public function getWaypointsVersion() - { - return $this->waypoints_version; - } - - public function hasWaypointsVersion() - { - return isset($this->waypoints_version); - } - - public function clearWaypointsVersion() - { - unset($this->waypoints_version); - } - - /** - * Indicates the minimum timestamp (exclusive) for which `Vehicle.waypoints` - * data is retrieved. If the waypoints are unchanged since this timestamp, the - * `vehicle.waypoints` data is not set in the response. If this field is - * unspecified, `vehicle.waypoints` is always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setWaypointsVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->waypoints_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LicensePlate.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LicensePlate.php deleted file mode 100644 index 8d2fe48298c7..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LicensePlate.php +++ /dev/null @@ -1,123 +0,0 @@ -maps.fleetengine.v1.LicensePlate - */ -class LicensePlate extends \Google\Protobuf\Internal\Message -{ - /** - * Required. CLDR Country/Region Code. For example, `US` for United States, - * or `IN` for India. - * - * Generated from protobuf field string country_code = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $country_code = ''; - /** - * The last digit of the license plate or "-1" to denote no numeric value - * is present in the license plate. - * * "ABC 1234" -> "4" - * * "AB 123 CD" -> "3" - * * "ABCDEF" -> "-1" - * - * Generated from protobuf field string last_character = 2; - */ - protected $last_character = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $country_code - * Required. CLDR Country/Region Code. For example, `US` for United States, - * or `IN` for India. - * @type string $last_character - * The last digit of the license plate or "-1" to denote no numeric value - * is present in the license plate. - * * "ABC 1234" -> "4" - * * "AB 123 CD" -> "3" - * * "ABCDEF" -> "-1" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); - parent::__construct($data); - } - - /** - * Required. CLDR Country/Region Code. For example, `US` for United States, - * or `IN` for India. - * - * Generated from protobuf field string country_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCountryCode() - { - return $this->country_code; - } - - /** - * Required. CLDR Country/Region Code. For example, `US` for United States, - * or `IN` for India. - * - * Generated from protobuf field string country_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCountryCode($var) - { - GPBUtil::checkString($var, True); - $this->country_code = $var; - - return $this; - } - - /** - * The last digit of the license plate or "-1" to denote no numeric value - * is present in the license plate. - * * "ABC 1234" -> "4" - * * "AB 123 CD" -> "3" - * * "ABCDEF" -> "-1" - * - * Generated from protobuf field string last_character = 2; - * @return string - */ - public function getLastCharacter() - { - return $this->last_character; - } - - /** - * The last digit of the license plate or "-1" to denote no numeric value - * is present in the license plate. - * * "ABC 1234" -> "4" - * * "AB 123 CD" -> "3" - * * "ABCDEF" -> "-1" - * - * Generated from protobuf field string last_character = 2; - * @param string $var - * @return $this - */ - public function setLastCharacter($var) - { - GPBUtil::checkString($var, True); - $this->last_character = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesRequest.php deleted file mode 100644 index e9849fa89a77..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesRequest.php +++ /dev/null @@ -1,926 +0,0 @@ -maps.fleetengine.v1.ListVehiclesRequest - */ -class ListVehiclesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 12; - */ - protected $header = null; - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * The maximum number of vehicles to return. - * Default value: 100. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * The value of the `next_page_token` provided by a previous call to - * `ListVehicles` so that you can paginate through groups of vehicles. The - * value is undefined if the filter criteria of the request is not the same as - * the filter criteria for the previous call to `ListVehicles`. - * - * Generated from protobuf field string page_token = 4; - */ - protected $page_token = ''; - /** - * Specifies the required minimum capacity of the vehicle. All vehicles - * returned will have a `maximum_capacity` greater than or equal to this - * value. If set, must be greater or equal to 0. - * - * Generated from protobuf field .google.protobuf.Int32Value minimum_capacity = 6; - */ - protected $minimum_capacity = null; - /** - * Restricts the response to vehicles that support at least one of the - * specified trip types. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 7; - */ - private $trip_types; - /** - * Restricts the response to vehicles that have sent location updates to Fleet - * Engine within the specified duration. Stationary vehicles still - * transmitting their locations are not considered stale. If present, must be - * a valid positive duration. - * - * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 8; - */ - protected $maximum_staleness = null; - /** - * Required. Restricts the response to vehicles with one of the specified type - * categories. `UNKNOWN` is not allowed. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType.Category vehicle_type_categories = 9 [(.google.api.field_behavior) = REQUIRED]; - */ - private $vehicle_type_categories; - /** - * Callers can form complex logical operations using any combination of the - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attribute_sets` fields. - * `required_attributes` is a list; `required_one_of_attributes` uses a - * message which allows a list of lists. In combination, the two fields allow - * the composition of this expression: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR - * ...) - * AND - * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR - * ...) - * ``` - * Restricts the response to vehicles with the specified attributes. This - * field is a conjunction/AND operation. A max of 50 required_attributes is - * allowed. This matches the maximum number of attributes allowed on a - * vehicle. Each repeated string should be of the format "key:value". - * - * Generated from protobuf field repeated string required_attributes = 10; - */ - private $required_attributes; - /** - * Restricts the response to vehicles with at least one of the specified - * attributes in each `VehicleAttributeList`. Within each list, a vehicle must - * match at least one of the attributes. This field is an inclusive - * disjunction/OR operation in each `VehicleAttributeList` and a - * conjunction/AND operation across the collection of `VehicleAttributeList`. - * Each repeated string should be of the format - * "key1:value1|key2:value2|key3:value3". - * - * Generated from protobuf field repeated string required_one_of_attributes = 13; - */ - private $required_one_of_attributes; - /** - * `required_one_of_attribute_sets` provides additional functionality. - * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` - * uses a message which allows a list of lists, allowing expressions such as - * this one: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * ( - * (required_one_of_attribute_sets[0][0] AND - * required_one_of_attribute_sets[0][1] AND - * ...) - * OR - * (required_one_of_attribute_sets[1][0] AND - * required_one_of_attribute_sets[1][1] AND - * ...) - * ) - * ``` - * Restricts the response to vehicles that match all the attributes in a - * `VehicleAttributeList`. Within each list, a vehicle must match all of the - * attributes. This field is a conjunction/AND operation in each - * `VehicleAttributeList` and inclusive disjunction/OR operation across the - * collection of `VehicleAttributeList`. Each repeated string should be of the - * format "key1:value1|key2:value2|key3:value3". - * - * Generated from protobuf field repeated string required_one_of_attribute_sets = 15; - */ - private $required_one_of_attribute_sets; - /** - * Restricts the response to vehicles that have this vehicle state. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 11; - */ - protected $vehicle_state = 0; - /** - * Only return the vehicles with current trip(s). - * - * Generated from protobuf field bool on_trip_only = 14; - */ - protected $on_trip_only = false; - /** - * Optional. A filter query to apply when listing vehicles. See - * http://aip.dev/160 for examples of the filter syntax. - * This field is designed to replace the `required_attributes`, - * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. - * If a non-empty value is specified here, the following fields must be empty: - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attributes_sets`. - * This filter functions as an AND clause with other constraints, - * such as `vehicle_state` or `on_trip_only`. - * Note that the only queries supported are on vehicle attributes (for - * example, `attributes. = ` or `attributes. = AND - * attributes. = `). The maximum number of restrictions allowed - * in a filter query is 50. - * Also, all attributes are stored as strings, so the only supported - * comparisons against attributes are string comparisons. In order to compare - * against number or boolean values, the values must be explicitly quoted to - * be treated as strings (for example, `attributes. = "10"` or - * `attributes. = "true"`). - * - * Generated from protobuf field string filter = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. A filter that limits the vehicles returned to those whose last - * known location was in the rectangular area defined by the viewport. - * - * Generated from protobuf field .google.geo.type.Viewport viewport = 17 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $viewport = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\RequestHeader $header - * The standard Fleet Engine request header. - * @type string $parent - * Required. Must be in the format `providers/{provider}`. - * 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. - * @type int $page_size - * The maximum number of vehicles to return. - * Default value: 100. - * @type string $page_token - * The value of the `next_page_token` provided by a previous call to - * `ListVehicles` so that you can paginate through groups of vehicles. The - * value is undefined if the filter criteria of the request is not the same as - * the filter criteria for the previous call to `ListVehicles`. - * @type \Google\Protobuf\Int32Value $minimum_capacity - * Specifies the required minimum capacity of the vehicle. All vehicles - * returned will have a `maximum_capacity` greater than or equal to this - * value. If set, must be greater or equal to 0. - * @type array|\Google\Protobuf\Internal\RepeatedField $trip_types - * Restricts the response to vehicles that support at least one of the - * specified trip types. - * @type \Google\Protobuf\Duration $maximum_staleness - * Restricts the response to vehicles that have sent location updates to Fleet - * Engine within the specified duration. Stationary vehicles still - * transmitting their locations are not considered stale. If present, must be - * a valid positive duration. - * @type array|\Google\Protobuf\Internal\RepeatedField $vehicle_type_categories - * Required. Restricts the response to vehicles with one of the specified type - * categories. `UNKNOWN` is not allowed. - * @type array|\Google\Protobuf\Internal\RepeatedField $required_attributes - * Callers can form complex logical operations using any combination of the - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attribute_sets` fields. - * `required_attributes` is a list; `required_one_of_attributes` uses a - * message which allows a list of lists. In combination, the two fields allow - * the composition of this expression: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR - * ...) - * AND - * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR - * ...) - * ``` - * Restricts the response to vehicles with the specified attributes. This - * field is a conjunction/AND operation. A max of 50 required_attributes is - * allowed. This matches the maximum number of attributes allowed on a - * vehicle. Each repeated string should be of the format "key:value". - * @type array|\Google\Protobuf\Internal\RepeatedField $required_one_of_attributes - * Restricts the response to vehicles with at least one of the specified - * attributes in each `VehicleAttributeList`. Within each list, a vehicle must - * match at least one of the attributes. This field is an inclusive - * disjunction/OR operation in each `VehicleAttributeList` and a - * conjunction/AND operation across the collection of `VehicleAttributeList`. - * Each repeated string should be of the format - * "key1:value1|key2:value2|key3:value3". - * @type array|\Google\Protobuf\Internal\RepeatedField $required_one_of_attribute_sets - * `required_one_of_attribute_sets` provides additional functionality. - * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` - * uses a message which allows a list of lists, allowing expressions such as - * this one: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * ( - * (required_one_of_attribute_sets[0][0] AND - * required_one_of_attribute_sets[0][1] AND - * ...) - * OR - * (required_one_of_attribute_sets[1][0] AND - * required_one_of_attribute_sets[1][1] AND - * ...) - * ) - * ``` - * Restricts the response to vehicles that match all the attributes in a - * `VehicleAttributeList`. Within each list, a vehicle must match all of the - * attributes. This field is a conjunction/AND operation in each - * `VehicleAttributeList` and inclusive disjunction/OR operation across the - * collection of `VehicleAttributeList`. Each repeated string should be of the - * format "key1:value1|key2:value2|key3:value3". - * @type int $vehicle_state - * Restricts the response to vehicles that have this vehicle state. - * @type bool $on_trip_only - * Only return the vehicles with current trip(s). - * @type string $filter - * Optional. A filter query to apply when listing vehicles. See - * http://aip.dev/160 for examples of the filter syntax. - * This field is designed to replace the `required_attributes`, - * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. - * If a non-empty value is specified here, the following fields must be empty: - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attributes_sets`. - * This filter functions as an AND clause with other constraints, - * such as `vehicle_state` or `on_trip_only`. - * Note that the only queries supported are on vehicle attributes (for - * example, `attributes. = ` or `attributes. = AND - * attributes. = `). The maximum number of restrictions allowed - * in a filter query is 50. - * Also, all attributes are stored as strings, so the only supported - * comparisons against attributes are string comparisons. In order to compare - * against number or boolean values, the values must be explicitly quoted to - * be treated as strings (for example, `attributes. = "10"` or - * `attributes. = "true"`). - * @type \Google\Geo\Type\Viewport $viewport - * Optional. A filter that limits the vehicles returned to those whose last - * known location was in the rectangular area defined by the viewport. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 12; - * @return \Google\Maps\FleetEngine\V1\RequestHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 12; - * @param \Google\Maps\FleetEngine\V1\RequestHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); - $this->header = $var; - - return $this; - } - - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of vehicles to return. - * Default value: 100. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of vehicles to return. - * Default value: 100. - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * The value of the `next_page_token` provided by a previous call to - * `ListVehicles` so that you can paginate through groups of vehicles. The - * value is undefined if the filter criteria of the request is not the same as - * the filter criteria for the previous call to `ListVehicles`. - * - * Generated from protobuf field string page_token = 4; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The value of the `next_page_token` provided by a previous call to - * `ListVehicles` so that you can paginate through groups of vehicles. The - * value is undefined if the filter criteria of the request is not the same as - * the filter criteria for the previous call to `ListVehicles`. - * - * Generated from protobuf field string page_token = 4; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Specifies the required minimum capacity of the vehicle. All vehicles - * returned will have a `maximum_capacity` greater than or equal to this - * value. If set, must be greater or equal to 0. - * - * Generated from protobuf field .google.protobuf.Int32Value minimum_capacity = 6; - * @return \Google\Protobuf\Int32Value|null - */ - public function getMinimumCapacity() - { - return $this->minimum_capacity; - } - - public function hasMinimumCapacity() - { - return isset($this->minimum_capacity); - } - - public function clearMinimumCapacity() - { - unset($this->minimum_capacity); - } - - /** - * Returns the unboxed value from getMinimumCapacity() - - * Specifies the required minimum capacity of the vehicle. All vehicles - * returned will have a `maximum_capacity` greater than or equal to this - * value. If set, must be greater or equal to 0. - * - * Generated from protobuf field .google.protobuf.Int32Value minimum_capacity = 6; - * @return int|null - */ - public function getMinimumCapacityUnwrapped() - { - return $this->readWrapperValue("minimum_capacity"); - } - - /** - * Specifies the required minimum capacity of the vehicle. All vehicles - * returned will have a `maximum_capacity` greater than or equal to this - * value. If set, must be greater or equal to 0. - * - * Generated from protobuf field .google.protobuf.Int32Value minimum_capacity = 6; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setMinimumCapacity($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->minimum_capacity = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * Specifies the required minimum capacity of the vehicle. All vehicles - * returned will have a `maximum_capacity` greater than or equal to this - * value. If set, must be greater or equal to 0. - * - * Generated from protobuf field .google.protobuf.Int32Value minimum_capacity = 6; - * @param int|null $var - * @return $this - */ - public function setMinimumCapacityUnwrapped($var) - { - $this->writeWrapperValue("minimum_capacity", $var); - return $this;} - - /** - * Restricts the response to vehicles that support at least one of the - * specified trip types. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTripTypes() - { - return $this->trip_types; - } - - /** - * Restricts the response to vehicles that support at least one of the - * specified trip types. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTripTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Maps\FleetEngine\V1\TripType::class); - $this->trip_types = $arr; - - return $this; - } - - /** - * Restricts the response to vehicles that have sent location updates to Fleet - * Engine within the specified duration. Stationary vehicles still - * transmitting their locations are not considered stale. If present, must be - * a valid positive duration. - * - * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 8; - * @return \Google\Protobuf\Duration|null - */ - public function getMaximumStaleness() - { - return $this->maximum_staleness; - } - - public function hasMaximumStaleness() - { - return isset($this->maximum_staleness); - } - - public function clearMaximumStaleness() - { - unset($this->maximum_staleness); - } - - /** - * Restricts the response to vehicles that have sent location updates to Fleet - * Engine within the specified duration. Stationary vehicles still - * transmitting their locations are not considered stale. If present, must be - * a valid positive duration. - * - * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 8; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMaximumStaleness($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->maximum_staleness = $var; - - return $this; - } - - /** - * Required. Restricts the response to vehicles with one of the specified type - * categories. `UNKNOWN` is not allowed. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType.Category vehicle_type_categories = 9 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVehicleTypeCategories() - { - return $this->vehicle_type_categories; - } - - /** - * Required. Restricts the response to vehicles with one of the specified type - * categories. `UNKNOWN` is not allowed. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType.Category vehicle_type_categories = 9 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVehicleTypeCategories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Maps\FleetEngine\V1\Vehicle\VehicleType\Category::class); - $this->vehicle_type_categories = $arr; - - return $this; - } - - /** - * Callers can form complex logical operations using any combination of the - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attribute_sets` fields. - * `required_attributes` is a list; `required_one_of_attributes` uses a - * message which allows a list of lists. In combination, the two fields allow - * the composition of this expression: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR - * ...) - * AND - * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR - * ...) - * ``` - * Restricts the response to vehicles with the specified attributes. This - * field is a conjunction/AND operation. A max of 50 required_attributes is - * allowed. This matches the maximum number of attributes allowed on a - * vehicle. Each repeated string should be of the format "key:value". - * - * Generated from protobuf field repeated string required_attributes = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequiredAttributes() - { - return $this->required_attributes; - } - - /** - * Callers can form complex logical operations using any combination of the - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attribute_sets` fields. - * `required_attributes` is a list; `required_one_of_attributes` uses a - * message which allows a list of lists. In combination, the two fields allow - * the composition of this expression: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR - * ...) - * AND - * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR - * ...) - * ``` - * Restricts the response to vehicles with the specified attributes. This - * field is a conjunction/AND operation. A max of 50 required_attributes is - * allowed. This matches the maximum number of attributes allowed on a - * vehicle. Each repeated string should be of the format "key:value". - * - * Generated from protobuf field repeated string required_attributes = 10; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequiredAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->required_attributes = $arr; - - return $this; - } - - /** - * Restricts the response to vehicles with at least one of the specified - * attributes in each `VehicleAttributeList`. Within each list, a vehicle must - * match at least one of the attributes. This field is an inclusive - * disjunction/OR operation in each `VehicleAttributeList` and a - * conjunction/AND operation across the collection of `VehicleAttributeList`. - * Each repeated string should be of the format - * "key1:value1|key2:value2|key3:value3". - * - * Generated from protobuf field repeated string required_one_of_attributes = 13; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequiredOneOfAttributes() - { - return $this->required_one_of_attributes; - } - - /** - * Restricts the response to vehicles with at least one of the specified - * attributes in each `VehicleAttributeList`. Within each list, a vehicle must - * match at least one of the attributes. This field is an inclusive - * disjunction/OR operation in each `VehicleAttributeList` and a - * conjunction/AND operation across the collection of `VehicleAttributeList`. - * Each repeated string should be of the format - * "key1:value1|key2:value2|key3:value3". - * - * Generated from protobuf field repeated string required_one_of_attributes = 13; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequiredOneOfAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->required_one_of_attributes = $arr; - - return $this; - } - - /** - * `required_one_of_attribute_sets` provides additional functionality. - * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` - * uses a message which allows a list of lists, allowing expressions such as - * this one: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * ( - * (required_one_of_attribute_sets[0][0] AND - * required_one_of_attribute_sets[0][1] AND - * ...) - * OR - * (required_one_of_attribute_sets[1][0] AND - * required_one_of_attribute_sets[1][1] AND - * ...) - * ) - * ``` - * Restricts the response to vehicles that match all the attributes in a - * `VehicleAttributeList`. Within each list, a vehicle must match all of the - * attributes. This field is a conjunction/AND operation in each - * `VehicleAttributeList` and inclusive disjunction/OR operation across the - * collection of `VehicleAttributeList`. Each repeated string should be of the - * format "key1:value1|key2:value2|key3:value3". - * - * Generated from protobuf field repeated string required_one_of_attribute_sets = 15; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequiredOneOfAttributeSets() - { - return $this->required_one_of_attribute_sets; - } - - /** - * `required_one_of_attribute_sets` provides additional functionality. - * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` - * uses a message which allows a list of lists, allowing expressions such as - * this one: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * ( - * (required_one_of_attribute_sets[0][0] AND - * required_one_of_attribute_sets[0][1] AND - * ...) - * OR - * (required_one_of_attribute_sets[1][0] AND - * required_one_of_attribute_sets[1][1] AND - * ...) - * ) - * ``` - * Restricts the response to vehicles that match all the attributes in a - * `VehicleAttributeList`. Within each list, a vehicle must match all of the - * attributes. This field is a conjunction/AND operation in each - * `VehicleAttributeList` and inclusive disjunction/OR operation across the - * collection of `VehicleAttributeList`. Each repeated string should be of the - * format "key1:value1|key2:value2|key3:value3". - * - * Generated from protobuf field repeated string required_one_of_attribute_sets = 15; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequiredOneOfAttributeSets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->required_one_of_attribute_sets = $arr; - - return $this; - } - - /** - * Restricts the response to vehicles that have this vehicle state. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 11; - * @return int - */ - public function getVehicleState() - { - return $this->vehicle_state; - } - - /** - * Restricts the response to vehicles that have this vehicle state. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 11; - * @param int $var - * @return $this - */ - public function setVehicleState($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\VehicleState::class); - $this->vehicle_state = $var; - - return $this; - } - - /** - * Only return the vehicles with current trip(s). - * - * Generated from protobuf field bool on_trip_only = 14; - * @return bool - */ - public function getOnTripOnly() - { - return $this->on_trip_only; - } - - /** - * Only return the vehicles with current trip(s). - * - * Generated from protobuf field bool on_trip_only = 14; - * @param bool $var - * @return $this - */ - public function setOnTripOnly($var) - { - GPBUtil::checkBool($var); - $this->on_trip_only = $var; - - return $this; - } - - /** - * Optional. A filter query to apply when listing vehicles. See - * http://aip.dev/160 for examples of the filter syntax. - * This field is designed to replace the `required_attributes`, - * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. - * If a non-empty value is specified here, the following fields must be empty: - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attributes_sets`. - * This filter functions as an AND clause with other constraints, - * such as `vehicle_state` or `on_trip_only`. - * Note that the only queries supported are on vehicle attributes (for - * example, `attributes. = ` or `attributes. = AND - * attributes. = `). The maximum number of restrictions allowed - * in a filter query is 50. - * Also, all attributes are stored as strings, so the only supported - * comparisons against attributes are string comparisons. In order to compare - * against number or boolean values, the values must be explicitly quoted to - * be treated as strings (for example, `attributes. = "10"` or - * `attributes. = "true"`). - * - * Generated from protobuf field string filter = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. A filter query to apply when listing vehicles. See - * http://aip.dev/160 for examples of the filter syntax. - * This field is designed to replace the `required_attributes`, - * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. - * If a non-empty value is specified here, the following fields must be empty: - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attributes_sets`. - * This filter functions as an AND clause with other constraints, - * such as `vehicle_state` or `on_trip_only`. - * Note that the only queries supported are on vehicle attributes (for - * example, `attributes. = ` or `attributes. = AND - * attributes. = `). The maximum number of restrictions allowed - * in a filter query is 50. - * Also, all attributes are stored as strings, so the only supported - * comparisons against attributes are string comparisons. In order to compare - * against number or boolean values, the values must be explicitly quoted to - * be treated as strings (for example, `attributes. = "10"` or - * `attributes. = "true"`). - * - * Generated from protobuf field string filter = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. A filter that limits the vehicles returned to those whose last - * known location was in the rectangular area defined by the viewport. - * - * Generated from protobuf field .google.geo.type.Viewport viewport = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Geo\Type\Viewport|null - */ - public function getViewport() - { - return $this->viewport; - } - - public function hasViewport() - { - return isset($this->viewport); - } - - public function clearViewport() - { - unset($this->viewport); - } - - /** - * Optional. A filter that limits the vehicles returned to those whose last - * known location was in the rectangular area defined by the viewport. - * - * Generated from protobuf field .google.geo.type.Viewport viewport = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Geo\Type\Viewport $var - * @return $this - */ - public function setViewport($var) - { - GPBUtil::checkMessage($var, \Google\Geo\Type\Viewport::class); - $this->viewport = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesResponse.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesResponse.php deleted file mode 100644 index 2ba9724c211e..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesResponse.php +++ /dev/null @@ -1,151 +0,0 @@ -maps.fleetengine.v1.ListVehiclesResponse - */ -class ListVehiclesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Vehicles matching the criteria in the request. - * The maximum number of vehicles returned is determined by the `page_size` - * field in the request. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle vehicles = 1; - */ - private $vehicles; - /** - * Token to retrieve the next page of vehicles, or empty if there are no - * more vehicles that meet the request criteria. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Required. Total number of vehicles matching the request criteria across all - * pages. - * - * Generated from protobuf field int64 total_size = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Maps\FleetEngine\V1\Vehicle>|\Google\Protobuf\Internal\RepeatedField $vehicles - * Vehicles matching the criteria in the request. - * The maximum number of vehicles returned is determined by the `page_size` - * field in the request. - * @type string $next_page_token - * Token to retrieve the next page of vehicles, or empty if there are no - * more vehicles that meet the request criteria. - * @type int|string $total_size - * Required. Total number of vehicles matching the request criteria across all - * pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * Vehicles matching the criteria in the request. - * The maximum number of vehicles returned is determined by the `page_size` - * field in the request. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle vehicles = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVehicles() - { - return $this->vehicles; - } - - /** - * Vehicles matching the criteria in the request. - * The maximum number of vehicles returned is determined by the `page_size` - * field in the request. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle vehicles = 1; - * @param array<\Google\Maps\FleetEngine\V1\Vehicle>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVehicles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\Vehicle::class); - $this->vehicles = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of vehicles, or empty if there are no - * more vehicles that meet the request criteria. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of vehicles, or empty if there are no - * more vehicles that meet the request criteria. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Required. Total number of vehicles matching the request criteria across all - * pages. - * - * Generated from protobuf field int64 total_size = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int|string - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Required. Total number of vehicles matching the request criteria across all - * pages. - * - * Generated from protobuf field int64 total_size = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int|string $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt64($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationPowerSaveMode.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationPowerSaveMode.php deleted file mode 100644 index 4eb20054c4f9..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationPowerSaveMode.php +++ /dev/null @@ -1,89 +0,0 @@ -maps.fleetengine.v1.LocationPowerSaveMode - */ -class LocationPowerSaveMode -{ - /** - * Undefined LocationPowerSaveMode - * - * Generated from protobuf enum UNKNOWN_LOCATION_POWER_SAVE_MODE = 0; - */ - const UNKNOWN_LOCATION_POWER_SAVE_MODE = 0; - /** - * Either the location providers shouldn't be affected by battery saver, or - * battery saver is off. - * - * Generated from protobuf enum LOCATION_MODE_NO_CHANGE = 1; - */ - const LOCATION_MODE_NO_CHANGE = 1; - /** - * The GPS based location provider should be disabled when battery saver is on - * and the device is non-interactive. - * - * Generated from protobuf enum LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF = 2; - */ - const LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF = 2; - /** - * All location providers should be disabled when battery saver is on and the - * device is non-interactive. - * - * Generated from protobuf enum LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF = 3; - */ - const LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF = 3; - /** - * All the location providers will be kept available, but location fixes - * should only be provided to foreground apps. - * - * Generated from protobuf enum LOCATION_MODE_FOREGROUND_ONLY = 4; - */ - const LOCATION_MODE_FOREGROUND_ONLY = 4; - /** - * Location will not be turned off, but LocationManager will throttle all - * requests to providers when the device is non-interactive. - * - * Generated from protobuf enum LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF = 5; - */ - const LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF = 5; - - private static $valueToName = [ - self::UNKNOWN_LOCATION_POWER_SAVE_MODE => 'UNKNOWN_LOCATION_POWER_SAVE_MODE', - self::LOCATION_MODE_NO_CHANGE => 'LOCATION_MODE_NO_CHANGE', - self::LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF => 'LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF', - self::LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF => 'LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF', - self::LOCATION_MODE_FOREGROUND_ONLY => 'LOCATION_MODE_FOREGROUND_ONLY', - self::LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF => 'LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationSensor.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationSensor.php deleted file mode 100644 index 63194cc7ea5b..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationSensor.php +++ /dev/null @@ -1,110 +0,0 @@ -maps.fleetengine.v1.LocationSensor - */ -class LocationSensor -{ - /** - * The sensor is unspecified or unknown. - * - * Generated from protobuf enum UNKNOWN_SENSOR = 0; - */ - const UNKNOWN_SENSOR = 0; - /** - * GPS or Assisted GPS. - * - * Generated from protobuf enum GPS = 1; - */ - const GPS = 1; - /** - * Assisted GPS, cell tower ID, or WiFi access point. - * - * Generated from protobuf enum NETWORK = 2; - */ - const NETWORK = 2; - /** - * Cell tower ID or WiFi access point. - * - * Generated from protobuf enum PASSIVE = 3; - */ - const PASSIVE = 3; - /** - * A location determined by the mobile device to be the most likely - * road position. - * - * Generated from protobuf enum ROAD_SNAPPED_LOCATION_PROVIDER = 4; - */ - const ROAD_SNAPPED_LOCATION_PROVIDER = 4; - /** - * A customer-supplied location from an independent source. Typically, this - * value is used for a location provided from sources other than the mobile - * device running Driver SDK. If the original source is described by one of - * the other enum values, use that value. Locations marked - * CUSTOMER_SUPPLIED_LOCATION are typically provided via a Vehicle's - * `last_location.supplemental_location_sensor`. - * - * Generated from protobuf enum CUSTOMER_SUPPLIED_LOCATION = 5; - */ - const CUSTOMER_SUPPLIED_LOCATION = 5; - /** - * A location calculated by Fleet Engine based on the signals available to it. - * Output only. This value will be rejected if it is received in a request. - * - * Generated from protobuf enum FLEET_ENGINE_LOCATION = 6; - */ - const FLEET_ENGINE_LOCATION = 6; - /** - * Android's Fused Location Provider. - * - * Generated from protobuf enum FUSED_LOCATION_PROVIDER = 100; - */ - const FUSED_LOCATION_PROVIDER = 100; - /** - * The location provider on Apple operating systems. - * - * Generated from protobuf enum CORE_LOCATION = 200; - */ - const CORE_LOCATION = 200; - - private static $valueToName = [ - self::UNKNOWN_SENSOR => 'UNKNOWN_SENSOR', - self::GPS => 'GPS', - self::NETWORK => 'NETWORK', - self::PASSIVE => 'PASSIVE', - self::ROAD_SNAPPED_LOCATION_PROVIDER => 'ROAD_SNAPPED_LOCATION_PROVIDER', - self::CUSTOMER_SUPPLIED_LOCATION => 'CUSTOMER_SUPPLIED_LOCATION', - self::FLEET_ENGINE_LOCATION => 'FLEET_ENGINE_LOCATION', - self::FUSED_LOCATION_PROVIDER => 'FUSED_LOCATION_PROVIDER', - self::CORE_LOCATION => 'CORE_LOCATION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/NavigationStatus.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/NavigationStatus.php deleted file mode 100644 index 40e2a39a9556..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/NavigationStatus.php +++ /dev/null @@ -1,76 +0,0 @@ -maps.fleetengine.v1.NavigationStatus - */ -class NavigationStatus -{ - /** - * Unspecified navigation status. - * - * Generated from protobuf enum UNKNOWN_NAVIGATION_STATUS = 0; - */ - const UNKNOWN_NAVIGATION_STATUS = 0; - /** - * The Driver app's navigation is in `FREE_NAV` mode. - * - * Generated from protobuf enum NO_GUIDANCE = 1; - */ - const NO_GUIDANCE = 1; - /** - * Turn-by-turn navigation is available and the Driver app navigation has - * entered `GUIDED_NAV` mode. - * - * Generated from protobuf enum ENROUTE_TO_DESTINATION = 2; - */ - const ENROUTE_TO_DESTINATION = 2; - /** - * The vehicle has gone off the suggested route. - * - * Generated from protobuf enum OFF_ROUTE = 3; - */ - const OFF_ROUTE = 3; - /** - * The vehicle is within approximately 50m of the destination. - * - * Generated from protobuf enum ARRIVED_AT_DESTINATION = 4; - */ - const ARRIVED_AT_DESTINATION = 4; - - private static $valueToName = [ - self::UNKNOWN_NAVIGATION_STATUS => 'UNKNOWN_NAVIGATION_STATUS', - self::NO_GUIDANCE => 'NO_GUIDANCE', - self::ENROUTE_TO_DESTINATION => 'ENROUTE_TO_DESTINATION', - self::OFF_ROUTE => 'OFF_ROUTE', - self::ARRIVED_AT_DESTINATION => 'ARRIVED_AT_DESTINATION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PolylineFormatType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PolylineFormatType.php deleted file mode 100644 index 40a6b80a1726..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PolylineFormatType.php +++ /dev/null @@ -1,62 +0,0 @@ -maps.fleetengine.v1.PolylineFormatType - */ -class PolylineFormatType -{ - /** - * The format is unspecified or unknown. - * - * Generated from protobuf enum UNKNOWN_FORMAT_TYPE = 0; - */ - const UNKNOWN_FORMAT_TYPE = 0; - /** - * A list of `google.type.LatLng`. - * - * Generated from protobuf enum LAT_LNG_LIST_TYPE = 1; - */ - const LAT_LNG_LIST_TYPE = 1; - /** - * A polyline encoded with a polyline compression algorithm. Decoding is not - * yet supported. - * - * Generated from protobuf enum ENCODED_POLYLINE_TYPE = 2; - */ - const ENCODED_POLYLINE_TYPE = 2; - - private static $valueToName = [ - self::UNKNOWN_FORMAT_TYPE => 'UNKNOWN_FORMAT_TYPE', - self::LAT_LNG_LIST_TYPE => 'LAT_LNG_LIST_TYPE', - self::ENCODED_POLYLINE_TYPE => 'ENCODED_POLYLINE_TYPE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PowerSource.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PowerSource.php deleted file mode 100644 index 1dd4ecfc1b49..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PowerSource.php +++ /dev/null @@ -1,75 +0,0 @@ -maps.fleetengine.v1.PowerSource - */ -class PowerSource -{ - /** - * Power source unknown. - * - * Generated from protobuf enum UNKNOWN_POWER_SOURCE = 0; - */ - const UNKNOWN_POWER_SOURCE = 0; - /** - * Power source is an AC charger. - * - * Generated from protobuf enum POWER_SOURCE_AC = 1; - */ - const POWER_SOURCE_AC = 1; - /** - * Power source is a USB port. - * - * Generated from protobuf enum POWER_SOURCE_USB = 2; - */ - const POWER_SOURCE_USB = 2; - /** - * Power source is wireless. - * - * Generated from protobuf enum POWER_SOURCE_WIRELESS = 3; - */ - const POWER_SOURCE_WIRELESS = 3; - /** - * Battery is unplugged. - * - * Generated from protobuf enum POWER_SOURCE_UNPLUGGED = 4; - */ - const POWER_SOURCE_UNPLUGGED = 4; - - private static $valueToName = [ - self::UNKNOWN_POWER_SOURCE => 'UNKNOWN_POWER_SOURCE', - self::POWER_SOURCE_AC => 'POWER_SOURCE_AC', - self::POWER_SOURCE_USB => 'POWER_SOURCE_USB', - self::POWER_SOURCE_WIRELESS => 'POWER_SOURCE_WIRELESS', - self::POWER_SOURCE_UNPLUGGED => 'POWER_SOURCE_UNPLUGGED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest.php deleted file mode 100644 index 48d21dc5444e..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest.php +++ /dev/null @@ -1,239 +0,0 @@ -maps.fleetengine.v1.ReportBillableTripRequest - */ -class ReportBillableTripRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Must be in the format - * `providers/{provider}/billableTrips/{billable_trip}`. 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. - * - * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. Two letter country code of the country where the trip takes - * place. Price is defined according to country code. - * - * Generated from protobuf field string country_code = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $country_code = ''; - /** - * The platform upon which the request was issued. - * - * Generated from protobuf field .maps.fleetengine.v1.BillingPlatformIdentifier platform = 5; - */ - protected $platform = 0; - /** - * The identifiers that are directly related to the trip being reported. These - * are usually IDs (for example, session IDs) of pre-booking operations done - * before the trip ID is available. The number of `related_ids` is - * limited to 50. - * - * Generated from protobuf field repeated string related_ids = 6; - */ - private $related_ids; - /** - * The type of GMP product solution (for example, - * `ON_DEMAND_RIDESHARING_AND_DELIVERIES`) used for the reported trip. - * - * Generated from protobuf field .maps.fleetengine.v1.ReportBillableTripRequest.SolutionType solution_type = 7; - */ - protected $solution_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Must be in the format - * `providers/{provider}/billableTrips/{billable_trip}`. 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. - * @type string $country_code - * Required. Two letter country code of the country where the trip takes - * place. Price is defined according to country code. - * @type int $platform - * The platform upon which the request was issued. - * @type array|\Google\Protobuf\Internal\RepeatedField $related_ids - * The identifiers that are directly related to the trip being reported. These - * are usually IDs (for example, session IDs) of pre-booking operations done - * before the trip ID is available. The number of `related_ids` is - * limited to 50. - * @type int $solution_type - * The type of GMP product solution (for example, - * `ON_DEMAND_RIDESHARING_AND_DELIVERIES`) used for the reported trip. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. Must be in the format - * `providers/{provider}/billableTrips/{billable_trip}`. 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. - * - * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Must be in the format - * `providers/{provider}/billableTrips/{billable_trip}`. 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. - * - * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Two letter country code of the country where the trip takes - * place. Price is defined according to country code. - * - * Generated from protobuf field string country_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCountryCode() - { - return $this->country_code; - } - - /** - * Required. Two letter country code of the country where the trip takes - * place. Price is defined according to country code. - * - * Generated from protobuf field string country_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCountryCode($var) - { - GPBUtil::checkString($var, True); - $this->country_code = $var; - - return $this; - } - - /** - * The platform upon which the request was issued. - * - * Generated from protobuf field .maps.fleetengine.v1.BillingPlatformIdentifier platform = 5; - * @return int - */ - public function getPlatform() - { - return $this->platform; - } - - /** - * The platform upon which the request was issued. - * - * Generated from protobuf field .maps.fleetengine.v1.BillingPlatformIdentifier platform = 5; - * @param int $var - * @return $this - */ - public function setPlatform($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\BillingPlatformIdentifier::class); - $this->platform = $var; - - return $this; - } - - /** - * The identifiers that are directly related to the trip being reported. These - * are usually IDs (for example, session IDs) of pre-booking operations done - * before the trip ID is available. The number of `related_ids` is - * limited to 50. - * - * Generated from protobuf field repeated string related_ids = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRelatedIds() - { - return $this->related_ids; - } - - /** - * The identifiers that are directly related to the trip being reported. These - * are usually IDs (for example, session IDs) of pre-booking operations done - * before the trip ID is available. The number of `related_ids` is - * limited to 50. - * - * Generated from protobuf field repeated string related_ids = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRelatedIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->related_ids = $arr; - - return $this; - } - - /** - * The type of GMP product solution (for example, - * `ON_DEMAND_RIDESHARING_AND_DELIVERIES`) used for the reported trip. - * - * Generated from protobuf field .maps.fleetengine.v1.ReportBillableTripRequest.SolutionType solution_type = 7; - * @return int - */ - public function getSolutionType() - { - return $this->solution_type; - } - - /** - * The type of GMP product solution (for example, - * `ON_DEMAND_RIDESHARING_AND_DELIVERIES`) used for the reported trip. - * - * Generated from protobuf field .maps.fleetengine.v1.ReportBillableTripRequest.SolutionType solution_type = 7; - * @param int $var - * @return $this - */ - public function setSolutionType($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\ReportBillableTripRequest\SolutionType::class); - $this->solution_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest/SolutionType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest/SolutionType.php deleted file mode 100644 index c50613c46254..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest/SolutionType.php +++ /dev/null @@ -1,59 +0,0 @@ -maps.fleetengine.v1.ReportBillableTripRequest.SolutionType - */ -class SolutionType -{ - /** - * The default value. For backwards-compatibility, the API will use - * `ON_DEMAND_RIDESHARING_AND_DELIVERIES` by default which is the first - * supported solution type. - * - * Generated from protobuf enum SOLUTION_TYPE_UNSPECIFIED = 0; - */ - const SOLUTION_TYPE_UNSPECIFIED = 0; - /** - * The solution is an on-demand ridesharing and deliveries trip. - * - * Generated from protobuf enum ON_DEMAND_RIDESHARING_AND_DELIVERIES = 1; - */ - const ON_DEMAND_RIDESHARING_AND_DELIVERIES = 1; - - private static $valueToName = [ - self::SOLUTION_TYPE_UNSPECIFIED => 'SOLUTION_TYPE_UNSPECIFIED', - self::ON_DEMAND_RIDESHARING_AND_DELIVERIES => 'ON_DEMAND_RIDESHARING_AND_DELIVERIES', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SolutionType::class, \Google\Maps\FleetEngine\V1\ReportBillableTripRequest_SolutionType::class); - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader.php deleted file mode 100644 index c892bc38df04..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader.php +++ /dev/null @@ -1,493 +0,0 @@ -maps.fleetengine.v1.RequestHeader - */ -class RequestHeader extends \Google\Protobuf\Internal\Message -{ - /** - * The BCP-47 language code, such as en-US or sr-Latn. For more information, - * see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If none - * is specified, the response may be in any language, with a preference for - * English if such a name exists. Field value example: `en-US`. - * - * Generated from protobuf field string language_code = 1; - */ - protected $language_code = ''; - /** - * Required. CLDR region code of the region where the request originates. - * Field value example: `US`. - * - * Generated from protobuf field string region_code = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $region_code = ''; - /** - * Version of the calling SDK, if applicable. - * The version format is "major.minor.patch", example: `1.1.2`. - * - * Generated from protobuf field string sdk_version = 3; - */ - protected $sdk_version = ''; - /** - * Version of the operating system on which the calling SDK is running. - * Field value examples: `4.4.1`, `12.1`. - * - * Generated from protobuf field string os_version = 4; - */ - protected $os_version = ''; - /** - * Model of the device on which the calling SDK is running. - * Field value examples: `iPhone12,1`, `SM-G920F`. - * - * Generated from protobuf field string device_model = 5; - */ - protected $device_model = ''; - /** - * The type of SDK sending the request. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.SdkType sdk_type = 6; - */ - protected $sdk_type = 0; - /** - * Version of the MapSDK which the calling SDK depends on, if applicable. - * The version format is "major.minor.patch", example: `5.2.1`. - * - * Generated from protobuf field string maps_sdk_version = 7; - */ - protected $maps_sdk_version = ''; - /** - * Version of the NavSDK which the calling SDK depends on, if applicable. - * The version format is "major.minor.patch", example: `2.1.0`. - * - * Generated from protobuf field string nav_sdk_version = 8; - */ - protected $nav_sdk_version = ''; - /** - * Platform of the calling SDK. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.Platform platform = 9; - */ - protected $platform = 0; - /** - * Manufacturer of the Android device from the calling SDK, only applicable - * for the Android SDKs. - * Field value example: `Samsung`. - * - * Generated from protobuf field string manufacturer = 10; - */ - protected $manufacturer = ''; - /** - * Android API level of the calling SDK, only applicable for the Android SDKs. - * Field value example: `23`. - * - * Generated from protobuf field int32 android_api_level = 11; - */ - protected $android_api_level = 0; - /** - * Optional ID that can be provided for logging purposes in order to identify - * the request. - * - * Generated from protobuf field string trace_id = 12; - */ - protected $trace_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $language_code - * The BCP-47 language code, such as en-US or sr-Latn. For more information, - * see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If none - * is specified, the response may be in any language, with a preference for - * English if such a name exists. Field value example: `en-US`. - * @type string $region_code - * Required. CLDR region code of the region where the request originates. - * Field value example: `US`. - * @type string $sdk_version - * Version of the calling SDK, if applicable. - * The version format is "major.minor.patch", example: `1.1.2`. - * @type string $os_version - * Version of the operating system on which the calling SDK is running. - * Field value examples: `4.4.1`, `12.1`. - * @type string $device_model - * Model of the device on which the calling SDK is running. - * Field value examples: `iPhone12,1`, `SM-G920F`. - * @type int $sdk_type - * The type of SDK sending the request. - * @type string $maps_sdk_version - * Version of the MapSDK which the calling SDK depends on, if applicable. - * The version format is "major.minor.patch", example: `5.2.1`. - * @type string $nav_sdk_version - * Version of the NavSDK which the calling SDK depends on, if applicable. - * The version format is "major.minor.patch", example: `2.1.0`. - * @type int $platform - * Platform of the calling SDK. - * @type string $manufacturer - * Manufacturer of the Android device from the calling SDK, only applicable - * for the Android SDKs. - * Field value example: `Samsung`. - * @type int $android_api_level - * Android API level of the calling SDK, only applicable for the Android SDKs. - * Field value example: `23`. - * @type string $trace_id - * Optional ID that can be provided for logging purposes in order to identify - * the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Header::initOnce(); - parent::__construct($data); - } - - /** - * The BCP-47 language code, such as en-US or sr-Latn. For more information, - * see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If none - * is specified, the response may be in any language, with a preference for - * English if such a name exists. Field value example: `en-US`. - * - * Generated from protobuf field string language_code = 1; - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * The BCP-47 language code, such as en-US or sr-Latn. For more information, - * see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If none - * is specified, the response may be in any language, with a preference for - * English if such a name exists. Field value example: `en-US`. - * - * Generated from protobuf field string language_code = 1; - * @param string $var - * @return $this - */ - public function setLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->language_code = $var; - - return $this; - } - - /** - * Required. CLDR region code of the region where the request originates. - * Field value example: `US`. - * - * Generated from protobuf field string region_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRegionCode() - { - return $this->region_code; - } - - /** - * Required. CLDR region code of the region where the request originates. - * Field value example: `US`. - * - * Generated from protobuf field string region_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRegionCode($var) - { - GPBUtil::checkString($var, True); - $this->region_code = $var; - - return $this; - } - - /** - * Version of the calling SDK, if applicable. - * The version format is "major.minor.patch", example: `1.1.2`. - * - * Generated from protobuf field string sdk_version = 3; - * @return string - */ - public function getSdkVersion() - { - return $this->sdk_version; - } - - /** - * Version of the calling SDK, if applicable. - * The version format is "major.minor.patch", example: `1.1.2`. - * - * Generated from protobuf field string sdk_version = 3; - * @param string $var - * @return $this - */ - public function setSdkVersion($var) - { - GPBUtil::checkString($var, True); - $this->sdk_version = $var; - - return $this; - } - - /** - * Version of the operating system on which the calling SDK is running. - * Field value examples: `4.4.1`, `12.1`. - * - * Generated from protobuf field string os_version = 4; - * @return string - */ - public function getOsVersion() - { - return $this->os_version; - } - - /** - * Version of the operating system on which the calling SDK is running. - * Field value examples: `4.4.1`, `12.1`. - * - * Generated from protobuf field string os_version = 4; - * @param string $var - * @return $this - */ - public function setOsVersion($var) - { - GPBUtil::checkString($var, True); - $this->os_version = $var; - - return $this; - } - - /** - * Model of the device on which the calling SDK is running. - * Field value examples: `iPhone12,1`, `SM-G920F`. - * - * Generated from protobuf field string device_model = 5; - * @return string - */ - public function getDeviceModel() - { - return $this->device_model; - } - - /** - * Model of the device on which the calling SDK is running. - * Field value examples: `iPhone12,1`, `SM-G920F`. - * - * Generated from protobuf field string device_model = 5; - * @param string $var - * @return $this - */ - public function setDeviceModel($var) - { - GPBUtil::checkString($var, True); - $this->device_model = $var; - - return $this; - } - - /** - * The type of SDK sending the request. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.SdkType sdk_type = 6; - * @return int - */ - public function getSdkType() - { - return $this->sdk_type; - } - - /** - * The type of SDK sending the request. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.SdkType sdk_type = 6; - * @param int $var - * @return $this - */ - public function setSdkType($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\RequestHeader\SdkType::class); - $this->sdk_type = $var; - - return $this; - } - - /** - * Version of the MapSDK which the calling SDK depends on, if applicable. - * The version format is "major.minor.patch", example: `5.2.1`. - * - * Generated from protobuf field string maps_sdk_version = 7; - * @return string - */ - public function getMapsSdkVersion() - { - return $this->maps_sdk_version; - } - - /** - * Version of the MapSDK which the calling SDK depends on, if applicable. - * The version format is "major.minor.patch", example: `5.2.1`. - * - * Generated from protobuf field string maps_sdk_version = 7; - * @param string $var - * @return $this - */ - public function setMapsSdkVersion($var) - { - GPBUtil::checkString($var, True); - $this->maps_sdk_version = $var; - - return $this; - } - - /** - * Version of the NavSDK which the calling SDK depends on, if applicable. - * The version format is "major.minor.patch", example: `2.1.0`. - * - * Generated from protobuf field string nav_sdk_version = 8; - * @return string - */ - public function getNavSdkVersion() - { - return $this->nav_sdk_version; - } - - /** - * Version of the NavSDK which the calling SDK depends on, if applicable. - * The version format is "major.minor.patch", example: `2.1.0`. - * - * Generated from protobuf field string nav_sdk_version = 8; - * @param string $var - * @return $this - */ - public function setNavSdkVersion($var) - { - GPBUtil::checkString($var, True); - $this->nav_sdk_version = $var; - - return $this; - } - - /** - * Platform of the calling SDK. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.Platform platform = 9; - * @return int - */ - public function getPlatform() - { - return $this->platform; - } - - /** - * Platform of the calling SDK. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.Platform platform = 9; - * @param int $var - * @return $this - */ - public function setPlatform($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\RequestHeader\Platform::class); - $this->platform = $var; - - return $this; - } - - /** - * Manufacturer of the Android device from the calling SDK, only applicable - * for the Android SDKs. - * Field value example: `Samsung`. - * - * Generated from protobuf field string manufacturer = 10; - * @return string - */ - public function getManufacturer() - { - return $this->manufacturer; - } - - /** - * Manufacturer of the Android device from the calling SDK, only applicable - * for the Android SDKs. - * Field value example: `Samsung`. - * - * Generated from protobuf field string manufacturer = 10; - * @param string $var - * @return $this - */ - public function setManufacturer($var) - { - GPBUtil::checkString($var, True); - $this->manufacturer = $var; - - return $this; - } - - /** - * Android API level of the calling SDK, only applicable for the Android SDKs. - * Field value example: `23`. - * - * Generated from protobuf field int32 android_api_level = 11; - * @return int - */ - public function getAndroidApiLevel() - { - return $this->android_api_level; - } - - /** - * Android API level of the calling SDK, only applicable for the Android SDKs. - * Field value example: `23`. - * - * Generated from protobuf field int32 android_api_level = 11; - * @param int $var - * @return $this - */ - public function setAndroidApiLevel($var) - { - GPBUtil::checkInt32($var); - $this->android_api_level = $var; - - return $this; - } - - /** - * Optional ID that can be provided for logging purposes in order to identify - * the request. - * - * Generated from protobuf field string trace_id = 12; - * @return string - */ - public function getTraceId() - { - return $this->trace_id; - } - - /** - * Optional ID that can be provided for logging purposes in order to identify - * the request. - * - * Generated from protobuf field string trace_id = 12; - * @param string $var - * @return $this - */ - public function setTraceId($var) - { - GPBUtil::checkString($var, True); - $this->trace_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/Platform.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/Platform.php deleted file mode 100644 index dfe0f5d12542..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/Platform.php +++ /dev/null @@ -1,71 +0,0 @@ -maps.fleetengine.v1.RequestHeader.Platform - */ -class Platform -{ - /** - * The default value. This value is used if the platform is omitted. - * - * Generated from protobuf enum PLATFORM_UNSPECIFIED = 0; - */ - const PLATFORM_UNSPECIFIED = 0; - /** - * The request is coming from Android. - * - * Generated from protobuf enum ANDROID = 1; - */ - const ANDROID = 1; - /** - * The request is coming from iOS. - * - * Generated from protobuf enum IOS = 2; - */ - const IOS = 2; - /** - * The request is coming from the web. - * - * Generated from protobuf enum WEB = 3; - */ - const WEB = 3; - - private static $valueToName = [ - self::PLATFORM_UNSPECIFIED => 'PLATFORM_UNSPECIFIED', - self::ANDROID => 'ANDROID', - self::IOS => 'IOS', - self::WEB => 'WEB', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Platform::class, \Google\Maps\FleetEngine\V1\RequestHeader_Platform::class); - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/SdkType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/SdkType.php deleted file mode 100644 index 3061cc50a581..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/SdkType.php +++ /dev/null @@ -1,71 +0,0 @@ -maps.fleetengine.v1.RequestHeader.SdkType - */ -class SdkType -{ - /** - * The default value. This value is used if the `sdk_type` is omitted. - * - * Generated from protobuf enum SDK_TYPE_UNSPECIFIED = 0; - */ - const SDK_TYPE_UNSPECIFIED = 0; - /** - * The calling SDK is Consumer. - * - * Generated from protobuf enum CONSUMER = 1; - */ - const CONSUMER = 1; - /** - * The calling SDK is Driver. - * - * Generated from protobuf enum DRIVER = 2; - */ - const DRIVER = 2; - /** - * The calling SDK is JavaScript. - * - * Generated from protobuf enum JAVASCRIPT = 3; - */ - const JAVASCRIPT = 3; - - private static $valueToName = [ - self::SDK_TYPE_UNSPECIFIED => 'SDK_TYPE_UNSPECIFIED', - self::CONSUMER => 'CONSUMER', - self::DRIVER => 'DRIVER', - self::JAVASCRIPT => 'JAVASCRIPT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SdkType::class, \Google\Maps\FleetEngine\V1\RequestHeader_SdkType::class); - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsRequest.php deleted file mode 100644 index 05455c7754ea..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsRequest.php +++ /dev/null @@ -1,335 +0,0 @@ -maps.fleetengine.v1.SearchTripsRequest - */ -class SearchTripsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - */ - protected $header = null; - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * The vehicle associated with the trips in the request. If unspecified, the - * returned trips do not contain: - * * `current_route_segment` - * * `remaining_waypoints` - * * `remaining_distance_meters` - * * `eta_to_first_waypoint` - * - * Generated from protobuf field string vehicle_id = 4; - */ - protected $vehicle_id = ''; - /** - * If set to true, the response includes Trips that influence a driver's - * route. - * - * Generated from protobuf field bool active_trips_only = 5; - */ - protected $active_trips_only = false; - /** - * If not set, the server decides the number of results to return. - * - * Generated from protobuf field int32 page_size = 6; - */ - protected $page_size = 0; - /** - * Set this to a value previously returned in the `SearchTripsResponse` to - * continue from previous results. - * - * Generated from protobuf field string page_token = 7; - */ - protected $page_token = ''; - /** - * If specified, returns the trips that have not been updated after the time - * `(current - minimum_staleness)`. - * - * Generated from protobuf field .google.protobuf.Duration minimum_staleness = 8; - */ - protected $minimum_staleness = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\RequestHeader $header - * The standard Fleet Engine request header. - * @type string $parent - * Required. Must be in the format `providers/{provider}`. - * 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. - * @type string $vehicle_id - * The vehicle associated with the trips in the request. If unspecified, the - * returned trips do not contain: - * * `current_route_segment` - * * `remaining_waypoints` - * * `remaining_distance_meters` - * * `eta_to_first_waypoint` - * @type bool $active_trips_only - * If set to true, the response includes Trips that influence a driver's - * route. - * @type int $page_size - * If not set, the server decides the number of results to return. - * @type string $page_token - * Set this to a value previously returned in the `SearchTripsResponse` to - * continue from previous results. - * @type \Google\Protobuf\Duration $minimum_staleness - * If specified, returns the trips that have not been updated after the time - * `(current - minimum_staleness)`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); - parent::__construct($data); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @return \Google\Maps\FleetEngine\V1\RequestHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @param \Google\Maps\FleetEngine\V1\RequestHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); - $this->header = $var; - - return $this; - } - - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The vehicle associated with the trips in the request. If unspecified, the - * returned trips do not contain: - * * `current_route_segment` - * * `remaining_waypoints` - * * `remaining_distance_meters` - * * `eta_to_first_waypoint` - * - * Generated from protobuf field string vehicle_id = 4; - * @return string - */ - public function getVehicleId() - { - return $this->vehicle_id; - } - - /** - * The vehicle associated with the trips in the request. If unspecified, the - * returned trips do not contain: - * * `current_route_segment` - * * `remaining_waypoints` - * * `remaining_distance_meters` - * * `eta_to_first_waypoint` - * - * Generated from protobuf field string vehicle_id = 4; - * @param string $var - * @return $this - */ - public function setVehicleId($var) - { - GPBUtil::checkString($var, True); - $this->vehicle_id = $var; - - return $this; - } - - /** - * If set to true, the response includes Trips that influence a driver's - * route. - * - * Generated from protobuf field bool active_trips_only = 5; - * @return bool - */ - public function getActiveTripsOnly() - { - return $this->active_trips_only; - } - - /** - * If set to true, the response includes Trips that influence a driver's - * route. - * - * Generated from protobuf field bool active_trips_only = 5; - * @param bool $var - * @return $this - */ - public function setActiveTripsOnly($var) - { - GPBUtil::checkBool($var); - $this->active_trips_only = $var; - - return $this; - } - - /** - * If not set, the server decides the number of results to return. - * - * Generated from protobuf field int32 page_size = 6; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * If not set, the server decides the number of results to return. - * - * Generated from protobuf field int32 page_size = 6; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Set this to a value previously returned in the `SearchTripsResponse` to - * continue from previous results. - * - * Generated from protobuf field string page_token = 7; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Set this to a value previously returned in the `SearchTripsResponse` to - * continue from previous results. - * - * Generated from protobuf field string page_token = 7; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * If specified, returns the trips that have not been updated after the time - * `(current - minimum_staleness)`. - * - * Generated from protobuf field .google.protobuf.Duration minimum_staleness = 8; - * @return \Google\Protobuf\Duration|null - */ - public function getMinimumStaleness() - { - return $this->minimum_staleness; - } - - public function hasMinimumStaleness() - { - return isset($this->minimum_staleness); - } - - public function clearMinimumStaleness() - { - unset($this->minimum_staleness); - } - - /** - * If specified, returns the trips that have not been updated after the time - * `(current - minimum_staleness)`. - * - * Generated from protobuf field .google.protobuf.Duration minimum_staleness = 8; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMinimumStaleness($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->minimum_staleness = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsResponse.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsResponse.php deleted file mode 100644 index a416a1ded2ab..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -maps.fleetengine.v1.SearchTripsResponse - */ -class SearchTripsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of trips for the requested vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Trip trips = 1; - */ - private $trips; - /** - * Pass this token in the SearchTripsRequest to page through list results. The - * API returns a trip list on each call, and when no more results remain the - * trip list is empty. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Maps\FleetEngine\V1\Trip>|\Google\Protobuf\Internal\RepeatedField $trips - * The list of trips for the requested vehicle. - * @type string $next_page_token - * Pass this token in the SearchTripsRequest to page through list results. The - * API returns a trip list on each call, and when no more results remain the - * trip list is empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); - parent::__construct($data); - } - - /** - * The list of trips for the requested vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Trip trips = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTrips() - { - return $this->trips; - } - - /** - * The list of trips for the requested vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Trip trips = 1; - * @param array<\Google\Maps\FleetEngine\V1\Trip>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTrips($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\Trip::class); - $this->trips = $arr; - - return $this; - } - - /** - * Pass this token in the SearchTripsRequest to page through list results. The - * API returns a trip list on each call, and when no more results remain the - * trip list is empty. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Pass this token in the SearchTripsRequest to page through list results. The - * API returns a trip list on each call, and when no more results remain the - * trip list is empty. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest.php deleted file mode 100644 index 47e4b07b2d9a..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest.php +++ /dev/null @@ -1,1029 +0,0 @@ -maps.fleetengine.v1.SearchVehiclesRequest - */ -class SearchVehiclesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - */ - protected $header = null; - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * Required. The pickup point to search near. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $pickup_point = null; - /** - * The customer's intended dropoff location. The field is required if - * `trip_types` contains `TripType.SHARED`. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 5; - */ - protected $dropoff_point = null; - /** - * Required. Defines the vehicle search radius around the pickup point. Only - * vehicles within the search radius will be returned. Value must be between - * 400 and 10000 meters (inclusive). - * - * Generated from protobuf field int32 pickup_radius_meters = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $pickup_radius_meters = 0; - /** - * Required. Specifies the maximum number of vehicles to return. The value - * must be between 1 and 50 (inclusive). - * - * Generated from protobuf field int32 count = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $count = 0; - /** - * Required. Specifies the number of passengers being considered for a trip. - * The value must be greater than or equal to one. The driver is not - * considered in the capacity value. - * - * Generated from protobuf field int32 minimum_capacity = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $minimum_capacity = 0; - /** - * Required. Represents the type of proposed trip. Must include exactly one - * type. `UNKNOWN_TRIP_TYPE` is not allowed. Restricts the search to only - * those vehicles that can support that trip type. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 9 [(.google.api.field_behavior) = REQUIRED]; - */ - private $trip_types; - /** - * Restricts the search to only those vehicles that have sent location updates - * to Fleet Engine within the specified duration. Stationary vehicles still - * transmitting their locations are not considered stale. If this field is not - * set, the server uses five minutes as the default value. - * - * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 10; - */ - protected $maximum_staleness = null; - /** - * Required. Restricts the search to vehicles with one of the specified types. - * At least one vehicle type must be specified. VehicleTypes with a category - * of `UNKNOWN` are not allowed. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType vehicle_types = 14 [(.google.api.field_behavior) = REQUIRED]; - */ - private $vehicle_types; - /** - * Callers can form complex logical operations using any combination of the - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attribute_sets` fields. - * `required_attributes` is a list; `required_one_of_attributes` uses a - * message which allows a list of lists. In combination, the two fields allow - * the composition of this expression: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR - * ...) - * AND - * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR - * ...) - * ``` - * Restricts the search to only those vehicles with the specified attributes. - * This field is a conjunction/AND operation. A max of 50 required_attributes - * is allowed. This matches the maximum number of attributes allowed on a - * vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute required_attributes = 12; - */ - private $required_attributes; - /** - * Restricts the search to only those vehicles with at least one of - * the specified attributes in each `VehicleAttributeList`. Within each - * list, a vehicle must match at least one of the attributes. This field is an - * inclusive disjunction/OR operation in each `VehicleAttributeList` and a - * conjunction/AND operation across the collection of `VehicleAttributeList`. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attributes = 15; - */ - private $required_one_of_attributes; - /** - * `required_one_of_attribute_sets` provides additional functionality. - * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` - * uses a message which allows a list of lists, allowing expressions such as - * this one: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * ( - * (required_one_of_attribute_sets[0][0] AND - * required_one_of_attribute_sets[0][1] AND - * ...) - * OR - * (required_one_of_attribute_sets[1][0] AND - * required_one_of_attribute_sets[1][1] AND - * ...) - * ) - * ``` - * Restricts the search to only those vehicles with all the attributes in a - * `VehicleAttributeList`. Within each list, a - * vehicle must match all of the attributes. This field is a conjunction/AND - * operation in each `VehicleAttributeList` and inclusive disjunction/OR - * operation across the collection of `VehicleAttributeList`. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attribute_sets = 20; - */ - private $required_one_of_attribute_sets; - /** - * Required. Specifies the desired ordering criterion for results. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder order_by = 13 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $order_by = 0; - /** - * This indicates if vehicles with a single active trip are eligible for this - * search. This field is only used when `current_trips_present` is - * unspecified. When `current_trips_present` is unspecified and this field - * is `false`, vehicles with assigned trips are excluded from the search - * results. When `current_trips_present` is unspecified and this field is - * `true`, search results can include vehicles with one active trip that has a - * status of `ENROUTE_TO_DROPOFF`. When `current_trips_present` is specified, - * this field cannot be set to true. - * The default value is `false`. - * - * Generated from protobuf field bool include_back_to_back = 18; - */ - protected $include_back_to_back = false; - /** - * Indicates the trip associated with this `SearchVehicleRequest`. - * - * Generated from protobuf field string trip_id = 19; - */ - protected $trip_id = ''; - /** - * This indicates if vehicles with active trips are eligible for this search. - * This must be set to something other than - * `CURRENT_TRIPS_PRESENT_UNSPECIFIED` if `trip_type` includes `SHARED`. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.CurrentTripsPresent current_trips_present = 21; - */ - protected $current_trips_present = 0; - /** - * Optional. A filter query to apply when searching vehicles. See - * http://aip.dev/160 for examples of the filter syntax. - * This field is designed to replace the `required_attributes`, - * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. - * If a non-empty value is specified here, the following fields must be empty: - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attributes_sets`. - * This filter functions as an AND clause with other constraints, - * such as `minimum_capacity` or `vehicle_types`. - * Note that the only queries supported are on vehicle attributes (for - * example, `attributes. = ` or `attributes. = AND - * attributes. = `). The maximum number of restrictions allowed - * in a filter query is 50. - * Also, all attributes are stored as strings, so the only supported - * comparisons against attributes are string comparisons. In order to compare - * against number or boolean values, the values must be explicitly quoted to - * be treated as strings (for example, `attributes. = "10"` or - * `attributes. = "true"`). - * - * Generated from protobuf field string filter = 22 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\RequestHeader $header - * The standard Fleet Engine request header. - * @type string $parent - * Required. Must be in the format `providers/{provider}`. - * 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. - * @type \Google\Maps\FleetEngine\V1\TerminalLocation $pickup_point - * Required. The pickup point to search near. - * @type \Google\Maps\FleetEngine\V1\TerminalLocation $dropoff_point - * The customer's intended dropoff location. The field is required if - * `trip_types` contains `TripType.SHARED`. - * @type int $pickup_radius_meters - * Required. Defines the vehicle search radius around the pickup point. Only - * vehicles within the search radius will be returned. Value must be between - * 400 and 10000 meters (inclusive). - * @type int $count - * Required. Specifies the maximum number of vehicles to return. The value - * must be between 1 and 50 (inclusive). - * @type int $minimum_capacity - * Required. Specifies the number of passengers being considered for a trip. - * The value must be greater than or equal to one. The driver is not - * considered in the capacity value. - * @type array|\Google\Protobuf\Internal\RepeatedField $trip_types - * Required. Represents the type of proposed trip. Must include exactly one - * type. `UNKNOWN_TRIP_TYPE` is not allowed. Restricts the search to only - * those vehicles that can support that trip type. - * @type \Google\Protobuf\Duration $maximum_staleness - * Restricts the search to only those vehicles that have sent location updates - * to Fleet Engine within the specified duration. Stationary vehicles still - * transmitting their locations are not considered stale. If this field is not - * set, the server uses five minutes as the default value. - * @type array<\Google\Maps\FleetEngine\V1\Vehicle\VehicleType>|\Google\Protobuf\Internal\RepeatedField $vehicle_types - * Required. Restricts the search to vehicles with one of the specified types. - * At least one vehicle type must be specified. VehicleTypes with a category - * of `UNKNOWN` are not allowed. - * @type array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $required_attributes - * Callers can form complex logical operations using any combination of the - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attribute_sets` fields. - * `required_attributes` is a list; `required_one_of_attributes` uses a - * message which allows a list of lists. In combination, the two fields allow - * the composition of this expression: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR - * ...) - * AND - * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR - * ...) - * ``` - * Restricts the search to only those vehicles with the specified attributes. - * This field is a conjunction/AND operation. A max of 50 required_attributes - * is allowed. This matches the maximum number of attributes allowed on a - * vehicle. - * @type array<\Google\Maps\FleetEngine\V1\VehicleAttributeList>|\Google\Protobuf\Internal\RepeatedField $required_one_of_attributes - * Restricts the search to only those vehicles with at least one of - * the specified attributes in each `VehicleAttributeList`. Within each - * list, a vehicle must match at least one of the attributes. This field is an - * inclusive disjunction/OR operation in each `VehicleAttributeList` and a - * conjunction/AND operation across the collection of `VehicleAttributeList`. - * @type array<\Google\Maps\FleetEngine\V1\VehicleAttributeList>|\Google\Protobuf\Internal\RepeatedField $required_one_of_attribute_sets - * `required_one_of_attribute_sets` provides additional functionality. - * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` - * uses a message which allows a list of lists, allowing expressions such as - * this one: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * ( - * (required_one_of_attribute_sets[0][0] AND - * required_one_of_attribute_sets[0][1] AND - * ...) - * OR - * (required_one_of_attribute_sets[1][0] AND - * required_one_of_attribute_sets[1][1] AND - * ...) - * ) - * ``` - * Restricts the search to only those vehicles with all the attributes in a - * `VehicleAttributeList`. Within each list, a - * vehicle must match all of the attributes. This field is a conjunction/AND - * operation in each `VehicleAttributeList` and inclusive disjunction/OR - * operation across the collection of `VehicleAttributeList`. - * @type int $order_by - * Required. Specifies the desired ordering criterion for results. - * @type bool $include_back_to_back - * This indicates if vehicles with a single active trip are eligible for this - * search. This field is only used when `current_trips_present` is - * unspecified. When `current_trips_present` is unspecified and this field - * is `false`, vehicles with assigned trips are excluded from the search - * results. When `current_trips_present` is unspecified and this field is - * `true`, search results can include vehicles with one active trip that has a - * status of `ENROUTE_TO_DROPOFF`. When `current_trips_present` is specified, - * this field cannot be set to true. - * The default value is `false`. - * @type string $trip_id - * Indicates the trip associated with this `SearchVehicleRequest`. - * @type int $current_trips_present - * This indicates if vehicles with active trips are eligible for this search. - * This must be set to something other than - * `CURRENT_TRIPS_PRESENT_UNSPECIFIED` if `trip_type` includes `SHARED`. - * @type string $filter - * Optional. A filter query to apply when searching vehicles. See - * http://aip.dev/160 for examples of the filter syntax. - * This field is designed to replace the `required_attributes`, - * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. - * If a non-empty value is specified here, the following fields must be empty: - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attributes_sets`. - * This filter functions as an AND clause with other constraints, - * such as `minimum_capacity` or `vehicle_types`. - * Note that the only queries supported are on vehicle attributes (for - * example, `attributes. = ` or `attributes. = AND - * attributes. = `). The maximum number of restrictions allowed - * in a filter query is 50. - * Also, all attributes are stored as strings, so the only supported - * comparisons against attributes are string comparisons. In order to compare - * against number or boolean values, the values must be explicitly quoted to - * be treated as strings (for example, `attributes. = "10"` or - * `attributes. = "true"`). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @return \Google\Maps\FleetEngine\V1\RequestHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @param \Google\Maps\FleetEngine\V1\RequestHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); - $this->header = $var; - - return $this; - } - - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The pickup point to search near. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Maps\FleetEngine\V1\TerminalLocation|null - */ - public function getPickupPoint() - { - return $this->pickup_point; - } - - public function hasPickupPoint() - { - return isset($this->pickup_point); - } - - public function clearPickupPoint() - { - unset($this->pickup_point); - } - - /** - * Required. The pickup point to search near. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Maps\FleetEngine\V1\TerminalLocation $var - * @return $this - */ - public function setPickupPoint($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalLocation::class); - $this->pickup_point = $var; - - return $this; - } - - /** - * The customer's intended dropoff location. The field is required if - * `trip_types` contains `TripType.SHARED`. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 5; - * @return \Google\Maps\FleetEngine\V1\TerminalLocation|null - */ - public function getDropoffPoint() - { - return $this->dropoff_point; - } - - public function hasDropoffPoint() - { - return isset($this->dropoff_point); - } - - public function clearDropoffPoint() - { - unset($this->dropoff_point); - } - - /** - * The customer's intended dropoff location. The field is required if - * `trip_types` contains `TripType.SHARED`. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 5; - * @param \Google\Maps\FleetEngine\V1\TerminalLocation $var - * @return $this - */ - public function setDropoffPoint($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalLocation::class); - $this->dropoff_point = $var; - - return $this; - } - - /** - * Required. Defines the vehicle search radius around the pickup point. Only - * vehicles within the search radius will be returned. Value must be between - * 400 and 10000 meters (inclusive). - * - * Generated from protobuf field int32 pickup_radius_meters = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getPickupRadiusMeters() - { - return $this->pickup_radius_meters; - } - - /** - * Required. Defines the vehicle search radius around the pickup point. Only - * vehicles within the search radius will be returned. Value must be between - * 400 and 10000 meters (inclusive). - * - * Generated from protobuf field int32 pickup_radius_meters = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setPickupRadiusMeters($var) - { - GPBUtil::checkInt32($var); - $this->pickup_radius_meters = $var; - - return $this; - } - - /** - * Required. Specifies the maximum number of vehicles to return. The value - * must be between 1 and 50 (inclusive). - * - * Generated from protobuf field int32 count = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getCount() - { - return $this->count; - } - - /** - * Required. Specifies the maximum number of vehicles to return. The value - * must be between 1 and 50 (inclusive). - * - * Generated from protobuf field int32 count = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setCount($var) - { - GPBUtil::checkInt32($var); - $this->count = $var; - - return $this; - } - - /** - * Required. Specifies the number of passengers being considered for a trip. - * The value must be greater than or equal to one. The driver is not - * considered in the capacity value. - * - * Generated from protobuf field int32 minimum_capacity = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMinimumCapacity() - { - return $this->minimum_capacity; - } - - /** - * Required. Specifies the number of passengers being considered for a trip. - * The value must be greater than or equal to one. The driver is not - * considered in the capacity value. - * - * Generated from protobuf field int32 minimum_capacity = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMinimumCapacity($var) - { - GPBUtil::checkInt32($var); - $this->minimum_capacity = $var; - - return $this; - } - - /** - * Required. Represents the type of proposed trip. Must include exactly one - * type. `UNKNOWN_TRIP_TYPE` is not allowed. Restricts the search to only - * those vehicles that can support that trip type. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 9 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTripTypes() - { - return $this->trip_types; - } - - /** - * Required. Represents the type of proposed trip. Must include exactly one - * type. `UNKNOWN_TRIP_TYPE` is not allowed. Restricts the search to only - * those vehicles that can support that trip type. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 9 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTripTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Maps\FleetEngine\V1\TripType::class); - $this->trip_types = $arr; - - return $this; - } - - /** - * Restricts the search to only those vehicles that have sent location updates - * to Fleet Engine within the specified duration. Stationary vehicles still - * transmitting their locations are not considered stale. If this field is not - * set, the server uses five minutes as the default value. - * - * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 10; - * @return \Google\Protobuf\Duration|null - */ - public function getMaximumStaleness() - { - return $this->maximum_staleness; - } - - public function hasMaximumStaleness() - { - return isset($this->maximum_staleness); - } - - public function clearMaximumStaleness() - { - unset($this->maximum_staleness); - } - - /** - * Restricts the search to only those vehicles that have sent location updates - * to Fleet Engine within the specified duration. Stationary vehicles still - * transmitting their locations are not considered stale. If this field is not - * set, the server uses five minutes as the default value. - * - * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 10; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMaximumStaleness($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->maximum_staleness = $var; - - return $this; - } - - /** - * Required. Restricts the search to vehicles with one of the specified types. - * At least one vehicle type must be specified. VehicleTypes with a category - * of `UNKNOWN` are not allowed. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType vehicle_types = 14 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVehicleTypes() - { - return $this->vehicle_types; - } - - /** - * Required. Restricts the search to vehicles with one of the specified types. - * At least one vehicle type must be specified. VehicleTypes with a category - * of `UNKNOWN` are not allowed. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType vehicle_types = 14 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Maps\FleetEngine\V1\Vehicle\VehicleType>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVehicleTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\Vehicle\VehicleType::class); - $this->vehicle_types = $arr; - - return $this; - } - - /** - * Callers can form complex logical operations using any combination of the - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attribute_sets` fields. - * `required_attributes` is a list; `required_one_of_attributes` uses a - * message which allows a list of lists. In combination, the two fields allow - * the composition of this expression: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR - * ...) - * AND - * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR - * ...) - * ``` - * Restricts the search to only those vehicles with the specified attributes. - * This field is a conjunction/AND operation. A max of 50 required_attributes - * is allowed. This matches the maximum number of attributes allowed on a - * vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute required_attributes = 12; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequiredAttributes() - { - return $this->required_attributes; - } - - /** - * Callers can form complex logical operations using any combination of the - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attribute_sets` fields. - * `required_attributes` is a list; `required_one_of_attributes` uses a - * message which allows a list of lists. In combination, the two fields allow - * the composition of this expression: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR - * ...) - * AND - * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR - * ...) - * ``` - * Restricts the search to only those vehicles with the specified attributes. - * This field is a conjunction/AND operation. A max of 50 required_attributes - * is allowed. This matches the maximum number of attributes allowed on a - * vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute required_attributes = 12; - * @param array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequiredAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttribute::class); - $this->required_attributes = $arr; - - return $this; - } - - /** - * Restricts the search to only those vehicles with at least one of - * the specified attributes in each `VehicleAttributeList`. Within each - * list, a vehicle must match at least one of the attributes. This field is an - * inclusive disjunction/OR operation in each `VehicleAttributeList` and a - * conjunction/AND operation across the collection of `VehicleAttributeList`. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attributes = 15; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequiredOneOfAttributes() - { - return $this->required_one_of_attributes; - } - - /** - * Restricts the search to only those vehicles with at least one of - * the specified attributes in each `VehicleAttributeList`. Within each - * list, a vehicle must match at least one of the attributes. This field is an - * inclusive disjunction/OR operation in each `VehicleAttributeList` and a - * conjunction/AND operation across the collection of `VehicleAttributeList`. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attributes = 15; - * @param array<\Google\Maps\FleetEngine\V1\VehicleAttributeList>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequiredOneOfAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttributeList::class); - $this->required_one_of_attributes = $arr; - - return $this; - } - - /** - * `required_one_of_attribute_sets` provides additional functionality. - * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` - * uses a message which allows a list of lists, allowing expressions such as - * this one: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * ( - * (required_one_of_attribute_sets[0][0] AND - * required_one_of_attribute_sets[0][1] AND - * ...) - * OR - * (required_one_of_attribute_sets[1][0] AND - * required_one_of_attribute_sets[1][1] AND - * ...) - * ) - * ``` - * Restricts the search to only those vehicles with all the attributes in a - * `VehicleAttributeList`. Within each list, a - * vehicle must match all of the attributes. This field is a conjunction/AND - * operation in each `VehicleAttributeList` and inclusive disjunction/OR - * operation across the collection of `VehicleAttributeList`. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attribute_sets = 20; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequiredOneOfAttributeSets() - { - return $this->required_one_of_attribute_sets; - } - - /** - * `required_one_of_attribute_sets` provides additional functionality. - * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` - * uses a message which allows a list of lists, allowing expressions such as - * this one: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * ( - * (required_one_of_attribute_sets[0][0] AND - * required_one_of_attribute_sets[0][1] AND - * ...) - * OR - * (required_one_of_attribute_sets[1][0] AND - * required_one_of_attribute_sets[1][1] AND - * ...) - * ) - * ``` - * Restricts the search to only those vehicles with all the attributes in a - * `VehicleAttributeList`. Within each list, a - * vehicle must match all of the attributes. This field is a conjunction/AND - * operation in each `VehicleAttributeList` and inclusive disjunction/OR - * operation across the collection of `VehicleAttributeList`. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attribute_sets = 20; - * @param array<\Google\Maps\FleetEngine\V1\VehicleAttributeList>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequiredOneOfAttributeSets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttributeList::class); - $this->required_one_of_attribute_sets = $arr; - - return $this; - } - - /** - * Required. Specifies the desired ordering criterion for results. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder order_by = 13 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Required. Specifies the desired ordering criterion for results. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder order_by = 13 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest\VehicleMatchOrder::class); - $this->order_by = $var; - - return $this; - } - - /** - * This indicates if vehicles with a single active trip are eligible for this - * search. This field is only used when `current_trips_present` is - * unspecified. When `current_trips_present` is unspecified and this field - * is `false`, vehicles with assigned trips are excluded from the search - * results. When `current_trips_present` is unspecified and this field is - * `true`, search results can include vehicles with one active trip that has a - * status of `ENROUTE_TO_DROPOFF`. When `current_trips_present` is specified, - * this field cannot be set to true. - * The default value is `false`. - * - * Generated from protobuf field bool include_back_to_back = 18; - * @return bool - */ - public function getIncludeBackToBack() - { - return $this->include_back_to_back; - } - - /** - * This indicates if vehicles with a single active trip are eligible for this - * search. This field is only used when `current_trips_present` is - * unspecified. When `current_trips_present` is unspecified and this field - * is `false`, vehicles with assigned trips are excluded from the search - * results. When `current_trips_present` is unspecified and this field is - * `true`, search results can include vehicles with one active trip that has a - * status of `ENROUTE_TO_DROPOFF`. When `current_trips_present` is specified, - * this field cannot be set to true. - * The default value is `false`. - * - * Generated from protobuf field bool include_back_to_back = 18; - * @param bool $var - * @return $this - */ - public function setIncludeBackToBack($var) - { - GPBUtil::checkBool($var); - $this->include_back_to_back = $var; - - return $this; - } - - /** - * Indicates the trip associated with this `SearchVehicleRequest`. - * - * Generated from protobuf field string trip_id = 19; - * @return string - */ - public function getTripId() - { - return $this->trip_id; - } - - /** - * Indicates the trip associated with this `SearchVehicleRequest`. - * - * Generated from protobuf field string trip_id = 19; - * @param string $var - * @return $this - */ - public function setTripId($var) - { - GPBUtil::checkString($var, True); - $this->trip_id = $var; - - return $this; - } - - /** - * This indicates if vehicles with active trips are eligible for this search. - * This must be set to something other than - * `CURRENT_TRIPS_PRESENT_UNSPECIFIED` if `trip_type` includes `SHARED`. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.CurrentTripsPresent current_trips_present = 21; - * @return int - */ - public function getCurrentTripsPresent() - { - return $this->current_trips_present; - } - - /** - * This indicates if vehicles with active trips are eligible for this search. - * This must be set to something other than - * `CURRENT_TRIPS_PRESENT_UNSPECIFIED` if `trip_type` includes `SHARED`. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.CurrentTripsPresent current_trips_present = 21; - * @param int $var - * @return $this - */ - public function setCurrentTripsPresent($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest\CurrentTripsPresent::class); - $this->current_trips_present = $var; - - return $this; - } - - /** - * Optional. A filter query to apply when searching vehicles. See - * http://aip.dev/160 for examples of the filter syntax. - * This field is designed to replace the `required_attributes`, - * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. - * If a non-empty value is specified here, the following fields must be empty: - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attributes_sets`. - * This filter functions as an AND clause with other constraints, - * such as `minimum_capacity` or `vehicle_types`. - * Note that the only queries supported are on vehicle attributes (for - * example, `attributes. = ` or `attributes. = AND - * attributes. = `). The maximum number of restrictions allowed - * in a filter query is 50. - * Also, all attributes are stored as strings, so the only supported - * comparisons against attributes are string comparisons. In order to compare - * against number or boolean values, the values must be explicitly quoted to - * be treated as strings (for example, `attributes. = "10"` or - * `attributes. = "true"`). - * - * Generated from protobuf field string filter = 22 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. A filter query to apply when searching vehicles. See - * http://aip.dev/160 for examples of the filter syntax. - * This field is designed to replace the `required_attributes`, - * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. - * If a non-empty value is specified here, the following fields must be empty: - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attributes_sets`. - * This filter functions as an AND clause with other constraints, - * such as `minimum_capacity` or `vehicle_types`. - * Note that the only queries supported are on vehicle attributes (for - * example, `attributes. = ` or `attributes. = AND - * attributes. = `). The maximum number of restrictions allowed - * in a filter query is 50. - * Also, all attributes are stored as strings, so the only supported - * comparisons against attributes are string comparisons. In order to compare - * against number or boolean values, the values must be explicitly quoted to - * be treated as strings (for example, `attributes. = "10"` or - * `attributes. = "true"`). - * - * Generated from protobuf field string filter = 22 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/CurrentTripsPresent.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/CurrentTripsPresent.php deleted file mode 100644 index e9d8ed63eb8d..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/CurrentTripsPresent.php +++ /dev/null @@ -1,68 +0,0 @@ -maps.fleetengine.v1.SearchVehiclesRequest.CurrentTripsPresent - */ -class CurrentTripsPresent -{ - /** - * The availability of vehicles with trips present is governed by the - * `include_back_to_back` field. - * - * Generated from protobuf enum CURRENT_TRIPS_PRESENT_UNSPECIFIED = 0; - */ - const CURRENT_TRIPS_PRESENT_UNSPECIFIED = 0; - /** - * Vehicles without trips can appear in search results. When this value is - * used, `include_back_to_back` cannot be `true`. - * - * Generated from protobuf enum NONE = 1; - */ - const NONE = 1; - /** - * Vehicles with at most 5 current trips and 10 waypoints are included - * in the search results. When this value is used, `include_back_to_back` - * cannot be `true`. - * - * Generated from protobuf enum ANY = 2; - */ - const ANY = 2; - - private static $valueToName = [ - self::CURRENT_TRIPS_PRESENT_UNSPECIFIED => 'CURRENT_TRIPS_PRESENT_UNSPECIFIED', - self::NONE => 'NONE', - self::ANY => 'ANY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CurrentTripsPresent::class, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest_CurrentTripsPresent::class); - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/VehicleMatchOrder.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/VehicleMatchOrder.php deleted file mode 100644 index 5abdd153b401..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/VehicleMatchOrder.php +++ /dev/null @@ -1,90 +0,0 @@ -maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder - */ -class VehicleMatchOrder -{ - /** - * Default, used for unspecified or unrecognized vehicle matches order. - * - * Generated from protobuf enum UNKNOWN_VEHICLE_MATCH_ORDER = 0; - */ - const UNKNOWN_VEHICLE_MATCH_ORDER = 0; - /** - * Ascending order by vehicle driving time to the pickup point. - * - * Generated from protobuf enum PICKUP_POINT_ETA = 1; - */ - const PICKUP_POINT_ETA = 1; - /** - * Ascending order by vehicle driving distance to the pickup point. - * - * Generated from protobuf enum PICKUP_POINT_DISTANCE = 2; - */ - const PICKUP_POINT_DISTANCE = 2; - /** - * Ascending order by vehicle driving time to the dropoff point. This order - * can only be used if the dropoff point is specified in the request. - * - * Generated from protobuf enum DROPOFF_POINT_ETA = 3; - */ - const DROPOFF_POINT_ETA = 3; - /** - * Ascending order by straight-line distance from the vehicle's last - * reported location to the pickup point. - * - * Generated from protobuf enum PICKUP_POINT_STRAIGHT_DISTANCE = 4; - */ - const PICKUP_POINT_STRAIGHT_DISTANCE = 4; - /** - * Ascending order by the configured match cost. Match cost is defined as a - * weighted calculation between straight-line distance and ETA. Weights are - * set with default values and can be modified per customer. Please contact - * Google support if these weights need to be modified for your project. - * - * Generated from protobuf enum COST = 5; - */ - const COST = 5; - - private static $valueToName = [ - self::UNKNOWN_VEHICLE_MATCH_ORDER => 'UNKNOWN_VEHICLE_MATCH_ORDER', - self::PICKUP_POINT_ETA => 'PICKUP_POINT_ETA', - self::PICKUP_POINT_DISTANCE => 'PICKUP_POINT_DISTANCE', - self::DROPOFF_POINT_ETA => 'DROPOFF_POINT_ETA', - self::PICKUP_POINT_STRAIGHT_DISTANCE => 'PICKUP_POINT_STRAIGHT_DISTANCE', - self::COST => 'COST', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(VehicleMatchOrder::class, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest_VehicleMatchOrder::class); - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesResponse.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesResponse.php deleted file mode 100644 index c521ea8c385e..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesResponse.php +++ /dev/null @@ -1,71 +0,0 @@ -maps.fleetengine.v1.SearchVehiclesResponse - */ -class SearchVehiclesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of vehicles that match the `SearchVehiclesRequest` criteria, ordered - * according to `SearchVehiclesRequest.order_by` field. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleMatch matches = 1; - */ - private $matches; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Maps\FleetEngine\V1\VehicleMatch>|\Google\Protobuf\Internal\RepeatedField $matches - * List of vehicles that match the `SearchVehiclesRequest` criteria, ordered - * according to `SearchVehiclesRequest.order_by` field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * List of vehicles that match the `SearchVehiclesRequest` criteria, ordered - * according to `SearchVehiclesRequest.order_by` field. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleMatch matches = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMatches() - { - return $this->matches; - } - - /** - * List of vehicles that match the `SearchVehiclesRequest` criteria, ordered - * according to `SearchVehiclesRequest.order_by` field. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleMatch matches = 1; - * @param array<\Google\Maps\FleetEngine\V1\VehicleMatch>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMatches($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleMatch::class); - $this->matches = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval.php deleted file mode 100644 index 53d8e860e1d4..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval.php +++ /dev/null @@ -1,145 +0,0 @@ -maps.fleetengine.v1.SpeedReadingInterval - */ -class SpeedReadingInterval extends \Google\Protobuf\Internal\Message -{ - /** - * The starting index of this interval in the path. - * In JSON, when the index is 0, the field will appear to be unpopulated. - * - * Generated from protobuf field int32 start_polyline_point_index = 1; - */ - protected $start_polyline_point_index = 0; - /** - * The ending index of this interval in the path. - * In JSON, when the index is 0, the field will appear to be unpopulated. - * - * Generated from protobuf field int32 end_polyline_point_index = 2; - */ - protected $end_polyline_point_index = 0; - /** - * Traffic speed in this interval. - * - * Generated from protobuf field .maps.fleetengine.v1.SpeedReadingInterval.Speed speed = 3; - */ - protected $speed = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $start_polyline_point_index - * The starting index of this interval in the path. - * In JSON, when the index is 0, the field will appear to be unpopulated. - * @type int $end_polyline_point_index - * The ending index of this interval in the path. - * In JSON, when the index is 0, the field will appear to be unpopulated. - * @type int $speed - * Traffic speed in this interval. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Traffic::initOnce(); - parent::__construct($data); - } - - /** - * The starting index of this interval in the path. - * In JSON, when the index is 0, the field will appear to be unpopulated. - * - * Generated from protobuf field int32 start_polyline_point_index = 1; - * @return int - */ - public function getStartPolylinePointIndex() - { - return $this->start_polyline_point_index; - } - - /** - * The starting index of this interval in the path. - * In JSON, when the index is 0, the field will appear to be unpopulated. - * - * Generated from protobuf field int32 start_polyline_point_index = 1; - * @param int $var - * @return $this - */ - public function setStartPolylinePointIndex($var) - { - GPBUtil::checkInt32($var); - $this->start_polyline_point_index = $var; - - return $this; - } - - /** - * The ending index of this interval in the path. - * In JSON, when the index is 0, the field will appear to be unpopulated. - * - * Generated from protobuf field int32 end_polyline_point_index = 2; - * @return int - */ - public function getEndPolylinePointIndex() - { - return $this->end_polyline_point_index; - } - - /** - * The ending index of this interval in the path. - * In JSON, when the index is 0, the field will appear to be unpopulated. - * - * Generated from protobuf field int32 end_polyline_point_index = 2; - * @param int $var - * @return $this - */ - public function setEndPolylinePointIndex($var) - { - GPBUtil::checkInt32($var); - $this->end_polyline_point_index = $var; - - return $this; - } - - /** - * Traffic speed in this interval. - * - * Generated from protobuf field .maps.fleetengine.v1.SpeedReadingInterval.Speed speed = 3; - * @return int - */ - public function getSpeed() - { - return $this->speed; - } - - /** - * Traffic speed in this interval. - * - * Generated from protobuf field .maps.fleetengine.v1.SpeedReadingInterval.Speed speed = 3; - * @param int $var - * @return $this - */ - public function setSpeed($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\SpeedReadingInterval\Speed::class); - $this->speed = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval/Speed.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval/Speed.php deleted file mode 100644 index 6291e7ebaf55..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval/Speed.php +++ /dev/null @@ -1,71 +0,0 @@ -maps.fleetengine.v1.SpeedReadingInterval.Speed - */ -class Speed -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum SPEED_UNSPECIFIED = 0; - */ - const SPEED_UNSPECIFIED = 0; - /** - * Normal speed, no slowdown is detected. - * - * Generated from protobuf enum NORMAL = 1; - */ - const NORMAL = 1; - /** - * Slowdown detected, but no traffic jam formed. - * - * Generated from protobuf enum SLOW = 2; - */ - const SLOW = 2; - /** - * Traffic jam detected. - * - * Generated from protobuf enum TRAFFIC_JAM = 3; - */ - const TRAFFIC_JAM = 3; - - private static $valueToName = [ - self::SPEED_UNSPECIFIED => 'SPEED_UNSPECIFIED', - self::NORMAL => 'NORMAL', - self::SLOW => 'SLOW', - self::TRAFFIC_JAM => 'TRAFFIC_JAM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Speed::class, \Google\Maps\FleetEngine\V1\SpeedReadingInterval_Speed::class); - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/StopLocation.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/StopLocation.php deleted file mode 100644 index 6a2b230a3673..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/StopLocation.php +++ /dev/null @@ -1,172 +0,0 @@ -maps.fleetengine.v1.StopLocation - */ -class StopLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Denotes the actual location. - * - * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $point = null; - /** - * Indicates when the stop happened. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; - */ - protected $timestamp = null; - /** - * Input only. Deprecated. Use the timestamp field. - * - * Generated from protobuf field .google.protobuf.Timestamp stop_time = 3 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; - * @deprecated - */ - protected $stop_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\LatLng $point - * Required. Denotes the actual location. - * @type \Google\Protobuf\Timestamp $timestamp - * Indicates when the stop happened. - * @type \Google\Protobuf\Timestamp $stop_time - * Input only. Deprecated. Use the timestamp field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Trips::initOnce(); - parent::__construct($data); - } - - /** - * Required. Denotes the actual location. - * - * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Type\LatLng|null - */ - public function getPoint() - { - return $this->point; - } - - public function hasPoint() - { - return isset($this->point); - } - - public function clearPoint() - { - unset($this->point); - } - - /** - * Required. Denotes the actual location. - * - * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Type\LatLng $var - * @return $this - */ - public function setPoint($var) - { - GPBUtil::checkMessage($var, \Google\Type\LatLng::class); - $this->point = $var; - - return $this; - } - - /** - * Indicates when the stop happened. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTimestamp() - { - return $this->timestamp; - } - - public function hasTimestamp() - { - return isset($this->timestamp); - } - - public function clearTimestamp() - { - unset($this->timestamp); - } - - /** - * Indicates when the stop happened. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTimestamp($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->timestamp = $var; - - return $this; - } - - /** - * Input only. Deprecated. Use the timestamp field. - * - * Generated from protobuf field .google.protobuf.Timestamp stop_time = 3 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - * @deprecated - */ - public function getStopTime() - { - @trigger_error('stop_time is deprecated.', E_USER_DEPRECATED); - return $this->stop_time; - } - - public function hasStopTime() - { - @trigger_error('stop_time is deprecated.', E_USER_DEPRECATED); - return isset($this->stop_time); - } - - public function clearStopTime() - { - @trigger_error('stop_time is deprecated.', E_USER_DEPRECATED); - unset($this->stop_time); - } - - /** - * Input only. Deprecated. Use the timestamp field. - * - * Generated from protobuf field .google.protobuf.Timestamp stop_time = 3 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - * @deprecated - */ - public function setStopTime($var) - { - @trigger_error('stop_time is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->stop_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalLocation.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalLocation.php deleted file mode 100644 index aa49ef72b229..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalLocation.php +++ /dev/null @@ -1,245 +0,0 @@ -maps.fleetengine.v1.TerminalLocation - */ -class TerminalLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Denotes the location of a trip waypoint. - * - * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $point = null; - /** - * Deprecated: Specify the `point` field instead. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalPointId terminal_point_id = 2 [deprecated = true]; - * @deprecated - */ - protected $terminal_point_id = null; - /** - * Deprecated: Specify the `point` field instead. - * - * Generated from protobuf field string access_point_id = 3 [deprecated = true]; - * @deprecated - */ - protected $access_point_id = ''; - /** - * Deprecated. - * - * Generated from protobuf field string trip_id = 4 [deprecated = true]; - * @deprecated - */ - protected $trip_id = ''; - /** - * Deprecated: `Vehicle.waypoint` will have this data. - * - * Generated from protobuf field .maps.fleetengine.v1.WaypointType terminal_location_type = 5 [deprecated = true]; - * @deprecated - */ - protected $terminal_location_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\LatLng $point - * Required. Denotes the location of a trip waypoint. - * @type \Google\Maps\FleetEngine\V1\TerminalPointId $terminal_point_id - * Deprecated: Specify the `point` field instead. - * @type string $access_point_id - * Deprecated: Specify the `point` field instead. - * @type string $trip_id - * Deprecated. - * @type int $terminal_location_type - * Deprecated: `Vehicle.waypoint` will have this data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Fleetengine::initOnce(); - parent::__construct($data); - } - - /** - * Required. Denotes the location of a trip waypoint. - * - * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Type\LatLng|null - */ - public function getPoint() - { - return $this->point; - } - - public function hasPoint() - { - return isset($this->point); - } - - public function clearPoint() - { - unset($this->point); - } - - /** - * Required. Denotes the location of a trip waypoint. - * - * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Type\LatLng $var - * @return $this - */ - public function setPoint($var) - { - GPBUtil::checkMessage($var, \Google\Type\LatLng::class); - $this->point = $var; - - return $this; - } - - /** - * Deprecated: Specify the `point` field instead. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalPointId terminal_point_id = 2 [deprecated = true]; - * @return \Google\Maps\FleetEngine\V1\TerminalPointId|null - * @deprecated - */ - public function getTerminalPointId() - { - @trigger_error('terminal_point_id is deprecated.', E_USER_DEPRECATED); - return $this->terminal_point_id; - } - - public function hasTerminalPointId() - { - @trigger_error('terminal_point_id is deprecated.', E_USER_DEPRECATED); - return isset($this->terminal_point_id); - } - - public function clearTerminalPointId() - { - @trigger_error('terminal_point_id is deprecated.', E_USER_DEPRECATED); - unset($this->terminal_point_id); - } - - /** - * Deprecated: Specify the `point` field instead. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalPointId terminal_point_id = 2 [deprecated = true]; - * @param \Google\Maps\FleetEngine\V1\TerminalPointId $var - * @return $this - * @deprecated - */ - public function setTerminalPointId($var) - { - @trigger_error('terminal_point_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalPointId::class); - $this->terminal_point_id = $var; - - return $this; - } - - /** - * Deprecated: Specify the `point` field instead. - * - * Generated from protobuf field string access_point_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getAccessPointId() - { - @trigger_error('access_point_id is deprecated.', E_USER_DEPRECATED); - return $this->access_point_id; - } - - /** - * Deprecated: Specify the `point` field instead. - * - * Generated from protobuf field string access_point_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setAccessPointId($var) - { - @trigger_error('access_point_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->access_point_id = $var; - - return $this; - } - - /** - * Deprecated. - * - * Generated from protobuf field string trip_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getTripId() - { - @trigger_error('trip_id is deprecated.', E_USER_DEPRECATED); - return $this->trip_id; - } - - /** - * Deprecated. - * - * Generated from protobuf field string trip_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setTripId($var) - { - @trigger_error('trip_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->trip_id = $var; - - return $this; - } - - /** - * Deprecated: `Vehicle.waypoint` will have this data. - * - * Generated from protobuf field .maps.fleetengine.v1.WaypointType terminal_location_type = 5 [deprecated = true]; - * @return int - * @deprecated - */ - public function getTerminalLocationType() - { - @trigger_error('terminal_location_type is deprecated.', E_USER_DEPRECATED); - return $this->terminal_location_type; - } - - /** - * Deprecated: `Vehicle.waypoint` will have this data. - * - * Generated from protobuf field .maps.fleetengine.v1.WaypointType terminal_location_type = 5 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setTerminalLocationType($var) - { - @trigger_error('terminal_location_type is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\WaypointType::class); - $this->terminal_location_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalPointId.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalPointId.php deleted file mode 100644 index dbd1ada8ce1c..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalPointId.php +++ /dev/null @@ -1,159 +0,0 @@ -maps.fleetengine.v1.TerminalPointId - */ -class TerminalPointId extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. - * - * Generated from protobuf field string value = 4 [deprecated = true]; - * @deprecated - */ - protected $value = ''; - protected $Id; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $place_id - * Deprecated. - * @type string $generated_id - * Deprecated. - * @type string $value - * Deprecated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Fleetengine::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. - * - * Generated from protobuf field string place_id = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getPlaceId() - { - @trigger_error('place_id is deprecated.', E_USER_DEPRECATED); - return $this->readOneof(2); - } - - public function hasPlaceId() - { - @trigger_error('place_id is deprecated.', E_USER_DEPRECATED); - return $this->hasOneof(2); - } - - /** - * Deprecated. - * - * Generated from protobuf field string place_id = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setPlaceId($var) - { - @trigger_error('place_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Deprecated. - * - * Generated from protobuf field string generated_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getGeneratedId() - { - @trigger_error('generated_id is deprecated.', E_USER_DEPRECATED); - return $this->readOneof(3); - } - - public function hasGeneratedId() - { - @trigger_error('generated_id is deprecated.', E_USER_DEPRECATED); - return $this->hasOneof(3); - } - - /** - * Deprecated. - * - * Generated from protobuf field string generated_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setGeneratedId($var) - { - @trigger_error('generated_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Deprecated. - * - * Generated from protobuf field string value = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getValue() - { - @trigger_error('value is deprecated.', E_USER_DEPRECATED); - return $this->value; - } - - /** - * Deprecated. - * - * Generated from protobuf field string value = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setValue($var) - { - @trigger_error('value is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * @return string - */ - public function getId() - { - return $this->whichOneof("Id"); - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TrafficPolylineData.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TrafficPolylineData.php deleted file mode 100644 index d40f215739bf..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TrafficPolylineData.php +++ /dev/null @@ -1,81 +0,0 @@ -maps.fleetengine.v1.TrafficPolylineData - */ -class TrafficPolylineData extends \Google\Protobuf\Internal\Message -{ - /** - * A polyline rendering of how fast traffic is for all regions along - * one stretch of a customer ride. - * - * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering traffic_rendering = 1; - */ - protected $traffic_rendering = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering $traffic_rendering - * A polyline rendering of how fast traffic is for all regions along - * one stretch of a customer ride. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); - parent::__construct($data); - } - - /** - * A polyline rendering of how fast traffic is for all regions along - * one stretch of a customer ride. - * - * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering traffic_rendering = 1; - * @return \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering|null - */ - public function getTrafficRendering() - { - return $this->traffic_rendering; - } - - public function hasTrafficRendering() - { - return isset($this->traffic_rendering); - } - - public function clearTrafficRendering() - { - unset($this->traffic_rendering); - } - - /** - * A polyline rendering of how fast traffic is for all regions along - * one stretch of a customer ride. - * - * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering traffic_rendering = 1; - * @param \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering $var - * @return $this - */ - public function setTrafficRendering($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering::class); - $this->traffic_rendering = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Trip.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Trip.php deleted file mode 100644 index 8a5d139fee2e..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Trip.php +++ /dev/null @@ -1,1614 +0,0 @@ -maps.fleetengine.v1.Trip - */ -class Trip extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. In the format "providers/{provider}/trips/{trip}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * ID of the vehicle making this trip. - * - * Generated from protobuf field string vehicle_id = 2; - */ - protected $vehicle_id = ''; - /** - * Current status of the trip. - * - * Generated from protobuf field .maps.fleetengine.v1.TripStatus trip_status = 3; - */ - protected $trip_status = 0; - /** - * The type of the trip. - * - * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 4; - */ - protected $trip_type = 0; - /** - * Location where customer indicates they will be picked up. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 5; - */ - protected $pickup_point = null; - /** - * Input only. The actual location when and where customer was picked up. - * This field is for provider to provide feedback on actual pickup - * information. - * - * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_point = 22 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $actual_pickup_point = null; - /** - * Input only. The actual time and location of the driver arrival at - * the pickup point. - * This field is for provider to provide feedback on actual arrival - * information at the pickup point. - * - * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_arrival_point = 32 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $actual_pickup_arrival_point = null; - /** - * Output only. Either the estimated future time when the rider(s) will be - * picked up, or the actual time when they were picked up. - * - * Generated from protobuf field .google.protobuf.Timestamp pickup_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $pickup_time = null; - /** - * Intermediate stops in order that the trip requests (in addition - * to pickup and dropoff). Initially this will not be supported for shared - * trips. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation intermediate_destinations = 14; - */ - private $intermediate_destinations; - /** - * Indicates the last time the `intermediate_destinations` was modified. - * Your server should cache this value and pass it in `UpdateTripRequest` - * when update `intermediate_destination_index` to ensure the - * `intermediate_destinations` is not changed. - * - * Generated from protobuf field .google.protobuf.Timestamp intermediate_destinations_version = 25; - */ - protected $intermediate_destinations_version = null; - /** - * When `TripStatus` is `ENROUTE_TO_INTERMEDIATE_DESTINATION`, a number - * between [0..N-1] indicating which intermediate destination the vehicle will - * cross next. When `TripStatus` is `ARRIVED_AT_INTERMEDIATE_DESTINATION`, a - * number between [0..N-1] indicating which intermediate destination the - * vehicle is at. The provider sets this value. If there are no - * `intermediate_destinations`, this field is ignored. - * - * Generated from protobuf field int32 intermediate_destination_index = 15; - */ - protected $intermediate_destination_index = 0; - /** - * Input only. The actual time and location of the driver's arrival at - * an intermediate destination. - * This field is for provider to provide feedback on actual arrival - * information at intermediate destinations. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destination_arrival_points = 33 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - private $actual_intermediate_destination_arrival_points; - /** - * Input only. The actual time and location when and where the customer was - * picked up from an intermediate destination. This field is for provider to - * provide feedback on actual pickup information at intermediate destinations. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destinations = 34 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - private $actual_intermediate_destinations; - /** - * Location where customer indicates they will be dropped off. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 7; - */ - protected $dropoff_point = null; - /** - * Input only. The actual time and location when and where customer was - * dropped off. This field is for provider to provide feedback on actual - * dropoff information. - * - * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_dropoff_point = 23 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $actual_dropoff_point = null; - /** - * Output only. Either the estimated future time when the rider(s) will be - * dropped off at the final destination, or the actual time when they were - * dropped off. - * - * Generated from protobuf field .google.protobuf.Timestamp dropoff_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $dropoff_time = null; - /** - * Output only. The full path from the current location to the dropoff point, - * inclusive. This path could include waypoints from other trips. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint remaining_waypoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $remaining_waypoints; - /** - * This field supports manual ordering of the waypoints for the trip. It - * contains all of the remaining waypoints for the assigned vehicle, as well - * as the pickup and drop-off waypoints for this trip. If the trip hasn't been - * assigned to a vehicle, then Fleet Engine ignores this field. For privacy - * reasons, this field is only populated by the server on `UpdateTrip` and - * `CreateTrip` calls, NOT on `GetTrip` calls. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint vehicle_waypoints = 20; - */ - private $vehicle_waypoints; - /** - * Output only. Anticipated route for this trip to the first entry in - * remaining_waypoints. Note that the first waypoint may belong to a different - * trip. - * - * Generated from protobuf field repeated .google.type.LatLng route = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $route; - /** - * Output only. An encoded path to the next waypoint. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. Decoding is not yet supported. - * - * Generated from protobuf field string current_route_segment = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $current_route_segment = ''; - /** - * Output only. Indicates the last time the route was modified. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $current_route_segment_version = null; - /** - * Output only. Indicates the traffic conditions along the - * `current_route_segment` when they're available. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * - * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline current_route_segment_traffic = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $current_route_segment_traffic = null; - /** - * Output only. Indicates the last time the `current_route_segment_traffic` - * was modified. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $current_route_segment_traffic_version = null; - /** - * Output only. The waypoint where `current_route_segment` ends. - * - * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $current_route_segment_end_point = null; - /** - * Output only. The remaining driving distance in the `current_route_segment` - * field. The value is unspecified if the trip is not assigned to a vehicle, - * or the trip is completed or cancelled. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $remaining_distance_meters = null; - /** - * Output only. The ETA to the next waypoint (the first entry in the - * `remaining_waypoints` field). The value is unspecified if the trip is not - * assigned to a vehicle, or the trip is inactive (completed or cancelled). - * - * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $eta_to_first_waypoint = null; - /** - * Output only. The duration from when the Trip data is returned to the time - * in `Trip.eta_to_first_waypoint`. The value is unspecified if the trip is - * not assigned to a vehicle, or the trip is inactive (completed or - * cancelled). - * - * Generated from protobuf field .google.protobuf.Duration remaining_time_to_first_waypoint = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $remaining_time_to_first_waypoint = null; - /** - * Output only. Indicates the last time that `remaining_waypoints` was changed - * (a waypoint was added, removed, or changed). - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $remaining_waypoints_version = null; - /** - * Output only. Indicates the last time the - * `remaining_waypoints.path_to_waypoint` and - * `remaining_waypoints.traffic_to_waypoint` were modified. Your client app - * should cache this value and pass it in `GetTripRequest` to ensure the - * paths and traffic for `remaining_waypoints` are only returned if updated. - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $remaining_waypoints_route_version = null; - /** - * Immutable. Indicates the number of passengers on this trip and does not - * include the driver. A vehicle must have available capacity to be returned - * in a `SearchVehicles` response. - * - * Generated from protobuf field int32 number_of_passengers = 10 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $number_of_passengers = 0; - /** - * Output only. Indicates the last reported location of the vehicle along the - * route. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_location = null; - /** - * Output only. Indicates whether the vehicle's `last_location` can be snapped - * to the current_route_segment. False if `last_location` or - * `current_route_segment` doesn't exist. - * It is computed by Fleet Engine. Any update from clients will be ignored. - * - * Generated from protobuf field bool last_location_snappable = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_location_snappable = false; - /** - * The subset of Trip fields that are populated and how they should be - * interpreted. - * - * Generated from protobuf field .maps.fleetengine.v1.TripView view = 31; - */ - protected $view = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. In the format "providers/{provider}/trips/{trip}" - * @type string $vehicle_id - * ID of the vehicle making this trip. - * @type int $trip_status - * Current status of the trip. - * @type int $trip_type - * The type of the trip. - * @type \Google\Maps\FleetEngine\V1\TerminalLocation $pickup_point - * Location where customer indicates they will be picked up. - * @type \Google\Maps\FleetEngine\V1\StopLocation $actual_pickup_point - * Input only. The actual location when and where customer was picked up. - * This field is for provider to provide feedback on actual pickup - * information. - * @type \Google\Maps\FleetEngine\V1\StopLocation $actual_pickup_arrival_point - * Input only. The actual time and location of the driver arrival at - * the pickup point. - * This field is for provider to provide feedback on actual arrival - * information at the pickup point. - * @type \Google\Protobuf\Timestamp $pickup_time - * Output only. Either the estimated future time when the rider(s) will be - * picked up, or the actual time when they were picked up. - * @type array<\Google\Maps\FleetEngine\V1\TerminalLocation>|\Google\Protobuf\Internal\RepeatedField $intermediate_destinations - * Intermediate stops in order that the trip requests (in addition - * to pickup and dropoff). Initially this will not be supported for shared - * trips. - * @type \Google\Protobuf\Timestamp $intermediate_destinations_version - * Indicates the last time the `intermediate_destinations` was modified. - * Your server should cache this value and pass it in `UpdateTripRequest` - * when update `intermediate_destination_index` to ensure the - * `intermediate_destinations` is not changed. - * @type int $intermediate_destination_index - * When `TripStatus` is `ENROUTE_TO_INTERMEDIATE_DESTINATION`, a number - * between [0..N-1] indicating which intermediate destination the vehicle will - * cross next. When `TripStatus` is `ARRIVED_AT_INTERMEDIATE_DESTINATION`, a - * number between [0..N-1] indicating which intermediate destination the - * vehicle is at. The provider sets this value. If there are no - * `intermediate_destinations`, this field is ignored. - * @type array<\Google\Maps\FleetEngine\V1\StopLocation>|\Google\Protobuf\Internal\RepeatedField $actual_intermediate_destination_arrival_points - * Input only. The actual time and location of the driver's arrival at - * an intermediate destination. - * This field is for provider to provide feedback on actual arrival - * information at intermediate destinations. - * @type array<\Google\Maps\FleetEngine\V1\StopLocation>|\Google\Protobuf\Internal\RepeatedField $actual_intermediate_destinations - * Input only. The actual time and location when and where the customer was - * picked up from an intermediate destination. This field is for provider to - * provide feedback on actual pickup information at intermediate destinations. - * @type \Google\Maps\FleetEngine\V1\TerminalLocation $dropoff_point - * Location where customer indicates they will be dropped off. - * @type \Google\Maps\FleetEngine\V1\StopLocation $actual_dropoff_point - * Input only. The actual time and location when and where customer was - * dropped off. This field is for provider to provide feedback on actual - * dropoff information. - * @type \Google\Protobuf\Timestamp $dropoff_time - * Output only. Either the estimated future time when the rider(s) will be - * dropped off at the final destination, or the actual time when they were - * dropped off. - * @type array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $remaining_waypoints - * Output only. The full path from the current location to the dropoff point, - * inclusive. This path could include waypoints from other trips. - * @type array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $vehicle_waypoints - * This field supports manual ordering of the waypoints for the trip. It - * contains all of the remaining waypoints for the assigned vehicle, as well - * as the pickup and drop-off waypoints for this trip. If the trip hasn't been - * assigned to a vehicle, then Fleet Engine ignores this field. For privacy - * reasons, this field is only populated by the server on `UpdateTrip` and - * `CreateTrip` calls, NOT on `GetTrip` calls. - * @type array<\Google\Type\LatLng>|\Google\Protobuf\Internal\RepeatedField $route - * Output only. Anticipated route for this trip to the first entry in - * remaining_waypoints. Note that the first waypoint may belong to a different - * trip. - * @type string $current_route_segment - * Output only. An encoded path to the next waypoint. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. Decoding is not yet supported. - * @type \Google\Protobuf\Timestamp $current_route_segment_version - * Output only. Indicates the last time the route was modified. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * @type \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline $current_route_segment_traffic - * Output only. Indicates the traffic conditions along the - * `current_route_segment` when they're available. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * @type \Google\Protobuf\Timestamp $current_route_segment_traffic_version - * Output only. Indicates the last time the `current_route_segment_traffic` - * was modified. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * @type \Google\Maps\FleetEngine\V1\TripWaypoint $current_route_segment_end_point - * Output only. The waypoint where `current_route_segment` ends. - * @type \Google\Protobuf\Int32Value $remaining_distance_meters - * Output only. The remaining driving distance in the `current_route_segment` - * field. The value is unspecified if the trip is not assigned to a vehicle, - * or the trip is completed or cancelled. - * @type \Google\Protobuf\Timestamp $eta_to_first_waypoint - * Output only. The ETA to the next waypoint (the first entry in the - * `remaining_waypoints` field). The value is unspecified if the trip is not - * assigned to a vehicle, or the trip is inactive (completed or cancelled). - * @type \Google\Protobuf\Duration $remaining_time_to_first_waypoint - * Output only. The duration from when the Trip data is returned to the time - * in `Trip.eta_to_first_waypoint`. The value is unspecified if the trip is - * not assigned to a vehicle, or the trip is inactive (completed or - * cancelled). - * @type \Google\Protobuf\Timestamp $remaining_waypoints_version - * Output only. Indicates the last time that `remaining_waypoints` was changed - * (a waypoint was added, removed, or changed). - * @type \Google\Protobuf\Timestamp $remaining_waypoints_route_version - * Output only. Indicates the last time the - * `remaining_waypoints.path_to_waypoint` and - * `remaining_waypoints.traffic_to_waypoint` were modified. Your client app - * should cache this value and pass it in `GetTripRequest` to ensure the - * paths and traffic for `remaining_waypoints` are only returned if updated. - * @type int $number_of_passengers - * Immutable. Indicates the number of passengers on this trip and does not - * include the driver. A vehicle must have available capacity to be returned - * in a `SearchVehicles` response. - * @type \Google\Maps\FleetEngine\V1\VehicleLocation $last_location - * Output only. Indicates the last reported location of the vehicle along the - * route. - * @type bool $last_location_snappable - * Output only. Indicates whether the vehicle's `last_location` can be snapped - * to the current_route_segment. False if `last_location` or - * `current_route_segment` doesn't exist. - * It is computed by Fleet Engine. Any update from clients will be ignored. - * @type int $view - * The subset of Trip fields that are populated and how they should be - * interpreted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Trips::initOnce(); - parent::__construct($data); - } - - /** - * Output only. In the format "providers/{provider}/trips/{trip}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. In the format "providers/{provider}/trips/{trip}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * ID of the vehicle making this trip. - * - * Generated from protobuf field string vehicle_id = 2; - * @return string - */ - public function getVehicleId() - { - return $this->vehicle_id; - } - - /** - * ID of the vehicle making this trip. - * - * Generated from protobuf field string vehicle_id = 2; - * @param string $var - * @return $this - */ - public function setVehicleId($var) - { - GPBUtil::checkString($var, True); - $this->vehicle_id = $var; - - return $this; - } - - /** - * Current status of the trip. - * - * Generated from protobuf field .maps.fleetengine.v1.TripStatus trip_status = 3; - * @return int - */ - public function getTripStatus() - { - return $this->trip_status; - } - - /** - * Current status of the trip. - * - * Generated from protobuf field .maps.fleetengine.v1.TripStatus trip_status = 3; - * @param int $var - * @return $this - */ - public function setTripStatus($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\TripStatus::class); - $this->trip_status = $var; - - return $this; - } - - /** - * The type of the trip. - * - * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 4; - * @return int - */ - public function getTripType() - { - return $this->trip_type; - } - - /** - * The type of the trip. - * - * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 4; - * @param int $var - * @return $this - */ - public function setTripType($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\TripType::class); - $this->trip_type = $var; - - return $this; - } - - /** - * Location where customer indicates they will be picked up. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 5; - * @return \Google\Maps\FleetEngine\V1\TerminalLocation|null - */ - public function getPickupPoint() - { - return $this->pickup_point; - } - - public function hasPickupPoint() - { - return isset($this->pickup_point); - } - - public function clearPickupPoint() - { - unset($this->pickup_point); - } - - /** - * Location where customer indicates they will be picked up. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 5; - * @param \Google\Maps\FleetEngine\V1\TerminalLocation $var - * @return $this - */ - public function setPickupPoint($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalLocation::class); - $this->pickup_point = $var; - - return $this; - } - - /** - * Input only. The actual location when and where customer was picked up. - * This field is for provider to provide feedback on actual pickup - * information. - * - * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_point = 22 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Maps\FleetEngine\V1\StopLocation|null - */ - public function getActualPickupPoint() - { - return $this->actual_pickup_point; - } - - public function hasActualPickupPoint() - { - return isset($this->actual_pickup_point); - } - - public function clearActualPickupPoint() - { - unset($this->actual_pickup_point); - } - - /** - * Input only. The actual location when and where customer was picked up. - * This field is for provider to provide feedback on actual pickup - * information. - * - * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_point = 22 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Maps\FleetEngine\V1\StopLocation $var - * @return $this - */ - public function setActualPickupPoint($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\StopLocation::class); - $this->actual_pickup_point = $var; - - return $this; - } - - /** - * Input only. The actual time and location of the driver arrival at - * the pickup point. - * This field is for provider to provide feedback on actual arrival - * information at the pickup point. - * - * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_arrival_point = 32 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Maps\FleetEngine\V1\StopLocation|null - */ - public function getActualPickupArrivalPoint() - { - return $this->actual_pickup_arrival_point; - } - - public function hasActualPickupArrivalPoint() - { - return isset($this->actual_pickup_arrival_point); - } - - public function clearActualPickupArrivalPoint() - { - unset($this->actual_pickup_arrival_point); - } - - /** - * Input only. The actual time and location of the driver arrival at - * the pickup point. - * This field is for provider to provide feedback on actual arrival - * information at the pickup point. - * - * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_arrival_point = 32 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Maps\FleetEngine\V1\StopLocation $var - * @return $this - */ - public function setActualPickupArrivalPoint($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\StopLocation::class); - $this->actual_pickup_arrival_point = $var; - - return $this; - } - - /** - * Output only. Either the estimated future time when the rider(s) will be - * picked up, or the actual time when they were picked up. - * - * Generated from protobuf field .google.protobuf.Timestamp pickup_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getPickupTime() - { - return $this->pickup_time; - } - - public function hasPickupTime() - { - return isset($this->pickup_time); - } - - public function clearPickupTime() - { - unset($this->pickup_time); - } - - /** - * Output only. Either the estimated future time when the rider(s) will be - * picked up, or the actual time when they were picked up. - * - * Generated from protobuf field .google.protobuf.Timestamp pickup_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setPickupTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->pickup_time = $var; - - return $this; - } - - /** - * Intermediate stops in order that the trip requests (in addition - * to pickup and dropoff). Initially this will not be supported for shared - * trips. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation intermediate_destinations = 14; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIntermediateDestinations() - { - return $this->intermediate_destinations; - } - - /** - * Intermediate stops in order that the trip requests (in addition - * to pickup and dropoff). Initially this will not be supported for shared - * trips. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation intermediate_destinations = 14; - * @param array<\Google\Maps\FleetEngine\V1\TerminalLocation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIntermediateDestinations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\TerminalLocation::class); - $this->intermediate_destinations = $arr; - - return $this; - } - - /** - * Indicates the last time the `intermediate_destinations` was modified. - * Your server should cache this value and pass it in `UpdateTripRequest` - * when update `intermediate_destination_index` to ensure the - * `intermediate_destinations` is not changed. - * - * Generated from protobuf field .google.protobuf.Timestamp intermediate_destinations_version = 25; - * @return \Google\Protobuf\Timestamp|null - */ - public function getIntermediateDestinationsVersion() - { - return $this->intermediate_destinations_version; - } - - public function hasIntermediateDestinationsVersion() - { - return isset($this->intermediate_destinations_version); - } - - public function clearIntermediateDestinationsVersion() - { - unset($this->intermediate_destinations_version); - } - - /** - * Indicates the last time the `intermediate_destinations` was modified. - * Your server should cache this value and pass it in `UpdateTripRequest` - * when update `intermediate_destination_index` to ensure the - * `intermediate_destinations` is not changed. - * - * Generated from protobuf field .google.protobuf.Timestamp intermediate_destinations_version = 25; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setIntermediateDestinationsVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->intermediate_destinations_version = $var; - - return $this; - } - - /** - * When `TripStatus` is `ENROUTE_TO_INTERMEDIATE_DESTINATION`, a number - * between [0..N-1] indicating which intermediate destination the vehicle will - * cross next. When `TripStatus` is `ARRIVED_AT_INTERMEDIATE_DESTINATION`, a - * number between [0..N-1] indicating which intermediate destination the - * vehicle is at. The provider sets this value. If there are no - * `intermediate_destinations`, this field is ignored. - * - * Generated from protobuf field int32 intermediate_destination_index = 15; - * @return int - */ - public function getIntermediateDestinationIndex() - { - return $this->intermediate_destination_index; - } - - /** - * When `TripStatus` is `ENROUTE_TO_INTERMEDIATE_DESTINATION`, a number - * between [0..N-1] indicating which intermediate destination the vehicle will - * cross next. When `TripStatus` is `ARRIVED_AT_INTERMEDIATE_DESTINATION`, a - * number between [0..N-1] indicating which intermediate destination the - * vehicle is at. The provider sets this value. If there are no - * `intermediate_destinations`, this field is ignored. - * - * Generated from protobuf field int32 intermediate_destination_index = 15; - * @param int $var - * @return $this - */ - public function setIntermediateDestinationIndex($var) - { - GPBUtil::checkInt32($var); - $this->intermediate_destination_index = $var; - - return $this; - } - - /** - * Input only. The actual time and location of the driver's arrival at - * an intermediate destination. - * This field is for provider to provide feedback on actual arrival - * information at intermediate destinations. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destination_arrival_points = 33 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActualIntermediateDestinationArrivalPoints() - { - return $this->actual_intermediate_destination_arrival_points; - } - - /** - * Input only. The actual time and location of the driver's arrival at - * an intermediate destination. - * This field is for provider to provide feedback on actual arrival - * information at intermediate destinations. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destination_arrival_points = 33 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param array<\Google\Maps\FleetEngine\V1\StopLocation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActualIntermediateDestinationArrivalPoints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\StopLocation::class); - $this->actual_intermediate_destination_arrival_points = $arr; - - return $this; - } - - /** - * Input only. The actual time and location when and where the customer was - * picked up from an intermediate destination. This field is for provider to - * provide feedback on actual pickup information at intermediate destinations. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destinations = 34 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActualIntermediateDestinations() - { - return $this->actual_intermediate_destinations; - } - - /** - * Input only. The actual time and location when and where the customer was - * picked up from an intermediate destination. This field is for provider to - * provide feedback on actual pickup information at intermediate destinations. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destinations = 34 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param array<\Google\Maps\FleetEngine\V1\StopLocation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActualIntermediateDestinations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\StopLocation::class); - $this->actual_intermediate_destinations = $arr; - - return $this; - } - - /** - * Location where customer indicates they will be dropped off. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 7; - * @return \Google\Maps\FleetEngine\V1\TerminalLocation|null - */ - public function getDropoffPoint() - { - return $this->dropoff_point; - } - - public function hasDropoffPoint() - { - return isset($this->dropoff_point); - } - - public function clearDropoffPoint() - { - unset($this->dropoff_point); - } - - /** - * Location where customer indicates they will be dropped off. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 7; - * @param \Google\Maps\FleetEngine\V1\TerminalLocation $var - * @return $this - */ - public function setDropoffPoint($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalLocation::class); - $this->dropoff_point = $var; - - return $this; - } - - /** - * Input only. The actual time and location when and where customer was - * dropped off. This field is for provider to provide feedback on actual - * dropoff information. - * - * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_dropoff_point = 23 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Maps\FleetEngine\V1\StopLocation|null - */ - public function getActualDropoffPoint() - { - return $this->actual_dropoff_point; - } - - public function hasActualDropoffPoint() - { - return isset($this->actual_dropoff_point); - } - - public function clearActualDropoffPoint() - { - unset($this->actual_dropoff_point); - } - - /** - * Input only. The actual time and location when and where customer was - * dropped off. This field is for provider to provide feedback on actual - * dropoff information. - * - * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_dropoff_point = 23 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Maps\FleetEngine\V1\StopLocation $var - * @return $this - */ - public function setActualDropoffPoint($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\StopLocation::class); - $this->actual_dropoff_point = $var; - - return $this; - } - - /** - * Output only. Either the estimated future time when the rider(s) will be - * dropped off at the final destination, or the actual time when they were - * dropped off. - * - * Generated from protobuf field .google.protobuf.Timestamp dropoff_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDropoffTime() - { - return $this->dropoff_time; - } - - public function hasDropoffTime() - { - return isset($this->dropoff_time); - } - - public function clearDropoffTime() - { - unset($this->dropoff_time); - } - - /** - * Output only. Either the estimated future time when the rider(s) will be - * dropped off at the final destination, or the actual time when they were - * dropped off. - * - * Generated from protobuf field .google.protobuf.Timestamp dropoff_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDropoffTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->dropoff_time = $var; - - return $this; - } - - /** - * Output only. The full path from the current location to the dropoff point, - * inclusive. This path could include waypoints from other trips. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint remaining_waypoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRemainingWaypoints() - { - return $this->remaining_waypoints; - } - - /** - * Output only. The full path from the current location to the dropoff point, - * inclusive. This path could include waypoints from other trips. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint remaining_waypoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRemainingWaypoints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\TripWaypoint::class); - $this->remaining_waypoints = $arr; - - return $this; - } - - /** - * This field supports manual ordering of the waypoints for the trip. It - * contains all of the remaining waypoints for the assigned vehicle, as well - * as the pickup and drop-off waypoints for this trip. If the trip hasn't been - * assigned to a vehicle, then Fleet Engine ignores this field. For privacy - * reasons, this field is only populated by the server on `UpdateTrip` and - * `CreateTrip` calls, NOT on `GetTrip` calls. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint vehicle_waypoints = 20; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVehicleWaypoints() - { - return $this->vehicle_waypoints; - } - - /** - * This field supports manual ordering of the waypoints for the trip. It - * contains all of the remaining waypoints for the assigned vehicle, as well - * as the pickup and drop-off waypoints for this trip. If the trip hasn't been - * assigned to a vehicle, then Fleet Engine ignores this field. For privacy - * reasons, this field is only populated by the server on `UpdateTrip` and - * `CreateTrip` calls, NOT on `GetTrip` calls. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint vehicle_waypoints = 20; - * @param array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVehicleWaypoints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\TripWaypoint::class); - $this->vehicle_waypoints = $arr; - - return $this; - } - - /** - * Output only. Anticipated route for this trip to the first entry in - * remaining_waypoints. Note that the first waypoint may belong to a different - * trip. - * - * Generated from protobuf field repeated .google.type.LatLng route = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRoute() - { - return $this->route; - } - - /** - * Output only. Anticipated route for this trip to the first entry in - * remaining_waypoints. Note that the first waypoint may belong to a different - * trip. - * - * Generated from protobuf field repeated .google.type.LatLng route = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Type\LatLng>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRoute($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Type\LatLng::class); - $this->route = $arr; - - return $this; - } - - /** - * Output only. An encoded path to the next waypoint. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. Decoding is not yet supported. - * - * Generated from protobuf field string current_route_segment = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCurrentRouteSegment() - { - return $this->current_route_segment; - } - - /** - * Output only. An encoded path to the next waypoint. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. Decoding is not yet supported. - * - * Generated from protobuf field string current_route_segment = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCurrentRouteSegment($var) - { - GPBUtil::checkString($var, True); - $this->current_route_segment = $var; - - return $this; - } - - /** - * Output only. Indicates the last time the route was modified. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCurrentRouteSegmentVersion() - { - return $this->current_route_segment_version; - } - - public function hasCurrentRouteSegmentVersion() - { - return isset($this->current_route_segment_version); - } - - public function clearCurrentRouteSegmentVersion() - { - unset($this->current_route_segment_version); - } - - /** - * Output only. Indicates the last time the route was modified. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCurrentRouteSegmentVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->current_route_segment_version = $var; - - return $this; - } - - /** - * Output only. Indicates the traffic conditions along the - * `current_route_segment` when they're available. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * - * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline current_route_segment_traffic = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline|null - */ - public function getCurrentRouteSegmentTraffic() - { - return $this->current_route_segment_traffic; - } - - public function hasCurrentRouteSegmentTraffic() - { - return isset($this->current_route_segment_traffic); - } - - public function clearCurrentRouteSegmentTraffic() - { - unset($this->current_route_segment_traffic); - } - - /** - * Output only. Indicates the traffic conditions along the - * `current_route_segment` when they're available. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * - * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline current_route_segment_traffic = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline $var - * @return $this - */ - public function setCurrentRouteSegmentTraffic($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline::class); - $this->current_route_segment_traffic = $var; - - return $this; - } - - /** - * Output only. Indicates the last time the `current_route_segment_traffic` - * was modified. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCurrentRouteSegmentTrafficVersion() - { - return $this->current_route_segment_traffic_version; - } - - public function hasCurrentRouteSegmentTrafficVersion() - { - return isset($this->current_route_segment_traffic_version); - } - - public function clearCurrentRouteSegmentTrafficVersion() - { - unset($this->current_route_segment_traffic_version); - } - - /** - * Output only. Indicates the last time the `current_route_segment_traffic` - * was modified. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCurrentRouteSegmentTrafficVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->current_route_segment_traffic_version = $var; - - return $this; - } - - /** - * Output only. The waypoint where `current_route_segment` ends. - * - * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Maps\FleetEngine\V1\TripWaypoint|null - */ - public function getCurrentRouteSegmentEndPoint() - { - return $this->current_route_segment_end_point; - } - - public function hasCurrentRouteSegmentEndPoint() - { - return isset($this->current_route_segment_end_point); - } - - public function clearCurrentRouteSegmentEndPoint() - { - unset($this->current_route_segment_end_point); - } - - /** - * Output only. The waypoint where `current_route_segment` ends. - * - * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Maps\FleetEngine\V1\TripWaypoint $var - * @return $this - */ - public function setCurrentRouteSegmentEndPoint($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TripWaypoint::class); - $this->current_route_segment_end_point = $var; - - return $this; - } - - /** - * Output only. The remaining driving distance in the `current_route_segment` - * field. The value is unspecified if the trip is not assigned to a vehicle, - * or the trip is completed or cancelled. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Int32Value|null - */ - public function getRemainingDistanceMeters() - { - return $this->remaining_distance_meters; - } - - public function hasRemainingDistanceMeters() - { - return isset($this->remaining_distance_meters); - } - - public function clearRemainingDistanceMeters() - { - unset($this->remaining_distance_meters); - } - - /** - * Returns the unboxed value from getRemainingDistanceMeters() - - * Output only. The remaining driving distance in the `current_route_segment` - * field. The value is unspecified if the trip is not assigned to a vehicle, - * or the trip is completed or cancelled. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|null - */ - public function getRemainingDistanceMetersUnwrapped() - { - return $this->readWrapperValue("remaining_distance_meters"); - } - - /** - * Output only. The remaining driving distance in the `current_route_segment` - * field. The value is unspecified if the trip is not assigned to a vehicle, - * or the trip is completed or cancelled. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setRemainingDistanceMeters($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->remaining_distance_meters = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * Output only. The remaining driving distance in the `current_route_segment` - * field. The value is unspecified if the trip is not assigned to a vehicle, - * or the trip is completed or cancelled. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|null $var - * @return $this - */ - public function setRemainingDistanceMetersUnwrapped($var) - { - $this->writeWrapperValue("remaining_distance_meters", $var); - return $this;} - - /** - * Output only. The ETA to the next waypoint (the first entry in the - * `remaining_waypoints` field). The value is unspecified if the trip is not - * assigned to a vehicle, or the trip is inactive (completed or cancelled). - * - * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEtaToFirstWaypoint() - { - return $this->eta_to_first_waypoint; - } - - public function hasEtaToFirstWaypoint() - { - return isset($this->eta_to_first_waypoint); - } - - public function clearEtaToFirstWaypoint() - { - unset($this->eta_to_first_waypoint); - } - - /** - * Output only. The ETA to the next waypoint (the first entry in the - * `remaining_waypoints` field). The value is unspecified if the trip is not - * assigned to a vehicle, or the trip is inactive (completed or cancelled). - * - * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEtaToFirstWaypoint($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->eta_to_first_waypoint = $var; - - return $this; - } - - /** - * Output only. The duration from when the Trip data is returned to the time - * in `Trip.eta_to_first_waypoint`. The value is unspecified if the trip is - * not assigned to a vehicle, or the trip is inactive (completed or - * cancelled). - * - * Generated from protobuf field .google.protobuf.Duration remaining_time_to_first_waypoint = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Duration|null - */ - public function getRemainingTimeToFirstWaypoint() - { - return $this->remaining_time_to_first_waypoint; - } - - public function hasRemainingTimeToFirstWaypoint() - { - return isset($this->remaining_time_to_first_waypoint); - } - - public function clearRemainingTimeToFirstWaypoint() - { - unset($this->remaining_time_to_first_waypoint); - } - - /** - * Output only. The duration from when the Trip data is returned to the time - * in `Trip.eta_to_first_waypoint`. The value is unspecified if the trip is - * not assigned to a vehicle, or the trip is inactive (completed or - * cancelled). - * - * Generated from protobuf field .google.protobuf.Duration remaining_time_to_first_waypoint = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setRemainingTimeToFirstWaypoint($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->remaining_time_to_first_waypoint = $var; - - return $this; - } - - /** - * Output only. Indicates the last time that `remaining_waypoints` was changed - * (a waypoint was added, removed, or changed). - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRemainingWaypointsVersion() - { - return $this->remaining_waypoints_version; - } - - public function hasRemainingWaypointsVersion() - { - return isset($this->remaining_waypoints_version); - } - - public function clearRemainingWaypointsVersion() - { - unset($this->remaining_waypoints_version); - } - - /** - * Output only. Indicates the last time that `remaining_waypoints` was changed - * (a waypoint was added, removed, or changed). - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRemainingWaypointsVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->remaining_waypoints_version = $var; - - return $this; - } - - /** - * Output only. Indicates the last time the - * `remaining_waypoints.path_to_waypoint` and - * `remaining_waypoints.traffic_to_waypoint` were modified. Your client app - * should cache this value and pass it in `GetTripRequest` to ensure the - * paths and traffic for `remaining_waypoints` are only returned if updated. - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRemainingWaypointsRouteVersion() - { - return $this->remaining_waypoints_route_version; - } - - public function hasRemainingWaypointsRouteVersion() - { - return isset($this->remaining_waypoints_route_version); - } - - public function clearRemainingWaypointsRouteVersion() - { - unset($this->remaining_waypoints_route_version); - } - - /** - * Output only. Indicates the last time the - * `remaining_waypoints.path_to_waypoint` and - * `remaining_waypoints.traffic_to_waypoint` were modified. Your client app - * should cache this value and pass it in `GetTripRequest` to ensure the - * paths and traffic for `remaining_waypoints` are only returned if updated. - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRemainingWaypointsRouteVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->remaining_waypoints_route_version = $var; - - return $this; - } - - /** - * Immutable. Indicates the number of passengers on this trip and does not - * include the driver. A vehicle must have available capacity to be returned - * in a `SearchVehicles` response. - * - * Generated from protobuf field int32 number_of_passengers = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getNumberOfPassengers() - { - return $this->number_of_passengers; - } - - /** - * Immutable. Indicates the number of passengers on this trip and does not - * include the driver. A vehicle must have available capacity to be returned - * in a `SearchVehicles` response. - * - * Generated from protobuf field int32 number_of_passengers = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setNumberOfPassengers($var) - { - GPBUtil::checkInt32($var); - $this->number_of_passengers = $var; - - return $this; - } - - /** - * Output only. Indicates the last reported location of the vehicle along the - * route. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Maps\FleetEngine\V1\VehicleLocation|null - */ - public function getLastLocation() - { - return $this->last_location; - } - - public function hasLastLocation() - { - return isset($this->last_location); - } - - public function clearLastLocation() - { - unset($this->last_location); - } - - /** - * Output only. Indicates the last reported location of the vehicle along the - * route. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Maps\FleetEngine\V1\VehicleLocation $var - * @return $this - */ - public function setLastLocation($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\VehicleLocation::class); - $this->last_location = $var; - - return $this; - } - - /** - * Output only. Indicates whether the vehicle's `last_location` can be snapped - * to the current_route_segment. False if `last_location` or - * `current_route_segment` doesn't exist. - * It is computed by Fleet Engine. Any update from clients will be ignored. - * - * Generated from protobuf field bool last_location_snappable = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getLastLocationSnappable() - { - return $this->last_location_snappable; - } - - /** - * Output only. Indicates whether the vehicle's `last_location` can be snapped - * to the current_route_segment. False if `last_location` or - * `current_route_segment` doesn't exist. - * It is computed by Fleet Engine. Any update from clients will be ignored. - * - * Generated from protobuf field bool last_location_snappable = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setLastLocationSnappable($var) - { - GPBUtil::checkBool($var); - $this->last_location_snappable = $var; - - return $this; - } - - /** - * The subset of Trip fields that are populated and how they should be - * interpreted. - * - * Generated from protobuf field .maps.fleetengine.v1.TripView view = 31; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * The subset of Trip fields that are populated and how they should be - * interpreted. - * - * Generated from protobuf field .maps.fleetengine.v1.TripView view = 31; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\TripView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripStatus.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripStatus.php deleted file mode 100644 index 7c6eea573533..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripStatus.php +++ /dev/null @@ -1,111 +0,0 @@ -maps.fleetengine.v1.TripStatus - */ -class TripStatus -{ - /** - * Default, used for unspecified or unrecognized trip status. - * - * Generated from protobuf enum UNKNOWN_TRIP_STATUS = 0; - */ - const UNKNOWN_TRIP_STATUS = 0; - /** - * Newly created trip. - * - * Generated from protobuf enum NEW = 1; - */ - const PBNEW = 1; - /** - * The driver is on their way to the pickup point. - * - * Generated from protobuf enum ENROUTE_TO_PICKUP = 2; - */ - const ENROUTE_TO_PICKUP = 2; - /** - * The driver has arrived at the pickup point. - * - * Generated from protobuf enum ARRIVED_AT_PICKUP = 3; - */ - const ARRIVED_AT_PICKUP = 3; - /** - * The driver has arrived at an intermediate destination and is waiting for - * the rider. - * - * Generated from protobuf enum ARRIVED_AT_INTERMEDIATE_DESTINATION = 7; - */ - const ARRIVED_AT_INTERMEDIATE_DESTINATION = 7; - /** - * The driver is on their way to an intermediate destination - * (not the dropoff point). - * - * Generated from protobuf enum ENROUTE_TO_INTERMEDIATE_DESTINATION = 8; - */ - const ENROUTE_TO_INTERMEDIATE_DESTINATION = 8; - /** - * The driver has picked up the rider and is on their way to the - * next destination. - * - * Generated from protobuf enum ENROUTE_TO_DROPOFF = 4; - */ - const ENROUTE_TO_DROPOFF = 4; - /** - * The rider has been dropped off and the trip is complete. - * - * Generated from protobuf enum COMPLETE = 5; - */ - const COMPLETE = 5; - /** - * The trip was canceled prior to pickup by the driver, rider, or - * rideshare provider. - * - * Generated from protobuf enum CANCELED = 6; - */ - const CANCELED = 6; - - private static $valueToName = [ - self::UNKNOWN_TRIP_STATUS => 'UNKNOWN_TRIP_STATUS', - self::PBNEW => 'NEW', - self::ENROUTE_TO_PICKUP => 'ENROUTE_TO_PICKUP', - self::ARRIVED_AT_PICKUP => 'ARRIVED_AT_PICKUP', - self::ARRIVED_AT_INTERMEDIATE_DESTINATION => 'ARRIVED_AT_INTERMEDIATE_DESTINATION', - self::ENROUTE_TO_INTERMEDIATE_DESTINATION => 'ENROUTE_TO_INTERMEDIATE_DESTINATION', - self::ENROUTE_TO_DROPOFF => 'ENROUTE_TO_DROPOFF', - self::COMPLETE => 'COMPLETE', - self::CANCELED => 'CANCELED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripType.php deleted file mode 100644 index 94d7f9ab6998..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripType.php +++ /dev/null @@ -1,61 +0,0 @@ -maps.fleetengine.v1.TripType - */ -class TripType -{ - /** - * Default, used for unspecified or unrecognized trip types. - * - * Generated from protobuf enum UNKNOWN_TRIP_TYPE = 0; - */ - const UNKNOWN_TRIP_TYPE = 0; - /** - * The trip may share a vehicle with other trips. - * - * Generated from protobuf enum SHARED = 1; - */ - const SHARED = 1; - /** - * The trip is exclusive to a vehicle. - * - * Generated from protobuf enum EXCLUSIVE = 2; - */ - const EXCLUSIVE = 2; - - private static $valueToName = [ - self::UNKNOWN_TRIP_TYPE => 'UNKNOWN_TRIP_TYPE', - self::SHARED => 'SHARED', - self::EXCLUSIVE => 'EXCLUSIVE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripView.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripView.php deleted file mode 100644 index b341430b2420..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripView.php +++ /dev/null @@ -1,67 +0,0 @@ -maps.fleetengine.v1.TripView - */ -class TripView -{ - /** - * The default value. For backwards-compatibility, the API will default to an - * SDK view. To ensure stability and support, customers are - * advised to select a `TripView` other than `SDK`. - * - * Generated from protobuf enum TRIP_VIEW_UNSPECIFIED = 0; - */ - const TRIP_VIEW_UNSPECIFIED = 0; - /** - * Includes fields that may not be interpretable or supportable using - * publicly available libraries. - * - * Generated from protobuf enum SDK = 1; - */ - const SDK = 1; - /** - * Trip fields are populated for the Journey Sharing use case. This view is - * intended for server-to-server communications. - * - * Generated from protobuf enum JOURNEY_SHARING_V1S = 2; - */ - const JOURNEY_SHARING_V1S = 2; - - private static $valueToName = [ - self::TRIP_VIEW_UNSPECIFIED => 'TRIP_VIEW_UNSPECIFIED', - self::SDK => 'SDK', - self::JOURNEY_SHARING_V1S => 'JOURNEY_SHARING_V1S', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripWaypoint.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripWaypoint.php deleted file mode 100644 index fd7cfea0163e..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripWaypoint.php +++ /dev/null @@ -1,451 +0,0 @@ -maps.fleetengine.v1.TripWaypoint - */ -class TripWaypoint extends \Google\Protobuf\Internal\Message -{ - /** - * The location of this waypoint. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation location = 1; - */ - protected $location = null; - /** - * The trip associated with this waypoint. - * - * Generated from protobuf field string trip_id = 2; - */ - protected $trip_id = ''; - /** - * The role this waypoint plays in this trip, such as pickup or dropoff. - * - * Generated from protobuf field .maps.fleetengine.v1.WaypointType waypoint_type = 3; - */ - protected $waypoint_type = 0; - /** - * The path from the previous waypoint to the current waypoint. Undefined for - * the first waypoint in a list. This field is only populated when requested. - * - * Generated from protobuf field repeated .google.type.LatLng path_to_waypoint = 4; - */ - private $path_to_waypoint; - /** - * The encoded path from the previous waypoint to the current waypoint. - *

Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. Decoding is not yet supported. - * - * Generated from protobuf field string encoded_path_to_waypoint = 5; - */ - protected $encoded_path_to_waypoint = ''; - /** - * The traffic conditions along the path to this waypoint. Note that traffic - * is only available for Google Map Platform Rides and Deliveries Solution - * customers. - * - * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline traffic_to_waypoint = 10; - */ - protected $traffic_to_waypoint = null; - /** - * The path distance from the previous waypoint to the current waypoint. - * Undefined for the first waypoint in a list. - * - * Generated from protobuf field .google.protobuf.Int32Value distance_meters = 6; - */ - protected $distance_meters = null; - /** - * The estimated time of arrival at this waypoint. Undefined for the first - * waypoint in a list. - * - * Generated from protobuf field .google.protobuf.Timestamp eta = 7; - */ - protected $eta = null; - /** - * The travel time from previous waypoint to this point. Undefined for the - * first waypoint in a list. - * - * Generated from protobuf field .google.protobuf.Duration duration = 8; - */ - protected $duration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\TerminalLocation $location - * The location of this waypoint. - * @type string $trip_id - * The trip associated with this waypoint. - * @type int $waypoint_type - * The role this waypoint plays in this trip, such as pickup or dropoff. - * @type array<\Google\Type\LatLng>|\Google\Protobuf\Internal\RepeatedField $path_to_waypoint - * The path from the previous waypoint to the current waypoint. Undefined for - * the first waypoint in a list. This field is only populated when requested. - * @type string $encoded_path_to_waypoint - * The encoded path from the previous waypoint to the current waypoint. - *

Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. Decoding is not yet supported. - * @type \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline $traffic_to_waypoint - * The traffic conditions along the path to this waypoint. Note that traffic - * is only available for Google Map Platform Rides and Deliveries Solution - * customers. - * @type \Google\Protobuf\Int32Value $distance_meters - * The path distance from the previous waypoint to the current waypoint. - * Undefined for the first waypoint in a list. - * @type \Google\Protobuf\Timestamp $eta - * The estimated time of arrival at this waypoint. Undefined for the first - * waypoint in a list. - * @type \Google\Protobuf\Duration $duration - * The travel time from previous waypoint to this point. Undefined for the - * first waypoint in a list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Fleetengine::initOnce(); - parent::__construct($data); - } - - /** - * The location of this waypoint. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation location = 1; - * @return \Google\Maps\FleetEngine\V1\TerminalLocation|null - */ - public function getLocation() - { - return $this->location; - } - - public function hasLocation() - { - return isset($this->location); - } - - public function clearLocation() - { - unset($this->location); - } - - /** - * The location of this waypoint. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation location = 1; - * @param \Google\Maps\FleetEngine\V1\TerminalLocation $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalLocation::class); - $this->location = $var; - - return $this; - } - - /** - * The trip associated with this waypoint. - * - * Generated from protobuf field string trip_id = 2; - * @return string - */ - public function getTripId() - { - return $this->trip_id; - } - - /** - * The trip associated with this waypoint. - * - * Generated from protobuf field string trip_id = 2; - * @param string $var - * @return $this - */ - public function setTripId($var) - { - GPBUtil::checkString($var, True); - $this->trip_id = $var; - - return $this; - } - - /** - * The role this waypoint plays in this trip, such as pickup or dropoff. - * - * Generated from protobuf field .maps.fleetengine.v1.WaypointType waypoint_type = 3; - * @return int - */ - public function getWaypointType() - { - return $this->waypoint_type; - } - - /** - * The role this waypoint plays in this trip, such as pickup or dropoff. - * - * Generated from protobuf field .maps.fleetengine.v1.WaypointType waypoint_type = 3; - * @param int $var - * @return $this - */ - public function setWaypointType($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\WaypointType::class); - $this->waypoint_type = $var; - - return $this; - } - - /** - * The path from the previous waypoint to the current waypoint. Undefined for - * the first waypoint in a list. This field is only populated when requested. - * - * Generated from protobuf field repeated .google.type.LatLng path_to_waypoint = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPathToWaypoint() - { - return $this->path_to_waypoint; - } - - /** - * The path from the previous waypoint to the current waypoint. Undefined for - * the first waypoint in a list. This field is only populated when requested. - * - * Generated from protobuf field repeated .google.type.LatLng path_to_waypoint = 4; - * @param array<\Google\Type\LatLng>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPathToWaypoint($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Type\LatLng::class); - $this->path_to_waypoint = $arr; - - return $this; - } - - /** - * The encoded path from the previous waypoint to the current waypoint. - *

Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. Decoding is not yet supported. - * - * Generated from protobuf field string encoded_path_to_waypoint = 5; - * @return string - */ - public function getEncodedPathToWaypoint() - { - return $this->encoded_path_to_waypoint; - } - - /** - * The encoded path from the previous waypoint to the current waypoint. - *

Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. Decoding is not yet supported. - * - * Generated from protobuf field string encoded_path_to_waypoint = 5; - * @param string $var - * @return $this - */ - public function setEncodedPathToWaypoint($var) - { - GPBUtil::checkString($var, True); - $this->encoded_path_to_waypoint = $var; - - return $this; - } - - /** - * The traffic conditions along the path to this waypoint. Note that traffic - * is only available for Google Map Platform Rides and Deliveries Solution - * customers. - * - * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline traffic_to_waypoint = 10; - * @return \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline|null - */ - public function getTrafficToWaypoint() - { - return $this->traffic_to_waypoint; - } - - public function hasTrafficToWaypoint() - { - return isset($this->traffic_to_waypoint); - } - - public function clearTrafficToWaypoint() - { - unset($this->traffic_to_waypoint); - } - - /** - * The traffic conditions along the path to this waypoint. Note that traffic - * is only available for Google Map Platform Rides and Deliveries Solution - * customers. - * - * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline traffic_to_waypoint = 10; - * @param \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline $var - * @return $this - */ - public function setTrafficToWaypoint($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline::class); - $this->traffic_to_waypoint = $var; - - return $this; - } - - /** - * The path distance from the previous waypoint to the current waypoint. - * Undefined for the first waypoint in a list. - * - * Generated from protobuf field .google.protobuf.Int32Value distance_meters = 6; - * @return \Google\Protobuf\Int32Value|null - */ - public function getDistanceMeters() - { - return $this->distance_meters; - } - - public function hasDistanceMeters() - { - return isset($this->distance_meters); - } - - public function clearDistanceMeters() - { - unset($this->distance_meters); - } - - /** - * Returns the unboxed value from getDistanceMeters() - - * The path distance from the previous waypoint to the current waypoint. - * Undefined for the first waypoint in a list. - * - * Generated from protobuf field .google.protobuf.Int32Value distance_meters = 6; - * @return int|null - */ - public function getDistanceMetersUnwrapped() - { - return $this->readWrapperValue("distance_meters"); - } - - /** - * The path distance from the previous waypoint to the current waypoint. - * Undefined for the first waypoint in a list. - * - * Generated from protobuf field .google.protobuf.Int32Value distance_meters = 6; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setDistanceMeters($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->distance_meters = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * The path distance from the previous waypoint to the current waypoint. - * Undefined for the first waypoint in a list. - * - * Generated from protobuf field .google.protobuf.Int32Value distance_meters = 6; - * @param int|null $var - * @return $this - */ - public function setDistanceMetersUnwrapped($var) - { - $this->writeWrapperValue("distance_meters", $var); - return $this;} - - /** - * The estimated time of arrival at this waypoint. Undefined for the first - * waypoint in a list. - * - * Generated from protobuf field .google.protobuf.Timestamp eta = 7; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEta() - { - return $this->eta; - } - - public function hasEta() - { - return isset($this->eta); - } - - public function clearEta() - { - unset($this->eta); - } - - /** - * The estimated time of arrival at this waypoint. Undefined for the first - * waypoint in a list. - * - * Generated from protobuf field .google.protobuf.Timestamp eta = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEta($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->eta = $var; - - return $this; - } - - /** - * The travel time from previous waypoint to this point. Undefined for the - * first waypoint in a list. - * - * Generated from protobuf field .google.protobuf.Duration duration = 8; - * @return \Google\Protobuf\Duration|null - */ - public function getDuration() - { - return $this->duration; - } - - public function hasDuration() - { - return isset($this->duration); - } - - public function clearDuration() - { - unset($this->duration); - } - - /** - * The travel time from previous waypoint to this point. Undefined for the - * first waypoint in a list. - * - * Generated from protobuf field .google.protobuf.Duration duration = 8; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->duration = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateTripRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateTripRequest.php deleted file mode 100644 index 309be11621d8..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateTripRequest.php +++ /dev/null @@ -1,355 +0,0 @@ -maps.fleetengine.v1.UpdateTripRequest - */ -class UpdateTripRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - */ - protected $header = null; - /** - * Required. Must be in the format - * `providers/{provider}/trips/{trip}`. The provider must - * be the Project ID (for example, `sample-consumer-project`) of the Google - * Cloud Project of which the service account making this call is a member. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. The Trip associated with the update. - * The following fields are maintained by the Fleet Engine. Do not update - * them using Trip.update. - * * `current_route_segment` - * * `current_route_segment_end_point` - * * `current_route_segment_traffic` - * * `current_route_segment_traffic_version` - * * `current_route_segment_version` - * * `dropoff_time` - * * `eta_to_next_waypoint` - * * `intermediate_destinations_version` - * * `last_location` - * * `name` - * * `number_of_passengers` - * * `pickup_time` - * * `remaining_distance_meters` - * * `remaining_time_to_first_waypoint` - * * `remaining_waypoints` - * * `remaining_waypoints_version` - * * `route` - * When you update the `Trip.vehicle_id` for a shared trip, you must supply - * the list of `Trip.vehicle_waypoints` to specify the order of the remaining - * waypoints, otherwise the order will be undetermined. - * When you specify `Trip.vehicle_waypoints`, the list must contain all - * the remaining waypoints of the vehicle's trips, with no extra waypoints. - * You must order these waypoints such that for a given trip, the pickup - * point is before intermediate destinations, and all intermediate - * destinations come before the drop-off point. An `EXCLUSIVE` trip's - * waypoints must not interleave with any other trips. - * The `trip_id`, `waypoint_type` and `location` fields are used, and all - * other TripWaypoint fields in `vehicle_waypoints` are ignored. - * To avoid a race condition for trips with multiple destinations, you - * should provide `Trip.intermediate_destinations_version` when updating - * the trip status to `ENROUTE_TO_INTERMEDIATE_DESTINATION`. The - * `Trip.intermediate_destinations_version` passed must be consistent with - * Fleet Engine's version. If it isn't, the request fails. - * - * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $trip = null; - /** - * Required. The field mask indicating which fields in Trip to update. - * The `update_mask` must contain at least one field. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\RequestHeader $header - * The standard Fleet Engine request header. - * @type string $name - * Required. Must be in the format - * `providers/{provider}/trips/{trip}`. The provider must - * be the Project ID (for example, `sample-consumer-project`) of the Google - * Cloud Project of which the service account making this call is a member. - * @type \Google\Maps\FleetEngine\V1\Trip $trip - * Required. The Trip associated with the update. - * The following fields are maintained by the Fleet Engine. Do not update - * them using Trip.update. - * * `current_route_segment` - * * `current_route_segment_end_point` - * * `current_route_segment_traffic` - * * `current_route_segment_traffic_version` - * * `current_route_segment_version` - * * `dropoff_time` - * * `eta_to_next_waypoint` - * * `intermediate_destinations_version` - * * `last_location` - * * `name` - * * `number_of_passengers` - * * `pickup_time` - * * `remaining_distance_meters` - * * `remaining_time_to_first_waypoint` - * * `remaining_waypoints` - * * `remaining_waypoints_version` - * * `route` - * When you update the `Trip.vehicle_id` for a shared trip, you must supply - * the list of `Trip.vehicle_waypoints` to specify the order of the remaining - * waypoints, otherwise the order will be undetermined. - * When you specify `Trip.vehicle_waypoints`, the list must contain all - * the remaining waypoints of the vehicle's trips, with no extra waypoints. - * You must order these waypoints such that for a given trip, the pickup - * point is before intermediate destinations, and all intermediate - * destinations come before the drop-off point. An `EXCLUSIVE` trip's - * waypoints must not interleave with any other trips. - * The `trip_id`, `waypoint_type` and `location` fields are used, and all - * other TripWaypoint fields in `vehicle_waypoints` are ignored. - * To avoid a race condition for trips with multiple destinations, you - * should provide `Trip.intermediate_destinations_version` when updating - * the trip status to `ENROUTE_TO_INTERMEDIATE_DESTINATION`. The - * `Trip.intermediate_destinations_version` passed must be consistent with - * Fleet Engine's version. If it isn't, the request fails. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The field mask indicating which fields in Trip to update. - * The `update_mask` must contain at least one field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); - parent::__construct($data); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @return \Google\Maps\FleetEngine\V1\RequestHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @param \Google\Maps\FleetEngine\V1\RequestHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); - $this->header = $var; - - return $this; - } - - /** - * Required. Must be in the format - * `providers/{provider}/trips/{trip}`. The provider must - * be the Project ID (for example, `sample-consumer-project`) of the Google - * Cloud Project of which the service account making this call is a member. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Must be in the format - * `providers/{provider}/trips/{trip}`. The provider must - * be the Project ID (for example, `sample-consumer-project`) of the Google - * Cloud Project of which the service account making this call is a member. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The Trip associated with the update. - * The following fields are maintained by the Fleet Engine. Do not update - * them using Trip.update. - * * `current_route_segment` - * * `current_route_segment_end_point` - * * `current_route_segment_traffic` - * * `current_route_segment_traffic_version` - * * `current_route_segment_version` - * * `dropoff_time` - * * `eta_to_next_waypoint` - * * `intermediate_destinations_version` - * * `last_location` - * * `name` - * * `number_of_passengers` - * * `pickup_time` - * * `remaining_distance_meters` - * * `remaining_time_to_first_waypoint` - * * `remaining_waypoints` - * * `remaining_waypoints_version` - * * `route` - * When you update the `Trip.vehicle_id` for a shared trip, you must supply - * the list of `Trip.vehicle_waypoints` to specify the order of the remaining - * waypoints, otherwise the order will be undetermined. - * When you specify `Trip.vehicle_waypoints`, the list must contain all - * the remaining waypoints of the vehicle's trips, with no extra waypoints. - * You must order these waypoints such that for a given trip, the pickup - * point is before intermediate destinations, and all intermediate - * destinations come before the drop-off point. An `EXCLUSIVE` trip's - * waypoints must not interleave with any other trips. - * The `trip_id`, `waypoint_type` and `location` fields are used, and all - * other TripWaypoint fields in `vehicle_waypoints` are ignored. - * To avoid a race condition for trips with multiple destinations, you - * should provide `Trip.intermediate_destinations_version` when updating - * the trip status to `ENROUTE_TO_INTERMEDIATE_DESTINATION`. The - * `Trip.intermediate_destinations_version` passed must be consistent with - * Fleet Engine's version. If it isn't, the request fails. - * - * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Maps\FleetEngine\V1\Trip|null - */ - public function getTrip() - { - return $this->trip; - } - - public function hasTrip() - { - return isset($this->trip); - } - - public function clearTrip() - { - unset($this->trip); - } - - /** - * Required. The Trip associated with the update. - * The following fields are maintained by the Fleet Engine. Do not update - * them using Trip.update. - * * `current_route_segment` - * * `current_route_segment_end_point` - * * `current_route_segment_traffic` - * * `current_route_segment_traffic_version` - * * `current_route_segment_version` - * * `dropoff_time` - * * `eta_to_next_waypoint` - * * `intermediate_destinations_version` - * * `last_location` - * * `name` - * * `number_of_passengers` - * * `pickup_time` - * * `remaining_distance_meters` - * * `remaining_time_to_first_waypoint` - * * `remaining_waypoints` - * * `remaining_waypoints_version` - * * `route` - * When you update the `Trip.vehicle_id` for a shared trip, you must supply - * the list of `Trip.vehicle_waypoints` to specify the order of the remaining - * waypoints, otherwise the order will be undetermined. - * When you specify `Trip.vehicle_waypoints`, the list must contain all - * the remaining waypoints of the vehicle's trips, with no extra waypoints. - * You must order these waypoints such that for a given trip, the pickup - * point is before intermediate destinations, and all intermediate - * destinations come before the drop-off point. An `EXCLUSIVE` trip's - * waypoints must not interleave with any other trips. - * The `trip_id`, `waypoint_type` and `location` fields are used, and all - * other TripWaypoint fields in `vehicle_waypoints` are ignored. - * To avoid a race condition for trips with multiple destinations, you - * should provide `Trip.intermediate_destinations_version` when updating - * the trip status to `ENROUTE_TO_INTERMEDIATE_DESTINATION`. The - * `Trip.intermediate_destinations_version` passed must be consistent with - * Fleet Engine's version. If it isn't, the request fails. - * - * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Maps\FleetEngine\V1\Trip $var - * @return $this - */ - public function setTrip($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Trip::class); - $this->trip = $var; - - return $this; - } - - /** - * Required. The field mask indicating which fields in Trip to update. - * The `update_mask` must contain at least one field. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The field mask indicating which fields in Trip to update. - * The `update_mask` must contain at least one field. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesRequest.php deleted file mode 100644 index 30be79f52ba3..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesRequest.php +++ /dev/null @@ -1,161 +0,0 @@ -maps.fleetengine.v1.UpdateVehicleAttributesRequest - */ -class UpdateVehicleAttributesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - */ - protected $header = null; - /** - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. The vehicle attributes to update. Unmentioned attributes are not - * altered or removed. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private $attributes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\RequestHeader $header - * The standard Fleet Engine request header. - * @type string $name - * 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. - * @type array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $attributes - * Required. The vehicle attributes to update. Unmentioned attributes are not - * altered or removed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @return \Google\Maps\FleetEngine\V1\RequestHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @param \Google\Maps\FleetEngine\V1\RequestHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); - $this->header = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The vehicle attributes to update. Unmentioned attributes are not - * altered or removed. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * Required. The vehicle attributes to update. Unmentioned attributes are not - * altered or removed. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttribute::class); - $this->attributes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesResponse.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesResponse.php deleted file mode 100644 index ba1eb389f4f9..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesResponse.php +++ /dev/null @@ -1,71 +0,0 @@ -maps.fleetengine.v1.UpdateVehicleAttributesResponse - */ -class UpdateVehicleAttributesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The updated full list of vehicle attributes, including new, - * altered, and untouched attributes. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $attributes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $attributes - * Required. The updated full list of vehicle attributes, including new, - * altered, and untouched attributes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. The updated full list of vehicle attributes, including new, - * altered, and untouched attributes. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * Required. The updated full list of vehicle attributes, including new, - * altered, and untouched attributes. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttribute::class); - $this->attributes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleRequest.php deleted file mode 100644 index 3aded0e174b6..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleRequest.php +++ /dev/null @@ -1,267 +0,0 @@ -maps.fleetengine.v1.UpdateVehicleRequest - */ -class UpdateVehicleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - */ - protected $header = null; - /** - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. The `Vehicle` entity values to apply. When updating a `Vehicle`, - * the following fields may not be updated as they are managed by the - * server. - * * `available_capacity` - * * `current_route_segment_version` - * * `current_trips` - * * `name` - * * `waypoints_version` - * If the `attributes` field is updated, **all** the vehicle's attributes are - * replaced with the attributes provided in the request. If you want to update - * only some attributes, see the `UpdateVehicleAttributes` method. - * Likewise, the `waypoints` field can be updated, but must contain all the - * waypoints currently on the vehicle, and no other waypoints. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $vehicle = null; - /** - * Required. A field mask indicating which fields of the `Vehicle` to update. - * At least one field name must be provided. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\RequestHeader $header - * The standard Fleet Engine request header. - * @type string $name - * 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. - * @type \Google\Maps\FleetEngine\V1\Vehicle $vehicle - * Required. The `Vehicle` entity values to apply. When updating a `Vehicle`, - * the following fields may not be updated as they are managed by the - * server. - * * `available_capacity` - * * `current_route_segment_version` - * * `current_trips` - * * `name` - * * `waypoints_version` - * If the `attributes` field is updated, **all** the vehicle's attributes are - * replaced with the attributes provided in the request. If you want to update - * only some attributes, see the `UpdateVehicleAttributes` method. - * Likewise, the `waypoints` field can be updated, but must contain all the - * waypoints currently on the vehicle, and no other waypoints. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. A field mask indicating which fields of the `Vehicle` to update. - * At least one field name must be provided. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @return \Google\Maps\FleetEngine\V1\RequestHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @param \Google\Maps\FleetEngine\V1\RequestHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); - $this->header = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The `Vehicle` entity values to apply. When updating a `Vehicle`, - * the following fields may not be updated as they are managed by the - * server. - * * `available_capacity` - * * `current_route_segment_version` - * * `current_trips` - * * `name` - * * `waypoints_version` - * If the `attributes` field is updated, **all** the vehicle's attributes are - * replaced with the attributes provided in the request. If you want to update - * only some attributes, see the `UpdateVehicleAttributes` method. - * Likewise, the `waypoints` field can be updated, but must contain all the - * waypoints currently on the vehicle, and no other waypoints. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Maps\FleetEngine\V1\Vehicle|null - */ - public function getVehicle() - { - return $this->vehicle; - } - - public function hasVehicle() - { - return isset($this->vehicle); - } - - public function clearVehicle() - { - unset($this->vehicle); - } - - /** - * Required. The `Vehicle` entity values to apply. When updating a `Vehicle`, - * the following fields may not be updated as they are managed by the - * server. - * * `available_capacity` - * * `current_route_segment_version` - * * `current_trips` - * * `name` - * * `waypoints_version` - * If the `attributes` field is updated, **all** the vehicle's attributes are - * replaced with the attributes provided in the request. If you want to update - * only some attributes, see the `UpdateVehicleAttributes` method. - * Likewise, the `waypoints` field can be updated, but must contain all the - * waypoints currently on the vehicle, and no other waypoints. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Maps\FleetEngine\V1\Vehicle $var - * @return $this - */ - public function setVehicle($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Vehicle::class); - $this->vehicle = $var; - - return $this; - } - - /** - * Required. A field mask indicating which fields of the `Vehicle` to update. - * At least one field name must be provided. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. A field mask indicating which fields of the `Vehicle` to update. - * At least one field name must be provided. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle.php deleted file mode 100644 index cef7be90d471..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle.php +++ /dev/null @@ -1,1108 +0,0 @@ -maps.fleetengine.v1.Vehicle - */ -class Vehicle extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The unique name for this vehicle. - * The format is `providers/{provider}/vehicles/{vehicle}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * The vehicle state. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 2; - */ - protected $vehicle_state = 0; - /** - * Trip types supported by this vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripType supported_trip_types = 3; - */ - private $supported_trip_types; - /** - * Output only. List of `trip_id`'s for trips currently assigned to this - * vehicle. - * - * Generated from protobuf field repeated string current_trips = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $current_trips; - /** - * Last reported location of the vehicle. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 5; - */ - protected $last_location = null; - /** - * The total numbers of riders this vehicle can carry. The driver is not - * considered in this value. This value must be greater than or equal to one. - * - * Generated from protobuf field int32 maximum_capacity = 6; - */ - protected $maximum_capacity = 0; - /** - * List of vehicle attributes. A vehicle can have at most 100 - * attributes, and each attribute must have a unique key. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 8; - */ - private $attributes; - /** - * Required. The type of this vehicle. Can be used to filter vehicles in - * `SearchVehicles` results. Also influences ETA and route calculations. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType vehicle_type = 9 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $vehicle_type = null; - /** - * License plate information for the vehicle. - * - * Generated from protobuf field .maps.fleetengine.v1.LicensePlate license_plate = 10; - */ - protected $license_plate = null; - /** - * Deprecated: Use `Vehicle.waypoints` instead. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation route = 12 [deprecated = true]; - * @deprecated - */ - private $route; - /** - * The polyline specifying the route the driver app intends to take to - * the next waypoint. This list is also returned in - * `Trip.current_route_segment` for all active trips assigned to the vehicle. - * Note: This field is intended only for use by the Driver SDK. Decoding is - * not yet supported. - * - * Generated from protobuf field string current_route_segment = 20; - */ - protected $current_route_segment = ''; - /** - * Input only. Fleet Engine uses this information to improve journey sharing. - * Note: This field is intended only for use by the Driver SDK. - * - * Generated from protobuf field .maps.fleetengine.v1.TrafficPolylineData current_route_segment_traffic = 28 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $current_route_segment_traffic = null; - /** - * Output only. Time when `current_route_segment` was set. It can be stored by - * the client and passed in future `GetVehicle` requests to prevent returning - * routes that haven't changed. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $current_route_segment_version = null; - /** - * The waypoint where `current_route_segment` ends. This can be supplied by - * drivers on `UpdateVehicle` calls either as a full trip waypoint, a waypoint - * `LatLng`, or as the last `LatLng` of the `current_route_segment`. Fleet - * Engine will then do its best to interpolate to an actual waypoint if it is - * not fully specified. This field is ignored in `UpdateVehicle` calls unless - * `current_route_segment` is also specified. - * - * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24; - */ - protected $current_route_segment_end_point = null; - /** - * The remaining driving distance for the `current_route_segment`. - * This value is also returned in `Trip.remaining_distance_meters` for all - * active trips assigned to the vehicle. The value is unspecified if the - * `current_route_segment` field is empty. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 18; - */ - protected $remaining_distance_meters = null; - /** - * The ETA to the first entry in the `waypoints` field. The value is - * unspecified if the `waypoints` field is empty or the - * `Vehicle.current_route_segment` field is empty. - * When updating a vehicle, `remaining_time_seconds` takes precedence over - * `eta_to_first_waypoint` in the same request. - * - * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 19; - */ - protected $eta_to_first_waypoint = null; - /** - * Input only. The remaining driving time for the `current_route_segment`. The - * value is unspecified if the `waypoints` field is empty or the - * `Vehicle.current_route_segment` field is empty. This value should match - * `eta_to_first_waypoint` - `current_time` if all parties are using the same - * clock. - * When updating a vehicle, `remaining_time_seconds` takes precedence over - * `eta_to_first_waypoint` in the same request. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_time_seconds = 25 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $remaining_time_seconds = null; - /** - * The remaining waypoints assigned to this Vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint waypoints = 22; - */ - private $waypoints; - /** - * Output only. Last time the `waypoints` field was updated. Clients should - * cache this value and pass it in `GetVehicleRequest` to ensure the - * `waypoints` field is only returned if it is updated. - * - * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $waypoints_version = null; - /** - * Indicates if the driver accepts back-to-back trips. If `true`, - * `SearchVehicles` may include the vehicle even if it is currently assigned - * to a trip. The default value is `false`. - * - * Generated from protobuf field bool back_to_back_enabled = 23; - */ - protected $back_to_back_enabled = false; - /** - * The vehicle's navigation status. - * - * Generated from protobuf field .maps.fleetengine.v1.NavigationStatus navigation_status = 26; - */ - protected $navigation_status = 0; - /** - * Input only. Information about settings in the mobile device being used by - * the driver. - * - * Generated from protobuf field .maps.fleetengine.v1.DeviceSettings device_settings = 27 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $device_settings = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The unique name for this vehicle. - * The format is `providers/{provider}/vehicles/{vehicle}`. - * @type int $vehicle_state - * The vehicle state. - * @type array|\Google\Protobuf\Internal\RepeatedField $supported_trip_types - * Trip types supported by this vehicle. - * @type array|\Google\Protobuf\Internal\RepeatedField $current_trips - * Output only. List of `trip_id`'s for trips currently assigned to this - * vehicle. - * @type \Google\Maps\FleetEngine\V1\VehicleLocation $last_location - * Last reported location of the vehicle. - * @type int $maximum_capacity - * The total numbers of riders this vehicle can carry. The driver is not - * considered in this value. This value must be greater than or equal to one. - * @type array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $attributes - * List of vehicle attributes. A vehicle can have at most 100 - * attributes, and each attribute must have a unique key. - * @type \Google\Maps\FleetEngine\V1\Vehicle\VehicleType $vehicle_type - * Required. The type of this vehicle. Can be used to filter vehicles in - * `SearchVehicles` results. Also influences ETA and route calculations. - * @type \Google\Maps\FleetEngine\V1\LicensePlate $license_plate - * License plate information for the vehicle. - * @type array<\Google\Maps\FleetEngine\V1\TerminalLocation>|\Google\Protobuf\Internal\RepeatedField $route - * Deprecated: Use `Vehicle.waypoints` instead. - * @type string $current_route_segment - * The polyline specifying the route the driver app intends to take to - * the next waypoint. This list is also returned in - * `Trip.current_route_segment` for all active trips assigned to the vehicle. - * Note: This field is intended only for use by the Driver SDK. Decoding is - * not yet supported. - * @type \Google\Maps\FleetEngine\V1\TrafficPolylineData $current_route_segment_traffic - * Input only. Fleet Engine uses this information to improve journey sharing. - * Note: This field is intended only for use by the Driver SDK. - * @type \Google\Protobuf\Timestamp $current_route_segment_version - * Output only. Time when `current_route_segment` was set. It can be stored by - * the client and passed in future `GetVehicle` requests to prevent returning - * routes that haven't changed. - * @type \Google\Maps\FleetEngine\V1\TripWaypoint $current_route_segment_end_point - * The waypoint where `current_route_segment` ends. This can be supplied by - * drivers on `UpdateVehicle` calls either as a full trip waypoint, a waypoint - * `LatLng`, or as the last `LatLng` of the `current_route_segment`. Fleet - * Engine will then do its best to interpolate to an actual waypoint if it is - * not fully specified. This field is ignored in `UpdateVehicle` calls unless - * `current_route_segment` is also specified. - * @type \Google\Protobuf\Int32Value $remaining_distance_meters - * The remaining driving distance for the `current_route_segment`. - * This value is also returned in `Trip.remaining_distance_meters` for all - * active trips assigned to the vehicle. The value is unspecified if the - * `current_route_segment` field is empty. - * @type \Google\Protobuf\Timestamp $eta_to_first_waypoint - * The ETA to the first entry in the `waypoints` field. The value is - * unspecified if the `waypoints` field is empty or the - * `Vehicle.current_route_segment` field is empty. - * When updating a vehicle, `remaining_time_seconds` takes precedence over - * `eta_to_first_waypoint` in the same request. - * @type \Google\Protobuf\Int32Value $remaining_time_seconds - * Input only. The remaining driving time for the `current_route_segment`. The - * value is unspecified if the `waypoints` field is empty or the - * `Vehicle.current_route_segment` field is empty. This value should match - * `eta_to_first_waypoint` - `current_time` if all parties are using the same - * clock. - * When updating a vehicle, `remaining_time_seconds` takes precedence over - * `eta_to_first_waypoint` in the same request. - * @type array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $waypoints - * The remaining waypoints assigned to this Vehicle. - * @type \Google\Protobuf\Timestamp $waypoints_version - * Output only. Last time the `waypoints` field was updated. Clients should - * cache this value and pass it in `GetVehicleRequest` to ensure the - * `waypoints` field is only returned if it is updated. - * @type bool $back_to_back_enabled - * Indicates if the driver accepts back-to-back trips. If `true`, - * `SearchVehicles` may include the vehicle even if it is currently assigned - * to a trip. The default value is `false`. - * @type int $navigation_status - * The vehicle's navigation status. - * @type \Google\Maps\FleetEngine\V1\DeviceSettings $device_settings - * Input only. Information about settings in the mobile device being used by - * the driver. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The unique name for this vehicle. - * The format is `providers/{provider}/vehicles/{vehicle}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The unique name for this vehicle. - * The format is `providers/{provider}/vehicles/{vehicle}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The vehicle state. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 2; - * @return int - */ - public function getVehicleState() - { - return $this->vehicle_state; - } - - /** - * The vehicle state. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 2; - * @param int $var - * @return $this - */ - public function setVehicleState($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\VehicleState::class); - $this->vehicle_state = $var; - - return $this; - } - - /** - * Trip types supported by this vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripType supported_trip_types = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSupportedTripTypes() - { - return $this->supported_trip_types; - } - - /** - * Trip types supported by this vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripType supported_trip_types = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSupportedTripTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Maps\FleetEngine\V1\TripType::class); - $this->supported_trip_types = $arr; - - return $this; - } - - /** - * Output only. List of `trip_id`'s for trips currently assigned to this - * vehicle. - * - * Generated from protobuf field repeated string current_trips = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCurrentTrips() - { - return $this->current_trips; - } - - /** - * Output only. List of `trip_id`'s for trips currently assigned to this - * vehicle. - * - * Generated from protobuf field repeated string current_trips = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCurrentTrips($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->current_trips = $arr; - - return $this; - } - - /** - * Last reported location of the vehicle. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 5; - * @return \Google\Maps\FleetEngine\V1\VehicleLocation|null - */ - public function getLastLocation() - { - return $this->last_location; - } - - public function hasLastLocation() - { - return isset($this->last_location); - } - - public function clearLastLocation() - { - unset($this->last_location); - } - - /** - * Last reported location of the vehicle. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 5; - * @param \Google\Maps\FleetEngine\V1\VehicleLocation $var - * @return $this - */ - public function setLastLocation($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\VehicleLocation::class); - $this->last_location = $var; - - return $this; - } - - /** - * The total numbers of riders this vehicle can carry. The driver is not - * considered in this value. This value must be greater than or equal to one. - * - * Generated from protobuf field int32 maximum_capacity = 6; - * @return int - */ - public function getMaximumCapacity() - { - return $this->maximum_capacity; - } - - /** - * The total numbers of riders this vehicle can carry. The driver is not - * considered in this value. This value must be greater than or equal to one. - * - * Generated from protobuf field int32 maximum_capacity = 6; - * @param int $var - * @return $this - */ - public function setMaximumCapacity($var) - { - GPBUtil::checkInt32($var); - $this->maximum_capacity = $var; - - return $this; - } - - /** - * List of vehicle attributes. A vehicle can have at most 100 - * attributes, and each attribute must have a unique key. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * List of vehicle attributes. A vehicle can have at most 100 - * attributes, and each attribute must have a unique key. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 8; - * @param array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttribute::class); - $this->attributes = $arr; - - return $this; - } - - /** - * Required. The type of this vehicle. Can be used to filter vehicles in - * `SearchVehicles` results. Also influences ETA and route calculations. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType vehicle_type = 9 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Maps\FleetEngine\V1\Vehicle\VehicleType|null - */ - public function getVehicleType() - { - return $this->vehicle_type; - } - - public function hasVehicleType() - { - return isset($this->vehicle_type); - } - - public function clearVehicleType() - { - unset($this->vehicle_type); - } - - /** - * Required. The type of this vehicle. Can be used to filter vehicles in - * `SearchVehicles` results. Also influences ETA and route calculations. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType vehicle_type = 9 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Maps\FleetEngine\V1\Vehicle\VehicleType $var - * @return $this - */ - public function setVehicleType($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Vehicle\VehicleType::class); - $this->vehicle_type = $var; - - return $this; - } - - /** - * License plate information for the vehicle. - * - * Generated from protobuf field .maps.fleetengine.v1.LicensePlate license_plate = 10; - * @return \Google\Maps\FleetEngine\V1\LicensePlate|null - */ - public function getLicensePlate() - { - return $this->license_plate; - } - - public function hasLicensePlate() - { - return isset($this->license_plate); - } - - public function clearLicensePlate() - { - unset($this->license_plate); - } - - /** - * License plate information for the vehicle. - * - * Generated from protobuf field .maps.fleetengine.v1.LicensePlate license_plate = 10; - * @param \Google\Maps\FleetEngine\V1\LicensePlate $var - * @return $this - */ - public function setLicensePlate($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\LicensePlate::class); - $this->license_plate = $var; - - return $this; - } - - /** - * Deprecated: Use `Vehicle.waypoints` instead. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation route = 12 [deprecated = true]; - * @return \Google\Protobuf\Internal\RepeatedField - * @deprecated - */ - public function getRoute() - { - @trigger_error('route is deprecated.', E_USER_DEPRECATED); - return $this->route; - } - - /** - * Deprecated: Use `Vehicle.waypoints` instead. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation route = 12 [deprecated = true]; - * @param array<\Google\Maps\FleetEngine\V1\TerminalLocation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - * @deprecated - */ - public function setRoute($var) - { - @trigger_error('route is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\TerminalLocation::class); - $this->route = $arr; - - return $this; - } - - /** - * The polyline specifying the route the driver app intends to take to - * the next waypoint. This list is also returned in - * `Trip.current_route_segment` for all active trips assigned to the vehicle. - * Note: This field is intended only for use by the Driver SDK. Decoding is - * not yet supported. - * - * Generated from protobuf field string current_route_segment = 20; - * @return string - */ - public function getCurrentRouteSegment() - { - return $this->current_route_segment; - } - - /** - * The polyline specifying the route the driver app intends to take to - * the next waypoint. This list is also returned in - * `Trip.current_route_segment` for all active trips assigned to the vehicle. - * Note: This field is intended only for use by the Driver SDK. Decoding is - * not yet supported. - * - * Generated from protobuf field string current_route_segment = 20; - * @param string $var - * @return $this - */ - public function setCurrentRouteSegment($var) - { - GPBUtil::checkString($var, True); - $this->current_route_segment = $var; - - return $this; - } - - /** - * Input only. Fleet Engine uses this information to improve journey sharing. - * Note: This field is intended only for use by the Driver SDK. - * - * Generated from protobuf field .maps.fleetengine.v1.TrafficPolylineData current_route_segment_traffic = 28 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Maps\FleetEngine\V1\TrafficPolylineData|null - */ - public function getCurrentRouteSegmentTraffic() - { - return $this->current_route_segment_traffic; - } - - public function hasCurrentRouteSegmentTraffic() - { - return isset($this->current_route_segment_traffic); - } - - public function clearCurrentRouteSegmentTraffic() - { - unset($this->current_route_segment_traffic); - } - - /** - * Input only. Fleet Engine uses this information to improve journey sharing. - * Note: This field is intended only for use by the Driver SDK. - * - * Generated from protobuf field .maps.fleetengine.v1.TrafficPolylineData current_route_segment_traffic = 28 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Maps\FleetEngine\V1\TrafficPolylineData $var - * @return $this - */ - public function setCurrentRouteSegmentTraffic($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TrafficPolylineData::class); - $this->current_route_segment_traffic = $var; - - return $this; - } - - /** - * Output only. Time when `current_route_segment` was set. It can be stored by - * the client and passed in future `GetVehicle` requests to prevent returning - * routes that haven't changed. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCurrentRouteSegmentVersion() - { - return $this->current_route_segment_version; - } - - public function hasCurrentRouteSegmentVersion() - { - return isset($this->current_route_segment_version); - } - - public function clearCurrentRouteSegmentVersion() - { - unset($this->current_route_segment_version); - } - - /** - * Output only. Time when `current_route_segment` was set. It can be stored by - * the client and passed in future `GetVehicle` requests to prevent returning - * routes that haven't changed. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCurrentRouteSegmentVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->current_route_segment_version = $var; - - return $this; - } - - /** - * The waypoint where `current_route_segment` ends. This can be supplied by - * drivers on `UpdateVehicle` calls either as a full trip waypoint, a waypoint - * `LatLng`, or as the last `LatLng` of the `current_route_segment`. Fleet - * Engine will then do its best to interpolate to an actual waypoint if it is - * not fully specified. This field is ignored in `UpdateVehicle` calls unless - * `current_route_segment` is also specified. - * - * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24; - * @return \Google\Maps\FleetEngine\V1\TripWaypoint|null - */ - public function getCurrentRouteSegmentEndPoint() - { - return $this->current_route_segment_end_point; - } - - public function hasCurrentRouteSegmentEndPoint() - { - return isset($this->current_route_segment_end_point); - } - - public function clearCurrentRouteSegmentEndPoint() - { - unset($this->current_route_segment_end_point); - } - - /** - * The waypoint where `current_route_segment` ends. This can be supplied by - * drivers on `UpdateVehicle` calls either as a full trip waypoint, a waypoint - * `LatLng`, or as the last `LatLng` of the `current_route_segment`. Fleet - * Engine will then do its best to interpolate to an actual waypoint if it is - * not fully specified. This field is ignored in `UpdateVehicle` calls unless - * `current_route_segment` is also specified. - * - * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24; - * @param \Google\Maps\FleetEngine\V1\TripWaypoint $var - * @return $this - */ - public function setCurrentRouteSegmentEndPoint($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TripWaypoint::class); - $this->current_route_segment_end_point = $var; - - return $this; - } - - /** - * The remaining driving distance for the `current_route_segment`. - * This value is also returned in `Trip.remaining_distance_meters` for all - * active trips assigned to the vehicle. The value is unspecified if the - * `current_route_segment` field is empty. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 18; - * @return \Google\Protobuf\Int32Value|null - */ - public function getRemainingDistanceMeters() - { - return $this->remaining_distance_meters; - } - - public function hasRemainingDistanceMeters() - { - return isset($this->remaining_distance_meters); - } - - public function clearRemainingDistanceMeters() - { - unset($this->remaining_distance_meters); - } - - /** - * Returns the unboxed value from getRemainingDistanceMeters() - - * The remaining driving distance for the `current_route_segment`. - * This value is also returned in `Trip.remaining_distance_meters` for all - * active trips assigned to the vehicle. The value is unspecified if the - * `current_route_segment` field is empty. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 18; - * @return int|null - */ - public function getRemainingDistanceMetersUnwrapped() - { - return $this->readWrapperValue("remaining_distance_meters"); - } - - /** - * The remaining driving distance for the `current_route_segment`. - * This value is also returned in `Trip.remaining_distance_meters` for all - * active trips assigned to the vehicle. The value is unspecified if the - * `current_route_segment` field is empty. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 18; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setRemainingDistanceMeters($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->remaining_distance_meters = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * The remaining driving distance for the `current_route_segment`. - * This value is also returned in `Trip.remaining_distance_meters` for all - * active trips assigned to the vehicle. The value is unspecified if the - * `current_route_segment` field is empty. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 18; - * @param int|null $var - * @return $this - */ - public function setRemainingDistanceMetersUnwrapped($var) - { - $this->writeWrapperValue("remaining_distance_meters", $var); - return $this;} - - /** - * The ETA to the first entry in the `waypoints` field. The value is - * unspecified if the `waypoints` field is empty or the - * `Vehicle.current_route_segment` field is empty. - * When updating a vehicle, `remaining_time_seconds` takes precedence over - * `eta_to_first_waypoint` in the same request. - * - * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 19; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEtaToFirstWaypoint() - { - return $this->eta_to_first_waypoint; - } - - public function hasEtaToFirstWaypoint() - { - return isset($this->eta_to_first_waypoint); - } - - public function clearEtaToFirstWaypoint() - { - unset($this->eta_to_first_waypoint); - } - - /** - * The ETA to the first entry in the `waypoints` field. The value is - * unspecified if the `waypoints` field is empty or the - * `Vehicle.current_route_segment` field is empty. - * When updating a vehicle, `remaining_time_seconds` takes precedence over - * `eta_to_first_waypoint` in the same request. - * - * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 19; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEtaToFirstWaypoint($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->eta_to_first_waypoint = $var; - - return $this; - } - - /** - * Input only. The remaining driving time for the `current_route_segment`. The - * value is unspecified if the `waypoints` field is empty or the - * `Vehicle.current_route_segment` field is empty. This value should match - * `eta_to_first_waypoint` - `current_time` if all parties are using the same - * clock. - * When updating a vehicle, `remaining_time_seconds` takes precedence over - * `eta_to_first_waypoint` in the same request. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_time_seconds = 25 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Protobuf\Int32Value|null - */ - public function getRemainingTimeSeconds() - { - return $this->remaining_time_seconds; - } - - public function hasRemainingTimeSeconds() - { - return isset($this->remaining_time_seconds); - } - - public function clearRemainingTimeSeconds() - { - unset($this->remaining_time_seconds); - } - - /** - * Returns the unboxed value from getRemainingTimeSeconds() - - * Input only. The remaining driving time for the `current_route_segment`. The - * value is unspecified if the `waypoints` field is empty or the - * `Vehicle.current_route_segment` field is empty. This value should match - * `eta_to_first_waypoint` - `current_time` if all parties are using the same - * clock. - * When updating a vehicle, `remaining_time_seconds` takes precedence over - * `eta_to_first_waypoint` in the same request. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_time_seconds = 25 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return int|null - */ - public function getRemainingTimeSecondsUnwrapped() - { - return $this->readWrapperValue("remaining_time_seconds"); - } - - /** - * Input only. The remaining driving time for the `current_route_segment`. The - * value is unspecified if the `waypoints` field is empty or the - * `Vehicle.current_route_segment` field is empty. This value should match - * `eta_to_first_waypoint` - `current_time` if all parties are using the same - * clock. - * When updating a vehicle, `remaining_time_seconds` takes precedence over - * `eta_to_first_waypoint` in the same request. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_time_seconds = 25 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setRemainingTimeSeconds($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->remaining_time_seconds = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * Input only. The remaining driving time for the `current_route_segment`. The - * value is unspecified if the `waypoints` field is empty or the - * `Vehicle.current_route_segment` field is empty. This value should match - * `eta_to_first_waypoint` - `current_time` if all parties are using the same - * clock. - * When updating a vehicle, `remaining_time_seconds` takes precedence over - * `eta_to_first_waypoint` in the same request. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_time_seconds = 25 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param int|null $var - * @return $this - */ - public function setRemainingTimeSecondsUnwrapped($var) - { - $this->writeWrapperValue("remaining_time_seconds", $var); - return $this;} - - /** - * The remaining waypoints assigned to this Vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint waypoints = 22; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getWaypoints() - { - return $this->waypoints; - } - - /** - * The remaining waypoints assigned to this Vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint waypoints = 22; - * @param array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setWaypoints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\TripWaypoint::class); - $this->waypoints = $arr; - - return $this; - } - - /** - * Output only. Last time the `waypoints` field was updated. Clients should - * cache this value and pass it in `GetVehicleRequest` to ensure the - * `waypoints` field is only returned if it is updated. - * - * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getWaypointsVersion() - { - return $this->waypoints_version; - } - - public function hasWaypointsVersion() - { - return isset($this->waypoints_version); - } - - public function clearWaypointsVersion() - { - unset($this->waypoints_version); - } - - /** - * Output only. Last time the `waypoints` field was updated. Clients should - * cache this value and pass it in `GetVehicleRequest` to ensure the - * `waypoints` field is only returned if it is updated. - * - * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setWaypointsVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->waypoints_version = $var; - - return $this; - } - - /** - * Indicates if the driver accepts back-to-back trips. If `true`, - * `SearchVehicles` may include the vehicle even if it is currently assigned - * to a trip. The default value is `false`. - * - * Generated from protobuf field bool back_to_back_enabled = 23; - * @return bool - */ - public function getBackToBackEnabled() - { - return $this->back_to_back_enabled; - } - - /** - * Indicates if the driver accepts back-to-back trips. If `true`, - * `SearchVehicles` may include the vehicle even if it is currently assigned - * to a trip. The default value is `false`. - * - * Generated from protobuf field bool back_to_back_enabled = 23; - * @param bool $var - * @return $this - */ - public function setBackToBackEnabled($var) - { - GPBUtil::checkBool($var); - $this->back_to_back_enabled = $var; - - return $this; - } - - /** - * The vehicle's navigation status. - * - * Generated from protobuf field .maps.fleetengine.v1.NavigationStatus navigation_status = 26; - * @return int - */ - public function getNavigationStatus() - { - return $this->navigation_status; - } - - /** - * The vehicle's navigation status. - * - * Generated from protobuf field .maps.fleetengine.v1.NavigationStatus navigation_status = 26; - * @param int $var - * @return $this - */ - public function setNavigationStatus($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\NavigationStatus::class); - $this->navigation_status = $var; - - return $this; - } - - /** - * Input only. Information about settings in the mobile device being used by - * the driver. - * - * Generated from protobuf field .maps.fleetengine.v1.DeviceSettings device_settings = 27 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Maps\FleetEngine\V1\DeviceSettings|null - */ - public function getDeviceSettings() - { - return $this->device_settings; - } - - public function hasDeviceSettings() - { - return isset($this->device_settings); - } - - public function clearDeviceSettings() - { - unset($this->device_settings); - } - - /** - * Input only. Information about settings in the mobile device being used by - * the driver. - * - * Generated from protobuf field .maps.fleetengine.v1.DeviceSettings device_settings = 27 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Maps\FleetEngine\V1\DeviceSettings $var - * @return $this - */ - public function setDeviceSettings($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\DeviceSettings::class); - $this->device_settings = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType.php deleted file mode 100644 index 2b1dfb175e0d..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType.php +++ /dev/null @@ -1,70 +0,0 @@ -maps.fleetengine.v1.Vehicle.VehicleType - */ -class VehicleType extends \Google\Protobuf\Internal\Message -{ - /** - * Vehicle type category - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType.Category category = 1; - */ - protected $category = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $category - * Vehicle type category - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); - parent::__construct($data); - } - - /** - * Vehicle type category - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType.Category category = 1; - * @return int - */ - public function getCategory() - { - return $this->category; - } - - /** - * Vehicle type category - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType.Category category = 1; - * @param int $var - * @return $this - */ - public function setCategory($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\Vehicle\VehicleType\Category::class); - $this->category = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(VehicleType::class, \Google\Maps\FleetEngine\V1\Vehicle_VehicleType::class); - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType/Category.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType/Category.php deleted file mode 100644 index 8133764e8bc8..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType/Category.php +++ /dev/null @@ -1,93 +0,0 @@ -maps.fleetengine.v1.Vehicle.VehicleType.Category - */ -class Category -{ - /** - * Default, used for unspecified or unrecognized vehicle categories. - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * An automobile. - * - * Generated from protobuf enum AUTO = 1; - */ - const AUTO = 1; - /** - * Any vehicle that acts as a taxi (typically licensed or regulated). - * - * Generated from protobuf enum TAXI = 2; - */ - const TAXI = 2; - /** - * Generally, a vehicle with a large storage capacity. - * - * Generated from protobuf enum TRUCK = 3; - */ - const TRUCK = 3; - /** - * A motorcycle, moped, or other two-wheeled vehicle - * - * Generated from protobuf enum TWO_WHEELER = 4; - */ - const TWO_WHEELER = 4; - /** - * Human-powered transport. - * - * Generated from protobuf enum BICYCLE = 5; - */ - const BICYCLE = 5; - /** - * A human transporter, typically walking or running, traveling along - * pedestrian pathways. - * - * Generated from protobuf enum PEDESTRIAN = 6; - */ - const PEDESTRIAN = 6; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::AUTO => 'AUTO', - self::TAXI => 'TAXI', - self::TRUCK => 'TRUCK', - self::TWO_WHEELER => 'TWO_WHEELER', - self::BICYCLE => 'BICYCLE', - self::PEDESTRIAN => 'PEDESTRIAN', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Category::class, \Google\Maps\FleetEngine\V1\Vehicle_VehicleType_Category::class); - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttribute.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttribute.php deleted file mode 100644 index 33dc410a64bc..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttribute.php +++ /dev/null @@ -1,225 +0,0 @@ -maps.fleetengine.v1.VehicleAttribute - */ -class VehicleAttribute extends \Google\Protobuf\Internal\Message -{ - /** - * The attribute's key. Keys may not contain the colon character (:). - * - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - /** - * The attribute's value. - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - protected $vehicle_attribute_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * The attribute's key. Keys may not contain the colon character (:). - * @type string $value - * The attribute's value. - * @type string $string_value - * String typed attribute value. - * Note: This is identical to the `value` field which will eventually be - * deprecated. For create or update methods, either field can be used, but - * it's strongly recommended to use `string_value`. If both `string_value` - * and `value` are set, they must be identical or an error will be thrown. - * Both fields are populated in responses. - * @type bool $bool_value - * Boolean typed attribute value. - * @type float $number_value - * Double typed attribute value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Fleetengine::initOnce(); - parent::__construct($data); - } - - /** - * The attribute's key. Keys may not contain the colon character (:). - * - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * The attribute's key. Keys may not contain the colon character (:). - * - * Generated from protobuf field string key = 1; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * The attribute's value. - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The attribute's value. - * - * Generated from protobuf field string value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * String typed attribute value. - * Note: This is identical to the `value` field which will eventually be - * deprecated. For create or update methods, either field can be used, but - * it's strongly recommended to use `string_value`. If both `string_value` - * and `value` are set, they must be identical or an error will be thrown. - * Both fields are populated in responses. - * - * Generated from protobuf field string string_value = 3; - * @return string - */ - public function getStringValue() - { - return $this->readOneof(3); - } - - public function hasStringValue() - { - return $this->hasOneof(3); - } - - /** - * String typed attribute value. - * Note: This is identical to the `value` field which will eventually be - * deprecated. For create or update methods, either field can be used, but - * it's strongly recommended to use `string_value`. If both `string_value` - * and `value` are set, they must be identical or an error will be thrown. - * Both fields are populated in responses. - * - * Generated from protobuf field string string_value = 3; - * @param string $var - * @return $this - */ - public function setStringValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Boolean typed attribute value. - * - * Generated from protobuf field bool bool_value = 4; - * @return bool - */ - public function getBoolValue() - { - return $this->readOneof(4); - } - - public function hasBoolValue() - { - return $this->hasOneof(4); - } - - /** - * Boolean typed attribute value. - * - * Generated from protobuf field bool bool_value = 4; - * @param bool $var - * @return $this - */ - public function setBoolValue($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Double typed attribute value. - * - * Generated from protobuf field double number_value = 5; - * @return float - */ - public function getNumberValue() - { - return $this->readOneof(5); - } - - public function hasNumberValue() - { - return $this->hasOneof(5); - } - - /** - * Double typed attribute value. - * - * Generated from protobuf field double number_value = 5; - * @param float $var - * @return $this - */ - public function setNumberValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getVehicleAttributeValue() - { - return $this->whichOneof("vehicle_attribute_value"); - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttributeList.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttributeList.php deleted file mode 100644 index 99d5f9de749e..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttributeList.php +++ /dev/null @@ -1,67 +0,0 @@ -maps.fleetengine.v1.VehicleAttributeList - */ -class VehicleAttributeList extends \Google\Protobuf\Internal\Message -{ - /** - * A list of attributes in this collection. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1; - */ - private $attributes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $attributes - * A list of attributes in this collection. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * A list of attributes in this collection. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * A list of attributes in this collection. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1; - * @param array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttribute::class); - $this->attributes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleLocation.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleLocation.php deleted file mode 100644 index a4efa0721e4a..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleLocation.php +++ /dev/null @@ -1,1789 +0,0 @@ -maps.fleetengine.v1.VehicleLocation - */ -class VehicleLocation extends \Google\Protobuf\Internal\Message -{ - /** - * The location of the vehicle. - * When it is sent to Fleet Engine, the vehicle's location is a GPS location. - * When you receive it in a response, the vehicle's location can be either a - * GPS location, a supplemental location, or some other estimated location. - * The source is specified in `location_sensor`. - * - * Generated from protobuf field .google.type.LatLng location = 1; - */ - protected $location = null; - /** - * Deprecated: Use `latlng_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; - * @deprecated - */ - protected $horizontal_accuracy = null; - /** - * Accuracy of `location` in meters as a radius. - * - * Generated from protobuf field .google.protobuf.DoubleValue latlng_accuracy = 22; - */ - protected $latlng_accuracy = null; - /** - * Direction the vehicle is moving in degrees. 0 represents North. - * The valid range is [0,360). - * - * Generated from protobuf field .google.protobuf.Int32Value heading = 2; - */ - protected $heading = null; - /** - * Deprecated: Use `heading_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; - * @deprecated - */ - protected $bearing_accuracy = null; - /** - * Accuracy of `heading` in degrees. - * - * Generated from protobuf field .google.protobuf.DoubleValue heading_accuracy = 23; - */ - protected $heading_accuracy = null; - /** - * Altitude in meters above WGS84. - * - * Generated from protobuf field .google.protobuf.DoubleValue altitude = 5; - */ - protected $altitude = null; - /** - * Deprecated: Use `altitude_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; - * @deprecated - */ - protected $vertical_accuracy = null; - /** - * Accuracy of `altitude` in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue altitude_accuracy = 24; - */ - protected $altitude_accuracy = null; - /** - * Speed of the vehicle in kilometers per hour. - * Deprecated: Use `speed` instead. - * - * Generated from protobuf field .google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; - * @deprecated - */ - protected $speed_kmph = null; - /** - * Speed of the vehicle in meters/second - * - * Generated from protobuf field .google.protobuf.DoubleValue speed = 6; - */ - protected $speed = null; - /** - * Accuracy of `speed` in meters/second. - * - * Generated from protobuf field .google.protobuf.DoubleValue speed_accuracy = 7; - */ - protected $speed_accuracy = null; - /** - * The time when `location` was reported by the sensor according to the - * sensor's clock. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; - */ - protected $update_time = null; - /** - * Output only. The time when the server received the location information. - * - * Generated from protobuf field .google.protobuf.Timestamp server_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $server_time = null; - /** - * Provider of location data (for example, `GPS`). - * - * Generated from protobuf field .maps.fleetengine.v1.LocationSensor location_sensor = 11; - */ - protected $location_sensor = 0; - /** - * Whether `location` is snapped to a road. - * - * Generated from protobuf field .google.protobuf.BoolValue is_road_snapped = 27; - */ - protected $is_road_snapped = null; - /** - * Input only. Indicates whether the GPS sensor is enabled on the mobile - * device. - * - * Generated from protobuf field .google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $is_gps_sensor_enabled = null; - /** - * Input only. Time (in seconds) since this location was first sent to the - * server. This will be zero for the first update. If the time is unknown (for - * example, when the app restarts), this value resets to zero. - * - * Generated from protobuf field .google.protobuf.Int32Value time_since_update = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $time_since_update = null; - /** - * Input only. Deprecated: Other signals are now used to determine if a - * location is stale. - * - * Generated from protobuf field .google.protobuf.Int32Value num_stale_updates = 15 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; - * @deprecated - */ - protected $num_stale_updates = null; - /** - * Raw vehicle location (unprocessed by road-snapper). - * - * Generated from protobuf field .google.type.LatLng raw_location = 16; - */ - protected $raw_location = null; - /** - * Timestamp associated with the raw location. - * - * Generated from protobuf field .google.protobuf.Timestamp raw_location_time = 17; - */ - protected $raw_location_time = null; - /** - * Source of the raw location. Defaults to `GPS`. - * - * Generated from protobuf field .maps.fleetengine.v1.LocationSensor raw_location_sensor = 28; - */ - protected $raw_location_sensor = 0; - /** - * Accuracy of `raw_location` as a radius, in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue raw_location_accuracy = 25; - */ - protected $raw_location_accuracy = null; - /** - * Supplemental location provided by the integrating app. - * - * Generated from protobuf field .google.type.LatLng supplemental_location = 18; - */ - protected $supplemental_location = null; - /** - * Timestamp associated with the supplemental location. - * - * Generated from protobuf field .google.protobuf.Timestamp supplemental_location_time = 19; - */ - protected $supplemental_location_time = null; - /** - * Source of the supplemental location. Defaults to - * `CUSTOMER_SUPPLIED_LOCATION`. - * - * Generated from protobuf field .maps.fleetengine.v1.LocationSensor supplemental_location_sensor = 20; - */ - protected $supplemental_location_sensor = 0; - /** - * Accuracy of `supplemental_location` as a radius, in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue supplemental_location_accuracy = 21; - */ - protected $supplemental_location_accuracy = null; - /** - * Deprecated: Use `is_road_snapped` instead. - * - * Generated from protobuf field bool road_snapped = 26 [deprecated = true]; - * @deprecated - */ - protected $road_snapped = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\LatLng $location - * The location of the vehicle. - * When it is sent to Fleet Engine, the vehicle's location is a GPS location. - * When you receive it in a response, the vehicle's location can be either a - * GPS location, a supplemental location, or some other estimated location. - * The source is specified in `location_sensor`. - * @type \Google\Protobuf\DoubleValue $horizontal_accuracy - * Deprecated: Use `latlng_accuracy` instead. - * @type \Google\Protobuf\DoubleValue $latlng_accuracy - * Accuracy of `location` in meters as a radius. - * @type \Google\Protobuf\Int32Value $heading - * Direction the vehicle is moving in degrees. 0 represents North. - * The valid range is [0,360). - * @type \Google\Protobuf\DoubleValue $bearing_accuracy - * Deprecated: Use `heading_accuracy` instead. - * @type \Google\Protobuf\DoubleValue $heading_accuracy - * Accuracy of `heading` in degrees. - * @type \Google\Protobuf\DoubleValue $altitude - * Altitude in meters above WGS84. - * @type \Google\Protobuf\DoubleValue $vertical_accuracy - * Deprecated: Use `altitude_accuracy` instead. - * @type \Google\Protobuf\DoubleValue $altitude_accuracy - * Accuracy of `altitude` in meters. - * @type \Google\Protobuf\Int32Value $speed_kmph - * Speed of the vehicle in kilometers per hour. - * Deprecated: Use `speed` instead. - * @type \Google\Protobuf\DoubleValue $speed - * Speed of the vehicle in meters/second - * @type \Google\Protobuf\DoubleValue $speed_accuracy - * Accuracy of `speed` in meters/second. - * @type \Google\Protobuf\Timestamp $update_time - * The time when `location` was reported by the sensor according to the - * sensor's clock. - * @type \Google\Protobuf\Timestamp $server_time - * Output only. The time when the server received the location information. - * @type int $location_sensor - * Provider of location data (for example, `GPS`). - * @type \Google\Protobuf\BoolValue $is_road_snapped - * Whether `location` is snapped to a road. - * @type \Google\Protobuf\BoolValue $is_gps_sensor_enabled - * Input only. Indicates whether the GPS sensor is enabled on the mobile - * device. - * @type \Google\Protobuf\Int32Value $time_since_update - * Input only. Time (in seconds) since this location was first sent to the - * server. This will be zero for the first update. If the time is unknown (for - * example, when the app restarts), this value resets to zero. - * @type \Google\Protobuf\Int32Value $num_stale_updates - * Input only. Deprecated: Other signals are now used to determine if a - * location is stale. - * @type \Google\Type\LatLng $raw_location - * Raw vehicle location (unprocessed by road-snapper). - * @type \Google\Protobuf\Timestamp $raw_location_time - * Timestamp associated with the raw location. - * @type int $raw_location_sensor - * Source of the raw location. Defaults to `GPS`. - * @type \Google\Protobuf\DoubleValue $raw_location_accuracy - * Accuracy of `raw_location` as a radius, in meters. - * @type \Google\Type\LatLng $supplemental_location - * Supplemental location provided by the integrating app. - * @type \Google\Protobuf\Timestamp $supplemental_location_time - * Timestamp associated with the supplemental location. - * @type int $supplemental_location_sensor - * Source of the supplemental location. Defaults to - * `CUSTOMER_SUPPLIED_LOCATION`. - * @type \Google\Protobuf\DoubleValue $supplemental_location_accuracy - * Accuracy of `supplemental_location` as a radius, in meters. - * @type bool $road_snapped - * Deprecated: Use `is_road_snapped` instead. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Fleetengine::initOnce(); - parent::__construct($data); - } - - /** - * The location of the vehicle. - * When it is sent to Fleet Engine, the vehicle's location is a GPS location. - * When you receive it in a response, the vehicle's location can be either a - * GPS location, a supplemental location, or some other estimated location. - * The source is specified in `location_sensor`. - * - * Generated from protobuf field .google.type.LatLng location = 1; - * @return \Google\Type\LatLng|null - */ - public function getLocation() - { - return $this->location; - } - - public function hasLocation() - { - return isset($this->location); - } - - public function clearLocation() - { - unset($this->location); - } - - /** - * The location of the vehicle. - * When it is sent to Fleet Engine, the vehicle's location is a GPS location. - * When you receive it in a response, the vehicle's location can be either a - * GPS location, a supplemental location, or some other estimated location. - * The source is specified in `location_sensor`. - * - * Generated from protobuf field .google.type.LatLng location = 1; - * @param \Google\Type\LatLng $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkMessage($var, \Google\Type\LatLng::class); - $this->location = $var; - - return $this; - } - - /** - * Deprecated: Use `latlng_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; - * @return \Google\Protobuf\DoubleValue|null - * @deprecated - */ - public function getHorizontalAccuracy() - { - @trigger_error('horizontal_accuracy is deprecated.', E_USER_DEPRECATED); - return $this->horizontal_accuracy; - } - - public function hasHorizontalAccuracy() - { - @trigger_error('horizontal_accuracy is deprecated.', E_USER_DEPRECATED); - return isset($this->horizontal_accuracy); - } - - public function clearHorizontalAccuracy() - { - @trigger_error('horizontal_accuracy is deprecated.', E_USER_DEPRECATED); - unset($this->horizontal_accuracy); - } - - /** - * Returns the unboxed value from getHorizontalAccuracy() - - * Deprecated: Use `latlng_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; - * @return float|null - */ - public function getHorizontalAccuracyUnwrapped() - { - @trigger_error('horizontal_accuracy is deprecated.', E_USER_DEPRECATED); - return $this->readWrapperValue("horizontal_accuracy"); - } - - /** - * Deprecated: Use `latlng_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - * @deprecated - */ - public function setHorizontalAccuracy($var) - { - @trigger_error('horizontal_accuracy is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->horizontal_accuracy = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Deprecated: Use `latlng_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; - * @param float|null $var - * @return $this - */ - public function setHorizontalAccuracyUnwrapped($var) - { - $this->writeWrapperValue("horizontal_accuracy", $var); - return $this;} - - /** - * Accuracy of `location` in meters as a radius. - * - * Generated from protobuf field .google.protobuf.DoubleValue latlng_accuracy = 22; - * @return \Google\Protobuf\DoubleValue|null - */ - public function getLatlngAccuracy() - { - return $this->latlng_accuracy; - } - - public function hasLatlngAccuracy() - { - return isset($this->latlng_accuracy); - } - - public function clearLatlngAccuracy() - { - unset($this->latlng_accuracy); - } - - /** - * Returns the unboxed value from getLatlngAccuracy() - - * Accuracy of `location` in meters as a radius. - * - * Generated from protobuf field .google.protobuf.DoubleValue latlng_accuracy = 22; - * @return float|null - */ - public function getLatlngAccuracyUnwrapped() - { - return $this->readWrapperValue("latlng_accuracy"); - } - - /** - * Accuracy of `location` in meters as a radius. - * - * Generated from protobuf field .google.protobuf.DoubleValue latlng_accuracy = 22; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - */ - public function setLatlngAccuracy($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->latlng_accuracy = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Accuracy of `location` in meters as a radius. - * - * Generated from protobuf field .google.protobuf.DoubleValue latlng_accuracy = 22; - * @param float|null $var - * @return $this - */ - public function setLatlngAccuracyUnwrapped($var) - { - $this->writeWrapperValue("latlng_accuracy", $var); - return $this;} - - /** - * Direction the vehicle is moving in degrees. 0 represents North. - * The valid range is [0,360). - * - * Generated from protobuf field .google.protobuf.Int32Value heading = 2; - * @return \Google\Protobuf\Int32Value|null - */ - public function getHeading() - { - return $this->heading; - } - - public function hasHeading() - { - return isset($this->heading); - } - - public function clearHeading() - { - unset($this->heading); - } - - /** - * Returns the unboxed value from getHeading() - - * Direction the vehicle is moving in degrees. 0 represents North. - * The valid range is [0,360). - * - * Generated from protobuf field .google.protobuf.Int32Value heading = 2; - * @return int|null - */ - public function getHeadingUnwrapped() - { - return $this->readWrapperValue("heading"); - } - - /** - * Direction the vehicle is moving in degrees. 0 represents North. - * The valid range is [0,360). - * - * Generated from protobuf field .google.protobuf.Int32Value heading = 2; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setHeading($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->heading = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * Direction the vehicle is moving in degrees. 0 represents North. - * The valid range is [0,360). - * - * Generated from protobuf field .google.protobuf.Int32Value heading = 2; - * @param int|null $var - * @return $this - */ - public function setHeadingUnwrapped($var) - { - $this->writeWrapperValue("heading", $var); - return $this;} - - /** - * Deprecated: Use `heading_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; - * @return \Google\Protobuf\DoubleValue|null - * @deprecated - */ - public function getBearingAccuracy() - { - @trigger_error('bearing_accuracy is deprecated.', E_USER_DEPRECATED); - return $this->bearing_accuracy; - } - - public function hasBearingAccuracy() - { - @trigger_error('bearing_accuracy is deprecated.', E_USER_DEPRECATED); - return isset($this->bearing_accuracy); - } - - public function clearBearingAccuracy() - { - @trigger_error('bearing_accuracy is deprecated.', E_USER_DEPRECATED); - unset($this->bearing_accuracy); - } - - /** - * Returns the unboxed value from getBearingAccuracy() - - * Deprecated: Use `heading_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; - * @return float|null - */ - public function getBearingAccuracyUnwrapped() - { - @trigger_error('bearing_accuracy is deprecated.', E_USER_DEPRECATED); - return $this->readWrapperValue("bearing_accuracy"); - } - - /** - * Deprecated: Use `heading_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - * @deprecated - */ - public function setBearingAccuracy($var) - { - @trigger_error('bearing_accuracy is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->bearing_accuracy = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Deprecated: Use `heading_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; - * @param float|null $var - * @return $this - */ - public function setBearingAccuracyUnwrapped($var) - { - $this->writeWrapperValue("bearing_accuracy", $var); - return $this;} - - /** - * Accuracy of `heading` in degrees. - * - * Generated from protobuf field .google.protobuf.DoubleValue heading_accuracy = 23; - * @return \Google\Protobuf\DoubleValue|null - */ - public function getHeadingAccuracy() - { - return $this->heading_accuracy; - } - - public function hasHeadingAccuracy() - { - return isset($this->heading_accuracy); - } - - public function clearHeadingAccuracy() - { - unset($this->heading_accuracy); - } - - /** - * Returns the unboxed value from getHeadingAccuracy() - - * Accuracy of `heading` in degrees. - * - * Generated from protobuf field .google.protobuf.DoubleValue heading_accuracy = 23; - * @return float|null - */ - public function getHeadingAccuracyUnwrapped() - { - return $this->readWrapperValue("heading_accuracy"); - } - - /** - * Accuracy of `heading` in degrees. - * - * Generated from protobuf field .google.protobuf.DoubleValue heading_accuracy = 23; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - */ - public function setHeadingAccuracy($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->heading_accuracy = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Accuracy of `heading` in degrees. - * - * Generated from protobuf field .google.protobuf.DoubleValue heading_accuracy = 23; - * @param float|null $var - * @return $this - */ - public function setHeadingAccuracyUnwrapped($var) - { - $this->writeWrapperValue("heading_accuracy", $var); - return $this;} - - /** - * Altitude in meters above WGS84. - * - * Generated from protobuf field .google.protobuf.DoubleValue altitude = 5; - * @return \Google\Protobuf\DoubleValue|null - */ - public function getAltitude() - { - return $this->altitude; - } - - public function hasAltitude() - { - return isset($this->altitude); - } - - public function clearAltitude() - { - unset($this->altitude); - } - - /** - * Returns the unboxed value from getAltitude() - - * Altitude in meters above WGS84. - * - * Generated from protobuf field .google.protobuf.DoubleValue altitude = 5; - * @return float|null - */ - public function getAltitudeUnwrapped() - { - return $this->readWrapperValue("altitude"); - } - - /** - * Altitude in meters above WGS84. - * - * Generated from protobuf field .google.protobuf.DoubleValue altitude = 5; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - */ - public function setAltitude($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->altitude = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Altitude in meters above WGS84. - * - * Generated from protobuf field .google.protobuf.DoubleValue altitude = 5; - * @param float|null $var - * @return $this - */ - public function setAltitudeUnwrapped($var) - { - $this->writeWrapperValue("altitude", $var); - return $this;} - - /** - * Deprecated: Use `altitude_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; - * @return \Google\Protobuf\DoubleValue|null - * @deprecated - */ - public function getVerticalAccuracy() - { - @trigger_error('vertical_accuracy is deprecated.', E_USER_DEPRECATED); - return $this->vertical_accuracy; - } - - public function hasVerticalAccuracy() - { - @trigger_error('vertical_accuracy is deprecated.', E_USER_DEPRECATED); - return isset($this->vertical_accuracy); - } - - public function clearVerticalAccuracy() - { - @trigger_error('vertical_accuracy is deprecated.', E_USER_DEPRECATED); - unset($this->vertical_accuracy); - } - - /** - * Returns the unboxed value from getVerticalAccuracy() - - * Deprecated: Use `altitude_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; - * @return float|null - */ - public function getVerticalAccuracyUnwrapped() - { - @trigger_error('vertical_accuracy is deprecated.', E_USER_DEPRECATED); - return $this->readWrapperValue("vertical_accuracy"); - } - - /** - * Deprecated: Use `altitude_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - * @deprecated - */ - public function setVerticalAccuracy($var) - { - @trigger_error('vertical_accuracy is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->vertical_accuracy = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Deprecated: Use `altitude_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; - * @param float|null $var - * @return $this - */ - public function setVerticalAccuracyUnwrapped($var) - { - $this->writeWrapperValue("vertical_accuracy", $var); - return $this;} - - /** - * Accuracy of `altitude` in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue altitude_accuracy = 24; - * @return \Google\Protobuf\DoubleValue|null - */ - public function getAltitudeAccuracy() - { - return $this->altitude_accuracy; - } - - public function hasAltitudeAccuracy() - { - return isset($this->altitude_accuracy); - } - - public function clearAltitudeAccuracy() - { - unset($this->altitude_accuracy); - } - - /** - * Returns the unboxed value from getAltitudeAccuracy() - - * Accuracy of `altitude` in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue altitude_accuracy = 24; - * @return float|null - */ - public function getAltitudeAccuracyUnwrapped() - { - return $this->readWrapperValue("altitude_accuracy"); - } - - /** - * Accuracy of `altitude` in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue altitude_accuracy = 24; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - */ - public function setAltitudeAccuracy($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->altitude_accuracy = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Accuracy of `altitude` in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue altitude_accuracy = 24; - * @param float|null $var - * @return $this - */ - public function setAltitudeAccuracyUnwrapped($var) - { - $this->writeWrapperValue("altitude_accuracy", $var); - return $this;} - - /** - * Speed of the vehicle in kilometers per hour. - * Deprecated: Use `speed` instead. - * - * Generated from protobuf field .google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; - * @return \Google\Protobuf\Int32Value|null - * @deprecated - */ - public function getSpeedKmph() - { - @trigger_error('speed_kmph is deprecated.', E_USER_DEPRECATED); - return $this->speed_kmph; - } - - public function hasSpeedKmph() - { - @trigger_error('speed_kmph is deprecated.', E_USER_DEPRECATED); - return isset($this->speed_kmph); - } - - public function clearSpeedKmph() - { - @trigger_error('speed_kmph is deprecated.', E_USER_DEPRECATED); - unset($this->speed_kmph); - } - - /** - * Returns the unboxed value from getSpeedKmph() - - * Speed of the vehicle in kilometers per hour. - * Deprecated: Use `speed` instead. - * - * Generated from protobuf field .google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; - * @return int|null - */ - public function getSpeedKmphUnwrapped() - { - @trigger_error('speed_kmph is deprecated.', E_USER_DEPRECATED); - return $this->readWrapperValue("speed_kmph"); - } - - /** - * Speed of the vehicle in kilometers per hour. - * Deprecated: Use `speed` instead. - * - * Generated from protobuf field .google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; - * @param \Google\Protobuf\Int32Value $var - * @return $this - * @deprecated - */ - public function setSpeedKmph($var) - { - @trigger_error('speed_kmph is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->speed_kmph = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * Speed of the vehicle in kilometers per hour. - * Deprecated: Use `speed` instead. - * - * Generated from protobuf field .google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; - * @param int|null $var - * @return $this - */ - public function setSpeedKmphUnwrapped($var) - { - $this->writeWrapperValue("speed_kmph", $var); - return $this;} - - /** - * Speed of the vehicle in meters/second - * - * Generated from protobuf field .google.protobuf.DoubleValue speed = 6; - * @return \Google\Protobuf\DoubleValue|null - */ - public function getSpeed() - { - return $this->speed; - } - - public function hasSpeed() - { - return isset($this->speed); - } - - public function clearSpeed() - { - unset($this->speed); - } - - /** - * Returns the unboxed value from getSpeed() - - * Speed of the vehicle in meters/second - * - * Generated from protobuf field .google.protobuf.DoubleValue speed = 6; - * @return float|null - */ - public function getSpeedUnwrapped() - { - return $this->readWrapperValue("speed"); - } - - /** - * Speed of the vehicle in meters/second - * - * Generated from protobuf field .google.protobuf.DoubleValue speed = 6; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - */ - public function setSpeed($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->speed = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Speed of the vehicle in meters/second - * - * Generated from protobuf field .google.protobuf.DoubleValue speed = 6; - * @param float|null $var - * @return $this - */ - public function setSpeedUnwrapped($var) - { - $this->writeWrapperValue("speed", $var); - return $this;} - - /** - * Accuracy of `speed` in meters/second. - * - * Generated from protobuf field .google.protobuf.DoubleValue speed_accuracy = 7; - * @return \Google\Protobuf\DoubleValue|null - */ - public function getSpeedAccuracy() - { - return $this->speed_accuracy; - } - - public function hasSpeedAccuracy() - { - return isset($this->speed_accuracy); - } - - public function clearSpeedAccuracy() - { - unset($this->speed_accuracy); - } - - /** - * Returns the unboxed value from getSpeedAccuracy() - - * Accuracy of `speed` in meters/second. - * - * Generated from protobuf field .google.protobuf.DoubleValue speed_accuracy = 7; - * @return float|null - */ - public function getSpeedAccuracyUnwrapped() - { - return $this->readWrapperValue("speed_accuracy"); - } - - /** - * Accuracy of `speed` in meters/second. - * - * Generated from protobuf field .google.protobuf.DoubleValue speed_accuracy = 7; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - */ - public function setSpeedAccuracy($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->speed_accuracy = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Accuracy of `speed` in meters/second. - * - * Generated from protobuf field .google.protobuf.DoubleValue speed_accuracy = 7; - * @param float|null $var - * @return $this - */ - public function setSpeedAccuracyUnwrapped($var) - { - $this->writeWrapperValue("speed_accuracy", $var); - return $this;} - - /** - * The time when `location` was reported by the sensor according to the - * sensor's clock. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * The time when `location` was reported by the sensor according to the - * sensor's clock. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. The time when the server received the location information. - * - * Generated from protobuf field .google.protobuf.Timestamp server_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getServerTime() - { - return $this->server_time; - } - - public function hasServerTime() - { - return isset($this->server_time); - } - - public function clearServerTime() - { - unset($this->server_time); - } - - /** - * Output only. The time when the server received the location information. - * - * Generated from protobuf field .google.protobuf.Timestamp server_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setServerTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->server_time = $var; - - return $this; - } - - /** - * Provider of location data (for example, `GPS`). - * - * Generated from protobuf field .maps.fleetengine.v1.LocationSensor location_sensor = 11; - * @return int - */ - public function getLocationSensor() - { - return $this->location_sensor; - } - - /** - * Provider of location data (for example, `GPS`). - * - * Generated from protobuf field .maps.fleetengine.v1.LocationSensor location_sensor = 11; - * @param int $var - * @return $this - */ - public function setLocationSensor($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\LocationSensor::class); - $this->location_sensor = $var; - - return $this; - } - - /** - * Whether `location` is snapped to a road. - * - * Generated from protobuf field .google.protobuf.BoolValue is_road_snapped = 27; - * @return \Google\Protobuf\BoolValue|null - */ - public function getIsRoadSnapped() - { - return $this->is_road_snapped; - } - - public function hasIsRoadSnapped() - { - return isset($this->is_road_snapped); - } - - public function clearIsRoadSnapped() - { - unset($this->is_road_snapped); - } - - /** - * Returns the unboxed value from getIsRoadSnapped() - - * Whether `location` is snapped to a road. - * - * Generated from protobuf field .google.protobuf.BoolValue is_road_snapped = 27; - * @return bool|null - */ - public function getIsRoadSnappedUnwrapped() - { - return $this->readWrapperValue("is_road_snapped"); - } - - /** - * Whether `location` is snapped to a road. - * - * Generated from protobuf field .google.protobuf.BoolValue is_road_snapped = 27; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setIsRoadSnapped($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->is_road_snapped = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Whether `location` is snapped to a road. - * - * Generated from protobuf field .google.protobuf.BoolValue is_road_snapped = 27; - * @param bool|null $var - * @return $this - */ - public function setIsRoadSnappedUnwrapped($var) - { - $this->writeWrapperValue("is_road_snapped", $var); - return $this;} - - /** - * Input only. Indicates whether the GPS sensor is enabled on the mobile - * device. - * - * Generated from protobuf field .google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Protobuf\BoolValue|null - */ - public function getIsGpsSensorEnabled() - { - return $this->is_gps_sensor_enabled; - } - - public function hasIsGpsSensorEnabled() - { - return isset($this->is_gps_sensor_enabled); - } - - public function clearIsGpsSensorEnabled() - { - unset($this->is_gps_sensor_enabled); - } - - /** - * Returns the unboxed value from getIsGpsSensorEnabled() - - * Input only. Indicates whether the GPS sensor is enabled on the mobile - * device. - * - * Generated from protobuf field .google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return bool|null - */ - public function getIsGpsSensorEnabledUnwrapped() - { - return $this->readWrapperValue("is_gps_sensor_enabled"); - } - - /** - * Input only. Indicates whether the GPS sensor is enabled on the mobile - * device. - * - * Generated from protobuf field .google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setIsGpsSensorEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->is_gps_sensor_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Input only. Indicates whether the GPS sensor is enabled on the mobile - * device. - * - * Generated from protobuf field .google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param bool|null $var - * @return $this - */ - public function setIsGpsSensorEnabledUnwrapped($var) - { - $this->writeWrapperValue("is_gps_sensor_enabled", $var); - return $this;} - - /** - * Input only. Time (in seconds) since this location was first sent to the - * server. This will be zero for the first update. If the time is unknown (for - * example, when the app restarts), this value resets to zero. - * - * Generated from protobuf field .google.protobuf.Int32Value time_since_update = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Protobuf\Int32Value|null - */ - public function getTimeSinceUpdate() - { - return $this->time_since_update; - } - - public function hasTimeSinceUpdate() - { - return isset($this->time_since_update); - } - - public function clearTimeSinceUpdate() - { - unset($this->time_since_update); - } - - /** - * Returns the unboxed value from getTimeSinceUpdate() - - * Input only. Time (in seconds) since this location was first sent to the - * server. This will be zero for the first update. If the time is unknown (for - * example, when the app restarts), this value resets to zero. - * - * Generated from protobuf field .google.protobuf.Int32Value time_since_update = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return int|null - */ - public function getTimeSinceUpdateUnwrapped() - { - return $this->readWrapperValue("time_since_update"); - } - - /** - * Input only. Time (in seconds) since this location was first sent to the - * server. This will be zero for the first update. If the time is unknown (for - * example, when the app restarts), this value resets to zero. - * - * Generated from protobuf field .google.protobuf.Int32Value time_since_update = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setTimeSinceUpdate($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->time_since_update = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * Input only. Time (in seconds) since this location was first sent to the - * server. This will be zero for the first update. If the time is unknown (for - * example, when the app restarts), this value resets to zero. - * - * Generated from protobuf field .google.protobuf.Int32Value time_since_update = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param int|null $var - * @return $this - */ - public function setTimeSinceUpdateUnwrapped($var) - { - $this->writeWrapperValue("time_since_update", $var); - return $this;} - - /** - * Input only. Deprecated: Other signals are now used to determine if a - * location is stale. - * - * Generated from protobuf field .google.protobuf.Int32Value num_stale_updates = 15 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Protobuf\Int32Value|null - * @deprecated - */ - public function getNumStaleUpdates() - { - @trigger_error('num_stale_updates is deprecated.', E_USER_DEPRECATED); - return $this->num_stale_updates; - } - - public function hasNumStaleUpdates() - { - @trigger_error('num_stale_updates is deprecated.', E_USER_DEPRECATED); - return isset($this->num_stale_updates); - } - - public function clearNumStaleUpdates() - { - @trigger_error('num_stale_updates is deprecated.', E_USER_DEPRECATED); - unset($this->num_stale_updates); - } - - /** - * Returns the unboxed value from getNumStaleUpdates() - - * Input only. Deprecated: Other signals are now used to determine if a - * location is stale. - * - * Generated from protobuf field .google.protobuf.Int32Value num_stale_updates = 15 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; - * @return int|null - */ - public function getNumStaleUpdatesUnwrapped() - { - @trigger_error('num_stale_updates is deprecated.', E_USER_DEPRECATED); - return $this->readWrapperValue("num_stale_updates"); - } - - /** - * Input only. Deprecated: Other signals are now used to determine if a - * location is stale. - * - * Generated from protobuf field .google.protobuf.Int32Value num_stale_updates = 15 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Protobuf\Int32Value $var - * @return $this - * @deprecated - */ - public function setNumStaleUpdates($var) - { - @trigger_error('num_stale_updates is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->num_stale_updates = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * Input only. Deprecated: Other signals are now used to determine if a - * location is stale. - * - * Generated from protobuf field .google.protobuf.Int32Value num_stale_updates = 15 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; - * @param int|null $var - * @return $this - */ - public function setNumStaleUpdatesUnwrapped($var) - { - $this->writeWrapperValue("num_stale_updates", $var); - return $this;} - - /** - * Raw vehicle location (unprocessed by road-snapper). - * - * Generated from protobuf field .google.type.LatLng raw_location = 16; - * @return \Google\Type\LatLng|null - */ - public function getRawLocation() - { - return $this->raw_location; - } - - public function hasRawLocation() - { - return isset($this->raw_location); - } - - public function clearRawLocation() - { - unset($this->raw_location); - } - - /** - * Raw vehicle location (unprocessed by road-snapper). - * - * Generated from protobuf field .google.type.LatLng raw_location = 16; - * @param \Google\Type\LatLng $var - * @return $this - */ - public function setRawLocation($var) - { - GPBUtil::checkMessage($var, \Google\Type\LatLng::class); - $this->raw_location = $var; - - return $this; - } - - /** - * Timestamp associated with the raw location. - * - * Generated from protobuf field .google.protobuf.Timestamp raw_location_time = 17; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRawLocationTime() - { - return $this->raw_location_time; - } - - public function hasRawLocationTime() - { - return isset($this->raw_location_time); - } - - public function clearRawLocationTime() - { - unset($this->raw_location_time); - } - - /** - * Timestamp associated with the raw location. - * - * Generated from protobuf field .google.protobuf.Timestamp raw_location_time = 17; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRawLocationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->raw_location_time = $var; - - return $this; - } - - /** - * Source of the raw location. Defaults to `GPS`. - * - * Generated from protobuf field .maps.fleetengine.v1.LocationSensor raw_location_sensor = 28; - * @return int - */ - public function getRawLocationSensor() - { - return $this->raw_location_sensor; - } - - /** - * Source of the raw location. Defaults to `GPS`. - * - * Generated from protobuf field .maps.fleetengine.v1.LocationSensor raw_location_sensor = 28; - * @param int $var - * @return $this - */ - public function setRawLocationSensor($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\LocationSensor::class); - $this->raw_location_sensor = $var; - - return $this; - } - - /** - * Accuracy of `raw_location` as a radius, in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue raw_location_accuracy = 25; - * @return \Google\Protobuf\DoubleValue|null - */ - public function getRawLocationAccuracy() - { - return $this->raw_location_accuracy; - } - - public function hasRawLocationAccuracy() - { - return isset($this->raw_location_accuracy); - } - - public function clearRawLocationAccuracy() - { - unset($this->raw_location_accuracy); - } - - /** - * Returns the unboxed value from getRawLocationAccuracy() - - * Accuracy of `raw_location` as a radius, in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue raw_location_accuracy = 25; - * @return float|null - */ - public function getRawLocationAccuracyUnwrapped() - { - return $this->readWrapperValue("raw_location_accuracy"); - } - - /** - * Accuracy of `raw_location` as a radius, in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue raw_location_accuracy = 25; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - */ - public function setRawLocationAccuracy($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->raw_location_accuracy = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Accuracy of `raw_location` as a radius, in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue raw_location_accuracy = 25; - * @param float|null $var - * @return $this - */ - public function setRawLocationAccuracyUnwrapped($var) - { - $this->writeWrapperValue("raw_location_accuracy", $var); - return $this;} - - /** - * Supplemental location provided by the integrating app. - * - * Generated from protobuf field .google.type.LatLng supplemental_location = 18; - * @return \Google\Type\LatLng|null - */ - public function getSupplementalLocation() - { - return $this->supplemental_location; - } - - public function hasSupplementalLocation() - { - return isset($this->supplemental_location); - } - - public function clearSupplementalLocation() - { - unset($this->supplemental_location); - } - - /** - * Supplemental location provided by the integrating app. - * - * Generated from protobuf field .google.type.LatLng supplemental_location = 18; - * @param \Google\Type\LatLng $var - * @return $this - */ - public function setSupplementalLocation($var) - { - GPBUtil::checkMessage($var, \Google\Type\LatLng::class); - $this->supplemental_location = $var; - - return $this; - } - - /** - * Timestamp associated with the supplemental location. - * - * Generated from protobuf field .google.protobuf.Timestamp supplemental_location_time = 19; - * @return \Google\Protobuf\Timestamp|null - */ - public function getSupplementalLocationTime() - { - return $this->supplemental_location_time; - } - - public function hasSupplementalLocationTime() - { - return isset($this->supplemental_location_time); - } - - public function clearSupplementalLocationTime() - { - unset($this->supplemental_location_time); - } - - /** - * Timestamp associated with the supplemental location. - * - * Generated from protobuf field .google.protobuf.Timestamp supplemental_location_time = 19; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setSupplementalLocationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->supplemental_location_time = $var; - - return $this; - } - - /** - * Source of the supplemental location. Defaults to - * `CUSTOMER_SUPPLIED_LOCATION`. - * - * Generated from protobuf field .maps.fleetengine.v1.LocationSensor supplemental_location_sensor = 20; - * @return int - */ - public function getSupplementalLocationSensor() - { - return $this->supplemental_location_sensor; - } - - /** - * Source of the supplemental location. Defaults to - * `CUSTOMER_SUPPLIED_LOCATION`. - * - * Generated from protobuf field .maps.fleetengine.v1.LocationSensor supplemental_location_sensor = 20; - * @param int $var - * @return $this - */ - public function setSupplementalLocationSensor($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\LocationSensor::class); - $this->supplemental_location_sensor = $var; - - return $this; - } - - /** - * Accuracy of `supplemental_location` as a radius, in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue supplemental_location_accuracy = 21; - * @return \Google\Protobuf\DoubleValue|null - */ - public function getSupplementalLocationAccuracy() - { - return $this->supplemental_location_accuracy; - } - - public function hasSupplementalLocationAccuracy() - { - return isset($this->supplemental_location_accuracy); - } - - public function clearSupplementalLocationAccuracy() - { - unset($this->supplemental_location_accuracy); - } - - /** - * Returns the unboxed value from getSupplementalLocationAccuracy() - - * Accuracy of `supplemental_location` as a radius, in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue supplemental_location_accuracy = 21; - * @return float|null - */ - public function getSupplementalLocationAccuracyUnwrapped() - { - return $this->readWrapperValue("supplemental_location_accuracy"); - } - - /** - * Accuracy of `supplemental_location` as a radius, in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue supplemental_location_accuracy = 21; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - */ - public function setSupplementalLocationAccuracy($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->supplemental_location_accuracy = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Accuracy of `supplemental_location` as a radius, in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue supplemental_location_accuracy = 21; - * @param float|null $var - * @return $this - */ - public function setSupplementalLocationAccuracyUnwrapped($var) - { - $this->writeWrapperValue("supplemental_location_accuracy", $var); - return $this;} - - /** - * Deprecated: Use `is_road_snapped` instead. - * - * Generated from protobuf field bool road_snapped = 26 [deprecated = true]; - * @return bool - * @deprecated - */ - public function getRoadSnapped() - { - @trigger_error('road_snapped is deprecated.', E_USER_DEPRECATED); - return $this->road_snapped; - } - - /** - * Deprecated: Use `is_road_snapped` instead. - * - * Generated from protobuf field bool road_snapped = 26 [deprecated = true]; - * @param bool $var - * @return $this - * @deprecated - */ - public function setRoadSnapped($var) - { - @trigger_error('road_snapped is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkBool($var); - $this->road_snapped = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch.php deleted file mode 100644 index 70cfc1b7f9f8..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch.php +++ /dev/null @@ -1,693 +0,0 @@ -maps.fleetengine.v1.VehicleMatch - */ -class VehicleMatch extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A vehicle that matches the request. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $vehicle = null; - /** - * The vehicle's driving ETA to the pickup point specified in the - * request. An empty value indicates a failure in calculating ETA for the - * vehicle. If `SearchVehiclesRequest.include_back_to_back` was `true` and - * this vehicle has an active trip, `vehicle_pickup_eta` includes the time - * required to complete the current active trip. - * - * Generated from protobuf field .google.protobuf.Timestamp vehicle_pickup_eta = 2; - */ - protected $vehicle_pickup_eta = null; - /** - * The distance from the Vehicle's current location to the pickup point - * specified in the request, including any intermediate pickup or dropoff - * points for existing trips. This distance comprises the calculated driving - * (route) distance, plus the straight line distance between the navigation - * end point and the requested pickup point. (The distance between the - * navigation end point and the requested pickup point is typically small.) An - * empty value indicates an error in calculating the distance. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_distance_meters = 3; - */ - protected $vehicle_pickup_distance_meters = null; - /** - * Required. The straight-line distance between the vehicle and the pickup - * point specified in the request. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_straight_line_distance_meters = 11 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $vehicle_pickup_straight_line_distance_meters = null; - /** - * The complete vehicle's driving ETA to the drop off point specified in the - * request. The ETA includes stopping at any waypoints before the - * `dropoff_point` specified in the request. The value will only be populated - * when a drop off point is specified in the request. An empty value indicates - * an error calculating the ETA. - * - * Generated from protobuf field .google.protobuf.Timestamp vehicle_dropoff_eta = 4; - */ - protected $vehicle_dropoff_eta = null; - /** - * The vehicle's driving distance (in meters) from the pickup point - * to the drop off point specified in the request. The distance is only - * between the two points and does not include the vehicle location or any - * other points that must be visited before the vehicle visits either the - * pickup point or dropoff point. The value will only be populated when a - * `dropoff_point` is specified in the request. An empty value indicates - * a failure in calculating the distance from the pickup to - * drop off point specified in the request. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_to_dropoff_distance_meters = 5; - */ - protected $vehicle_pickup_to_dropoff_distance_meters = null; - /** - * Required. The trip type of the request that was used to calculate the ETA - * to the pickup point. - * - * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $trip_type = 0; - /** - * The ordered list of waypoints used to calculate the ETA. The list - * includes vehicle location, the pickup points of active - * trips for the vehicle, and the pickup points provided in the - * request. An empty list indicates a failure in calculating ETA for the - * vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Waypoint vehicle_trips_waypoints = 7; - */ - private $vehicle_trips_waypoints; - /** - * Type of the vehicle match. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleMatch.VehicleMatchType vehicle_match_type = 8; - */ - protected $vehicle_match_type = 0; - /** - * The order requested for sorting vehicle matches. Equivalent to - * `ordered_by`. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; - */ - protected $requested_ordered_by = 0; - /** - * The order requested for sorting vehicle matches. Equivalent to - * `requested_ordered_by`. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; - */ - protected $ordered_by = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\Vehicle $vehicle - * Required. A vehicle that matches the request. - * @type \Google\Protobuf\Timestamp $vehicle_pickup_eta - * The vehicle's driving ETA to the pickup point specified in the - * request. An empty value indicates a failure in calculating ETA for the - * vehicle. If `SearchVehiclesRequest.include_back_to_back` was `true` and - * this vehicle has an active trip, `vehicle_pickup_eta` includes the time - * required to complete the current active trip. - * @type \Google\Protobuf\Int32Value $vehicle_pickup_distance_meters - * The distance from the Vehicle's current location to the pickup point - * specified in the request, including any intermediate pickup or dropoff - * points for existing trips. This distance comprises the calculated driving - * (route) distance, plus the straight line distance between the navigation - * end point and the requested pickup point. (The distance between the - * navigation end point and the requested pickup point is typically small.) An - * empty value indicates an error in calculating the distance. - * @type \Google\Protobuf\Int32Value $vehicle_pickup_straight_line_distance_meters - * Required. The straight-line distance between the vehicle and the pickup - * point specified in the request. - * @type \Google\Protobuf\Timestamp $vehicle_dropoff_eta - * The complete vehicle's driving ETA to the drop off point specified in the - * request. The ETA includes stopping at any waypoints before the - * `dropoff_point` specified in the request. The value will only be populated - * when a drop off point is specified in the request. An empty value indicates - * an error calculating the ETA. - * @type \Google\Protobuf\Int32Value $vehicle_pickup_to_dropoff_distance_meters - * The vehicle's driving distance (in meters) from the pickup point - * to the drop off point specified in the request. The distance is only - * between the two points and does not include the vehicle location or any - * other points that must be visited before the vehicle visits either the - * pickup point or dropoff point. The value will only be populated when a - * `dropoff_point` is specified in the request. An empty value indicates - * a failure in calculating the distance from the pickup to - * drop off point specified in the request. - * @type int $trip_type - * Required. The trip type of the request that was used to calculate the ETA - * to the pickup point. - * @type array<\Google\Maps\FleetEngine\V1\Waypoint>|\Google\Protobuf\Internal\RepeatedField $vehicle_trips_waypoints - * The ordered list of waypoints used to calculate the ETA. The list - * includes vehicle location, the pickup points of active - * trips for the vehicle, and the pickup points provided in the - * request. An empty list indicates a failure in calculating ETA for the - * vehicle. - * @type int $vehicle_match_type - * Type of the vehicle match. - * @type int $requested_ordered_by - * The order requested for sorting vehicle matches. Equivalent to - * `ordered_by`. - * @type int $ordered_by - * The order requested for sorting vehicle matches. Equivalent to - * `requested_ordered_by`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. A vehicle that matches the request. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Maps\FleetEngine\V1\Vehicle|null - */ - public function getVehicle() - { - return $this->vehicle; - } - - public function hasVehicle() - { - return isset($this->vehicle); - } - - public function clearVehicle() - { - unset($this->vehicle); - } - - /** - * Required. A vehicle that matches the request. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Maps\FleetEngine\V1\Vehicle $var - * @return $this - */ - public function setVehicle($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Vehicle::class); - $this->vehicle = $var; - - return $this; - } - - /** - * The vehicle's driving ETA to the pickup point specified in the - * request. An empty value indicates a failure in calculating ETA for the - * vehicle. If `SearchVehiclesRequest.include_back_to_back` was `true` and - * this vehicle has an active trip, `vehicle_pickup_eta` includes the time - * required to complete the current active trip. - * - * Generated from protobuf field .google.protobuf.Timestamp vehicle_pickup_eta = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getVehiclePickupEta() - { - return $this->vehicle_pickup_eta; - } - - public function hasVehiclePickupEta() - { - return isset($this->vehicle_pickup_eta); - } - - public function clearVehiclePickupEta() - { - unset($this->vehicle_pickup_eta); - } - - /** - * The vehicle's driving ETA to the pickup point specified in the - * request. An empty value indicates a failure in calculating ETA for the - * vehicle. If `SearchVehiclesRequest.include_back_to_back` was `true` and - * this vehicle has an active trip, `vehicle_pickup_eta` includes the time - * required to complete the current active trip. - * - * Generated from protobuf field .google.protobuf.Timestamp vehicle_pickup_eta = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setVehiclePickupEta($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->vehicle_pickup_eta = $var; - - return $this; - } - - /** - * The distance from the Vehicle's current location to the pickup point - * specified in the request, including any intermediate pickup or dropoff - * points for existing trips. This distance comprises the calculated driving - * (route) distance, plus the straight line distance between the navigation - * end point and the requested pickup point. (The distance between the - * navigation end point and the requested pickup point is typically small.) An - * empty value indicates an error in calculating the distance. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_distance_meters = 3; - * @return \Google\Protobuf\Int32Value|null - */ - public function getVehiclePickupDistanceMeters() - { - return $this->vehicle_pickup_distance_meters; - } - - public function hasVehiclePickupDistanceMeters() - { - return isset($this->vehicle_pickup_distance_meters); - } - - public function clearVehiclePickupDistanceMeters() - { - unset($this->vehicle_pickup_distance_meters); - } - - /** - * Returns the unboxed value from getVehiclePickupDistanceMeters() - - * The distance from the Vehicle's current location to the pickup point - * specified in the request, including any intermediate pickup or dropoff - * points for existing trips. This distance comprises the calculated driving - * (route) distance, plus the straight line distance between the navigation - * end point and the requested pickup point. (The distance between the - * navigation end point and the requested pickup point is typically small.) An - * empty value indicates an error in calculating the distance. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_distance_meters = 3; - * @return int|null - */ - public function getVehiclePickupDistanceMetersUnwrapped() - { - return $this->readWrapperValue("vehicle_pickup_distance_meters"); - } - - /** - * The distance from the Vehicle's current location to the pickup point - * specified in the request, including any intermediate pickup or dropoff - * points for existing trips. This distance comprises the calculated driving - * (route) distance, plus the straight line distance between the navigation - * end point and the requested pickup point. (The distance between the - * navigation end point and the requested pickup point is typically small.) An - * empty value indicates an error in calculating the distance. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_distance_meters = 3; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setVehiclePickupDistanceMeters($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->vehicle_pickup_distance_meters = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * The distance from the Vehicle's current location to the pickup point - * specified in the request, including any intermediate pickup or dropoff - * points for existing trips. This distance comprises the calculated driving - * (route) distance, plus the straight line distance between the navigation - * end point and the requested pickup point. (The distance between the - * navigation end point and the requested pickup point is typically small.) An - * empty value indicates an error in calculating the distance. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_distance_meters = 3; - * @param int|null $var - * @return $this - */ - public function setVehiclePickupDistanceMetersUnwrapped($var) - { - $this->writeWrapperValue("vehicle_pickup_distance_meters", $var); - return $this;} - - /** - * Required. The straight-line distance between the vehicle and the pickup - * point specified in the request. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_straight_line_distance_meters = 11 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Int32Value|null - */ - public function getVehiclePickupStraightLineDistanceMeters() - { - return $this->vehicle_pickup_straight_line_distance_meters; - } - - public function hasVehiclePickupStraightLineDistanceMeters() - { - return isset($this->vehicle_pickup_straight_line_distance_meters); - } - - public function clearVehiclePickupStraightLineDistanceMeters() - { - unset($this->vehicle_pickup_straight_line_distance_meters); - } - - /** - * Returns the unboxed value from getVehiclePickupStraightLineDistanceMeters() - - * Required. The straight-line distance between the vehicle and the pickup - * point specified in the request. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_straight_line_distance_meters = 11 [(.google.api.field_behavior) = REQUIRED]; - * @return int|null - */ - public function getVehiclePickupStraightLineDistanceMetersUnwrapped() - { - return $this->readWrapperValue("vehicle_pickup_straight_line_distance_meters"); - } - - /** - * Required. The straight-line distance between the vehicle and the pickup - * point specified in the request. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_straight_line_distance_meters = 11 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setVehiclePickupStraightLineDistanceMeters($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->vehicle_pickup_straight_line_distance_meters = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * Required. The straight-line distance between the vehicle and the pickup - * point specified in the request. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_straight_line_distance_meters = 11 [(.google.api.field_behavior) = REQUIRED]; - * @param int|null $var - * @return $this - */ - public function setVehiclePickupStraightLineDistanceMetersUnwrapped($var) - { - $this->writeWrapperValue("vehicle_pickup_straight_line_distance_meters", $var); - return $this;} - - /** - * The complete vehicle's driving ETA to the drop off point specified in the - * request. The ETA includes stopping at any waypoints before the - * `dropoff_point` specified in the request. The value will only be populated - * when a drop off point is specified in the request. An empty value indicates - * an error calculating the ETA. - * - * Generated from protobuf field .google.protobuf.Timestamp vehicle_dropoff_eta = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getVehicleDropoffEta() - { - return $this->vehicle_dropoff_eta; - } - - public function hasVehicleDropoffEta() - { - return isset($this->vehicle_dropoff_eta); - } - - public function clearVehicleDropoffEta() - { - unset($this->vehicle_dropoff_eta); - } - - /** - * The complete vehicle's driving ETA to the drop off point specified in the - * request. The ETA includes stopping at any waypoints before the - * `dropoff_point` specified in the request. The value will only be populated - * when a drop off point is specified in the request. An empty value indicates - * an error calculating the ETA. - * - * Generated from protobuf field .google.protobuf.Timestamp vehicle_dropoff_eta = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setVehicleDropoffEta($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->vehicle_dropoff_eta = $var; - - return $this; - } - - /** - * The vehicle's driving distance (in meters) from the pickup point - * to the drop off point specified in the request. The distance is only - * between the two points and does not include the vehicle location or any - * other points that must be visited before the vehicle visits either the - * pickup point or dropoff point. The value will only be populated when a - * `dropoff_point` is specified in the request. An empty value indicates - * a failure in calculating the distance from the pickup to - * drop off point specified in the request. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_to_dropoff_distance_meters = 5; - * @return \Google\Protobuf\Int32Value|null - */ - public function getVehiclePickupToDropoffDistanceMeters() - { - return $this->vehicle_pickup_to_dropoff_distance_meters; - } - - public function hasVehiclePickupToDropoffDistanceMeters() - { - return isset($this->vehicle_pickup_to_dropoff_distance_meters); - } - - public function clearVehiclePickupToDropoffDistanceMeters() - { - unset($this->vehicle_pickup_to_dropoff_distance_meters); - } - - /** - * Returns the unboxed value from getVehiclePickupToDropoffDistanceMeters() - - * The vehicle's driving distance (in meters) from the pickup point - * to the drop off point specified in the request. The distance is only - * between the two points and does not include the vehicle location or any - * other points that must be visited before the vehicle visits either the - * pickup point or dropoff point. The value will only be populated when a - * `dropoff_point` is specified in the request. An empty value indicates - * a failure in calculating the distance from the pickup to - * drop off point specified in the request. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_to_dropoff_distance_meters = 5; - * @return int|null - */ - public function getVehiclePickupToDropoffDistanceMetersUnwrapped() - { - return $this->readWrapperValue("vehicle_pickup_to_dropoff_distance_meters"); - } - - /** - * The vehicle's driving distance (in meters) from the pickup point - * to the drop off point specified in the request. The distance is only - * between the two points and does not include the vehicle location or any - * other points that must be visited before the vehicle visits either the - * pickup point or dropoff point. The value will only be populated when a - * `dropoff_point` is specified in the request. An empty value indicates - * a failure in calculating the distance from the pickup to - * drop off point specified in the request. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_to_dropoff_distance_meters = 5; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setVehiclePickupToDropoffDistanceMeters($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->vehicle_pickup_to_dropoff_distance_meters = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * The vehicle's driving distance (in meters) from the pickup point - * to the drop off point specified in the request. The distance is only - * between the two points and does not include the vehicle location or any - * other points that must be visited before the vehicle visits either the - * pickup point or dropoff point. The value will only be populated when a - * `dropoff_point` is specified in the request. An empty value indicates - * a failure in calculating the distance from the pickup to - * drop off point specified in the request. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_to_dropoff_distance_meters = 5; - * @param int|null $var - * @return $this - */ - public function setVehiclePickupToDropoffDistanceMetersUnwrapped($var) - { - $this->writeWrapperValue("vehicle_pickup_to_dropoff_distance_meters", $var); - return $this;} - - /** - * Required. The trip type of the request that was used to calculate the ETA - * to the pickup point. - * - * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getTripType() - { - return $this->trip_type; - } - - /** - * Required. The trip type of the request that was used to calculate the ETA - * to the pickup point. - * - * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setTripType($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\TripType::class); - $this->trip_type = $var; - - return $this; - } - - /** - * The ordered list of waypoints used to calculate the ETA. The list - * includes vehicle location, the pickup points of active - * trips for the vehicle, and the pickup points provided in the - * request. An empty list indicates a failure in calculating ETA for the - * vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Waypoint vehicle_trips_waypoints = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVehicleTripsWaypoints() - { - return $this->vehicle_trips_waypoints; - } - - /** - * The ordered list of waypoints used to calculate the ETA. The list - * includes vehicle location, the pickup points of active - * trips for the vehicle, and the pickup points provided in the - * request. An empty list indicates a failure in calculating ETA for the - * vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Waypoint vehicle_trips_waypoints = 7; - * @param array<\Google\Maps\FleetEngine\V1\Waypoint>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVehicleTripsWaypoints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\Waypoint::class); - $this->vehicle_trips_waypoints = $arr; - - return $this; - } - - /** - * Type of the vehicle match. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleMatch.VehicleMatchType vehicle_match_type = 8; - * @return int - */ - public function getVehicleMatchType() - { - return $this->vehicle_match_type; - } - - /** - * Type of the vehicle match. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleMatch.VehicleMatchType vehicle_match_type = 8; - * @param int $var - * @return $this - */ - public function setVehicleMatchType($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\VehicleMatch\VehicleMatchType::class); - $this->vehicle_match_type = $var; - - return $this; - } - - /** - * The order requested for sorting vehicle matches. Equivalent to - * `ordered_by`. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; - * @return int - */ - public function getRequestedOrderedBy() - { - return $this->requested_ordered_by; - } - - /** - * The order requested for sorting vehicle matches. Equivalent to - * `ordered_by`. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; - * @param int $var - * @return $this - */ - public function setRequestedOrderedBy($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest\VehicleMatchOrder::class); - $this->requested_ordered_by = $var; - - return $this; - } - - /** - * The order requested for sorting vehicle matches. Equivalent to - * `requested_ordered_by`. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; - * @return int - */ - public function getOrderedBy() - { - return $this->ordered_by; - } - - /** - * The order requested for sorting vehicle matches. Equivalent to - * `requested_ordered_by`. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; - * @param int $var - * @return $this - */ - public function setOrderedBy($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest\VehicleMatchOrder::class); - $this->ordered_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch/VehicleMatchType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch/VehicleMatchType.php deleted file mode 100644 index e578da5397d6..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch/VehicleMatchType.php +++ /dev/null @@ -1,83 +0,0 @@ -maps.fleetengine.v1.VehicleMatch.VehicleMatchType - */ -class VehicleMatchType -{ - /** - * Unknown vehicle match type - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * The vehicle currently has no trip assigned to it and can proceed to the - * pickup point. - * - * Generated from protobuf enum EXCLUSIVE = 1; - */ - const EXCLUSIVE = 1; - /** - * The vehicle is currently assigned to a trip, but can proceed to the - * pickup point after completing the in-progress trip. ETA and distance - * calculations take the existing trip into account. - * - * Generated from protobuf enum BACK_TO_BACK = 2; - */ - const BACK_TO_BACK = 2; - /** - * The vehicle has sufficient capacity for a shared ride. - * - * Generated from protobuf enum CARPOOL = 3; - */ - const CARPOOL = 3; - /** - * The vehicle will finish its current, active trip before proceeding to the - * pickup point. ETA and distance calculations take the existing trip into - * account. - * - * Generated from protobuf enum CARPOOL_BACK_TO_BACK = 4; - */ - const CARPOOL_BACK_TO_BACK = 4; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::EXCLUSIVE => 'EXCLUSIVE', - self::BACK_TO_BACK => 'BACK_TO_BACK', - self::CARPOOL => 'CARPOOL', - self::CARPOOL_BACK_TO_BACK => 'CARPOOL_BACK_TO_BACK', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(VehicleMatchType::class, \Google\Maps\FleetEngine\V1\VehicleMatch_VehicleMatchType::class); - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleState.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleState.php deleted file mode 100644 index b2964c65ab9f..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleState.php +++ /dev/null @@ -1,62 +0,0 @@ -maps.fleetengine.v1.VehicleState - */ -class VehicleState -{ - /** - * Default, used for unspecified or unrecognized vehicle states. - * - * Generated from protobuf enum UNKNOWN_VEHICLE_STATE = 0; - */ - const UNKNOWN_VEHICLE_STATE = 0; - /** - * The vehicle is not accepting new trips. Note: the vehicle may continue to - * operate in this state while completing a trip assigned to it. - * - * Generated from protobuf enum OFFLINE = 1; - */ - const OFFLINE = 1; - /** - * The vehicle is accepting new trips. - * - * Generated from protobuf enum ONLINE = 2; - */ - const ONLINE = 2; - - private static $valueToName = [ - self::UNKNOWN_VEHICLE_STATE => 'UNKNOWN_VEHICLE_STATE', - self::OFFLINE => 'OFFLINE', - self::ONLINE => 'ONLINE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering.php deleted file mode 100644 index ccaba2879f9f..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering.php +++ /dev/null @@ -1,84 +0,0 @@ -maps.fleetengine.v1.VisualTrafficReportPolylineRendering - */ -class VisualTrafficReportPolylineRendering extends \Google\Protobuf\Internal\Message -{ - /** - * 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. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch road_stretch = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $road_stretch; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering\RoadStretch>|\Google\Protobuf\Internal\RepeatedField $road_stretch - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); - parent::__construct($data); - } - - /** - * 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. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch road_stretch = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRoadStretch() - { - return $this->road_stretch; - } - - /** - * 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. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch road_stretch = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering\RoadStretch>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRoadStretch($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering\RoadStretch::class); - $this->road_stretch = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch.php deleted file mode 100644 index c0504a6c4426..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch.php +++ /dev/null @@ -1,142 +0,0 @@ -maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch - */ -class RoadStretch extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The style to apply. - * - * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch.Style style = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $style = 0; - /** - * Required. The style should be applied between `[offset_meters, - * offset_meters + length_meters)`. - * - * Generated from protobuf field int32 offset_meters = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $offset_meters = 0; - /** - * Required. The length of the path where to apply the style. - * - * Generated from protobuf field int32 length_meters = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $length_meters = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $style - * Required. The style to apply. - * @type int $offset_meters - * Required. The style should be applied between `[offset_meters, - * offset_meters + length_meters)`. - * @type int $length_meters - * Required. The length of the path where to apply the style. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); - parent::__construct($data); - } - - /** - * Required. The style to apply. - * - * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch.Style style = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getStyle() - { - return $this->style; - } - - /** - * Required. The style to apply. - * - * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch.Style style = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setStyle($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering\RoadStretch\Style::class); - $this->style = $var; - - return $this; - } - - /** - * Required. The style should be applied between `[offset_meters, - * offset_meters + length_meters)`. - * - * Generated from protobuf field int32 offset_meters = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getOffsetMeters() - { - return $this->offset_meters; - } - - /** - * Required. The style should be applied between `[offset_meters, - * offset_meters + length_meters)`. - * - * Generated from protobuf field int32 offset_meters = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setOffsetMeters($var) - { - GPBUtil::checkInt32($var); - $this->offset_meters = $var; - - return $this; - } - - /** - * Required. The length of the path where to apply the style. - * - * Generated from protobuf field int32 length_meters = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getLengthMeters() - { - return $this->length_meters; - } - - /** - * Required. The length of the path where to apply the style. - * - * Generated from protobuf field int32 length_meters = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setLengthMeters($var) - { - GPBUtil::checkInt32($var); - $this->length_meters = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RoadStretch::class, \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering_RoadStretch::class); - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch/Style.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch/Style.php deleted file mode 100644 index a712c06ecdce..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch/Style.php +++ /dev/null @@ -1,64 +0,0 @@ -maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch.Style - */ -class Style -{ - /** - * No style selected. - * - * Generated from protobuf enum STYLE_UNSPECIFIED = 0; - */ - const STYLE_UNSPECIFIED = 0; - /** - * Traffic is slowing down. - * - * Generated from protobuf enum SLOWER_TRAFFIC = 1; - */ - const SLOWER_TRAFFIC = 1; - /** - * There is a traffic jam. - * - * Generated from protobuf enum TRAFFIC_JAM = 2; - */ - const TRAFFIC_JAM = 2; - - private static $valueToName = [ - self::STYLE_UNSPECIFIED => 'STYLE_UNSPECIFIED', - self::SLOWER_TRAFFIC => 'SLOWER_TRAFFIC', - self::TRAFFIC_JAM => 'TRAFFIC_JAM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Style::class, \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering_RoadStretch_Style::class); - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Waypoint.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Waypoint.php deleted file mode 100644 index 06827e4e93bc..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Waypoint.php +++ /dev/null @@ -1,123 +0,0 @@ -maps.fleetengine.v1.Waypoint - */ -class Waypoint extends \Google\Protobuf\Internal\Message -{ - /** - * The location of this waypoint. - * - * Generated from protobuf field .google.type.LatLng lat_lng = 1; - */ - protected $lat_lng = null; - /** - * The estimated time that the vehicle will arrive at this waypoint. - * - * Generated from protobuf field .google.protobuf.Timestamp eta = 2; - */ - protected $eta = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\LatLng $lat_lng - * The location of this waypoint. - * @type \Google\Protobuf\Timestamp $eta - * The estimated time that the vehicle will arrive at this waypoint. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * The location of this waypoint. - * - * Generated from protobuf field .google.type.LatLng lat_lng = 1; - * @return \Google\Type\LatLng|null - */ - public function getLatLng() - { - return $this->lat_lng; - } - - public function hasLatLng() - { - return isset($this->lat_lng); - } - - public function clearLatLng() - { - unset($this->lat_lng); - } - - /** - * The location of this waypoint. - * - * Generated from protobuf field .google.type.LatLng lat_lng = 1; - * @param \Google\Type\LatLng $var - * @return $this - */ - public function setLatLng($var) - { - GPBUtil::checkMessage($var, \Google\Type\LatLng::class); - $this->lat_lng = $var; - - return $this; - } - - /** - * The estimated time that the vehicle will arrive at this waypoint. - * - * Generated from protobuf field .google.protobuf.Timestamp eta = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEta() - { - return $this->eta; - } - - public function hasEta() - { - return isset($this->eta); - } - - public function clearEta() - { - unset($this->eta); - } - - /** - * The estimated time that the vehicle will arrive at this waypoint. - * - * Generated from protobuf field .google.protobuf.Timestamp eta = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEta($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->eta = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/WaypointType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/WaypointType.php deleted file mode 100644 index 7e3a3120d30b..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/WaypointType.php +++ /dev/null @@ -1,68 +0,0 @@ -maps.fleetengine.v1.WaypointType - */ -class WaypointType -{ - /** - * Unknown or unspecified waypoint type. - * - * Generated from protobuf enum UNKNOWN_WAYPOINT_TYPE = 0; - */ - const UNKNOWN_WAYPOINT_TYPE = 0; - /** - * Waypoints for picking up riders or items. - * - * Generated from protobuf enum PICKUP_WAYPOINT_TYPE = 1; - */ - const PICKUP_WAYPOINT_TYPE = 1; - /** - * Waypoints for dropping off riders or items. - * - * Generated from protobuf enum DROP_OFF_WAYPOINT_TYPE = 2; - */ - const DROP_OFF_WAYPOINT_TYPE = 2; - /** - * Waypoints for intermediate destinations in a multi-destination trip. - * - * Generated from protobuf enum INTERMEDIATE_DESTINATION_WAYPOINT_TYPE = 3; - */ - const INTERMEDIATE_DESTINATION_WAYPOINT_TYPE = 3; - - private static $valueToName = [ - self::UNKNOWN_WAYPOINT_TYPE => 'UNKNOWN_WAYPOINT_TYPE', - self::PICKUP_WAYPOINT_TYPE => 'PICKUP_WAYPOINT_TYPE', - self::DROP_OFF_WAYPOINT_TYPE => 'DROP_OFF_WAYPOINT_TYPE', - self::INTERMEDIATE_DESTINATION_WAYPOINT_TYPE => 'INTERMEDIATE_DESTINATION_WAYPOINT_TYPE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/create_trip.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/create_trip.php deleted file mode 100644 index f5eeb732199a..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/create_trip.php +++ /dev/null @@ -1,87 +0,0 @@ -setParent($formattedParent) - ->setTripId($tripId) - ->setTrip($trip); - - // Call the API and handle any network failures. - try { - /** @var Trip $response */ - $response = $tripServiceClient->createTrip($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = TripServiceClient::tripName('[PROVIDER]', '[TRIP]'); - $tripId = '[TRIP_ID]'; - - create_trip_sample($formattedParent, $tripId); -} -// [END fleetengine_v1_generated_TripService_CreateTrip_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/get_trip.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/get_trip.php deleted file mode 100644 index 8a9dc4e2c9ff..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/get_trip.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Trip $response */ - $response = $tripServiceClient->getTrip($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = TripServiceClient::tripName('[PROVIDER]', '[TRIP]'); - - get_trip_sample($formattedName); -} -// [END fleetengine_v1_generated_TripService_GetTrip_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/report_billable_trip.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/report_billable_trip.php deleted file mode 100644 index 1a87dbda4869..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/report_billable_trip.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($name) - ->setCountryCode($countryCode); - - // Call the API and handle any network failures. - try { - $tripServiceClient->reportBillableTrip($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $name = '[NAME]'; - $countryCode = '[COUNTRY_CODE]'; - - report_billable_trip_sample($name, $countryCode); -} -// [END fleetengine_v1_generated_TripService_ReportBillableTrip_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/search_trips.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/search_trips.php deleted file mode 100644 index 726d56e085b1..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/search_trips.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($parent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $tripServiceClient->searchTrips($request); - - /** @var Trip $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $parent = '[PARENT]'; - - search_trips_sample($parent); -} -// [END fleetengine_v1_generated_TripService_SearchTrips_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/update_trip.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/update_trip.php deleted file mode 100644 index 82e653ec835f..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/update_trip.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($name) - ->setTrip($trip) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Trip $response */ - $response = $tripServiceClient->updateTrip($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $name = '[NAME]'; - - update_trip_sample($name); -} -// [END fleetengine_v1_generated_TripService_UpdateTrip_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/create_vehicle.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/create_vehicle.php deleted file mode 100644 index ef62555f9cc2..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/create_vehicle.php +++ /dev/null @@ -1,116 +0,0 @@ -setVehicleType($vehicleVehicleType); - $request = (new CreateVehicleRequest()) - ->setParent($parent) - ->setVehicleId($vehicleId) - ->setVehicle($vehicle); - - // Call the API and handle any network failures. - try { - /** @var Vehicle $response */ - $response = $vehicleServiceClient->createVehicle($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $parent = '[PARENT]'; - $vehicleId = '[VEHICLE_ID]'; - - create_vehicle_sample($parent, $vehicleId); -} -// [END fleetengine_v1_generated_VehicleService_CreateVehicle_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/get_vehicle.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/get_vehicle.php deleted file mode 100644 index 7e0840142f46..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/get_vehicle.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Vehicle $response */ - $response = $vehicleServiceClient->getVehicle($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = VehicleServiceClient::vehicleName('[PROVIDER]', '[VEHICLE]'); - - get_vehicle_sample($formattedName); -} -// [END fleetengine_v1_generated_VehicleService_GetVehicle_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/list_vehicles.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/list_vehicles.php deleted file mode 100644 index 0d0629cd08e6..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/list_vehicles.php +++ /dev/null @@ -1,85 +0,0 @@ -setParent($parent) - ->setVehicleTypeCategories($vehicleTypeCategories); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $vehicleServiceClient->listVehicles($request); - - /** @var Vehicle $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $parent = '[PARENT]'; - $vehicleTypeCategoriesElement = Category::UNKNOWN; - - list_vehicles_sample($parent, $vehicleTypeCategoriesElement); -} -// [END fleetengine_v1_generated_VehicleService_ListVehicles_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/search_vehicles.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/search_vehicles.php deleted file mode 100644 index 0671afa2ba59..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/search_vehicles.php +++ /dev/null @@ -1,120 +0,0 @@ -setPoint($pickupPointPoint); - $tripTypes = [$tripTypesElement,]; - $vehicleTypes = [new VehicleType()]; - $request = (new SearchVehiclesRequest()) - ->setParent($parent) - ->setPickupPoint($pickupPoint) - ->setPickupRadiusMeters($pickupRadiusMeters) - ->setCount($count) - ->setMinimumCapacity($minimumCapacity) - ->setTripTypes($tripTypes) - ->setVehicleTypes($vehicleTypes) - ->setOrderBy($orderBy); - - // Call the API and handle any network failures. - try { - /** @var SearchVehiclesResponse $response */ - $response = $vehicleServiceClient->searchVehicles($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $parent = '[PARENT]'; - $pickupRadiusMeters = 0; - $count = 0; - $minimumCapacity = 0; - $tripTypesElement = TripType::UNKNOWN_TRIP_TYPE; - $orderBy = VehicleMatchOrder::UNKNOWN_VEHICLE_MATCH_ORDER; - - search_vehicles_sample( - $parent, - $pickupRadiusMeters, - $count, - $minimumCapacity, - $tripTypesElement, - $orderBy - ); -} -// [END fleetengine_v1_generated_VehicleService_SearchVehicles_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle.php deleted file mode 100644 index 740fb26c6caa..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle.php +++ /dev/null @@ -1,98 +0,0 @@ -setVehicleType($vehicleVehicleType); - $updateMask = new FieldMask(); - $request = (new UpdateVehicleRequest()) - ->setName($name) - ->setVehicle($vehicle) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Vehicle $response */ - $response = $vehicleServiceClient->updateVehicle($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $name = '[NAME]'; - - update_vehicle_sample($name); -} -// [END fleetengine_v1_generated_VehicleService_UpdateVehicle_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle_attributes.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle_attributes.php deleted file mode 100644 index 9c8ed7a0c76a..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle_attributes.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($name) - ->setAttributes($attributes); - - // Call the API and handle any network failures. - try { - /** @var UpdateVehicleAttributesResponse $response */ - $response = $vehicleServiceClient->updateVehicleAttributes($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $name = '[NAME]'; - - update_vehicle_attributes_sample($name); -} -// [END fleetengine_v1_generated_VehicleService_UpdateVehicleAttributes_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/TripServiceClient.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/TripServiceClient.php deleted file mode 100644 index 3dc8954fe608..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/TripServiceClient.php +++ /dev/null @@ -1,348 +0,0 @@ - createTripAsync(CreateTripRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTripAsync(GetTripRequest $request, array $optionalArgs = []) - * @method PromiseInterface reportBillableTripAsync(ReportBillableTripRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchTripsAsync(SearchTripsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateTripAsync(UpdateTripRequest $request, array $optionalArgs = []) - */ -final class TripServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'maps.fleetengine.v1.TripService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'fleetengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'fleetengine.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/trip_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/trip_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/trip_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/trip_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a trip - * resource. - * - * @param string $provider - * @param string $trip - * - * @return string The formatted trip resource. - */ - public static function tripName(string $provider, string $trip): string - { - return self::getPathTemplate('trip')->render([ - 'provider' => $provider, - 'trip' => $trip, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - trip: providers/{provider}/trips/{trip} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'fleetengine.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates a trip in the Fleet Engine and returns the new trip. - * - * The async variant is {@see TripServiceClient::createTripAsync()} . - * - * @example samples/V1/TripServiceClient/create_trip.php - * - * @param CreateTripRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Trip - * - * @throws ApiException Thrown if the API call fails. - */ - public function createTrip(CreateTripRequest $request, array $callOptions = []): Trip - { - return $this->startApiCall('CreateTrip', $request, $callOptions)->wait(); - } - - /** - * Get information about a single trip. - * - * The async variant is {@see TripServiceClient::getTripAsync()} . - * - * @example samples/V1/TripServiceClient/get_trip.php - * - * @param GetTripRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Trip - * - * @throws ApiException Thrown if the API call fails. - */ - public function getTrip(GetTripRequest $request, array $callOptions = []): Trip - { - return $this->startApiCall('GetTrip', $request, $callOptions)->wait(); - } - - /** - * Report billable trip usage. - * - * The async variant is {@see TripServiceClient::reportBillableTripAsync()} . - * - * @example samples/V1/TripServiceClient/report_billable_trip.php - * - * @param ReportBillableTripRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function reportBillableTrip(ReportBillableTripRequest $request, array $callOptions = []): void - { - $this->startApiCall('ReportBillableTrip', $request, $callOptions)->wait(); - } - - /** - * Get all the trips for a specific vehicle. - * - * The async variant is {@see TripServiceClient::searchTripsAsync()} . - * - * @example samples/V1/TripServiceClient/search_trips.php - * - * @param SearchTripsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function searchTrips(SearchTripsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('SearchTrips', $request, $callOptions); - } - - /** - * Updates trip data. - * - * The async variant is {@see TripServiceClient::updateTripAsync()} . - * - * @example samples/V1/TripServiceClient/update_trip.php - * - * @param UpdateTripRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Trip - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateTrip(UpdateTripRequest $request, array $callOptions = []): Trip - { - return $this->startApiCall('UpdateTrip', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/VehicleServiceClient.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/VehicleServiceClient.php deleted file mode 100644 index c341e83579a1..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/VehicleServiceClient.php +++ /dev/null @@ -1,430 +0,0 @@ - createVehicleAsync(CreateVehicleRequest $request, array $optionalArgs = []) - * @method PromiseInterface getVehicleAsync(GetVehicleRequest $request, array $optionalArgs = []) - * @method PromiseInterface listVehiclesAsync(ListVehiclesRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchVehiclesAsync(SearchVehiclesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateVehicleAsync(UpdateVehicleRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateVehicleAttributesAsync(UpdateVehicleAttributesRequest $request, array $optionalArgs = []) - */ -final class VehicleServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'maps.fleetengine.v1.VehicleService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'fleetengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'fleetengine.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/vehicle_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/vehicle_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/vehicle_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/vehicle_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a vehicle - * resource. - * - * @param string $provider - * @param string $vehicle - * - * @return string The formatted vehicle resource. - */ - public static function vehicleName(string $provider, string $vehicle): string - { - return self::getPathTemplate('vehicle')->render([ - 'provider' => $provider, - 'vehicle' => $vehicle, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - vehicle: providers/{provider}/vehicles/{vehicle} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'fleetengine.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Instantiates a new vehicle associated with an on-demand rideshare or - * deliveries provider. Each `Vehicle` must have a unique vehicle ID. - * - * The following `Vehicle` fields are required when creating a `Vehicle`: - * - * * `vehicleState` - * * `supportedTripTypes` - * * `maximumCapacity` - * * `vehicleType` - * - * The following `Vehicle` fields are ignored when creating a `Vehicle`: - * - * * `name` - * * `currentTrips` - * * `availableCapacity` - * * `current_route_segment` - * * `current_route_segment_end_point` - * * `current_route_segment_version` - * * `current_route_segment_traffic` - * * `route` - * * `waypoints` - * * `waypoints_version` - * * `remaining_distance_meters` - * * `remaining_time_seconds` - * * `eta_to_next_waypoint` - * * `navigation_status` - * - * All other fields are optional and used if provided. - * - * The async variant is {@see VehicleServiceClient::createVehicleAsync()} . - * - * @example samples/V1/VehicleServiceClient/create_vehicle.php - * - * @param CreateVehicleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Vehicle - * - * @throws ApiException Thrown if the API call fails. - */ - public function createVehicle(CreateVehicleRequest $request, array $callOptions = []): Vehicle - { - return $this->startApiCall('CreateVehicle', $request, $callOptions)->wait(); - } - - /** - * Returns a vehicle from the Fleet Engine. - * - * The async variant is {@see VehicleServiceClient::getVehicleAsync()} . - * - * @example samples/V1/VehicleServiceClient/get_vehicle.php - * - * @param GetVehicleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Vehicle - * - * @throws ApiException Thrown if the API call fails. - */ - public function getVehicle(GetVehicleRequest $request, array $callOptions = []): Vehicle - { - return $this->startApiCall('GetVehicle', $request, $callOptions)->wait(); - } - - /** - * Returns a paginated list of vehicles associated with - * a provider that match the request options. - * - * The async variant is {@see VehicleServiceClient::listVehiclesAsync()} . - * - * @example samples/V1/VehicleServiceClient/list_vehicles.php - * - * @param ListVehiclesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listVehicles(ListVehiclesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListVehicles', $request, $callOptions); - } - - /** - * Returns a list of vehicles that match the request options. - * - * The async variant is {@see VehicleServiceClient::searchVehiclesAsync()} . - * - * @example samples/V1/VehicleServiceClient/search_vehicles.php - * - * @param SearchVehiclesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SearchVehiclesResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function searchVehicles(SearchVehiclesRequest $request, array $callOptions = []): SearchVehiclesResponse - { - return $this->startApiCall('SearchVehicles', $request, $callOptions)->wait(); - } - - /** - * Writes updated vehicle data to the Fleet Engine. - * - * When updating a `Vehicle`, the following fields cannot be updated since - * they are managed by the server: - * - * * `currentTrips` - * * `availableCapacity` - * * `current_route_segment_version` - * * `waypoints_version` - * - * The vehicle `name` also cannot be updated. - * - * If the `attributes` field is updated, **all** the vehicle's attributes are - * replaced with the attributes provided in the request. If you want to update - * only some attributes, see the `UpdateVehicleAttributes` method. Likewise, - * the `waypoints` field can be updated, but must contain all the waypoints - * currently on the vehicle, and no other waypoints. - * - * The async variant is {@see VehicleServiceClient::updateVehicleAsync()} . - * - * @example samples/V1/VehicleServiceClient/update_vehicle.php - * - * @param UpdateVehicleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Vehicle - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateVehicle(UpdateVehicleRequest $request, array $callOptions = []): Vehicle - { - return $this->startApiCall('UpdateVehicle', $request, $callOptions)->wait(); - } - - /** - * Partially updates a vehicle's attributes. - * Only the attributes mentioned in the request will be updated, other - * attributes will NOT be altered. Note: this is different in `UpdateVehicle`, - * where the whole `attributes` field will be replaced by the one in - * `UpdateVehicleRequest`, attributes not in the request would be removed. - * - * The async variant is {@see VehicleServiceClient::updateVehicleAttributesAsync()} - * . - * - * @example samples/V1/VehicleServiceClient/update_vehicle_attributes.php - * - * @param UpdateVehicleAttributesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return UpdateVehicleAttributesResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateVehicleAttributes(UpdateVehicleAttributesRequest $request, array $callOptions = []): UpdateVehicleAttributesResponse - { - return $this->startApiCall('UpdateVehicleAttributes', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/gapic_metadata.json b/owl-bot-staging/MapsFleetEngine/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 280373142e1a..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "maps.fleetengine.v1", - "libraryPackage": "Google\\Maps\\FleetEngine\\V1", - "services": { - "TripService": { - "clients": { - "grpc": { - "libraryClient": "TripServiceGapicClient", - "rpcs": { - "CreateTrip": { - "methods": [ - "createTrip" - ] - }, - "GetTrip": { - "methods": [ - "getTrip" - ] - }, - "ReportBillableTrip": { - "methods": [ - "reportBillableTrip" - ] - }, - "SearchTrips": { - "methods": [ - "searchTrips" - ] - }, - "UpdateTrip": { - "methods": [ - "updateTrip" - ] - } - } - } - } - }, - "VehicleService": { - "clients": { - "grpc": { - "libraryClient": "VehicleServiceGapicClient", - "rpcs": { - "CreateVehicle": { - "methods": [ - "createVehicle" - ] - }, - "GetVehicle": { - "methods": [ - "getVehicle" - ] - }, - "ListVehicles": { - "methods": [ - "listVehicles" - ] - }, - "SearchVehicles": { - "methods": [ - "searchVehicles" - ] - }, - "UpdateVehicle": { - "methods": [ - "updateVehicle" - ] - }, - "UpdateVehicleAttributes": { - "methods": [ - "updateVehicleAttributes" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_client_config.json b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_client_config.json deleted file mode 100644 index baf7c028dc49..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_client_config.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "interfaces": { - "maps.fleetengine.v1.TripService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 15000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 15000, - "total_timeout_millis": 15000 - } - }, - "methods": { - "CreateTrip": { - "timeout_millis": 15000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetTrip": { - "timeout_millis": 15000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ReportBillableTrip": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SearchTrips": { - "timeout_millis": 15000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateTrip": { - "timeout_millis": 15000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_descriptor_config.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_descriptor_config.php deleted file mode 100644 index 1e3977139b4b..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_descriptor_config.php +++ /dev/null @@ -1,114 +0,0 @@ - [ - 'maps.fleetengine.v1.TripService' => [ - 'CreateTrip' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Maps\FleetEngine\V1\Trip', - 'headerParams' => [ - [ - 'keyName' => 'provider_id', - 'fieldAccessors' => [ - 'getParent', - ], - 'matchers' => [ - '/^(?providers\/[^\/]+)$/', - ], - ], - ], - ], - 'GetTrip' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Maps\FleetEngine\V1\Trip', - 'headerParams' => [ - [ - 'keyName' => 'provider_id', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?providers\/[^\/]+)$/', - ], - ], - ], - ], - 'ReportBillableTrip' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'provider_id', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?providers\/[^\/]+)$/', - ], - ], - ], - ], - 'SearchTrips' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getTrips', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Maps\FleetEngine\V1\SearchTripsResponse', - 'headerParams' => [ - [ - 'keyName' => 'provider_id', - 'fieldAccessors' => [ - 'getParent', - ], - 'matchers' => [ - '/^(?providers\/[^\/]+)$/', - ], - ], - ], - ], - 'UpdateTrip' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Maps\FleetEngine\V1\Trip', - 'headerParams' => [ - [ - 'keyName' => 'provider_id', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?providers\/[^\/]+)$/', - ], - ], - ], - ], - 'templateMap' => [ - 'trip' => 'providers/{provider}/trips/{trip}', - ], - ], - ], -]; diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_rest_client_config.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_rest_client_config.php deleted file mode 100644 index 961afdee4c09..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_rest_client_config.php +++ /dev/null @@ -1,94 +0,0 @@ - [ - 'maps.fleetengine.v1.TripService' => [ - 'CreateTrip' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=providers/*}/trips', - 'body' => 'trip', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'trip_id', - ], - ], - 'GetTrip' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=providers/*/trips/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ReportBillableTrip' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=providers/*/billableTrips/*}:report', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'SearchTrips' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=providers/*}/trips:search', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateTrip' => [ - 'method' => 'put', - 'uriTemplate' => '/v1/{name=providers/*/trips/*}', - 'body' => 'trip', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_client_config.json b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_client_config.json deleted file mode 100644 index 8d97cde39440..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_client_config.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "interfaces": { - "maps.fleetengine.v1.VehicleService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 15000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 15000, - "total_timeout_millis": 15000 - } - }, - "methods": { - "CreateVehicle": { - "timeout_millis": 15000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetVehicle": { - "timeout_millis": 15000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListVehicles": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SearchVehicles": { - "timeout_millis": 15000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateVehicle": { - "timeout_millis": 15000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateVehicleAttributes": { - "timeout_millis": 15000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_descriptor_config.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_descriptor_config.php deleted file mode 100644 index ec49a409478c..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_descriptor_config.php +++ /dev/null @@ -1,129 +0,0 @@ - [ - 'maps.fleetengine.v1.VehicleService' => [ - 'CreateVehicle' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Maps\FleetEngine\V1\Vehicle', - 'headerParams' => [ - [ - 'keyName' => 'provider_id', - 'fieldAccessors' => [ - 'getParent', - ], - 'matchers' => [ - '/^(?providers\/[^\/]+)$/', - ], - ], - ], - ], - 'GetVehicle' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Maps\FleetEngine\V1\Vehicle', - 'headerParams' => [ - [ - 'keyName' => 'provider_id', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?providers\/[^\/]+)$/', - ], - ], - ], - ], - 'ListVehicles' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getVehicles', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Maps\FleetEngine\V1\ListVehiclesResponse', - 'headerParams' => [ - [ - 'keyName' => 'provider_id', - 'fieldAccessors' => [ - 'getParent', - ], - 'matchers' => [ - '/^(?providers\/[^\/]+)$/', - ], - ], - ], - ], - 'SearchVehicles' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Maps\FleetEngine\V1\SearchVehiclesResponse', - 'headerParams' => [ - [ - 'keyName' => 'provider_id', - 'fieldAccessors' => [ - 'getParent', - ], - 'matchers' => [ - '/^(?providers\/[^\/]+)$/', - ], - ], - ], - ], - 'UpdateVehicle' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Maps\FleetEngine\V1\Vehicle', - 'headerParams' => [ - [ - 'keyName' => 'provider_id', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?providers\/[^\/]+)$/', - ], - ], - ], - ], - 'UpdateVehicleAttributes' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Maps\FleetEngine\V1\UpdateVehicleAttributesResponse', - 'headerParams' => [ - [ - 'keyName' => 'provider_id', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?providers\/[^\/]+)$/', - ], - ], - ], - ], - 'templateMap' => [ - 'vehicle' => 'providers/{provider}/vehicles/{vehicle}', - ], - ], - ], -]; diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_rest_client_config.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_rest_client_config.php deleted file mode 100644 index ac8a656607f0..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_rest_client_config.php +++ /dev/null @@ -1,108 +0,0 @@ - [ - 'maps.fleetengine.v1.VehicleService' => [ - 'CreateVehicle' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=providers/*}/vehicles', - 'body' => 'vehicle', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'vehicle_id', - ], - ], - 'GetVehicle' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=providers/*/vehicles/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListVehicles' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=providers/*}/vehicles', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'vehicle_type_categories', - ], - ], - 'SearchVehicles' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=providers/*}/vehicles:search', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateVehicle' => [ - 'method' => 'put', - 'uriTemplate' => '/v1/{name=providers/*/vehicles/*}', - 'body' => 'vehicle', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateVehicleAttributes' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=providers/*/vehicles/*}:updateAttributes', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/TripServiceClientTest.php b/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/TripServiceClientTest.php deleted file mode 100644 index 24ec467b67de..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/TripServiceClientTest.php +++ /dev/null @@ -1,501 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return TripServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new TripServiceClient($options); - } - - /** @test */ - public function createTripTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $vehicleId = 'vehicleId-1378647282'; - $intermediateDestinationIndex = 144716901; - $currentRouteSegment = 'currentRouteSegment-289364233'; - $numberOfPassengers = 674364405; - $lastLocationSnappable = false; - $expectedResponse = new Trip(); - $expectedResponse->setName($name); - $expectedResponse->setVehicleId($vehicleId); - $expectedResponse->setIntermediateDestinationIndex($intermediateDestinationIndex); - $expectedResponse->setCurrentRouteSegment($currentRouteSegment); - $expectedResponse->setNumberOfPassengers($numberOfPassengers); - $expectedResponse->setLastLocationSnappable($lastLocationSnappable); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->tripName('[PROVIDER]', '[TRIP]'); - $tripId = 'tripId-1059631243'; - $trip = new Trip(); - $request = (new CreateTripRequest()) - ->setParent($formattedParent) - ->setTripId($tripId) - ->setTrip($trip); - $response = $gapicClient->createTrip($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.TripService/CreateTrip', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getTripId(); - $this->assertProtobufEquals($tripId, $actualValue); - $actualValue = $actualRequestObject->getTrip(); - $this->assertProtobufEquals($trip, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createTripExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->tripName('[PROVIDER]', '[TRIP]'); - $tripId = 'tripId-1059631243'; - $trip = new Trip(); - $request = (new CreateTripRequest()) - ->setParent($formattedParent) - ->setTripId($tripId) - ->setTrip($trip); - try { - $gapicClient->createTrip($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTripTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $vehicleId = 'vehicleId-1378647282'; - $intermediateDestinationIndex = 144716901; - $currentRouteSegment = 'currentRouteSegment-289364233'; - $numberOfPassengers = 674364405; - $lastLocationSnappable = false; - $expectedResponse = new Trip(); - $expectedResponse->setName($name2); - $expectedResponse->setVehicleId($vehicleId); - $expectedResponse->setIntermediateDestinationIndex($intermediateDestinationIndex); - $expectedResponse->setCurrentRouteSegment($currentRouteSegment); - $expectedResponse->setNumberOfPassengers($numberOfPassengers); - $expectedResponse->setLastLocationSnappable($lastLocationSnappable); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->tripName('[PROVIDER]', '[TRIP]'); - $request = (new GetTripRequest()) - ->setName($formattedName); - $response = $gapicClient->getTrip($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.TripService/GetTrip', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTripExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->tripName('[PROVIDER]', '[TRIP]'); - $request = (new GetTripRequest()) - ->setName($formattedName); - try { - $gapicClient->getTrip($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function reportBillableTripTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $countryCode = 'countryCode1481071862'; - $request = (new ReportBillableTripRequest()) - ->setName($name) - ->setCountryCode($countryCode); - $gapicClient->reportBillableTrip($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.TripService/ReportBillableTrip', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $actualValue = $actualRequestObject->getCountryCode(); - $this->assertProtobufEquals($countryCode, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function reportBillableTripExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $countryCode = 'countryCode1481071862'; - $request = (new ReportBillableTripRequest()) - ->setName($name) - ->setCountryCode($countryCode); - try { - $gapicClient->reportBillableTrip($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchTripsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $tripsElement = new Trip(); - $trips = [ - $tripsElement, - ]; - $expectedResponse = new SearchTripsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTrips($trips); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $request = (new SearchTripsRequest()) - ->setParent($parent); - $response = $gapicClient->searchTrips($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getTrips()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.TripService/SearchTrips', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchTripsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $parent = 'parent-995424086'; - $request = (new SearchTripsRequest()) - ->setParent($parent); - try { - $gapicClient->searchTrips($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateTripTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $vehicleId = 'vehicleId-1378647282'; - $intermediateDestinationIndex = 144716901; - $currentRouteSegment = 'currentRouteSegment-289364233'; - $numberOfPassengers = 674364405; - $lastLocationSnappable = false; - $expectedResponse = new Trip(); - $expectedResponse->setName($name2); - $expectedResponse->setVehicleId($vehicleId); - $expectedResponse->setIntermediateDestinationIndex($intermediateDestinationIndex); - $expectedResponse->setCurrentRouteSegment($currentRouteSegment); - $expectedResponse->setNumberOfPassengers($numberOfPassengers); - $expectedResponse->setLastLocationSnappable($lastLocationSnappable); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $trip = new Trip(); - $updateMask = new FieldMask(); - $request = (new UpdateTripRequest()) - ->setName($name) - ->setTrip($trip) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateTrip($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.TripService/UpdateTrip', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $actualValue = $actualRequestObject->getTrip(); - $this->assertProtobufEquals($trip, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateTripExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $trip = new Trip(); - $updateMask = new FieldMask(); - $request = (new UpdateTripRequest()) - ->setName($name) - ->setTrip($trip) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateTrip($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createTripAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $vehicleId = 'vehicleId-1378647282'; - $intermediateDestinationIndex = 144716901; - $currentRouteSegment = 'currentRouteSegment-289364233'; - $numberOfPassengers = 674364405; - $lastLocationSnappable = false; - $expectedResponse = new Trip(); - $expectedResponse->setName($name); - $expectedResponse->setVehicleId($vehicleId); - $expectedResponse->setIntermediateDestinationIndex($intermediateDestinationIndex); - $expectedResponse->setCurrentRouteSegment($currentRouteSegment); - $expectedResponse->setNumberOfPassengers($numberOfPassengers); - $expectedResponse->setLastLocationSnappable($lastLocationSnappable); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->tripName('[PROVIDER]', '[TRIP]'); - $tripId = 'tripId-1059631243'; - $trip = new Trip(); - $request = (new CreateTripRequest()) - ->setParent($formattedParent) - ->setTripId($tripId) - ->setTrip($trip); - $response = $gapicClient->createTripAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.TripService/CreateTrip', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getTripId(); - $this->assertProtobufEquals($tripId, $actualValue); - $actualValue = $actualRequestObject->getTrip(); - $this->assertProtobufEquals($trip, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/VehicleServiceClientTest.php b/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/VehicleServiceClientTest.php deleted file mode 100644 index 55dff33beee6..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/VehicleServiceClientTest.php +++ /dev/null @@ -1,618 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return VehicleServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new VehicleServiceClient($options); - } - - /** @test */ - public function createVehicleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $maximumCapacity = 582710265; - $currentRouteSegment = 'currentRouteSegment-289364233'; - $backToBackEnabled = false; - $expectedResponse = new Vehicle(); - $expectedResponse->setName($name); - $expectedResponse->setMaximumCapacity($maximumCapacity); - $expectedResponse->setCurrentRouteSegment($currentRouteSegment); - $expectedResponse->setBackToBackEnabled($backToBackEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $vehicleId = 'vehicleId-1378647282'; - $vehicle = new Vehicle(); - $vehicleVehicleType = new VehicleType(); - $vehicle->setVehicleType($vehicleVehicleType); - $request = (new CreateVehicleRequest()) - ->setParent($parent) - ->setVehicleId($vehicleId) - ->setVehicle($vehicle); - $response = $gapicClient->createVehicle($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.VehicleService/CreateVehicle', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $actualValue = $actualRequestObject->getVehicleId(); - $this->assertProtobufEquals($vehicleId, $actualValue); - $actualValue = $actualRequestObject->getVehicle(); - $this->assertProtobufEquals($vehicle, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createVehicleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $parent = 'parent-995424086'; - $vehicleId = 'vehicleId-1378647282'; - $vehicle = new Vehicle(); - $vehicleVehicleType = new VehicleType(); - $vehicle->setVehicleType($vehicleVehicleType); - $request = (new CreateVehicleRequest()) - ->setParent($parent) - ->setVehicleId($vehicleId) - ->setVehicle($vehicle); - try { - $gapicClient->createVehicle($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getVehicleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $maximumCapacity = 582710265; - $currentRouteSegment = 'currentRouteSegment-289364233'; - $backToBackEnabled = false; - $expectedResponse = new Vehicle(); - $expectedResponse->setName($name2); - $expectedResponse->setMaximumCapacity($maximumCapacity); - $expectedResponse->setCurrentRouteSegment($currentRouteSegment); - $expectedResponse->setBackToBackEnabled($backToBackEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->vehicleName('[PROVIDER]', '[VEHICLE]'); - $request = (new GetVehicleRequest()) - ->setName($formattedName); - $response = $gapicClient->getVehicle($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.VehicleService/GetVehicle', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getVehicleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->vehicleName('[PROVIDER]', '[VEHICLE]'); - $request = (new GetVehicleRequest()) - ->setName($formattedName); - try { - $gapicClient->getVehicle($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listVehiclesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $vehiclesElement = new Vehicle(); - $vehicles = [ - $vehiclesElement, - ]; - $expectedResponse = new ListVehiclesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setVehicles($vehicles); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $vehicleTypeCategories = []; - $request = (new ListVehiclesRequest()) - ->setParent($parent) - ->setVehicleTypeCategories($vehicleTypeCategories); - $response = $gapicClient->listVehicles($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getVehicles()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.VehicleService/ListVehicles', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $actualValue = $actualRequestObject->getVehicleTypeCategories(); - $this->assertProtobufEquals($vehicleTypeCategories, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listVehiclesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $parent = 'parent-995424086'; - $vehicleTypeCategories = []; - $request = (new ListVehiclesRequest()) - ->setParent($parent) - ->setVehicleTypeCategories($vehicleTypeCategories); - try { - $gapicClient->listVehicles($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchVehiclesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new SearchVehiclesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $pickupPoint = new TerminalLocation(); - $pickupPointPoint = new LatLng(); - $pickupPoint->setPoint($pickupPointPoint); - $pickupRadiusMeters = 254656044; - $count = 94851343; - $minimumCapacity = 518841803; - $tripTypes = []; - $vehicleTypes = []; - $orderBy = VehicleMatchOrder::UNKNOWN_VEHICLE_MATCH_ORDER; - $request = (new SearchVehiclesRequest()) - ->setParent($parent) - ->setPickupPoint($pickupPoint) - ->setPickupRadiusMeters($pickupRadiusMeters) - ->setCount($count) - ->setMinimumCapacity($minimumCapacity) - ->setTripTypes($tripTypes) - ->setVehicleTypes($vehicleTypes) - ->setOrderBy($orderBy); - $response = $gapicClient->searchVehicles($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.VehicleService/SearchVehicles', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $actualValue = $actualRequestObject->getPickupPoint(); - $this->assertProtobufEquals($pickupPoint, $actualValue); - $actualValue = $actualRequestObject->getPickupRadiusMeters(); - $this->assertProtobufEquals($pickupRadiusMeters, $actualValue); - $actualValue = $actualRequestObject->getCount(); - $this->assertProtobufEquals($count, $actualValue); - $actualValue = $actualRequestObject->getMinimumCapacity(); - $this->assertProtobufEquals($minimumCapacity, $actualValue); - $actualValue = $actualRequestObject->getTripTypes(); - $this->assertProtobufEquals($tripTypes, $actualValue); - $actualValue = $actualRequestObject->getVehicleTypes(); - $this->assertProtobufEquals($vehicleTypes, $actualValue); - $actualValue = $actualRequestObject->getOrderBy(); - $this->assertProtobufEquals($orderBy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchVehiclesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $parent = 'parent-995424086'; - $pickupPoint = new TerminalLocation(); - $pickupPointPoint = new LatLng(); - $pickupPoint->setPoint($pickupPointPoint); - $pickupRadiusMeters = 254656044; - $count = 94851343; - $minimumCapacity = 518841803; - $tripTypes = []; - $vehicleTypes = []; - $orderBy = VehicleMatchOrder::UNKNOWN_VEHICLE_MATCH_ORDER; - $request = (new SearchVehiclesRequest()) - ->setParent($parent) - ->setPickupPoint($pickupPoint) - ->setPickupRadiusMeters($pickupRadiusMeters) - ->setCount($count) - ->setMinimumCapacity($minimumCapacity) - ->setTripTypes($tripTypes) - ->setVehicleTypes($vehicleTypes) - ->setOrderBy($orderBy); - try { - $gapicClient->searchVehicles($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateVehicleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $maximumCapacity = 582710265; - $currentRouteSegment = 'currentRouteSegment-289364233'; - $backToBackEnabled = false; - $expectedResponse = new Vehicle(); - $expectedResponse->setName($name2); - $expectedResponse->setMaximumCapacity($maximumCapacity); - $expectedResponse->setCurrentRouteSegment($currentRouteSegment); - $expectedResponse->setBackToBackEnabled($backToBackEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $vehicle = new Vehicle(); - $vehicleVehicleType = new VehicleType(); - $vehicle->setVehicleType($vehicleVehicleType); - $updateMask = new FieldMask(); - $request = (new UpdateVehicleRequest()) - ->setName($name) - ->setVehicle($vehicle) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateVehicle($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.VehicleService/UpdateVehicle', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $actualValue = $actualRequestObject->getVehicle(); - $this->assertProtobufEquals($vehicle, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateVehicleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $vehicle = new Vehicle(); - $vehicleVehicleType = new VehicleType(); - $vehicle->setVehicleType($vehicleVehicleType); - $updateMask = new FieldMask(); - $request = (new UpdateVehicleRequest()) - ->setName($name) - ->setVehicle($vehicle) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateVehicle($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateVehicleAttributesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new UpdateVehicleAttributesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $attributes = []; - $request = (new UpdateVehicleAttributesRequest()) - ->setName($name) - ->setAttributes($attributes); - $response = $gapicClient->updateVehicleAttributes($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.VehicleService/UpdateVehicleAttributes', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $actualValue = $actualRequestObject->getAttributes(); - $this->assertProtobufEquals($attributes, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateVehicleAttributesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $attributes = []; - $request = (new UpdateVehicleAttributesRequest()) - ->setName($name) - ->setAttributes($attributes); - try { - $gapicClient->updateVehicleAttributes($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createVehicleAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $maximumCapacity = 582710265; - $currentRouteSegment = 'currentRouteSegment-289364233'; - $backToBackEnabled = false; - $expectedResponse = new Vehicle(); - $expectedResponse->setName($name); - $expectedResponse->setMaximumCapacity($maximumCapacity); - $expectedResponse->setCurrentRouteSegment($currentRouteSegment); - $expectedResponse->setBackToBackEnabled($backToBackEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $vehicleId = 'vehicleId-1378647282'; - $vehicle = new Vehicle(); - $vehicleVehicleType = new VehicleType(); - $vehicle->setVehicleType($vehicleVehicleType); - $request = (new CreateVehicleRequest()) - ->setParent($parent) - ->setVehicleId($vehicleId) - ->setVehicle($vehicle); - $response = $gapicClient->createVehicleAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.VehicleService/CreateVehicle', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $actualValue = $actualRequestObject->getVehicleId(); - $this->assertProtobufEquals($vehicleId, $actualValue); - $actualValue = $actualRequestObject->getVehicle(); - $this->assertProtobufEquals($vehicle, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} From 0ad8f084a39d651a8040e7c53ea5c0c70794a470 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 10 Dec 2024 20:58:21 +0000 Subject: [PATCH 3/4] fix: Add compatibility for PHP 8.4 docs: Add documentation for logger client option PiperOrigin-RevId: 704769822 Source-Link: https://github.com/googleapis/googleapis/commit/68e77625374a91c46fe47980209fedd108c756e8 Source-Link: https://github.com/googleapis/googleapis-gen/commit/724f6fc2efd4597d2e1c14709a0686ae070280ea Copy-Tag: eyJwIjoiTWFwc0ZsZWV0RW5naW5lLy5Pd2xCb3QueWFtbCIsImgiOiI3MjRmNmZjMmVmZDQ1OTdkMmUxYzE0NzA5YTA2ODZhZTA3MDI4MGVhIn0= --- .../Maps/Fleetengine/V1/Fleetengine.php | Bin 0 -> 4557 bytes .../Google/Maps/Fleetengine/V1/Header.php | Bin 0 -> 1414 bytes .../Google/Maps/Fleetengine/V1/Traffic.php | Bin 0 -> 1210 bytes .../Google/Maps/Fleetengine/V1/TripApi.php | Bin 0 -> 4480 bytes .../Google/Maps/Fleetengine/V1/Trips.php | Bin 0 -> 4253 bytes .../Google/Maps/Fleetengine/V1/VehicleApi.php | Bin 0 -> 7424 bytes .../Google/Maps/Fleetengine/V1/Vehicles.php | Bin 0 -> 4391 bytes .../Maps/FleetEngine/V1/BatteryInfo.php | 135 ++ .../Maps/FleetEngine/V1/BatteryStatus.php | 82 + .../V1/BillingPlatformIdentifier.php | 82 + .../V1/ConsumableTrafficPolyline.php | 117 ++ .../Maps/FleetEngine/V1/CreateTripRequest.php | 329 +++ .../FleetEngine/V1/CreateVehicleRequest.php | 313 +++ .../Maps/FleetEngine/V1/DeviceSettings.php | 183 ++ .../Maps/FleetEngine/V1/GetTripRequest.php | 439 ++++ .../Maps/FleetEngine/V1/GetVehicleRequest.php | 243 +++ .../Maps/FleetEngine/V1/LicensePlate.php | 123 ++ .../FleetEngine/V1/ListVehiclesRequest.php | 926 +++++++++ .../FleetEngine/V1/ListVehiclesResponse.php | 151 ++ .../FleetEngine/V1/LocationPowerSaveMode.php | 89 + .../Maps/FleetEngine/V1/LocationSensor.php | 110 + .../Maps/FleetEngine/V1/NavigationStatus.php | 76 + .../FleetEngine/V1/PolylineFormatType.php | 62 + .../Maps/FleetEngine/V1/PowerSource.php | 75 + .../V1/ReportBillableTripRequest.php | 239 +++ .../SolutionType.php | 59 + .../Maps/FleetEngine/V1/RequestHeader.php | 493 +++++ .../FleetEngine/V1/RequestHeader/Platform.php | 71 + .../FleetEngine/V1/RequestHeader/SdkType.php | 71 + .../FleetEngine/V1/SearchTripsRequest.php | 335 +++ .../FleetEngine/V1/SearchTripsResponse.php | 109 + .../FleetEngine/V1/SearchVehiclesRequest.php | 1029 ++++++++++ .../CurrentTripsPresent.php | 68 + .../VehicleMatchOrder.php | 90 + .../FleetEngine/V1/SearchVehiclesResponse.php | 71 + .../FleetEngine/V1/SpeedReadingInterval.php | 145 ++ .../V1/SpeedReadingInterval/Speed.php | 71 + .../Maps/FleetEngine/V1/StopLocation.php | 172 ++ .../Maps/FleetEngine/V1/TerminalLocation.php | 245 +++ .../Maps/FleetEngine/V1/TerminalPointId.php | 159 ++ .../FleetEngine/V1/TrafficPolylineData.php | 81 + .../src/Google/Maps/FleetEngine/V1/Trip.php | 1614 +++++++++++++++ .../Google/Maps/FleetEngine/V1/TripStatus.php | 111 + .../Google/Maps/FleetEngine/V1/TripType.php | 61 + .../Google/Maps/FleetEngine/V1/TripView.php | 67 + .../Maps/FleetEngine/V1/TripWaypoint.php | 451 +++++ .../Maps/FleetEngine/V1/UpdateTripRequest.php | 355 ++++ .../V1/UpdateVehicleAttributesRequest.php | 161 ++ .../V1/UpdateVehicleAttributesResponse.php | 71 + .../FleetEngine/V1/UpdateVehicleRequest.php | 267 +++ .../Google/Maps/FleetEngine/V1/Vehicle.php | 1108 ++++++++++ .../FleetEngine/V1/Vehicle/VehicleType.php | 70 + .../V1/Vehicle/VehicleType/Category.php | 93 + .../Maps/FleetEngine/V1/VehicleAttribute.php | 225 +++ .../FleetEngine/V1/VehicleAttributeList.php | 67 + .../Maps/FleetEngine/V1/VehicleLocation.php | 1789 +++++++++++++++++ .../Maps/FleetEngine/V1/VehicleMatch.php | 693 +++++++ .../V1/VehicleMatch/VehicleMatchType.php | 83 + .../Maps/FleetEngine/V1/VehicleState.php | 62 + .../VisualTrafficReportPolylineRendering.php | 84 + .../RoadStretch.php | 142 ++ .../RoadStretch/Style.php | 64 + .../Google/Maps/FleetEngine/V1/Waypoint.php | 123 ++ .../Maps/FleetEngine/V1/WaypointType.php | 68 + .../V1/TripServiceClient/create_trip.php | 87 + .../samples/V1/TripServiceClient/get_trip.php | 74 + .../report_billable_trip.php | 76 + .../V1/TripServiceClient/search_trips.php | 78 + .../V1/TripServiceClient/update_trip.php | 78 + .../VehicleServiceClient/create_vehicle.php | 116 ++ .../V1/VehicleServiceClient/get_vehicle.php | 75 + .../V1/VehicleServiceClient/list_vehicles.php | 85 + .../VehicleServiceClient/search_vehicles.php | 120 ++ .../VehicleServiceClient/update_vehicle.php | 98 + .../update_vehicle_attributes.php | 80 + .../v1/src/V1/Client/TripServiceClient.php | 352 ++++ .../v1/src/V1/Client/VehicleServiceClient.php | 434 ++++ .../v1/src/V1/gapic_metadata.json | 82 + .../resources/trip_service_client_config.json | 59 + .../trip_service_descriptor_config.php | 114 ++ .../trip_service_rest_client_config.php | 94 + .../vehicle_service_client_config.json | 64 + .../vehicle_service_descriptor_config.php | 129 ++ .../vehicle_service_rest_client_config.php | 108 + .../Unit/V1/Client/TripServiceClientTest.php | 501 +++++ .../V1/Client/VehicleServiceClientTest.php | 618 ++++++ 86 files changed, 18394 insertions(+) create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Fleetengine.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Header.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Traffic.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/TripApi.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Trips.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/VehicleApi.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Vehicles.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryInfo.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryStatus.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BillingPlatformIdentifier.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ConsumableTrafficPolyline.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateTripRequest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateVehicleRequest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/DeviceSettings.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetTripRequest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetVehicleRequest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LicensePlate.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesRequest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesResponse.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationPowerSaveMode.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationSensor.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/NavigationStatus.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PolylineFormatType.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PowerSource.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest/SolutionType.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/Platform.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/SdkType.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsRequest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsResponse.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/CurrentTripsPresent.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/VehicleMatchOrder.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesResponse.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval/Speed.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/StopLocation.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalLocation.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalPointId.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TrafficPolylineData.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Trip.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripStatus.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripType.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripView.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripWaypoint.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateTripRequest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesRequest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesResponse.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleRequest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType/Category.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttribute.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttributeList.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleLocation.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch/VehicleMatchType.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleState.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch/Style.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Waypoint.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/WaypointType.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/create_trip.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/get_trip.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/report_billable_trip.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/search_trips.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/update_trip.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/create_vehicle.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/get_vehicle.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/list_vehicles.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/search_vehicles.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle_attributes.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/TripServiceClient.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/VehicleServiceClient.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_client_config.json create mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_descriptor_config.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_rest_client_config.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_client_config.json create mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_descriptor_config.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_rest_client_config.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/TripServiceClientTest.php create mode 100644 owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/VehicleServiceClientTest.php diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Fleetengine.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Fleetengine.php new file mode 100644 index 0000000000000000000000000000000000000000..11ab219baf22a4e85eda528d0b9885d9bf5540bd GIT binary patch literal 4557 zcmbVQT~piG8D85E;5ETU1R_Y5YT0Z<*sK|xY`0@VT7Sr_Cq~lPGBh2}Xk_bPG%HIQ zNhZT~@&h`(=zr++s`tI?59ss{^tRXi2Yc7|9DUdXW9a6FSm%A-kLUe3A8&r+Ubyh3 za7=9C=>ai>-jxts5W)4F!09`d&>Nkf6Hn+nL)Wy3R}h4nEJ(5{h_#0L1wwsi8O z7&y+rBKt$#_4m&$LIPqBOq=Xq9!&l$FvS42J|w=Y_la<0-6y**git4yedanC|B(=TrBF(cj&8#ah-d3ow?_QFXS#voDJWVh4M>m> zNx$sAh|E%T=DDyN`dBL6aPmk9yb+nSE(jh8MxK4h{H6*%CjaYB;jHYM-MUFEqe3q9 zOVja6rEyeaCDWi&=Px=#uE1q)}oTWrW06d3sd8(I<`L=>OG4@ z6H0NcD+~7-?lt5L6Q>7`aczjZkLU9bn4%|fjl_*oXxPE4;wh~>T2L9>efR|?x^+V| z8A;sNuoyQOzsRIFZ%D_pZ|Bcgyr<;C>|3N9V3qVn0pYTc`GH)q^eu4@ zV*8HAXA!wl{Br7iiF>2XM3KB4o+mv=H#Fa-2MmLMa*N#xwrMz1-oiS92ClD#1~p>S zfo1T^cR{JkbF@w0 zOc|eN$f;xDTUebG4YRU(ONiq+`de7L28)vN6oL0l$|0;@(~y+iCNn;}?254Nk6hOx zL&C;c5-E3kq;FwsDkcnh?aq)J@N_ypiv7|3W3R#XbX5rn>-Qjm$1G3Q^cG?kY2)v` zfkk@mpa&6d9acNiJ4rs1G_}=GH1)kA=0D>A9<;wNx5QdLg}d02_`7Pe({7xK`SjkO zQm`B!S(u7VSdUelmES9JLsDZkJUmhw)ps35yS|dbBjZM`B`ca-uYa z;Ptbtids!TzopHJKj(am`jggEq19cw@%85Ll|xoe>J6Jt=VWt zpHm!$AWBuaCe}1XZoY3eBryyjz4u4lvk~`7ac+HwocFF@v4X`|UJEJ&hyCb!<99sHq`+boG0ZU?qoa=E6prLv-+ zsis^FV^CW1X`?2#@^joaY*jmLRX!10TDzkt&Blaaex8z6Z;GO-iPAA8EY^{KfM@E* z^-g<2TubyC90w1pa%)2VpQ#E)wvEpZ@i}A4*}alwuL2@_a8OdeulFryWW)f(?hl-s z4->j;UVoc#dxsO3F}L@Zbf#Jt|CZi5X3r7@dQUD)SSp+z{3~AUhL0BEt3~KY7oRQu zoBlimmr4{}DowykrPG7n19m8V^*p&tz6@UiCLRuOl;fFU%A*0346pVd;UmER0BK5- AfB*mh literal 0 HcmV?d00001 diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Header.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Header.php new file mode 100644 index 0000000000000000000000000000000000000000..52f1053ac43c8dcfc58a40db1bf162d39d348b9d GIT binary patch literal 1414 zcma)6-EPxJ6y7Azgww(XQ-oP*SF_zp4S$XTcP<6xw`6zISV;&1S+XYfNjk#unDICg zpx*KzNZjx!d&>)O%~LS8+cc$JiQHs-=6v7zoAW(>8Xku57um-E1(oQL$y*{1k%WRv z?sA_@;^`Cxarr!CJ_>`7R-YX7N2J~Aj{a28h{wW3lgv1u`B{M2W$S1z26w zs)tBD1x+~t0y@Viq%M+utI-_xIM1z0=PbnBJwPyf%ibvFN`NX zb4etrRDatna#+A5qdt45s@Nk_>PM)c=Y6Mf;7Y~=k^uUFi~0`Y1k|@%7`cLlk_$_@n&u4UvVDoAa_2Z~LdT}0lI3Wc=aSqbQpC6#oe+UC z7Qt?scS3NqJlPkts~$4D!_fB{ct{tF3)4KU>Xalc>cJCsTteORmKk@{R4dCENyHua zvv`=4tViB!XMrM8*Lop!*8q65v|UPVo3P>Gg1P9-6|b*fPOXojl)&ZN z5cM@>x%Tj`aY3fWnJkT=_j;rdDy?$j?5t)`OnGm?uK``0xhSO zdp{A-I)-Sfia8D9DRtHSQRtA8-iGTm@C0X`Lqq2HxKIVItE5T{zcn>QnPpr$6ZZz_$*?`ax^Z@3s_O5enV@P;sfli*}=2Xne`R zA4)rn>@{7~kVY|kA(54P)p30udne8cSDo?milRE9L}lg0g_GSgUmx>@W~co*|63+1 zMj|RkDk|+%lZfgc5XA|pV2dD_4~0sgB~+>_fuoe0ON-LPu7a8-YD1BbC2M1k)0H+}%U%}> z>YY3PfFnPJU%;Ikzk;{d>W%?cpoB2h=2f(&apTJ94B0G zpEEql!VnVd^GQq@Bqqk4K0fRZvEAtopGs)Tv&07rk2xPRXiP|)HbMpNI(Q}_Y1t+lX%zpi+4|&+X(rLq$wV%Jm@pR@`1c=z#nG}Zk=(%|$zbtzj1v%9 z5^Wc}^8^?3Rl)4VE}imd1;PAUM>fZp2j;L1^tFPFt9C`dmp9H_XqW)v{L*4UT)0i^tl@U1-JayDMh3*#Ra-R=nw8Thynlr literal 0 HcmV?d00001 diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/TripApi.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/TripApi.php new file mode 100644 index 0000000000000000000000000000000000000000..3f22c6d8e70f2da43348ea1cc03de3bf7ccd9098 GIT binary patch literal 4480 zcmbtYOK;mo5Uy;;j#sH0uZu=f;DnZ)SV!y+=IRau^kRRzo0I{N05)q1I z$)#L3@FmAyd+V`>qUe8Ud+8}afui{XJ@nH4gq}LPBxO3H{772yZq>Z z)wR%~v_TDO6GmH7^H5@4Dp|J4Ox4t-rrT~)TT;!QrRmhpN>XWC+S=Zg%BAY=0=PP+ zYpYb2I;PptX|6{sC)d^~Wz^_s2F>+Xa?I8&g;-ivL`BFTJ?dCQrP4;NxJeml5k?vt zB0ysk0yHYe0UG-&s|cw&aU5wE0u?L`Jw+1yv)rbxsglD8gFj1}qiBZ4G@@%?Ln3QZ zo9GS&-(lOfYp6^!4T(E!8!FA*k-V7PcF8g!@ii$xRO7XPIy9;VqqafxMu|EqKw+j` z15;Vd`0| zhRLg78jdU<=X4xml;gUtQG;E~r=n54Ris_g*G&6ju663OnXng+qB+7Q@JdGNu~Kr-cszd^-^zG%VNhDdewTe|ep9lK6{(rVpIGy7YhwzC}>9fdvct?HQzhi=o+do5I$@ zIbWw=x4nEVx#`0f6s?uGBwWYA6W>D<{AprBAV@|c;O<3koqjffW;Q6}4_+sU z56}eP{4SiryJ(`X(St-Bz|Q37M}pl4BV0i9s%!I7DK?OiDh}=R_^&>-9Z-+Nq)0iH z^@`IS3@d(suG_RnU@I{?$^kjFOc+sT5Mb)e07W$Gy}NDNJ;D@rXwk%FfxfXE z3BP9QhdLY>D#BqG>~R&{icW;tq}|rk0iNkI@s!a*R6-ucpf2dFFzMgNP_j-f(`H3Y z*GW@9LF-w+yJHY%TJQ!Z(G}Hn4Q3xIs@Vz}F9`Svx@_r$@d626&g8R^h2d|4Hq?CE zY71Ja!6e#v4#jN>k7*0I?Lb?{Gt;<^-gHbIc1+Xos?M7=lV6RDJu;WOXZ!1g?e>s zL*c(m1a=lvKxf)CV0`jnD!SU}z9bZKrg4%oHaPbMp@1wXYkSJW=L`UNJ;Taih zhMq3`6GM215?k$ZX>eXg8|GdTIFSQJs873^s#7jsT&t#mQ?mq)uYIa;0do}7&<_RP z%Xk(|TciUM4@Y1z=9e%;5RaJogc=D>hH1!kwg|a9Y;)OJf9p=h2YSU z{uIrfNY%06yh)+kmjn*b@^R4e(MpQ1p|=eB6;ncZ#Hi%|m_l)0za47#HI?EYV+bAZ z8u)f3caIJHs;5T3I{oio@=E%Y(bgJ?{=5y7G^_ O?h8xrT7HC%5c(gd2H+_G literal 0 HcmV?d00001 diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Trips.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Trips.php new file mode 100644 index 0000000000000000000000000000000000000000..2fa51c46dc0ef2fe9bb3a34f8a912ef55298b374 GIT binary patch literal 4253 zcmbVP+fv(B6s} zOh2JN(5F832l@|v>mPLbn6KzQN0KqYCQkAaEbYCtFKgdkeCM1x=svfHE$pg3*13~& z&OgPRd9TR7}s^ewb zCdNLtI);U_XWLodH5`wpkO*077kiGXVQ#NhIK;lHtG?RWquQ-Q&~BA4wOh^YU4%4K z^*l}{DCiyH;GYwmn1;rAzUsq&8-}MCmf;(!Y5W2{yyV)d>0!{kF53<)%{Od|BMMbZ z!&{HI5R=GmI5znFl8f!BkuX3ATB7A+*HX<^340nC;@fTwM02?g_Itr2PqrRKpCxcc zo7)O)%;l~b`I7V90QY~L<6P_quC+_;CIA<`zgh#Lm3NF**}$e=z^Ce&VY|89rB|0A z!&K`y%H7CX1JcuKd+e%?gI#ZQ zRr%b(t%~ZKR%fsh<=?YcM#Q$fuJ_1QhVt9$(SeX-6aAJ!4@avzW}Xx#-&dIY+4f>4 zQdS)!>qcw{>vZwy4Y>U%w5k`kZjkoFyhgYyktEfF%F60d@}l>vAHMhF3=IQ#8>Jz7 z&qe?~#5!xzSch-c|4O5A(nOd!G)}q@o8S^#(}m=}`6R<2bcRn2&BThKvt#51^9`CI zol7AV9C&OJ9^T$rN#QSmP04-ewQC-(KBbd}6 z?vubEY>_D>b?gLHUgX2HgsFhM^S#Oo6R?jml=WS#8!(6z9m*0MC1vfgx4Go#5fRYZ zP$cCH>J=c_%*U)^9-@_DFfeR%{4@I{V5FEI5g)~FsQ8s=dh8nYX4Kr&5cd&$k6r&H z#24t6?%IysZb$i@q`?@Ga3ypnvgazuJqj|aSKp%9Se>$D>SOr`SpsZ#aaV;YXLXdf z>N(}7$EI)apOoftBpHIdKyz`eUqaj&5rS!LqLga~K4zz>%6!ahQt&)9_lngCzq5`O zw7_+-buptzo#)7VTV&Z59 z*KG6Lgyk*tLqZP*+ZbW@Y+V`6)+$;ZjE5~fVkAqE29xP}LW?MK$qLGi-;r5< zvHp7k&GwH?+6BVlNS271onc*IjClt8K)k}x#bRdXhG7Ux$Fv9YS)pB#tQ{br0TJx$aS%%G~~Q|)JT89OroSD9H$e^0-6(~di6*a6uGL@ z#NxqGEj>ma=j(N`DU_7F96wGHZ}0a#7bRJ!AHo5c2lbNBkVPpki&ZH-NhSM$he}Q{ zcM;PkSgKcR)p9vK&dj2zV)d|A5o95qqQCM|QK$%|^u*&|QKn#+(3v_l*zDT2+ZA?X=kE1lY~){iIXN$tz;fm9<40Pju2bYNV3zJYD&=5l}tn; zS(38j2HA93bk~2-MGFkNEsFku7M*1ablpW)MOR(6z@Xtx2tQi1|m*kEOd2ZxTEo`>!jOSC41_=ZrY=<)`-ZN zk(8{NeOEU+XWwdrn9ataMVdQ0Ij~H71Op=yFqn^L*C9&KbE3A$2ri3~A*x`6IQ!|l z*2hA}967rYJ}Zm)mg>Cv2D}X&3*J?G);HjNX{(k+>=CSGao<$k?nw#5s{6q+UDR^E z)$&Vs9dT~iFE(0wci@*9xIYTONeey1uygF;7^}s@#7M8Lr zDoYSt4iMO)e8f^RxWsEjtXvZ-9b#r&EQHLyCJ+cZ4`<*-?bwV>vD4 z-W@_HT7h#!MYaWkYo;Z#Q>=Sk#b4*%>0u5E3eR;uh3h5SNn0FUS|%EZ79wqA0f-`Dq`MSjxhAZg4Ut$CjtFsdPlN(}J3pyR-o3E!9StO^zc^e0BUE z`7!AdfN+SSw~`Zsg)B^ph2%N5#ru(42)&rF)c;~Izd_t@LDx@Ug7#;j={?l+zxi8` z3g!e4F($H;#?c@nHkI;lRqNZ-OvT1rB#J{iJ^Hkd<%^)hY@E(6r8z%$G{!yc!-Mo8 z%pa(SmWie5_-xz>L)cP(#$at*I7NIL!I}>_fQ2d$5gMoI?CBAa9>H{jiDJwvu+PdG+z_0sS4LmRMfF>3?Wi@ zi`d9p{3#9>>qND+J&|JX)Av|H(*ihZ>uf6?j&j3JFw2@AZ3% zrs5>6yNAiC!SY7{m^GF{Va-X#(eZQHtC6v7AQ|nKe5*$=-&0>RvDmJ=crI|9B(RLX ze5`7{SwdQa*?lqO^9|=%q?aQ%6p>7e-@)FiuwWy^>NaU9fyA5{A#0>9Sn_3<22sp* zP}Bt`>h3VL{2brZ5$ZpMYbT0BaC4pH;;16)FlE{}0V=zP$ys#lT=q$%K9OnfIc-aI zwY>@z!^8GIEb4~V?YD@st7@+l*JQs*2{)LMF2E#925d45_#!TS0T(@-rVEZ@;Z#AJ z(?zDxvk??3aJ;8kuwAPaQIAHg zRIMx3TCq-_w#)Tuu~1qs71vN_lvA#hi>T)$jOWXrCB{;l@ZQmY3W&tc(xcJDGUfPq zBhvdp*QLImfCZYL;$;LV&Y2#0okMoUoTh;1b2V>Ff|(dI^{I1Gt1p>5`6V z>pmo|4D+>DY!so=1+MQ3Q~{b2$5b1JL9>kJgHwTpVpUxFWPq&n`hX;-(dN1A z&>X2#LM)sa(@fznLiGcQf)dobml4U+R=pW@*mO(8w)ouYX$zlOzd z{)uExqa^NdFPn$XNjL#tFvx3H31rq7)r*eCF5YHz2N^idJfHdure2EqP`U+^II$~u z$`h0Lf|qqnWjp|G8Xc*52gdP+DM*RMrmMKO)3&ZB_5=p_lMBPB|))X47zy+^COX!ISHa zI@BsY3LhV72jhGh?s|;E8`zpW5l6M*bJI}h_z>bOrD=fKh;$lqaQ&YJfPghT|BQh% z6`gydXCpt;%7dUXux4`=o44k&*4V738xWjL=Ni-bro?roC;#B4zQU+HQxysM z@pzb`zeg8`&W0zrI7D+cb$`rVymY#{VHclC?|;YOQb;F14;|@Yq_}3eO!t@u?0yy!=g(jOew5sgc596QH)Xx ze~H0dc%+u@MLIi7p6)d5cZ{ zosWN5;mb|@()X{itDHHPqujY%fIXMnS=l|$u6iHd@vrFb^RH)tk8N~P*0qQaZH$tC K5PJ)60sapxOrkXa literal 0 HcmV?d00001 diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Vehicles.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Vehicles.php new file mode 100644 index 0000000000000000000000000000000000000000..e3dd430a3bf43572325505b3aa161cfa0b9862b7 GIT binary patch literal 4391 zcmb_gUvt{n6))JN_OU~-Y$q~~6NU9o9M2ZUPN&nw&9(vrVS|B1!fraus6t$@W`(4Y z1gV?x2k2|x`_jjLfO!$?TLDgzouwf9IUvxtCx4+PQGx zGoeN-;%Yt_2>naJzaWC++P(!Wn z-YFXBRj&>7&W=t1bW`&@;Vd)+??J$iGwGX#E_lA?9rD!cF4xbs&+6jGalfk5=?mQP$uGkX={>8|1Uw%bP0 zVsS+L8HDuB!Hdu>HD?TkgCNFY@m7$p1mB&IdGCVY5`W@aCoFDi;A-~Nivdh@j9%3s z=Ac9_w5egc#p3m@u8n+1wL`)TezI0fhUOFY>F#H^Dh3vWuZ^7_p?mIXjze58UX`Wt zXI~j%;>5vVmZvJ#^T7;Rit}^$=PtbXevtQg{ zdfp0alkC$_n*GA+EBFygp}8kF1>S{F1nar~tieyij^Q?7nRXqY5E2KgrKNw1OWZHv ze%P2Qtxm!xaV>rPEFZJ0d}v3eg4_vgc@xL6T_gpTdyVj`w3Nh9NaVS&oOySo?!9o{Uvp zLv}IzOa30}r?@WxG#}&aPkfAW1^ulZe}0!uF_PxWupWU#_sFlZfDZ0bjww-HjtGfBuYs>!R^6z1T(XsdSo<4 z(D^O&y~-)D7rTr((S}1q=O5p(Q6-RR+vcT-6kkF1rW;-6svojC#RjGMe88+`^FieX zb&92(pAkS%nqR}y_~?i=P#qh)ndk3-kk;C{cF6>}uVBX|V+|?M8mR*VOC9N69pij* zJ)UD$c5lUlME~;mOfx40i)R}rlNf!N=dc?2^Z19X2I8w`Var9>m}#jI^qG%^8$kaUw)&d>E!{8sCYIJW$$)=^>MOXT z4GU+?h;=8Ujfux+aVh6YJQmbeG7rkuCb^VgEpkUE)Vs$8m<-_HS zeBvlZrt`HC!Eul{NansvKzcEYTm$%s;jx>UKW&OVX%B({l|DXYB|m{X(O@iObMj&HXnC`)7tX(aexWJA_Wsh)g?3am2;G;C>J5uB{C) zi+CQ?FR--f+>&CE`4ofs4qB4~W3-VH*&ncU=3a6tq&)x9jFRx?|KchyQFev4~L73wYIEQ>atjBNEJ$FO;s*;B>ckQ zkn(QHi;c#I<(If;u(xQx+UiKPPOICjsJO$o$doUkuqdLu?z9vIq3KB9bdfaWTXCcg z|B-r>hY=VhQBkDMTLx`c4j@>3M*-;6>dhKL@C33q7IFWx^(6NQHgBv~yNw2N z{!`e!v49uiYs<^rW8iNH1lhqF&7=UPRBgPZVR{*5Zq!rp?+ z!pp8)!u()?ExbLicW@xdGKPx)Ei84L?MAm&!_HYQ{VM@aaPCA0pqQh7X(cRVubuc^ zRX6R)Ad;p7Yh>TP^5ZnaTmRgYbNVL>zy6wBDp#eyC9^el=g-p{Wxh)9{1W@qAb)oB zU9{K>{t*ann89)n{}cE=xfduGi&VQ Pb17$%!PWT+t^ocAm(z9? literal 0 HcmV?d00001 diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryInfo.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryInfo.php new file mode 100644 index 000000000000..ae3acb5ba812 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryInfo.php @@ -0,0 +1,135 @@ +maps.fleetengine.v1.BatteryInfo + */ +class BatteryInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Status of the battery, whether full or charging etc. + * + * Generated from protobuf field .maps.fleetengine.v1.BatteryStatus battery_status = 1; + */ + protected $battery_status = 0; + /** + * Status of battery power source. + * + * Generated from protobuf field .maps.fleetengine.v1.PowerSource power_source = 2; + */ + protected $power_source = 0; + /** + * Current battery percentage [0-100]. + * + * Generated from protobuf field float battery_percentage = 3; + */ + protected $battery_percentage = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $battery_status + * Status of the battery, whether full or charging etc. + * @type int $power_source + * Status of battery power source. + * @type float $battery_percentage + * Current battery percentage [0-100]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); + parent::__construct($data); + } + + /** + * Status of the battery, whether full or charging etc. + * + * Generated from protobuf field .maps.fleetengine.v1.BatteryStatus battery_status = 1; + * @return int + */ + public function getBatteryStatus() + { + return $this->battery_status; + } + + /** + * Status of the battery, whether full or charging etc. + * + * Generated from protobuf field .maps.fleetengine.v1.BatteryStatus battery_status = 1; + * @param int $var + * @return $this + */ + public function setBatteryStatus($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\BatteryStatus::class); + $this->battery_status = $var; + + return $this; + } + + /** + * Status of battery power source. + * + * Generated from protobuf field .maps.fleetengine.v1.PowerSource power_source = 2; + * @return int + */ + public function getPowerSource() + { + return $this->power_source; + } + + /** + * Status of battery power source. + * + * Generated from protobuf field .maps.fleetengine.v1.PowerSource power_source = 2; + * @param int $var + * @return $this + */ + public function setPowerSource($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\PowerSource::class); + $this->power_source = $var; + + return $this; + } + + /** + * Current battery percentage [0-100]. + * + * Generated from protobuf field float battery_percentage = 3; + * @return float + */ + public function getBatteryPercentage() + { + return $this->battery_percentage; + } + + /** + * Current battery percentage [0-100]. + * + * Generated from protobuf field float battery_percentage = 3; + * @param float $var + * @return $this + */ + public function setBatteryPercentage($var) + { + GPBUtil::checkFloat($var); + $this->battery_percentage = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryStatus.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryStatus.php new file mode 100644 index 000000000000..618208d92d46 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryStatus.php @@ -0,0 +1,82 @@ +maps.fleetengine.v1.BatteryStatus + */ +class BatteryStatus +{ + /** + * Battery status unknown. + * + * Generated from protobuf enum UNKNOWN_BATTERY_STATUS = 0; + */ + const UNKNOWN_BATTERY_STATUS = 0; + /** + * Battery is being charged. + * + * Generated from protobuf enum BATTERY_STATUS_CHARGING = 1; + */ + const BATTERY_STATUS_CHARGING = 1; + /** + * Battery is discharging. + * + * Generated from protobuf enum BATTERY_STATUS_DISCHARGING = 2; + */ + const BATTERY_STATUS_DISCHARGING = 2; + /** + * Battery is full. + * + * Generated from protobuf enum BATTERY_STATUS_FULL = 3; + */ + const BATTERY_STATUS_FULL = 3; + /** + * Battery is not charging. + * + * Generated from protobuf enum BATTERY_STATUS_NOT_CHARGING = 4; + */ + const BATTERY_STATUS_NOT_CHARGING = 4; + /** + * Battery is low on power. + * + * Generated from protobuf enum BATTERY_STATUS_POWER_LOW = 5; + */ + const BATTERY_STATUS_POWER_LOW = 5; + + private static $valueToName = [ + self::UNKNOWN_BATTERY_STATUS => 'UNKNOWN_BATTERY_STATUS', + self::BATTERY_STATUS_CHARGING => 'BATTERY_STATUS_CHARGING', + self::BATTERY_STATUS_DISCHARGING => 'BATTERY_STATUS_DISCHARGING', + self::BATTERY_STATUS_FULL => 'BATTERY_STATUS_FULL', + self::BATTERY_STATUS_NOT_CHARGING => 'BATTERY_STATUS_NOT_CHARGING', + self::BATTERY_STATUS_POWER_LOW => 'BATTERY_STATUS_POWER_LOW', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BillingPlatformIdentifier.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BillingPlatformIdentifier.php new file mode 100644 index 000000000000..6b3b7e454bdd --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BillingPlatformIdentifier.php @@ -0,0 +1,82 @@ +maps.fleetengine.v1.BillingPlatformIdentifier + */ +class BillingPlatformIdentifier +{ + /** + * Default. Used for unspecified platforms. + * + * Generated from protobuf enum BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED = 0; + */ + const BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED = 0; + /** + * The platform is a client server. + * + * Generated from protobuf enum SERVER = 1; + */ + const SERVER = 1; + /** + * The platform is a web browser. + * + * Generated from protobuf enum WEB = 2; + */ + const WEB = 2; + /** + * The platform is an Android mobile device. + * + * Generated from protobuf enum ANDROID = 3; + */ + const ANDROID = 3; + /** + * The platform is an IOS mobile device. + * + * Generated from protobuf enum IOS = 4; + */ + const IOS = 4; + /** + * Other platforms that are not listed in this enumeration. + * + * Generated from protobuf enum OTHERS = 5; + */ + const OTHERS = 5; + + private static $valueToName = [ + self::BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED => 'BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED', + self::SERVER => 'SERVER', + self::WEB => 'WEB', + self::ANDROID => 'ANDROID', + self::IOS => 'IOS', + self::OTHERS => 'OTHERS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ConsumableTrafficPolyline.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ConsumableTrafficPolyline.php new file mode 100644 index 000000000000..e9320fa4cdb4 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ConsumableTrafficPolyline.php @@ -0,0 +1,117 @@ +maps.fleetengine.v1.ConsumableTrafficPolyline + */ +class ConsumableTrafficPolyline extends \Google\Protobuf\Internal\Message +{ + /** + * Traffic speed along the path from the previous waypoint to the current + * waypoint. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.SpeedReadingInterval speed_reading_interval = 1; + */ + private $speed_reading_interval; + /** + * The path the driver is taking from the previous waypoint to the current + * waypoint. This path has landmarks in it so clients can show traffic markers + * along the path (see `speed_reading_interval`). Decoding is not yet + * supported. + * + * Generated from protobuf field string encoded_path_to_waypoint = 2; + */ + protected $encoded_path_to_waypoint = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Maps\FleetEngine\V1\SpeedReadingInterval>|\Google\Protobuf\Internal\RepeatedField $speed_reading_interval + * Traffic speed along the path from the previous waypoint to the current + * waypoint. + * @type string $encoded_path_to_waypoint + * The path the driver is taking from the previous waypoint to the current + * waypoint. This path has landmarks in it so clients can show traffic markers + * along the path (see `speed_reading_interval`). Decoding is not yet + * supported. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Traffic::initOnce(); + parent::__construct($data); + } + + /** + * Traffic speed along the path from the previous waypoint to the current + * waypoint. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.SpeedReadingInterval speed_reading_interval = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSpeedReadingInterval() + { + return $this->speed_reading_interval; + } + + /** + * Traffic speed along the path from the previous waypoint to the current + * waypoint. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.SpeedReadingInterval speed_reading_interval = 1; + * @param array<\Google\Maps\FleetEngine\V1\SpeedReadingInterval>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSpeedReadingInterval($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\SpeedReadingInterval::class); + $this->speed_reading_interval = $arr; + + return $this; + } + + /** + * The path the driver is taking from the previous waypoint to the current + * waypoint. This path has landmarks in it so clients can show traffic markers + * along the path (see `speed_reading_interval`). Decoding is not yet + * supported. + * + * Generated from protobuf field string encoded_path_to_waypoint = 2; + * @return string + */ + public function getEncodedPathToWaypoint() + { + return $this->encoded_path_to_waypoint; + } + + /** + * The path the driver is taking from the previous waypoint to the current + * waypoint. This path has landmarks in it so clients can show traffic markers + * along the path (see `speed_reading_interval`). Decoding is not yet + * supported. + * + * Generated from protobuf field string encoded_path_to_waypoint = 2; + * @param string $var + * @return $this + */ + public function setEncodedPathToWaypoint($var) + { + GPBUtil::checkString($var, True); + $this->encoded_path_to_waypoint = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateTripRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateTripRequest.php new file mode 100644 index 000000000000..d98b71603eaf --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateTripRequest.php @@ -0,0 +1,329 @@ +maps.fleetengine.v1.CreateTripRequest + */ +class CreateTripRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + */ + protected $header = null; + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Unique Trip ID. + * Subject to the following restrictions: + * * Must be a valid Unicode string. + * * Limited to a maximum length of 64 characters. + * * Normalized according to [Unicode Normalization Form C] + * (http://www.unicode.org/reports/tr15/). + * * May not contain any of the following ASCII characters: '/', ':', '?', + * ',', or '#'. + * + * Generated from protobuf field string trip_id = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $trip_id = ''; + /** + * Required. Trip entity to create. + * When creating a Trip, the following fields are required: + * * `trip_type` + * * `pickup_point` + * The following fields are used if you provide them: + * * `number_of_passengers` + * * `vehicle_id` + * * `dropoff_point` + * * `intermediate_destinations` + * * `vehicle_waypoints` + * All other Trip fields are ignored. For example, all trips start with a + * `trip_status` of `NEW` even if you pass in a `trip_status` of `CANCELED` in + * the creation request. + * Only `EXCLUSIVE` trips support `intermediate_destinations`. + * When `vehicle_id` is set for a shared trip, you must supply + * the list of `Trip.vehicle_waypoints` to specify the order of the remaining + * waypoints for the vehicle, otherwise the waypoint order will be + * undetermined. + * When you specify `Trip.vehicle_waypoints`, the list must contain all + * the remaining waypoints of the vehicle's trips, with no extra waypoints. + * You must order these waypoints such that for a given trip, the pickup + * point is before intermediate destinations, and all intermediate + * destinations come before the drop-off point. An `EXCLUSIVE` trip's + * waypoints must not interleave with any other trips. + * The `trip_id`, `waypoint_type` and `location` fields are used, and all + * other TripWaypoint fields in `vehicle_waypoints` are ignored. + * + * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $trip = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\RequestHeader $header + * The standard Fleet Engine request header. + * @type string $parent + * Required. Must be in the format `providers/{provider}`. + * 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. + * @type string $trip_id + * Required. Unique Trip ID. + * Subject to the following restrictions: + * * Must be a valid Unicode string. + * * Limited to a maximum length of 64 characters. + * * Normalized according to [Unicode Normalization Form C] + * (http://www.unicode.org/reports/tr15/). + * * May not contain any of the following ASCII characters: '/', ':', '?', + * ',', or '#'. + * @type \Google\Maps\FleetEngine\V1\Trip $trip + * Required. Trip entity to create. + * When creating a Trip, the following fields are required: + * * `trip_type` + * * `pickup_point` + * The following fields are used if you provide them: + * * `number_of_passengers` + * * `vehicle_id` + * * `dropoff_point` + * * `intermediate_destinations` + * * `vehicle_waypoints` + * All other Trip fields are ignored. For example, all trips start with a + * `trip_status` of `NEW` even if you pass in a `trip_status` of `CANCELED` in + * the creation request. + * Only `EXCLUSIVE` trips support `intermediate_destinations`. + * When `vehicle_id` is set for a shared trip, you must supply + * the list of `Trip.vehicle_waypoints` to specify the order of the remaining + * waypoints for the vehicle, otherwise the waypoint order will be + * undetermined. + * When you specify `Trip.vehicle_waypoints`, the list must contain all + * the remaining waypoints of the vehicle's trips, with no extra waypoints. + * You must order these waypoints such that for a given trip, the pickup + * point is before intermediate destinations, and all intermediate + * destinations come before the drop-off point. An `EXCLUSIVE` trip's + * waypoints must not interleave with any other trips. + * The `trip_id`, `waypoint_type` and `location` fields are used, and all + * other TripWaypoint fields in `vehicle_waypoints` are ignored. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); + parent::__construct($data); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @return \Google\Maps\FleetEngine\V1\RequestHeader|null + */ + public function getHeader() + { + return $this->header; + } + + public function hasHeader() + { + return isset($this->header); + } + + public function clearHeader() + { + unset($this->header); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @param \Google\Maps\FleetEngine\V1\RequestHeader $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); + $this->header = $var; + + return $this; + } + + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Unique Trip ID. + * Subject to the following restrictions: + * * Must be a valid Unicode string. + * * Limited to a maximum length of 64 characters. + * * Normalized according to [Unicode Normalization Form C] + * (http://www.unicode.org/reports/tr15/). + * * May not contain any of the following ASCII characters: '/', ':', '?', + * ',', or '#'. + * + * Generated from protobuf field string trip_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTripId() + { + return $this->trip_id; + } + + /** + * Required. Unique Trip ID. + * Subject to the following restrictions: + * * Must be a valid Unicode string. + * * Limited to a maximum length of 64 characters. + * * Normalized according to [Unicode Normalization Form C] + * (http://www.unicode.org/reports/tr15/). + * * May not contain any of the following ASCII characters: '/', ':', '?', + * ',', or '#'. + * + * Generated from protobuf field string trip_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTripId($var) + { + GPBUtil::checkString($var, True); + $this->trip_id = $var; + + return $this; + } + + /** + * Required. Trip entity to create. + * When creating a Trip, the following fields are required: + * * `trip_type` + * * `pickup_point` + * The following fields are used if you provide them: + * * `number_of_passengers` + * * `vehicle_id` + * * `dropoff_point` + * * `intermediate_destinations` + * * `vehicle_waypoints` + * All other Trip fields are ignored. For example, all trips start with a + * `trip_status` of `NEW` even if you pass in a `trip_status` of `CANCELED` in + * the creation request. + * Only `EXCLUSIVE` trips support `intermediate_destinations`. + * When `vehicle_id` is set for a shared trip, you must supply + * the list of `Trip.vehicle_waypoints` to specify the order of the remaining + * waypoints for the vehicle, otherwise the waypoint order will be + * undetermined. + * When you specify `Trip.vehicle_waypoints`, the list must contain all + * the remaining waypoints of the vehicle's trips, with no extra waypoints. + * You must order these waypoints such that for a given trip, the pickup + * point is before intermediate destinations, and all intermediate + * destinations come before the drop-off point. An `EXCLUSIVE` trip's + * waypoints must not interleave with any other trips. + * The `trip_id`, `waypoint_type` and `location` fields are used, and all + * other TripWaypoint fields in `vehicle_waypoints` are ignored. + * + * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Maps\FleetEngine\V1\Trip|null + */ + public function getTrip() + { + return $this->trip; + } + + public function hasTrip() + { + return isset($this->trip); + } + + public function clearTrip() + { + unset($this->trip); + } + + /** + * Required. Trip entity to create. + * When creating a Trip, the following fields are required: + * * `trip_type` + * * `pickup_point` + * The following fields are used if you provide them: + * * `number_of_passengers` + * * `vehicle_id` + * * `dropoff_point` + * * `intermediate_destinations` + * * `vehicle_waypoints` + * All other Trip fields are ignored. For example, all trips start with a + * `trip_status` of `NEW` even if you pass in a `trip_status` of `CANCELED` in + * the creation request. + * Only `EXCLUSIVE` trips support `intermediate_destinations`. + * When `vehicle_id` is set for a shared trip, you must supply + * the list of `Trip.vehicle_waypoints` to specify the order of the remaining + * waypoints for the vehicle, otherwise the waypoint order will be + * undetermined. + * When you specify `Trip.vehicle_waypoints`, the list must contain all + * the remaining waypoints of the vehicle's trips, with no extra waypoints. + * You must order these waypoints such that for a given trip, the pickup + * point is before intermediate destinations, and all intermediate + * destinations come before the drop-off point. An `EXCLUSIVE` trip's + * waypoints must not interleave with any other trips. + * The `trip_id`, `waypoint_type` and `location` fields are used, and all + * other TripWaypoint fields in `vehicle_waypoints` are ignored. + * + * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Maps\FleetEngine\V1\Trip $var + * @return $this + */ + public function setTrip($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Trip::class); + $this->trip = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateVehicleRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateVehicleRequest.php new file mode 100644 index 000000000000..5cb20e991a11 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateVehicleRequest.php @@ -0,0 +1,313 @@ +maps.fleetengine.v1.CreateVehicleRequest + */ +class CreateVehicleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + */ + protected $header = null; + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Required. Unique Vehicle ID. + * Subject to the following restrictions: + * * Must be a valid Unicode string. + * * Limited to a maximum length of 64 characters. + * * Normalized according to [Unicode Normalization Form C] + * (http://www.unicode.org/reports/tr15/). + * * May not contain any of the following ASCII characters: '/', ':', '?', + * ',', or '#'. + * + * Generated from protobuf field string vehicle_id = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $vehicle_id = ''; + /** + * Required. The Vehicle entity to create. When creating a Vehicle, the + * following fields are required: + * * `vehicleState` + * * `supportedTripTypes` + * * `maximumCapacity` + * * `vehicleType` + * When creating a Vehicle, the following fields are ignored: + * * `name` + * * `currentTrips` + * * `availableCapacity` + * * `current_route_segment` + * * `current_route_segment_end_point` + * * `current_route_segment_version` + * * `current_route_segment_traffic` + * * `route` + * * `waypoints` + * * `waypoints_version` + * * `remaining_distance_meters` + * * `remaining_time_seconds` + * * `eta_to_next_waypoint` + * * `navigation_status` + * All other fields are optional and used if provided. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $vehicle = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\RequestHeader $header + * The standard Fleet Engine request header. + * @type string $parent + * Required. Must be in the format `providers/{provider}`. + * 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. + * @type string $vehicle_id + * Required. Unique Vehicle ID. + * Subject to the following restrictions: + * * Must be a valid Unicode string. + * * Limited to a maximum length of 64 characters. + * * Normalized according to [Unicode Normalization Form C] + * (http://www.unicode.org/reports/tr15/). + * * May not contain any of the following ASCII characters: '/', ':', '?', + * ',', or '#'. + * @type \Google\Maps\FleetEngine\V1\Vehicle $vehicle + * Required. The Vehicle entity to create. When creating a Vehicle, the + * following fields are required: + * * `vehicleState` + * * `supportedTripTypes` + * * `maximumCapacity` + * * `vehicleType` + * When creating a Vehicle, the following fields are ignored: + * * `name` + * * `currentTrips` + * * `availableCapacity` + * * `current_route_segment` + * * `current_route_segment_end_point` + * * `current_route_segment_version` + * * `current_route_segment_traffic` + * * `route` + * * `waypoints` + * * `waypoints_version` + * * `remaining_distance_meters` + * * `remaining_time_seconds` + * * `eta_to_next_waypoint` + * * `navigation_status` + * All other fields are optional and used if provided. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @return \Google\Maps\FleetEngine\V1\RequestHeader|null + */ + public function getHeader() + { + return $this->header; + } + + public function hasHeader() + { + return isset($this->header); + } + + public function clearHeader() + { + unset($this->header); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @param \Google\Maps\FleetEngine\V1\RequestHeader $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); + $this->header = $var; + + return $this; + } + + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Unique Vehicle ID. + * Subject to the following restrictions: + * * Must be a valid Unicode string. + * * Limited to a maximum length of 64 characters. + * * Normalized according to [Unicode Normalization Form C] + * (http://www.unicode.org/reports/tr15/). + * * May not contain any of the following ASCII characters: '/', ':', '?', + * ',', or '#'. + * + * Generated from protobuf field string vehicle_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getVehicleId() + { + return $this->vehicle_id; + } + + /** + * Required. Unique Vehicle ID. + * Subject to the following restrictions: + * * Must be a valid Unicode string. + * * Limited to a maximum length of 64 characters. + * * Normalized according to [Unicode Normalization Form C] + * (http://www.unicode.org/reports/tr15/). + * * May not contain any of the following ASCII characters: '/', ':', '?', + * ',', or '#'. + * + * Generated from protobuf field string vehicle_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setVehicleId($var) + { + GPBUtil::checkString($var, True); + $this->vehicle_id = $var; + + return $this; + } + + /** + * Required. The Vehicle entity to create. When creating a Vehicle, the + * following fields are required: + * * `vehicleState` + * * `supportedTripTypes` + * * `maximumCapacity` + * * `vehicleType` + * When creating a Vehicle, the following fields are ignored: + * * `name` + * * `currentTrips` + * * `availableCapacity` + * * `current_route_segment` + * * `current_route_segment_end_point` + * * `current_route_segment_version` + * * `current_route_segment_traffic` + * * `route` + * * `waypoints` + * * `waypoints_version` + * * `remaining_distance_meters` + * * `remaining_time_seconds` + * * `eta_to_next_waypoint` + * * `navigation_status` + * All other fields are optional and used if provided. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Maps\FleetEngine\V1\Vehicle|null + */ + public function getVehicle() + { + return $this->vehicle; + } + + public function hasVehicle() + { + return isset($this->vehicle); + } + + public function clearVehicle() + { + unset($this->vehicle); + } + + /** + * Required. The Vehicle entity to create. When creating a Vehicle, the + * following fields are required: + * * `vehicleState` + * * `supportedTripTypes` + * * `maximumCapacity` + * * `vehicleType` + * When creating a Vehicle, the following fields are ignored: + * * `name` + * * `currentTrips` + * * `availableCapacity` + * * `current_route_segment` + * * `current_route_segment_end_point` + * * `current_route_segment_version` + * * `current_route_segment_traffic` + * * `route` + * * `waypoints` + * * `waypoints_version` + * * `remaining_distance_meters` + * * `remaining_time_seconds` + * * `eta_to_next_waypoint` + * * `navigation_status` + * All other fields are optional and used if provided. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Maps\FleetEngine\V1\Vehicle $var + * @return $this + */ + public function setVehicle($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Vehicle::class); + $this->vehicle = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/DeviceSettings.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/DeviceSettings.php new file mode 100644 index 000000000000..7cd163b718f0 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/DeviceSettings.php @@ -0,0 +1,183 @@ +maps.fleetengine.v1.DeviceSettings + */ +class DeviceSettings extends \Google\Protobuf\Internal\Message +{ + /** + * How location features are set to behave on the device when battery saver is + * on. + * + * Generated from protobuf field .maps.fleetengine.v1.LocationPowerSaveMode location_power_save_mode = 1; + */ + protected $location_power_save_mode = 0; + /** + * Whether the device is currently in power save mode. + * + * Generated from protobuf field bool is_power_save_mode = 2; + */ + protected $is_power_save_mode = false; + /** + * Whether the device is in an interactive state. + * + * Generated from protobuf field bool is_interactive = 3; + */ + protected $is_interactive = false; + /** + * Information about the battery state. + * + * Generated from protobuf field .maps.fleetengine.v1.BatteryInfo battery_info = 4; + */ + protected $battery_info = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $location_power_save_mode + * How location features are set to behave on the device when battery saver is + * on. + * @type bool $is_power_save_mode + * Whether the device is currently in power save mode. + * @type bool $is_interactive + * Whether the device is in an interactive state. + * @type \Google\Maps\FleetEngine\V1\BatteryInfo $battery_info + * Information about the battery state. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); + parent::__construct($data); + } + + /** + * How location features are set to behave on the device when battery saver is + * on. + * + * Generated from protobuf field .maps.fleetengine.v1.LocationPowerSaveMode location_power_save_mode = 1; + * @return int + */ + public function getLocationPowerSaveMode() + { + return $this->location_power_save_mode; + } + + /** + * How location features are set to behave on the device when battery saver is + * on. + * + * Generated from protobuf field .maps.fleetengine.v1.LocationPowerSaveMode location_power_save_mode = 1; + * @param int $var + * @return $this + */ + public function setLocationPowerSaveMode($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\LocationPowerSaveMode::class); + $this->location_power_save_mode = $var; + + return $this; + } + + /** + * Whether the device is currently in power save mode. + * + * Generated from protobuf field bool is_power_save_mode = 2; + * @return bool + */ + public function getIsPowerSaveMode() + { + return $this->is_power_save_mode; + } + + /** + * Whether the device is currently in power save mode. + * + * Generated from protobuf field bool is_power_save_mode = 2; + * @param bool $var + * @return $this + */ + public function setIsPowerSaveMode($var) + { + GPBUtil::checkBool($var); + $this->is_power_save_mode = $var; + + return $this; + } + + /** + * Whether the device is in an interactive state. + * + * Generated from protobuf field bool is_interactive = 3; + * @return bool + */ + public function getIsInteractive() + { + return $this->is_interactive; + } + + /** + * Whether the device is in an interactive state. + * + * Generated from protobuf field bool is_interactive = 3; + * @param bool $var + * @return $this + */ + public function setIsInteractive($var) + { + GPBUtil::checkBool($var); + $this->is_interactive = $var; + + return $this; + } + + /** + * Information about the battery state. + * + * Generated from protobuf field .maps.fleetengine.v1.BatteryInfo battery_info = 4; + * @return \Google\Maps\FleetEngine\V1\BatteryInfo|null + */ + public function getBatteryInfo() + { + return $this->battery_info; + } + + public function hasBatteryInfo() + { + return isset($this->battery_info); + } + + public function clearBatteryInfo() + { + unset($this->battery_info); + } + + /** + * Information about the battery state. + * + * Generated from protobuf field .maps.fleetengine.v1.BatteryInfo battery_info = 4; + * @param \Google\Maps\FleetEngine\V1\BatteryInfo $var + * @return $this + */ + public function setBatteryInfo($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\BatteryInfo::class); + $this->battery_info = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetTripRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetTripRequest.php new file mode 100644 index 000000000000..471812e6a653 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetTripRequest.php @@ -0,0 +1,439 @@ +maps.fleetengine.v1.GetTripRequest + */ +class GetTripRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + */ + protected $header = null; + /** + * Required. Must be in the format `providers/{provider}/trips/{trip}`. + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * The subset of Trip fields that should be returned and their interpretation. + * + * Generated from protobuf field .maps.fleetengine.v1.TripView view = 11; + */ + protected $view = 0; + /** + * Indicates the minimum timestamp (exclusive) for which `Trip.route` or + * `Trip.current_route_segment` data are retrieved. If route data are + * unchanged since this timestamp, the route field is not set in the response. + * If a minimum is unspecified, the route data are always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 6; + */ + protected $current_route_segment_version = null; + /** + * Indicates the minimum timestamp (exclusive) for which + * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this + * timestamp, the `remaining_waypoints` are not set in the response. If this + * field is unspecified, `remaining_waypoints` is always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 7; + */ + protected $remaining_waypoints_version = null; + /** + * The returned current route format, `LAT_LNG_LIST_TYPE` (in `Trip.route`), + * or `ENCODED_POLYLINE_TYPE` (in `Trip.current_route_segment`). The default + * is `LAT_LNG_LIST_TYPE`. + * + * Generated from protobuf field .maps.fleetengine.v1.PolylineFormatType route_format_type = 8; + */ + protected $route_format_type = 0; + /** + * Indicates the minimum timestamp (exclusive) for which + * `Trip.current_route_segment_traffic` is retrieved. If traffic data are + * unchanged since this timestamp, the `current_route_segment_traffic` field + * is not set in the response. If a minimum is unspecified, the traffic data + * are always retrieved. Note that traffic is only available for On-Demand + * Rides and Deliveries Solution customers. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 9; + */ + protected $current_route_segment_traffic_version = null; + /** + * Indicates the minimum timestamp (exclusive) for which + * `Trip.remaining_waypoints.traffic_to_waypoint` and + * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved. If data are + * unchanged since this timestamp, the fields above are + * not set in the response. If `remaining_waypoints_route_version` is + * unspecified, traffic and path are always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 10; + */ + protected $remaining_waypoints_route_version = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\RequestHeader $header + * The standard Fleet Engine request header. + * @type string $name + * Required. Must be in the format `providers/{provider}/trips/{trip}`. + * 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. + * @type int $view + * The subset of Trip fields that should be returned and their interpretation. + * @type \Google\Protobuf\Timestamp $current_route_segment_version + * Indicates the minimum timestamp (exclusive) for which `Trip.route` or + * `Trip.current_route_segment` data are retrieved. If route data are + * unchanged since this timestamp, the route field is not set in the response. + * If a minimum is unspecified, the route data are always retrieved. + * @type \Google\Protobuf\Timestamp $remaining_waypoints_version + * Indicates the minimum timestamp (exclusive) for which + * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this + * timestamp, the `remaining_waypoints` are not set in the response. If this + * field is unspecified, `remaining_waypoints` is always retrieved. + * @type int $route_format_type + * The returned current route format, `LAT_LNG_LIST_TYPE` (in `Trip.route`), + * or `ENCODED_POLYLINE_TYPE` (in `Trip.current_route_segment`). The default + * is `LAT_LNG_LIST_TYPE`. + * @type \Google\Protobuf\Timestamp $current_route_segment_traffic_version + * Indicates the minimum timestamp (exclusive) for which + * `Trip.current_route_segment_traffic` is retrieved. If traffic data are + * unchanged since this timestamp, the `current_route_segment_traffic` field + * is not set in the response. If a minimum is unspecified, the traffic data + * are always retrieved. Note that traffic is only available for On-Demand + * Rides and Deliveries Solution customers. + * @type \Google\Protobuf\Timestamp $remaining_waypoints_route_version + * Indicates the minimum timestamp (exclusive) for which + * `Trip.remaining_waypoints.traffic_to_waypoint` and + * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved. If data are + * unchanged since this timestamp, the fields above are + * not set in the response. If `remaining_waypoints_route_version` is + * unspecified, traffic and path are always retrieved. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); + parent::__construct($data); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @return \Google\Maps\FleetEngine\V1\RequestHeader|null + */ + public function getHeader() + { + return $this->header; + } + + public function hasHeader() + { + return isset($this->header); + } + + public function clearHeader() + { + unset($this->header); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @param \Google\Maps\FleetEngine\V1\RequestHeader $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); + $this->header = $var; + + return $this; + } + + /** + * Required. Must be in the format `providers/{provider}/trips/{trip}`. + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Must be in the format `providers/{provider}/trips/{trip}`. + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The subset of Trip fields that should be returned and their interpretation. + * + * Generated from protobuf field .maps.fleetengine.v1.TripView view = 11; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * The subset of Trip fields that should be returned and their interpretation. + * + * Generated from protobuf field .maps.fleetengine.v1.TripView view = 11; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\TripView::class); + $this->view = $var; + + return $this; + } + + /** + * Indicates the minimum timestamp (exclusive) for which `Trip.route` or + * `Trip.current_route_segment` data are retrieved. If route data are + * unchanged since this timestamp, the route field is not set in the response. + * If a minimum is unspecified, the route data are always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 6; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCurrentRouteSegmentVersion() + { + return $this->current_route_segment_version; + } + + public function hasCurrentRouteSegmentVersion() + { + return isset($this->current_route_segment_version); + } + + public function clearCurrentRouteSegmentVersion() + { + unset($this->current_route_segment_version); + } + + /** + * Indicates the minimum timestamp (exclusive) for which `Trip.route` or + * `Trip.current_route_segment` data are retrieved. If route data are + * unchanged since this timestamp, the route field is not set in the response. + * If a minimum is unspecified, the route data are always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 6; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCurrentRouteSegmentVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->current_route_segment_version = $var; + + return $this; + } + + /** + * Indicates the minimum timestamp (exclusive) for which + * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this + * timestamp, the `remaining_waypoints` are not set in the response. If this + * field is unspecified, `remaining_waypoints` is always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 7; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRemainingWaypointsVersion() + { + return $this->remaining_waypoints_version; + } + + public function hasRemainingWaypointsVersion() + { + return isset($this->remaining_waypoints_version); + } + + public function clearRemainingWaypointsVersion() + { + unset($this->remaining_waypoints_version); + } + + /** + * Indicates the minimum timestamp (exclusive) for which + * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this + * timestamp, the `remaining_waypoints` are not set in the response. If this + * field is unspecified, `remaining_waypoints` is always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 7; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRemainingWaypointsVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->remaining_waypoints_version = $var; + + return $this; + } + + /** + * The returned current route format, `LAT_LNG_LIST_TYPE` (in `Trip.route`), + * or `ENCODED_POLYLINE_TYPE` (in `Trip.current_route_segment`). The default + * is `LAT_LNG_LIST_TYPE`. + * + * Generated from protobuf field .maps.fleetengine.v1.PolylineFormatType route_format_type = 8; + * @return int + */ + public function getRouteFormatType() + { + return $this->route_format_type; + } + + /** + * The returned current route format, `LAT_LNG_LIST_TYPE` (in `Trip.route`), + * or `ENCODED_POLYLINE_TYPE` (in `Trip.current_route_segment`). The default + * is `LAT_LNG_LIST_TYPE`. + * + * Generated from protobuf field .maps.fleetengine.v1.PolylineFormatType route_format_type = 8; + * @param int $var + * @return $this + */ + public function setRouteFormatType($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\PolylineFormatType::class); + $this->route_format_type = $var; + + return $this; + } + + /** + * Indicates the minimum timestamp (exclusive) for which + * `Trip.current_route_segment_traffic` is retrieved. If traffic data are + * unchanged since this timestamp, the `current_route_segment_traffic` field + * is not set in the response. If a minimum is unspecified, the traffic data + * are always retrieved. Note that traffic is only available for On-Demand + * Rides and Deliveries Solution customers. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 9; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCurrentRouteSegmentTrafficVersion() + { + return $this->current_route_segment_traffic_version; + } + + public function hasCurrentRouteSegmentTrafficVersion() + { + return isset($this->current_route_segment_traffic_version); + } + + public function clearCurrentRouteSegmentTrafficVersion() + { + unset($this->current_route_segment_traffic_version); + } + + /** + * Indicates the minimum timestamp (exclusive) for which + * `Trip.current_route_segment_traffic` is retrieved. If traffic data are + * unchanged since this timestamp, the `current_route_segment_traffic` field + * is not set in the response. If a minimum is unspecified, the traffic data + * are always retrieved. Note that traffic is only available for On-Demand + * Rides and Deliveries Solution customers. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 9; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCurrentRouteSegmentTrafficVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->current_route_segment_traffic_version = $var; + + return $this; + } + + /** + * Indicates the minimum timestamp (exclusive) for which + * `Trip.remaining_waypoints.traffic_to_waypoint` and + * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved. If data are + * unchanged since this timestamp, the fields above are + * not set in the response. If `remaining_waypoints_route_version` is + * unspecified, traffic and path are always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 10; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRemainingWaypointsRouteVersion() + { + return $this->remaining_waypoints_route_version; + } + + public function hasRemainingWaypointsRouteVersion() + { + return isset($this->remaining_waypoints_route_version); + } + + public function clearRemainingWaypointsRouteVersion() + { + unset($this->remaining_waypoints_route_version); + } + + /** + * Indicates the minimum timestamp (exclusive) for which + * `Trip.remaining_waypoints.traffic_to_waypoint` and + * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved. If data are + * unchanged since this timestamp, the fields above are + * not set in the response. If `remaining_waypoints_route_version` is + * unspecified, traffic and path are always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 10; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRemainingWaypointsRouteVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->remaining_waypoints_route_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetVehicleRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetVehicleRequest.php new file mode 100644 index 000000000000..90b14b5176c4 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetVehicleRequest.php @@ -0,0 +1,243 @@ +maps.fleetengine.v1.GetVehicleRequest + */ +class GetVehicleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + */ + protected $header = null; + /** + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Indicates the minimum timestamp (exclusive) for which + * `Vehicle.current_route_segment` is retrieved. + * If the route is unchanged since this timestamp, the `current_route_segment` + * field is not set in the response. If a minimum is unspecified, the + * `current_route_segment` is always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 4; + */ + protected $current_route_segment_version = null; + /** + * Indicates the minimum timestamp (exclusive) for which `Vehicle.waypoints` + * data is retrieved. If the waypoints are unchanged since this timestamp, the + * `vehicle.waypoints` data is not set in the response. If this field is + * unspecified, `vehicle.waypoints` is always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 5; + */ + protected $waypoints_version = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\RequestHeader $header + * The standard Fleet Engine request header. + * @type string $name + * 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. + * @type \Google\Protobuf\Timestamp $current_route_segment_version + * Indicates the minimum timestamp (exclusive) for which + * `Vehicle.current_route_segment` is retrieved. + * If the route is unchanged since this timestamp, the `current_route_segment` + * field is not set in the response. If a minimum is unspecified, the + * `current_route_segment` is always retrieved. + * @type \Google\Protobuf\Timestamp $waypoints_version + * Indicates the minimum timestamp (exclusive) for which `Vehicle.waypoints` + * data is retrieved. If the waypoints are unchanged since this timestamp, the + * `vehicle.waypoints` data is not set in the response. If this field is + * unspecified, `vehicle.waypoints` is always retrieved. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @return \Google\Maps\FleetEngine\V1\RequestHeader|null + */ + public function getHeader() + { + return $this->header; + } + + public function hasHeader() + { + return isset($this->header); + } + + public function clearHeader() + { + unset($this->header); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @param \Google\Maps\FleetEngine\V1\RequestHeader $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); + $this->header = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Indicates the minimum timestamp (exclusive) for which + * `Vehicle.current_route_segment` is retrieved. + * If the route is unchanged since this timestamp, the `current_route_segment` + * field is not set in the response. If a minimum is unspecified, the + * `current_route_segment` is always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 4; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCurrentRouteSegmentVersion() + { + return $this->current_route_segment_version; + } + + public function hasCurrentRouteSegmentVersion() + { + return isset($this->current_route_segment_version); + } + + public function clearCurrentRouteSegmentVersion() + { + unset($this->current_route_segment_version); + } + + /** + * Indicates the minimum timestamp (exclusive) for which + * `Vehicle.current_route_segment` is retrieved. + * If the route is unchanged since this timestamp, the `current_route_segment` + * field is not set in the response. If a minimum is unspecified, the + * `current_route_segment` is always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 4; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCurrentRouteSegmentVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->current_route_segment_version = $var; + + return $this; + } + + /** + * Indicates the minimum timestamp (exclusive) for which `Vehicle.waypoints` + * data is retrieved. If the waypoints are unchanged since this timestamp, the + * `vehicle.waypoints` data is not set in the response. If this field is + * unspecified, `vehicle.waypoints` is always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 5; + * @return \Google\Protobuf\Timestamp|null + */ + public function getWaypointsVersion() + { + return $this->waypoints_version; + } + + public function hasWaypointsVersion() + { + return isset($this->waypoints_version); + } + + public function clearWaypointsVersion() + { + unset($this->waypoints_version); + } + + /** + * Indicates the minimum timestamp (exclusive) for which `Vehicle.waypoints` + * data is retrieved. If the waypoints are unchanged since this timestamp, the + * `vehicle.waypoints` data is not set in the response. If this field is + * unspecified, `vehicle.waypoints` is always retrieved. + * + * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 5; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setWaypointsVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->waypoints_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LicensePlate.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LicensePlate.php new file mode 100644 index 000000000000..8d2fe48298c7 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LicensePlate.php @@ -0,0 +1,123 @@ +maps.fleetengine.v1.LicensePlate + */ +class LicensePlate extends \Google\Protobuf\Internal\Message +{ + /** + * Required. CLDR Country/Region Code. For example, `US` for United States, + * or `IN` for India. + * + * Generated from protobuf field string country_code = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $country_code = ''; + /** + * The last digit of the license plate or "-1" to denote no numeric value + * is present in the license plate. + * * "ABC 1234" -> "4" + * * "AB 123 CD" -> "3" + * * "ABCDEF" -> "-1" + * + * Generated from protobuf field string last_character = 2; + */ + protected $last_character = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $country_code + * Required. CLDR Country/Region Code. For example, `US` for United States, + * or `IN` for India. + * @type string $last_character + * The last digit of the license plate or "-1" to denote no numeric value + * is present in the license plate. + * * "ABC 1234" -> "4" + * * "AB 123 CD" -> "3" + * * "ABCDEF" -> "-1" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); + parent::__construct($data); + } + + /** + * Required. CLDR Country/Region Code. For example, `US` for United States, + * or `IN` for India. + * + * Generated from protobuf field string country_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getCountryCode() + { + return $this->country_code; + } + + /** + * Required. CLDR Country/Region Code. For example, `US` for United States, + * or `IN` for India. + * + * Generated from protobuf field string country_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setCountryCode($var) + { + GPBUtil::checkString($var, True); + $this->country_code = $var; + + return $this; + } + + /** + * The last digit of the license plate or "-1" to denote no numeric value + * is present in the license plate. + * * "ABC 1234" -> "4" + * * "AB 123 CD" -> "3" + * * "ABCDEF" -> "-1" + * + * Generated from protobuf field string last_character = 2; + * @return string + */ + public function getLastCharacter() + { + return $this->last_character; + } + + /** + * The last digit of the license plate or "-1" to denote no numeric value + * is present in the license plate. + * * "ABC 1234" -> "4" + * * "AB 123 CD" -> "3" + * * "ABCDEF" -> "-1" + * + * Generated from protobuf field string last_character = 2; + * @param string $var + * @return $this + */ + public function setLastCharacter($var) + { + GPBUtil::checkString($var, True); + $this->last_character = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesRequest.php new file mode 100644 index 000000000000..e9849fa89a77 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesRequest.php @@ -0,0 +1,926 @@ +maps.fleetengine.v1.ListVehiclesRequest + */ +class ListVehiclesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 12; + */ + protected $header = null; + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * The maximum number of vehicles to return. + * Default value: 100. + * + * Generated from protobuf field int32 page_size = 3; + */ + protected $page_size = 0; + /** + * The value of the `next_page_token` provided by a previous call to + * `ListVehicles` so that you can paginate through groups of vehicles. The + * value is undefined if the filter criteria of the request is not the same as + * the filter criteria for the previous call to `ListVehicles`. + * + * Generated from protobuf field string page_token = 4; + */ + protected $page_token = ''; + /** + * Specifies the required minimum capacity of the vehicle. All vehicles + * returned will have a `maximum_capacity` greater than or equal to this + * value. If set, must be greater or equal to 0. + * + * Generated from protobuf field .google.protobuf.Int32Value minimum_capacity = 6; + */ + protected $minimum_capacity = null; + /** + * Restricts the response to vehicles that support at least one of the + * specified trip types. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 7; + */ + private $trip_types; + /** + * Restricts the response to vehicles that have sent location updates to Fleet + * Engine within the specified duration. Stationary vehicles still + * transmitting their locations are not considered stale. If present, must be + * a valid positive duration. + * + * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 8; + */ + protected $maximum_staleness = null; + /** + * Required. Restricts the response to vehicles with one of the specified type + * categories. `UNKNOWN` is not allowed. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType.Category vehicle_type_categories = 9 [(.google.api.field_behavior) = REQUIRED]; + */ + private $vehicle_type_categories; + /** + * Callers can form complex logical operations using any combination of the + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attribute_sets` fields. + * `required_attributes` is a list; `required_one_of_attributes` uses a + * message which allows a list of lists. In combination, the two fields allow + * the composition of this expression: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR + * ...) + * AND + * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR + * ...) + * ``` + * Restricts the response to vehicles with the specified attributes. This + * field is a conjunction/AND operation. A max of 50 required_attributes is + * allowed. This matches the maximum number of attributes allowed on a + * vehicle. Each repeated string should be of the format "key:value". + * + * Generated from protobuf field repeated string required_attributes = 10; + */ + private $required_attributes; + /** + * Restricts the response to vehicles with at least one of the specified + * attributes in each `VehicleAttributeList`. Within each list, a vehicle must + * match at least one of the attributes. This field is an inclusive + * disjunction/OR operation in each `VehicleAttributeList` and a + * conjunction/AND operation across the collection of `VehicleAttributeList`. + * Each repeated string should be of the format + * "key1:value1|key2:value2|key3:value3". + * + * Generated from protobuf field repeated string required_one_of_attributes = 13; + */ + private $required_one_of_attributes; + /** + * `required_one_of_attribute_sets` provides additional functionality. + * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` + * uses a message which allows a list of lists, allowing expressions such as + * this one: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * ( + * (required_one_of_attribute_sets[0][0] AND + * required_one_of_attribute_sets[0][1] AND + * ...) + * OR + * (required_one_of_attribute_sets[1][0] AND + * required_one_of_attribute_sets[1][1] AND + * ...) + * ) + * ``` + * Restricts the response to vehicles that match all the attributes in a + * `VehicleAttributeList`. Within each list, a vehicle must match all of the + * attributes. This field is a conjunction/AND operation in each + * `VehicleAttributeList` and inclusive disjunction/OR operation across the + * collection of `VehicleAttributeList`. Each repeated string should be of the + * format "key1:value1|key2:value2|key3:value3". + * + * Generated from protobuf field repeated string required_one_of_attribute_sets = 15; + */ + private $required_one_of_attribute_sets; + /** + * Restricts the response to vehicles that have this vehicle state. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 11; + */ + protected $vehicle_state = 0; + /** + * Only return the vehicles with current trip(s). + * + * Generated from protobuf field bool on_trip_only = 14; + */ + protected $on_trip_only = false; + /** + * Optional. A filter query to apply when listing vehicles. See + * http://aip.dev/160 for examples of the filter syntax. + * This field is designed to replace the `required_attributes`, + * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. + * If a non-empty value is specified here, the following fields must be empty: + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attributes_sets`. + * This filter functions as an AND clause with other constraints, + * such as `vehicle_state` or `on_trip_only`. + * Note that the only queries supported are on vehicle attributes (for + * example, `attributes. = ` or `attributes. = AND + * attributes. = `). The maximum number of restrictions allowed + * in a filter query is 50. + * Also, all attributes are stored as strings, so the only supported + * comparisons against attributes are string comparisons. In order to compare + * against number or boolean values, the values must be explicitly quoted to + * be treated as strings (for example, `attributes. = "10"` or + * `attributes. = "true"`). + * + * Generated from protobuf field string filter = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. A filter that limits the vehicles returned to those whose last + * known location was in the rectangular area defined by the viewport. + * + * Generated from protobuf field .google.geo.type.Viewport viewport = 17 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $viewport = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\RequestHeader $header + * The standard Fleet Engine request header. + * @type string $parent + * Required. Must be in the format `providers/{provider}`. + * 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. + * @type int $page_size + * The maximum number of vehicles to return. + * Default value: 100. + * @type string $page_token + * The value of the `next_page_token` provided by a previous call to + * `ListVehicles` so that you can paginate through groups of vehicles. The + * value is undefined if the filter criteria of the request is not the same as + * the filter criteria for the previous call to `ListVehicles`. + * @type \Google\Protobuf\Int32Value $minimum_capacity + * Specifies the required minimum capacity of the vehicle. All vehicles + * returned will have a `maximum_capacity` greater than or equal to this + * value. If set, must be greater or equal to 0. + * @type array|\Google\Protobuf\Internal\RepeatedField $trip_types + * Restricts the response to vehicles that support at least one of the + * specified trip types. + * @type \Google\Protobuf\Duration $maximum_staleness + * Restricts the response to vehicles that have sent location updates to Fleet + * Engine within the specified duration. Stationary vehicles still + * transmitting their locations are not considered stale. If present, must be + * a valid positive duration. + * @type array|\Google\Protobuf\Internal\RepeatedField $vehicle_type_categories + * Required. Restricts the response to vehicles with one of the specified type + * categories. `UNKNOWN` is not allowed. + * @type array|\Google\Protobuf\Internal\RepeatedField $required_attributes + * Callers can form complex logical operations using any combination of the + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attribute_sets` fields. + * `required_attributes` is a list; `required_one_of_attributes` uses a + * message which allows a list of lists. In combination, the two fields allow + * the composition of this expression: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR + * ...) + * AND + * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR + * ...) + * ``` + * Restricts the response to vehicles with the specified attributes. This + * field is a conjunction/AND operation. A max of 50 required_attributes is + * allowed. This matches the maximum number of attributes allowed on a + * vehicle. Each repeated string should be of the format "key:value". + * @type array|\Google\Protobuf\Internal\RepeatedField $required_one_of_attributes + * Restricts the response to vehicles with at least one of the specified + * attributes in each `VehicleAttributeList`. Within each list, a vehicle must + * match at least one of the attributes. This field is an inclusive + * disjunction/OR operation in each `VehicleAttributeList` and a + * conjunction/AND operation across the collection of `VehicleAttributeList`. + * Each repeated string should be of the format + * "key1:value1|key2:value2|key3:value3". + * @type array|\Google\Protobuf\Internal\RepeatedField $required_one_of_attribute_sets + * `required_one_of_attribute_sets` provides additional functionality. + * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` + * uses a message which allows a list of lists, allowing expressions such as + * this one: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * ( + * (required_one_of_attribute_sets[0][0] AND + * required_one_of_attribute_sets[0][1] AND + * ...) + * OR + * (required_one_of_attribute_sets[1][0] AND + * required_one_of_attribute_sets[1][1] AND + * ...) + * ) + * ``` + * Restricts the response to vehicles that match all the attributes in a + * `VehicleAttributeList`. Within each list, a vehicle must match all of the + * attributes. This field is a conjunction/AND operation in each + * `VehicleAttributeList` and inclusive disjunction/OR operation across the + * collection of `VehicleAttributeList`. Each repeated string should be of the + * format "key1:value1|key2:value2|key3:value3". + * @type int $vehicle_state + * Restricts the response to vehicles that have this vehicle state. + * @type bool $on_trip_only + * Only return the vehicles with current trip(s). + * @type string $filter + * Optional. A filter query to apply when listing vehicles. See + * http://aip.dev/160 for examples of the filter syntax. + * This field is designed to replace the `required_attributes`, + * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. + * If a non-empty value is specified here, the following fields must be empty: + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attributes_sets`. + * This filter functions as an AND clause with other constraints, + * such as `vehicle_state` or `on_trip_only`. + * Note that the only queries supported are on vehicle attributes (for + * example, `attributes. = ` or `attributes. = AND + * attributes. = `). The maximum number of restrictions allowed + * in a filter query is 50. + * Also, all attributes are stored as strings, so the only supported + * comparisons against attributes are string comparisons. In order to compare + * against number or boolean values, the values must be explicitly quoted to + * be treated as strings (for example, `attributes. = "10"` or + * `attributes. = "true"`). + * @type \Google\Geo\Type\Viewport $viewport + * Optional. A filter that limits the vehicles returned to those whose last + * known location was in the rectangular area defined by the viewport. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 12; + * @return \Google\Maps\FleetEngine\V1\RequestHeader|null + */ + public function getHeader() + { + return $this->header; + } + + public function hasHeader() + { + return isset($this->header); + } + + public function clearHeader() + { + unset($this->header); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 12; + * @param \Google\Maps\FleetEngine\V1\RequestHeader $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); + $this->header = $var; + + return $this; + } + + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of vehicles to return. + * Default value: 100. + * + * Generated from protobuf field int32 page_size = 3; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of vehicles to return. + * Default value: 100. + * + * Generated from protobuf field int32 page_size = 3; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * The value of the `next_page_token` provided by a previous call to + * `ListVehicles` so that you can paginate through groups of vehicles. The + * value is undefined if the filter criteria of the request is not the same as + * the filter criteria for the previous call to `ListVehicles`. + * + * Generated from protobuf field string page_token = 4; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The value of the `next_page_token` provided by a previous call to + * `ListVehicles` so that you can paginate through groups of vehicles. The + * value is undefined if the filter criteria of the request is not the same as + * the filter criteria for the previous call to `ListVehicles`. + * + * Generated from protobuf field string page_token = 4; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Specifies the required minimum capacity of the vehicle. All vehicles + * returned will have a `maximum_capacity` greater than or equal to this + * value. If set, must be greater or equal to 0. + * + * Generated from protobuf field .google.protobuf.Int32Value minimum_capacity = 6; + * @return \Google\Protobuf\Int32Value|null + */ + public function getMinimumCapacity() + { + return $this->minimum_capacity; + } + + public function hasMinimumCapacity() + { + return isset($this->minimum_capacity); + } + + public function clearMinimumCapacity() + { + unset($this->minimum_capacity); + } + + /** + * Returns the unboxed value from getMinimumCapacity() + + * Specifies the required minimum capacity of the vehicle. All vehicles + * returned will have a `maximum_capacity` greater than or equal to this + * value. If set, must be greater or equal to 0. + * + * Generated from protobuf field .google.protobuf.Int32Value minimum_capacity = 6; + * @return int|null + */ + public function getMinimumCapacityUnwrapped() + { + return $this->readWrapperValue("minimum_capacity"); + } + + /** + * Specifies the required minimum capacity of the vehicle. All vehicles + * returned will have a `maximum_capacity` greater than or equal to this + * value. If set, must be greater or equal to 0. + * + * Generated from protobuf field .google.protobuf.Int32Value minimum_capacity = 6; + * @param \Google\Protobuf\Int32Value $var + * @return $this + */ + public function setMinimumCapacity($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->minimum_capacity = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * Specifies the required minimum capacity of the vehicle. All vehicles + * returned will have a `maximum_capacity` greater than or equal to this + * value. If set, must be greater or equal to 0. + * + * Generated from protobuf field .google.protobuf.Int32Value minimum_capacity = 6; + * @param int|null $var + * @return $this + */ + public function setMinimumCapacityUnwrapped($var) + { + $this->writeWrapperValue("minimum_capacity", $var); + return $this;} + + /** + * Restricts the response to vehicles that support at least one of the + * specified trip types. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 7; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTripTypes() + { + return $this->trip_types; + } + + /** + * Restricts the response to vehicles that support at least one of the + * specified trip types. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 7; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTripTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Maps\FleetEngine\V1\TripType::class); + $this->trip_types = $arr; + + return $this; + } + + /** + * Restricts the response to vehicles that have sent location updates to Fleet + * Engine within the specified duration. Stationary vehicles still + * transmitting their locations are not considered stale. If present, must be + * a valid positive duration. + * + * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 8; + * @return \Google\Protobuf\Duration|null + */ + public function getMaximumStaleness() + { + return $this->maximum_staleness; + } + + public function hasMaximumStaleness() + { + return isset($this->maximum_staleness); + } + + public function clearMaximumStaleness() + { + unset($this->maximum_staleness); + } + + /** + * Restricts the response to vehicles that have sent location updates to Fleet + * Engine within the specified duration. Stationary vehicles still + * transmitting their locations are not considered stale. If present, must be + * a valid positive duration. + * + * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 8; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setMaximumStaleness($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->maximum_staleness = $var; + + return $this; + } + + /** + * Required. Restricts the response to vehicles with one of the specified type + * categories. `UNKNOWN` is not allowed. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType.Category vehicle_type_categories = 9 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getVehicleTypeCategories() + { + return $this->vehicle_type_categories; + } + + /** + * Required. Restricts the response to vehicles with one of the specified type + * categories. `UNKNOWN` is not allowed. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType.Category vehicle_type_categories = 9 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setVehicleTypeCategories($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Maps\FleetEngine\V1\Vehicle\VehicleType\Category::class); + $this->vehicle_type_categories = $arr; + + return $this; + } + + /** + * Callers can form complex logical operations using any combination of the + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attribute_sets` fields. + * `required_attributes` is a list; `required_one_of_attributes` uses a + * message which allows a list of lists. In combination, the two fields allow + * the composition of this expression: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR + * ...) + * AND + * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR + * ...) + * ``` + * Restricts the response to vehicles with the specified attributes. This + * field is a conjunction/AND operation. A max of 50 required_attributes is + * allowed. This matches the maximum number of attributes allowed on a + * vehicle. Each repeated string should be of the format "key:value". + * + * Generated from protobuf field repeated string required_attributes = 10; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequiredAttributes() + { + return $this->required_attributes; + } + + /** + * Callers can form complex logical operations using any combination of the + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attribute_sets` fields. + * `required_attributes` is a list; `required_one_of_attributes` uses a + * message which allows a list of lists. In combination, the two fields allow + * the composition of this expression: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR + * ...) + * AND + * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR + * ...) + * ``` + * Restricts the response to vehicles with the specified attributes. This + * field is a conjunction/AND operation. A max of 50 required_attributes is + * allowed. This matches the maximum number of attributes allowed on a + * vehicle. Each repeated string should be of the format "key:value". + * + * Generated from protobuf field repeated string required_attributes = 10; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequiredAttributes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->required_attributes = $arr; + + return $this; + } + + /** + * Restricts the response to vehicles with at least one of the specified + * attributes in each `VehicleAttributeList`. Within each list, a vehicle must + * match at least one of the attributes. This field is an inclusive + * disjunction/OR operation in each `VehicleAttributeList` and a + * conjunction/AND operation across the collection of `VehicleAttributeList`. + * Each repeated string should be of the format + * "key1:value1|key2:value2|key3:value3". + * + * Generated from protobuf field repeated string required_one_of_attributes = 13; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequiredOneOfAttributes() + { + return $this->required_one_of_attributes; + } + + /** + * Restricts the response to vehicles with at least one of the specified + * attributes in each `VehicleAttributeList`. Within each list, a vehicle must + * match at least one of the attributes. This field is an inclusive + * disjunction/OR operation in each `VehicleAttributeList` and a + * conjunction/AND operation across the collection of `VehicleAttributeList`. + * Each repeated string should be of the format + * "key1:value1|key2:value2|key3:value3". + * + * Generated from protobuf field repeated string required_one_of_attributes = 13; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequiredOneOfAttributes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->required_one_of_attributes = $arr; + + return $this; + } + + /** + * `required_one_of_attribute_sets` provides additional functionality. + * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` + * uses a message which allows a list of lists, allowing expressions such as + * this one: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * ( + * (required_one_of_attribute_sets[0][0] AND + * required_one_of_attribute_sets[0][1] AND + * ...) + * OR + * (required_one_of_attribute_sets[1][0] AND + * required_one_of_attribute_sets[1][1] AND + * ...) + * ) + * ``` + * Restricts the response to vehicles that match all the attributes in a + * `VehicleAttributeList`. Within each list, a vehicle must match all of the + * attributes. This field is a conjunction/AND operation in each + * `VehicleAttributeList` and inclusive disjunction/OR operation across the + * collection of `VehicleAttributeList`. Each repeated string should be of the + * format "key1:value1|key2:value2|key3:value3". + * + * Generated from protobuf field repeated string required_one_of_attribute_sets = 15; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequiredOneOfAttributeSets() + { + return $this->required_one_of_attribute_sets; + } + + /** + * `required_one_of_attribute_sets` provides additional functionality. + * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` + * uses a message which allows a list of lists, allowing expressions such as + * this one: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * ( + * (required_one_of_attribute_sets[0][0] AND + * required_one_of_attribute_sets[0][1] AND + * ...) + * OR + * (required_one_of_attribute_sets[1][0] AND + * required_one_of_attribute_sets[1][1] AND + * ...) + * ) + * ``` + * Restricts the response to vehicles that match all the attributes in a + * `VehicleAttributeList`. Within each list, a vehicle must match all of the + * attributes. This field is a conjunction/AND operation in each + * `VehicleAttributeList` and inclusive disjunction/OR operation across the + * collection of `VehicleAttributeList`. Each repeated string should be of the + * format "key1:value1|key2:value2|key3:value3". + * + * Generated from protobuf field repeated string required_one_of_attribute_sets = 15; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequiredOneOfAttributeSets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->required_one_of_attribute_sets = $arr; + + return $this; + } + + /** + * Restricts the response to vehicles that have this vehicle state. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 11; + * @return int + */ + public function getVehicleState() + { + return $this->vehicle_state; + } + + /** + * Restricts the response to vehicles that have this vehicle state. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 11; + * @param int $var + * @return $this + */ + public function setVehicleState($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\VehicleState::class); + $this->vehicle_state = $var; + + return $this; + } + + /** + * Only return the vehicles with current trip(s). + * + * Generated from protobuf field bool on_trip_only = 14; + * @return bool + */ + public function getOnTripOnly() + { + return $this->on_trip_only; + } + + /** + * Only return the vehicles with current trip(s). + * + * Generated from protobuf field bool on_trip_only = 14; + * @param bool $var + * @return $this + */ + public function setOnTripOnly($var) + { + GPBUtil::checkBool($var); + $this->on_trip_only = $var; + + return $this; + } + + /** + * Optional. A filter query to apply when listing vehicles. See + * http://aip.dev/160 for examples of the filter syntax. + * This field is designed to replace the `required_attributes`, + * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. + * If a non-empty value is specified here, the following fields must be empty: + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attributes_sets`. + * This filter functions as an AND clause with other constraints, + * such as `vehicle_state` or `on_trip_only`. + * Note that the only queries supported are on vehicle attributes (for + * example, `attributes. = ` or `attributes. = AND + * attributes. = `). The maximum number of restrictions allowed + * in a filter query is 50. + * Also, all attributes are stored as strings, so the only supported + * comparisons against attributes are string comparisons. In order to compare + * against number or boolean values, the values must be explicitly quoted to + * be treated as strings (for example, `attributes. = "10"` or + * `attributes. = "true"`). + * + * Generated from protobuf field string filter = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. A filter query to apply when listing vehicles. See + * http://aip.dev/160 for examples of the filter syntax. + * This field is designed to replace the `required_attributes`, + * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. + * If a non-empty value is specified here, the following fields must be empty: + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attributes_sets`. + * This filter functions as an AND clause with other constraints, + * such as `vehicle_state` or `on_trip_only`. + * Note that the only queries supported are on vehicle attributes (for + * example, `attributes. = ` or `attributes. = AND + * attributes. = `). The maximum number of restrictions allowed + * in a filter query is 50. + * Also, all attributes are stored as strings, so the only supported + * comparisons against attributes are string comparisons. In order to compare + * against number or boolean values, the values must be explicitly quoted to + * be treated as strings (for example, `attributes. = "10"` or + * `attributes. = "true"`). + * + * Generated from protobuf field string filter = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. A filter that limits the vehicles returned to those whose last + * known location was in the rectangular area defined by the viewport. + * + * Generated from protobuf field .google.geo.type.Viewport viewport = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Geo\Type\Viewport|null + */ + public function getViewport() + { + return $this->viewport; + } + + public function hasViewport() + { + return isset($this->viewport); + } + + public function clearViewport() + { + unset($this->viewport); + } + + /** + * Optional. A filter that limits the vehicles returned to those whose last + * known location was in the rectangular area defined by the viewport. + * + * Generated from protobuf field .google.geo.type.Viewport viewport = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Geo\Type\Viewport $var + * @return $this + */ + public function setViewport($var) + { + GPBUtil::checkMessage($var, \Google\Geo\Type\Viewport::class); + $this->viewport = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesResponse.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesResponse.php new file mode 100644 index 000000000000..2ba9724c211e --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesResponse.php @@ -0,0 +1,151 @@ +maps.fleetengine.v1.ListVehiclesResponse + */ +class ListVehiclesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Vehicles matching the criteria in the request. + * The maximum number of vehicles returned is determined by the `page_size` + * field in the request. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle vehicles = 1; + */ + private $vehicles; + /** + * Token to retrieve the next page of vehicles, or empty if there are no + * more vehicles that meet the request criteria. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Required. Total number of vehicles matching the request criteria across all + * pages. + * + * Generated from protobuf field int64 total_size = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Maps\FleetEngine\V1\Vehicle>|\Google\Protobuf\Internal\RepeatedField $vehicles + * Vehicles matching the criteria in the request. + * The maximum number of vehicles returned is determined by the `page_size` + * field in the request. + * @type string $next_page_token + * Token to retrieve the next page of vehicles, or empty if there are no + * more vehicles that meet the request criteria. + * @type int|string $total_size + * Required. Total number of vehicles matching the request criteria across all + * pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * Vehicles matching the criteria in the request. + * The maximum number of vehicles returned is determined by the `page_size` + * field in the request. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle vehicles = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getVehicles() + { + return $this->vehicles; + } + + /** + * Vehicles matching the criteria in the request. + * The maximum number of vehicles returned is determined by the `page_size` + * field in the request. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle vehicles = 1; + * @param array<\Google\Maps\FleetEngine\V1\Vehicle>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setVehicles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\Vehicle::class); + $this->vehicles = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of vehicles, or empty if there are no + * more vehicles that meet the request criteria. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of vehicles, or empty if there are no + * more vehicles that meet the request criteria. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Required. Total number of vehicles matching the request criteria across all + * pages. + * + * Generated from protobuf field int64 total_size = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return int|string + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Required. Total number of vehicles matching the request criteria across all + * pages. + * + * Generated from protobuf field int64 total_size = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param int|string $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt64($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationPowerSaveMode.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationPowerSaveMode.php new file mode 100644 index 000000000000..4eb20054c4f9 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationPowerSaveMode.php @@ -0,0 +1,89 @@ +maps.fleetengine.v1.LocationPowerSaveMode + */ +class LocationPowerSaveMode +{ + /** + * Undefined LocationPowerSaveMode + * + * Generated from protobuf enum UNKNOWN_LOCATION_POWER_SAVE_MODE = 0; + */ + const UNKNOWN_LOCATION_POWER_SAVE_MODE = 0; + /** + * Either the location providers shouldn't be affected by battery saver, or + * battery saver is off. + * + * Generated from protobuf enum LOCATION_MODE_NO_CHANGE = 1; + */ + const LOCATION_MODE_NO_CHANGE = 1; + /** + * The GPS based location provider should be disabled when battery saver is on + * and the device is non-interactive. + * + * Generated from protobuf enum LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF = 2; + */ + const LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF = 2; + /** + * All location providers should be disabled when battery saver is on and the + * device is non-interactive. + * + * Generated from protobuf enum LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF = 3; + */ + const LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF = 3; + /** + * All the location providers will be kept available, but location fixes + * should only be provided to foreground apps. + * + * Generated from protobuf enum LOCATION_MODE_FOREGROUND_ONLY = 4; + */ + const LOCATION_MODE_FOREGROUND_ONLY = 4; + /** + * Location will not be turned off, but LocationManager will throttle all + * requests to providers when the device is non-interactive. + * + * Generated from protobuf enum LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF = 5; + */ + const LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF = 5; + + private static $valueToName = [ + self::UNKNOWN_LOCATION_POWER_SAVE_MODE => 'UNKNOWN_LOCATION_POWER_SAVE_MODE', + self::LOCATION_MODE_NO_CHANGE => 'LOCATION_MODE_NO_CHANGE', + self::LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF => 'LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF', + self::LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF => 'LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF', + self::LOCATION_MODE_FOREGROUND_ONLY => 'LOCATION_MODE_FOREGROUND_ONLY', + self::LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF => 'LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationSensor.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationSensor.php new file mode 100644 index 000000000000..63194cc7ea5b --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationSensor.php @@ -0,0 +1,110 @@ +maps.fleetengine.v1.LocationSensor + */ +class LocationSensor +{ + /** + * The sensor is unspecified or unknown. + * + * Generated from protobuf enum UNKNOWN_SENSOR = 0; + */ + const UNKNOWN_SENSOR = 0; + /** + * GPS or Assisted GPS. + * + * Generated from protobuf enum GPS = 1; + */ + const GPS = 1; + /** + * Assisted GPS, cell tower ID, or WiFi access point. + * + * Generated from protobuf enum NETWORK = 2; + */ + const NETWORK = 2; + /** + * Cell tower ID or WiFi access point. + * + * Generated from protobuf enum PASSIVE = 3; + */ + const PASSIVE = 3; + /** + * A location determined by the mobile device to be the most likely + * road position. + * + * Generated from protobuf enum ROAD_SNAPPED_LOCATION_PROVIDER = 4; + */ + const ROAD_SNAPPED_LOCATION_PROVIDER = 4; + /** + * A customer-supplied location from an independent source. Typically, this + * value is used for a location provided from sources other than the mobile + * device running Driver SDK. If the original source is described by one of + * the other enum values, use that value. Locations marked + * CUSTOMER_SUPPLIED_LOCATION are typically provided via a Vehicle's + * `last_location.supplemental_location_sensor`. + * + * Generated from protobuf enum CUSTOMER_SUPPLIED_LOCATION = 5; + */ + const CUSTOMER_SUPPLIED_LOCATION = 5; + /** + * A location calculated by Fleet Engine based on the signals available to it. + * Output only. This value will be rejected if it is received in a request. + * + * Generated from protobuf enum FLEET_ENGINE_LOCATION = 6; + */ + const FLEET_ENGINE_LOCATION = 6; + /** + * Android's Fused Location Provider. + * + * Generated from protobuf enum FUSED_LOCATION_PROVIDER = 100; + */ + const FUSED_LOCATION_PROVIDER = 100; + /** + * The location provider on Apple operating systems. + * + * Generated from protobuf enum CORE_LOCATION = 200; + */ + const CORE_LOCATION = 200; + + private static $valueToName = [ + self::UNKNOWN_SENSOR => 'UNKNOWN_SENSOR', + self::GPS => 'GPS', + self::NETWORK => 'NETWORK', + self::PASSIVE => 'PASSIVE', + self::ROAD_SNAPPED_LOCATION_PROVIDER => 'ROAD_SNAPPED_LOCATION_PROVIDER', + self::CUSTOMER_SUPPLIED_LOCATION => 'CUSTOMER_SUPPLIED_LOCATION', + self::FLEET_ENGINE_LOCATION => 'FLEET_ENGINE_LOCATION', + self::FUSED_LOCATION_PROVIDER => 'FUSED_LOCATION_PROVIDER', + self::CORE_LOCATION => 'CORE_LOCATION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/NavigationStatus.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/NavigationStatus.php new file mode 100644 index 000000000000..40e2a39a9556 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/NavigationStatus.php @@ -0,0 +1,76 @@ +maps.fleetengine.v1.NavigationStatus + */ +class NavigationStatus +{ + /** + * Unspecified navigation status. + * + * Generated from protobuf enum UNKNOWN_NAVIGATION_STATUS = 0; + */ + const UNKNOWN_NAVIGATION_STATUS = 0; + /** + * The Driver app's navigation is in `FREE_NAV` mode. + * + * Generated from protobuf enum NO_GUIDANCE = 1; + */ + const NO_GUIDANCE = 1; + /** + * Turn-by-turn navigation is available and the Driver app navigation has + * entered `GUIDED_NAV` mode. + * + * Generated from protobuf enum ENROUTE_TO_DESTINATION = 2; + */ + const ENROUTE_TO_DESTINATION = 2; + /** + * The vehicle has gone off the suggested route. + * + * Generated from protobuf enum OFF_ROUTE = 3; + */ + const OFF_ROUTE = 3; + /** + * The vehicle is within approximately 50m of the destination. + * + * Generated from protobuf enum ARRIVED_AT_DESTINATION = 4; + */ + const ARRIVED_AT_DESTINATION = 4; + + private static $valueToName = [ + self::UNKNOWN_NAVIGATION_STATUS => 'UNKNOWN_NAVIGATION_STATUS', + self::NO_GUIDANCE => 'NO_GUIDANCE', + self::ENROUTE_TO_DESTINATION => 'ENROUTE_TO_DESTINATION', + self::OFF_ROUTE => 'OFF_ROUTE', + self::ARRIVED_AT_DESTINATION => 'ARRIVED_AT_DESTINATION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PolylineFormatType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PolylineFormatType.php new file mode 100644 index 000000000000..40a6b80a1726 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PolylineFormatType.php @@ -0,0 +1,62 @@ +maps.fleetengine.v1.PolylineFormatType + */ +class PolylineFormatType +{ + /** + * The format is unspecified or unknown. + * + * Generated from protobuf enum UNKNOWN_FORMAT_TYPE = 0; + */ + const UNKNOWN_FORMAT_TYPE = 0; + /** + * A list of `google.type.LatLng`. + * + * Generated from protobuf enum LAT_LNG_LIST_TYPE = 1; + */ + const LAT_LNG_LIST_TYPE = 1; + /** + * A polyline encoded with a polyline compression algorithm. Decoding is not + * yet supported. + * + * Generated from protobuf enum ENCODED_POLYLINE_TYPE = 2; + */ + const ENCODED_POLYLINE_TYPE = 2; + + private static $valueToName = [ + self::UNKNOWN_FORMAT_TYPE => 'UNKNOWN_FORMAT_TYPE', + self::LAT_LNG_LIST_TYPE => 'LAT_LNG_LIST_TYPE', + self::ENCODED_POLYLINE_TYPE => 'ENCODED_POLYLINE_TYPE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PowerSource.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PowerSource.php new file mode 100644 index 000000000000..1dd4ecfc1b49 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PowerSource.php @@ -0,0 +1,75 @@ +maps.fleetengine.v1.PowerSource + */ +class PowerSource +{ + /** + * Power source unknown. + * + * Generated from protobuf enum UNKNOWN_POWER_SOURCE = 0; + */ + const UNKNOWN_POWER_SOURCE = 0; + /** + * Power source is an AC charger. + * + * Generated from protobuf enum POWER_SOURCE_AC = 1; + */ + const POWER_SOURCE_AC = 1; + /** + * Power source is a USB port. + * + * Generated from protobuf enum POWER_SOURCE_USB = 2; + */ + const POWER_SOURCE_USB = 2; + /** + * Power source is wireless. + * + * Generated from protobuf enum POWER_SOURCE_WIRELESS = 3; + */ + const POWER_SOURCE_WIRELESS = 3; + /** + * Battery is unplugged. + * + * Generated from protobuf enum POWER_SOURCE_UNPLUGGED = 4; + */ + const POWER_SOURCE_UNPLUGGED = 4; + + private static $valueToName = [ + self::UNKNOWN_POWER_SOURCE => 'UNKNOWN_POWER_SOURCE', + self::POWER_SOURCE_AC => 'POWER_SOURCE_AC', + self::POWER_SOURCE_USB => 'POWER_SOURCE_USB', + self::POWER_SOURCE_WIRELESS => 'POWER_SOURCE_WIRELESS', + self::POWER_SOURCE_UNPLUGGED => 'POWER_SOURCE_UNPLUGGED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest.php new file mode 100644 index 000000000000..48d21dc5444e --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest.php @@ -0,0 +1,239 @@ +maps.fleetengine.v1.ReportBillableTripRequest + */ +class ReportBillableTripRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Must be in the format + * `providers/{provider}/billableTrips/{billable_trip}`. 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. + * + * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. Two letter country code of the country where the trip takes + * place. Price is defined according to country code. + * + * Generated from protobuf field string country_code = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $country_code = ''; + /** + * The platform upon which the request was issued. + * + * Generated from protobuf field .maps.fleetengine.v1.BillingPlatformIdentifier platform = 5; + */ + protected $platform = 0; + /** + * The identifiers that are directly related to the trip being reported. These + * are usually IDs (for example, session IDs) of pre-booking operations done + * before the trip ID is available. The number of `related_ids` is + * limited to 50. + * + * Generated from protobuf field repeated string related_ids = 6; + */ + private $related_ids; + /** + * The type of GMP product solution (for example, + * `ON_DEMAND_RIDESHARING_AND_DELIVERIES`) used for the reported trip. + * + * Generated from protobuf field .maps.fleetengine.v1.ReportBillableTripRequest.SolutionType solution_type = 7; + */ + protected $solution_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Must be in the format + * `providers/{provider}/billableTrips/{billable_trip}`. 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. + * @type string $country_code + * Required. Two letter country code of the country where the trip takes + * place. Price is defined according to country code. + * @type int $platform + * The platform upon which the request was issued. + * @type array|\Google\Protobuf\Internal\RepeatedField $related_ids + * The identifiers that are directly related to the trip being reported. These + * are usually IDs (for example, session IDs) of pre-booking operations done + * before the trip ID is available. The number of `related_ids` is + * limited to 50. + * @type int $solution_type + * The type of GMP product solution (for example, + * `ON_DEMAND_RIDESHARING_AND_DELIVERIES`) used for the reported trip. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); + parent::__construct($data); + } + + /** + * Required. Must be in the format + * `providers/{provider}/billableTrips/{billable_trip}`. 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. + * + * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Must be in the format + * `providers/{provider}/billableTrips/{billable_trip}`. 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. + * + * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Two letter country code of the country where the trip takes + * place. Price is defined according to country code. + * + * Generated from protobuf field string country_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getCountryCode() + { + return $this->country_code; + } + + /** + * Required. Two letter country code of the country where the trip takes + * place. Price is defined according to country code. + * + * Generated from protobuf field string country_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setCountryCode($var) + { + GPBUtil::checkString($var, True); + $this->country_code = $var; + + return $this; + } + + /** + * The platform upon which the request was issued. + * + * Generated from protobuf field .maps.fleetengine.v1.BillingPlatformIdentifier platform = 5; + * @return int + */ + public function getPlatform() + { + return $this->platform; + } + + /** + * The platform upon which the request was issued. + * + * Generated from protobuf field .maps.fleetengine.v1.BillingPlatformIdentifier platform = 5; + * @param int $var + * @return $this + */ + public function setPlatform($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\BillingPlatformIdentifier::class); + $this->platform = $var; + + return $this; + } + + /** + * The identifiers that are directly related to the trip being reported. These + * are usually IDs (for example, session IDs) of pre-booking operations done + * before the trip ID is available. The number of `related_ids` is + * limited to 50. + * + * Generated from protobuf field repeated string related_ids = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRelatedIds() + { + return $this->related_ids; + } + + /** + * The identifiers that are directly related to the trip being reported. These + * are usually IDs (for example, session IDs) of pre-booking operations done + * before the trip ID is available. The number of `related_ids` is + * limited to 50. + * + * Generated from protobuf field repeated string related_ids = 6; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRelatedIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->related_ids = $arr; + + return $this; + } + + /** + * The type of GMP product solution (for example, + * `ON_DEMAND_RIDESHARING_AND_DELIVERIES`) used for the reported trip. + * + * Generated from protobuf field .maps.fleetengine.v1.ReportBillableTripRequest.SolutionType solution_type = 7; + * @return int + */ + public function getSolutionType() + { + return $this->solution_type; + } + + /** + * The type of GMP product solution (for example, + * `ON_DEMAND_RIDESHARING_AND_DELIVERIES`) used for the reported trip. + * + * Generated from protobuf field .maps.fleetengine.v1.ReportBillableTripRequest.SolutionType solution_type = 7; + * @param int $var + * @return $this + */ + public function setSolutionType($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\ReportBillableTripRequest\SolutionType::class); + $this->solution_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest/SolutionType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest/SolutionType.php new file mode 100644 index 000000000000..c50613c46254 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest/SolutionType.php @@ -0,0 +1,59 @@ +maps.fleetengine.v1.ReportBillableTripRequest.SolutionType + */ +class SolutionType +{ + /** + * The default value. For backwards-compatibility, the API will use + * `ON_DEMAND_RIDESHARING_AND_DELIVERIES` by default which is the first + * supported solution type. + * + * Generated from protobuf enum SOLUTION_TYPE_UNSPECIFIED = 0; + */ + const SOLUTION_TYPE_UNSPECIFIED = 0; + /** + * The solution is an on-demand ridesharing and deliveries trip. + * + * Generated from protobuf enum ON_DEMAND_RIDESHARING_AND_DELIVERIES = 1; + */ + const ON_DEMAND_RIDESHARING_AND_DELIVERIES = 1; + + private static $valueToName = [ + self::SOLUTION_TYPE_UNSPECIFIED => 'SOLUTION_TYPE_UNSPECIFIED', + self::ON_DEMAND_RIDESHARING_AND_DELIVERIES => 'ON_DEMAND_RIDESHARING_AND_DELIVERIES', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SolutionType::class, \Google\Maps\FleetEngine\V1\ReportBillableTripRequest_SolutionType::class); + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader.php new file mode 100644 index 000000000000..c892bc38df04 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader.php @@ -0,0 +1,493 @@ +maps.fleetengine.v1.RequestHeader + */ +class RequestHeader extends \Google\Protobuf\Internal\Message +{ + /** + * The BCP-47 language code, such as en-US or sr-Latn. For more information, + * see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If none + * is specified, the response may be in any language, with a preference for + * English if such a name exists. Field value example: `en-US`. + * + * Generated from protobuf field string language_code = 1; + */ + protected $language_code = ''; + /** + * Required. CLDR region code of the region where the request originates. + * Field value example: `US`. + * + * Generated from protobuf field string region_code = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $region_code = ''; + /** + * Version of the calling SDK, if applicable. + * The version format is "major.minor.patch", example: `1.1.2`. + * + * Generated from protobuf field string sdk_version = 3; + */ + protected $sdk_version = ''; + /** + * Version of the operating system on which the calling SDK is running. + * Field value examples: `4.4.1`, `12.1`. + * + * Generated from protobuf field string os_version = 4; + */ + protected $os_version = ''; + /** + * Model of the device on which the calling SDK is running. + * Field value examples: `iPhone12,1`, `SM-G920F`. + * + * Generated from protobuf field string device_model = 5; + */ + protected $device_model = ''; + /** + * The type of SDK sending the request. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.SdkType sdk_type = 6; + */ + protected $sdk_type = 0; + /** + * Version of the MapSDK which the calling SDK depends on, if applicable. + * The version format is "major.minor.patch", example: `5.2.1`. + * + * Generated from protobuf field string maps_sdk_version = 7; + */ + protected $maps_sdk_version = ''; + /** + * Version of the NavSDK which the calling SDK depends on, if applicable. + * The version format is "major.minor.patch", example: `2.1.0`. + * + * Generated from protobuf field string nav_sdk_version = 8; + */ + protected $nav_sdk_version = ''; + /** + * Platform of the calling SDK. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.Platform platform = 9; + */ + protected $platform = 0; + /** + * Manufacturer of the Android device from the calling SDK, only applicable + * for the Android SDKs. + * Field value example: `Samsung`. + * + * Generated from protobuf field string manufacturer = 10; + */ + protected $manufacturer = ''; + /** + * Android API level of the calling SDK, only applicable for the Android SDKs. + * Field value example: `23`. + * + * Generated from protobuf field int32 android_api_level = 11; + */ + protected $android_api_level = 0; + /** + * Optional ID that can be provided for logging purposes in order to identify + * the request. + * + * Generated from protobuf field string trace_id = 12; + */ + protected $trace_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $language_code + * The BCP-47 language code, such as en-US or sr-Latn. For more information, + * see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If none + * is specified, the response may be in any language, with a preference for + * English if such a name exists. Field value example: `en-US`. + * @type string $region_code + * Required. CLDR region code of the region where the request originates. + * Field value example: `US`. + * @type string $sdk_version + * Version of the calling SDK, if applicable. + * The version format is "major.minor.patch", example: `1.1.2`. + * @type string $os_version + * Version of the operating system on which the calling SDK is running. + * Field value examples: `4.4.1`, `12.1`. + * @type string $device_model + * Model of the device on which the calling SDK is running. + * Field value examples: `iPhone12,1`, `SM-G920F`. + * @type int $sdk_type + * The type of SDK sending the request. + * @type string $maps_sdk_version + * Version of the MapSDK which the calling SDK depends on, if applicable. + * The version format is "major.minor.patch", example: `5.2.1`. + * @type string $nav_sdk_version + * Version of the NavSDK which the calling SDK depends on, if applicable. + * The version format is "major.minor.patch", example: `2.1.0`. + * @type int $platform + * Platform of the calling SDK. + * @type string $manufacturer + * Manufacturer of the Android device from the calling SDK, only applicable + * for the Android SDKs. + * Field value example: `Samsung`. + * @type int $android_api_level + * Android API level of the calling SDK, only applicable for the Android SDKs. + * Field value example: `23`. + * @type string $trace_id + * Optional ID that can be provided for logging purposes in order to identify + * the request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Header::initOnce(); + parent::__construct($data); + } + + /** + * The BCP-47 language code, such as en-US or sr-Latn. For more information, + * see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If none + * is specified, the response may be in any language, with a preference for + * English if such a name exists. Field value example: `en-US`. + * + * Generated from protobuf field string language_code = 1; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * The BCP-47 language code, such as en-US or sr-Latn. For more information, + * see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If none + * is specified, the response may be in any language, with a preference for + * English if such a name exists. Field value example: `en-US`. + * + * Generated from protobuf field string language_code = 1; + * @param string $var + * @return $this + */ + public function setLanguageCode($var) + { + GPBUtil::checkString($var, True); + $this->language_code = $var; + + return $this; + } + + /** + * Required. CLDR region code of the region where the request originates. + * Field value example: `US`. + * + * Generated from protobuf field string region_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getRegionCode() + { + return $this->region_code; + } + + /** + * Required. CLDR region code of the region where the request originates. + * Field value example: `US`. + * + * Generated from protobuf field string region_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setRegionCode($var) + { + GPBUtil::checkString($var, True); + $this->region_code = $var; + + return $this; + } + + /** + * Version of the calling SDK, if applicable. + * The version format is "major.minor.patch", example: `1.1.2`. + * + * Generated from protobuf field string sdk_version = 3; + * @return string + */ + public function getSdkVersion() + { + return $this->sdk_version; + } + + /** + * Version of the calling SDK, if applicable. + * The version format is "major.minor.patch", example: `1.1.2`. + * + * Generated from protobuf field string sdk_version = 3; + * @param string $var + * @return $this + */ + public function setSdkVersion($var) + { + GPBUtil::checkString($var, True); + $this->sdk_version = $var; + + return $this; + } + + /** + * Version of the operating system on which the calling SDK is running. + * Field value examples: `4.4.1`, `12.1`. + * + * Generated from protobuf field string os_version = 4; + * @return string + */ + public function getOsVersion() + { + return $this->os_version; + } + + /** + * Version of the operating system on which the calling SDK is running. + * Field value examples: `4.4.1`, `12.1`. + * + * Generated from protobuf field string os_version = 4; + * @param string $var + * @return $this + */ + public function setOsVersion($var) + { + GPBUtil::checkString($var, True); + $this->os_version = $var; + + return $this; + } + + /** + * Model of the device on which the calling SDK is running. + * Field value examples: `iPhone12,1`, `SM-G920F`. + * + * Generated from protobuf field string device_model = 5; + * @return string + */ + public function getDeviceModel() + { + return $this->device_model; + } + + /** + * Model of the device on which the calling SDK is running. + * Field value examples: `iPhone12,1`, `SM-G920F`. + * + * Generated from protobuf field string device_model = 5; + * @param string $var + * @return $this + */ + public function setDeviceModel($var) + { + GPBUtil::checkString($var, True); + $this->device_model = $var; + + return $this; + } + + /** + * The type of SDK sending the request. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.SdkType sdk_type = 6; + * @return int + */ + public function getSdkType() + { + return $this->sdk_type; + } + + /** + * The type of SDK sending the request. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.SdkType sdk_type = 6; + * @param int $var + * @return $this + */ + public function setSdkType($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\RequestHeader\SdkType::class); + $this->sdk_type = $var; + + return $this; + } + + /** + * Version of the MapSDK which the calling SDK depends on, if applicable. + * The version format is "major.minor.patch", example: `5.2.1`. + * + * Generated from protobuf field string maps_sdk_version = 7; + * @return string + */ + public function getMapsSdkVersion() + { + return $this->maps_sdk_version; + } + + /** + * Version of the MapSDK which the calling SDK depends on, if applicable. + * The version format is "major.minor.patch", example: `5.2.1`. + * + * Generated from protobuf field string maps_sdk_version = 7; + * @param string $var + * @return $this + */ + public function setMapsSdkVersion($var) + { + GPBUtil::checkString($var, True); + $this->maps_sdk_version = $var; + + return $this; + } + + /** + * Version of the NavSDK which the calling SDK depends on, if applicable. + * The version format is "major.minor.patch", example: `2.1.0`. + * + * Generated from protobuf field string nav_sdk_version = 8; + * @return string + */ + public function getNavSdkVersion() + { + return $this->nav_sdk_version; + } + + /** + * Version of the NavSDK which the calling SDK depends on, if applicable. + * The version format is "major.minor.patch", example: `2.1.0`. + * + * Generated from protobuf field string nav_sdk_version = 8; + * @param string $var + * @return $this + */ + public function setNavSdkVersion($var) + { + GPBUtil::checkString($var, True); + $this->nav_sdk_version = $var; + + return $this; + } + + /** + * Platform of the calling SDK. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.Platform platform = 9; + * @return int + */ + public function getPlatform() + { + return $this->platform; + } + + /** + * Platform of the calling SDK. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.Platform platform = 9; + * @param int $var + * @return $this + */ + public function setPlatform($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\RequestHeader\Platform::class); + $this->platform = $var; + + return $this; + } + + /** + * Manufacturer of the Android device from the calling SDK, only applicable + * for the Android SDKs. + * Field value example: `Samsung`. + * + * Generated from protobuf field string manufacturer = 10; + * @return string + */ + public function getManufacturer() + { + return $this->manufacturer; + } + + /** + * Manufacturer of the Android device from the calling SDK, only applicable + * for the Android SDKs. + * Field value example: `Samsung`. + * + * Generated from protobuf field string manufacturer = 10; + * @param string $var + * @return $this + */ + public function setManufacturer($var) + { + GPBUtil::checkString($var, True); + $this->manufacturer = $var; + + return $this; + } + + /** + * Android API level of the calling SDK, only applicable for the Android SDKs. + * Field value example: `23`. + * + * Generated from protobuf field int32 android_api_level = 11; + * @return int + */ + public function getAndroidApiLevel() + { + return $this->android_api_level; + } + + /** + * Android API level of the calling SDK, only applicable for the Android SDKs. + * Field value example: `23`. + * + * Generated from protobuf field int32 android_api_level = 11; + * @param int $var + * @return $this + */ + public function setAndroidApiLevel($var) + { + GPBUtil::checkInt32($var); + $this->android_api_level = $var; + + return $this; + } + + /** + * Optional ID that can be provided for logging purposes in order to identify + * the request. + * + * Generated from protobuf field string trace_id = 12; + * @return string + */ + public function getTraceId() + { + return $this->trace_id; + } + + /** + * Optional ID that can be provided for logging purposes in order to identify + * the request. + * + * Generated from protobuf field string trace_id = 12; + * @param string $var + * @return $this + */ + public function setTraceId($var) + { + GPBUtil::checkString($var, True); + $this->trace_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/Platform.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/Platform.php new file mode 100644 index 000000000000..dfe0f5d12542 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/Platform.php @@ -0,0 +1,71 @@ +maps.fleetengine.v1.RequestHeader.Platform + */ +class Platform +{ + /** + * The default value. This value is used if the platform is omitted. + * + * Generated from protobuf enum PLATFORM_UNSPECIFIED = 0; + */ + const PLATFORM_UNSPECIFIED = 0; + /** + * The request is coming from Android. + * + * Generated from protobuf enum ANDROID = 1; + */ + const ANDROID = 1; + /** + * The request is coming from iOS. + * + * Generated from protobuf enum IOS = 2; + */ + const IOS = 2; + /** + * The request is coming from the web. + * + * Generated from protobuf enum WEB = 3; + */ + const WEB = 3; + + private static $valueToName = [ + self::PLATFORM_UNSPECIFIED => 'PLATFORM_UNSPECIFIED', + self::ANDROID => 'ANDROID', + self::IOS => 'IOS', + self::WEB => 'WEB', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Platform::class, \Google\Maps\FleetEngine\V1\RequestHeader_Platform::class); + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/SdkType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/SdkType.php new file mode 100644 index 000000000000..3061cc50a581 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/SdkType.php @@ -0,0 +1,71 @@ +maps.fleetengine.v1.RequestHeader.SdkType + */ +class SdkType +{ + /** + * The default value. This value is used if the `sdk_type` is omitted. + * + * Generated from protobuf enum SDK_TYPE_UNSPECIFIED = 0; + */ + const SDK_TYPE_UNSPECIFIED = 0; + /** + * The calling SDK is Consumer. + * + * Generated from protobuf enum CONSUMER = 1; + */ + const CONSUMER = 1; + /** + * The calling SDK is Driver. + * + * Generated from protobuf enum DRIVER = 2; + */ + const DRIVER = 2; + /** + * The calling SDK is JavaScript. + * + * Generated from protobuf enum JAVASCRIPT = 3; + */ + const JAVASCRIPT = 3; + + private static $valueToName = [ + self::SDK_TYPE_UNSPECIFIED => 'SDK_TYPE_UNSPECIFIED', + self::CONSUMER => 'CONSUMER', + self::DRIVER => 'DRIVER', + self::JAVASCRIPT => 'JAVASCRIPT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SdkType::class, \Google\Maps\FleetEngine\V1\RequestHeader_SdkType::class); + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsRequest.php new file mode 100644 index 000000000000..05455c7754ea --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsRequest.php @@ -0,0 +1,335 @@ +maps.fleetengine.v1.SearchTripsRequest + */ +class SearchTripsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + */ + protected $header = null; + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * The vehicle associated with the trips in the request. If unspecified, the + * returned trips do not contain: + * * `current_route_segment` + * * `remaining_waypoints` + * * `remaining_distance_meters` + * * `eta_to_first_waypoint` + * + * Generated from protobuf field string vehicle_id = 4; + */ + protected $vehicle_id = ''; + /** + * If set to true, the response includes Trips that influence a driver's + * route. + * + * Generated from protobuf field bool active_trips_only = 5; + */ + protected $active_trips_only = false; + /** + * If not set, the server decides the number of results to return. + * + * Generated from protobuf field int32 page_size = 6; + */ + protected $page_size = 0; + /** + * Set this to a value previously returned in the `SearchTripsResponse` to + * continue from previous results. + * + * Generated from protobuf field string page_token = 7; + */ + protected $page_token = ''; + /** + * If specified, returns the trips that have not been updated after the time + * `(current - minimum_staleness)`. + * + * Generated from protobuf field .google.protobuf.Duration minimum_staleness = 8; + */ + protected $minimum_staleness = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\RequestHeader $header + * The standard Fleet Engine request header. + * @type string $parent + * Required. Must be in the format `providers/{provider}`. + * 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. + * @type string $vehicle_id + * The vehicle associated with the trips in the request. If unspecified, the + * returned trips do not contain: + * * `current_route_segment` + * * `remaining_waypoints` + * * `remaining_distance_meters` + * * `eta_to_first_waypoint` + * @type bool $active_trips_only + * If set to true, the response includes Trips that influence a driver's + * route. + * @type int $page_size + * If not set, the server decides the number of results to return. + * @type string $page_token + * Set this to a value previously returned in the `SearchTripsResponse` to + * continue from previous results. + * @type \Google\Protobuf\Duration $minimum_staleness + * If specified, returns the trips that have not been updated after the time + * `(current - minimum_staleness)`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); + parent::__construct($data); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @return \Google\Maps\FleetEngine\V1\RequestHeader|null + */ + public function getHeader() + { + return $this->header; + } + + public function hasHeader() + { + return isset($this->header); + } + + public function clearHeader() + { + unset($this->header); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @param \Google\Maps\FleetEngine\V1\RequestHeader $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); + $this->header = $var; + + return $this; + } + + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The vehicle associated with the trips in the request. If unspecified, the + * returned trips do not contain: + * * `current_route_segment` + * * `remaining_waypoints` + * * `remaining_distance_meters` + * * `eta_to_first_waypoint` + * + * Generated from protobuf field string vehicle_id = 4; + * @return string + */ + public function getVehicleId() + { + return $this->vehicle_id; + } + + /** + * The vehicle associated with the trips in the request. If unspecified, the + * returned trips do not contain: + * * `current_route_segment` + * * `remaining_waypoints` + * * `remaining_distance_meters` + * * `eta_to_first_waypoint` + * + * Generated from protobuf field string vehicle_id = 4; + * @param string $var + * @return $this + */ + public function setVehicleId($var) + { + GPBUtil::checkString($var, True); + $this->vehicle_id = $var; + + return $this; + } + + /** + * If set to true, the response includes Trips that influence a driver's + * route. + * + * Generated from protobuf field bool active_trips_only = 5; + * @return bool + */ + public function getActiveTripsOnly() + { + return $this->active_trips_only; + } + + /** + * If set to true, the response includes Trips that influence a driver's + * route. + * + * Generated from protobuf field bool active_trips_only = 5; + * @param bool $var + * @return $this + */ + public function setActiveTripsOnly($var) + { + GPBUtil::checkBool($var); + $this->active_trips_only = $var; + + return $this; + } + + /** + * If not set, the server decides the number of results to return. + * + * Generated from protobuf field int32 page_size = 6; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * If not set, the server decides the number of results to return. + * + * Generated from protobuf field int32 page_size = 6; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Set this to a value previously returned in the `SearchTripsResponse` to + * continue from previous results. + * + * Generated from protobuf field string page_token = 7; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Set this to a value previously returned in the `SearchTripsResponse` to + * continue from previous results. + * + * Generated from protobuf field string page_token = 7; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * If specified, returns the trips that have not been updated after the time + * `(current - minimum_staleness)`. + * + * Generated from protobuf field .google.protobuf.Duration minimum_staleness = 8; + * @return \Google\Protobuf\Duration|null + */ + public function getMinimumStaleness() + { + return $this->minimum_staleness; + } + + public function hasMinimumStaleness() + { + return isset($this->minimum_staleness); + } + + public function clearMinimumStaleness() + { + unset($this->minimum_staleness); + } + + /** + * If specified, returns the trips that have not been updated after the time + * `(current - minimum_staleness)`. + * + * Generated from protobuf field .google.protobuf.Duration minimum_staleness = 8; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setMinimumStaleness($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->minimum_staleness = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsResponse.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsResponse.php new file mode 100644 index 000000000000..a416a1ded2ab --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsResponse.php @@ -0,0 +1,109 @@ +maps.fleetengine.v1.SearchTripsResponse + */ +class SearchTripsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of trips for the requested vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Trip trips = 1; + */ + private $trips; + /** + * Pass this token in the SearchTripsRequest to page through list results. The + * API returns a trip list on each call, and when no more results remain the + * trip list is empty. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Maps\FleetEngine\V1\Trip>|\Google\Protobuf\Internal\RepeatedField $trips + * The list of trips for the requested vehicle. + * @type string $next_page_token + * Pass this token in the SearchTripsRequest to page through list results. The + * API returns a trip list on each call, and when no more results remain the + * trip list is empty. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); + parent::__construct($data); + } + + /** + * The list of trips for the requested vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Trip trips = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTrips() + { + return $this->trips; + } + + /** + * The list of trips for the requested vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Trip trips = 1; + * @param array<\Google\Maps\FleetEngine\V1\Trip>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTrips($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\Trip::class); + $this->trips = $arr; + + return $this; + } + + /** + * Pass this token in the SearchTripsRequest to page through list results. The + * API returns a trip list on each call, and when no more results remain the + * trip list is empty. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Pass this token in the SearchTripsRequest to page through list results. The + * API returns a trip list on each call, and when no more results remain the + * trip list is empty. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest.php new file mode 100644 index 000000000000..47e4b07b2d9a --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest.php @@ -0,0 +1,1029 @@ +maps.fleetengine.v1.SearchVehiclesRequest + */ +class SearchVehiclesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + */ + protected $header = null; + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Required. The pickup point to search near. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $pickup_point = null; + /** + * The customer's intended dropoff location. The field is required if + * `trip_types` contains `TripType.SHARED`. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 5; + */ + protected $dropoff_point = null; + /** + * Required. Defines the vehicle search radius around the pickup point. Only + * vehicles within the search radius will be returned. Value must be between + * 400 and 10000 meters (inclusive). + * + * Generated from protobuf field int32 pickup_radius_meters = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $pickup_radius_meters = 0; + /** + * Required. Specifies the maximum number of vehicles to return. The value + * must be between 1 and 50 (inclusive). + * + * Generated from protobuf field int32 count = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $count = 0; + /** + * Required. Specifies the number of passengers being considered for a trip. + * The value must be greater than or equal to one. The driver is not + * considered in the capacity value. + * + * Generated from protobuf field int32 minimum_capacity = 8 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $minimum_capacity = 0; + /** + * Required. Represents the type of proposed trip. Must include exactly one + * type. `UNKNOWN_TRIP_TYPE` is not allowed. Restricts the search to only + * those vehicles that can support that trip type. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 9 [(.google.api.field_behavior) = REQUIRED]; + */ + private $trip_types; + /** + * Restricts the search to only those vehicles that have sent location updates + * to Fleet Engine within the specified duration. Stationary vehicles still + * transmitting their locations are not considered stale. If this field is not + * set, the server uses five minutes as the default value. + * + * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 10; + */ + protected $maximum_staleness = null; + /** + * Required. Restricts the search to vehicles with one of the specified types. + * At least one vehicle type must be specified. VehicleTypes with a category + * of `UNKNOWN` are not allowed. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType vehicle_types = 14 [(.google.api.field_behavior) = REQUIRED]; + */ + private $vehicle_types; + /** + * Callers can form complex logical operations using any combination of the + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attribute_sets` fields. + * `required_attributes` is a list; `required_one_of_attributes` uses a + * message which allows a list of lists. In combination, the two fields allow + * the composition of this expression: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR + * ...) + * AND + * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR + * ...) + * ``` + * Restricts the search to only those vehicles with the specified attributes. + * This field is a conjunction/AND operation. A max of 50 required_attributes + * is allowed. This matches the maximum number of attributes allowed on a + * vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute required_attributes = 12; + */ + private $required_attributes; + /** + * Restricts the search to only those vehicles with at least one of + * the specified attributes in each `VehicleAttributeList`. Within each + * list, a vehicle must match at least one of the attributes. This field is an + * inclusive disjunction/OR operation in each `VehicleAttributeList` and a + * conjunction/AND operation across the collection of `VehicleAttributeList`. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attributes = 15; + */ + private $required_one_of_attributes; + /** + * `required_one_of_attribute_sets` provides additional functionality. + * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` + * uses a message which allows a list of lists, allowing expressions such as + * this one: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * ( + * (required_one_of_attribute_sets[0][0] AND + * required_one_of_attribute_sets[0][1] AND + * ...) + * OR + * (required_one_of_attribute_sets[1][0] AND + * required_one_of_attribute_sets[1][1] AND + * ...) + * ) + * ``` + * Restricts the search to only those vehicles with all the attributes in a + * `VehicleAttributeList`. Within each list, a + * vehicle must match all of the attributes. This field is a conjunction/AND + * operation in each `VehicleAttributeList` and inclusive disjunction/OR + * operation across the collection of `VehicleAttributeList`. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attribute_sets = 20; + */ + private $required_one_of_attribute_sets; + /** + * Required. Specifies the desired ordering criterion for results. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder order_by = 13 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $order_by = 0; + /** + * This indicates if vehicles with a single active trip are eligible for this + * search. This field is only used when `current_trips_present` is + * unspecified. When `current_trips_present` is unspecified and this field + * is `false`, vehicles with assigned trips are excluded from the search + * results. When `current_trips_present` is unspecified and this field is + * `true`, search results can include vehicles with one active trip that has a + * status of `ENROUTE_TO_DROPOFF`. When `current_trips_present` is specified, + * this field cannot be set to true. + * The default value is `false`. + * + * Generated from protobuf field bool include_back_to_back = 18; + */ + protected $include_back_to_back = false; + /** + * Indicates the trip associated with this `SearchVehicleRequest`. + * + * Generated from protobuf field string trip_id = 19; + */ + protected $trip_id = ''; + /** + * This indicates if vehicles with active trips are eligible for this search. + * This must be set to something other than + * `CURRENT_TRIPS_PRESENT_UNSPECIFIED` if `trip_type` includes `SHARED`. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.CurrentTripsPresent current_trips_present = 21; + */ + protected $current_trips_present = 0; + /** + * Optional. A filter query to apply when searching vehicles. See + * http://aip.dev/160 for examples of the filter syntax. + * This field is designed to replace the `required_attributes`, + * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. + * If a non-empty value is specified here, the following fields must be empty: + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attributes_sets`. + * This filter functions as an AND clause with other constraints, + * such as `minimum_capacity` or `vehicle_types`. + * Note that the only queries supported are on vehicle attributes (for + * example, `attributes. = ` or `attributes. = AND + * attributes. = `). The maximum number of restrictions allowed + * in a filter query is 50. + * Also, all attributes are stored as strings, so the only supported + * comparisons against attributes are string comparisons. In order to compare + * against number or boolean values, the values must be explicitly quoted to + * be treated as strings (for example, `attributes. = "10"` or + * `attributes. = "true"`). + * + * Generated from protobuf field string filter = 22 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\RequestHeader $header + * The standard Fleet Engine request header. + * @type string $parent + * Required. Must be in the format `providers/{provider}`. + * 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. + * @type \Google\Maps\FleetEngine\V1\TerminalLocation $pickup_point + * Required. The pickup point to search near. + * @type \Google\Maps\FleetEngine\V1\TerminalLocation $dropoff_point + * The customer's intended dropoff location. The field is required if + * `trip_types` contains `TripType.SHARED`. + * @type int $pickup_radius_meters + * Required. Defines the vehicle search radius around the pickup point. Only + * vehicles within the search radius will be returned. Value must be between + * 400 and 10000 meters (inclusive). + * @type int $count + * Required. Specifies the maximum number of vehicles to return. The value + * must be between 1 and 50 (inclusive). + * @type int $minimum_capacity + * Required. Specifies the number of passengers being considered for a trip. + * The value must be greater than or equal to one. The driver is not + * considered in the capacity value. + * @type array|\Google\Protobuf\Internal\RepeatedField $trip_types + * Required. Represents the type of proposed trip. Must include exactly one + * type. `UNKNOWN_TRIP_TYPE` is not allowed. Restricts the search to only + * those vehicles that can support that trip type. + * @type \Google\Protobuf\Duration $maximum_staleness + * Restricts the search to only those vehicles that have sent location updates + * to Fleet Engine within the specified duration. Stationary vehicles still + * transmitting their locations are not considered stale. If this field is not + * set, the server uses five minutes as the default value. + * @type array<\Google\Maps\FleetEngine\V1\Vehicle\VehicleType>|\Google\Protobuf\Internal\RepeatedField $vehicle_types + * Required. Restricts the search to vehicles with one of the specified types. + * At least one vehicle type must be specified. VehicleTypes with a category + * of `UNKNOWN` are not allowed. + * @type array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $required_attributes + * Callers can form complex logical operations using any combination of the + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attribute_sets` fields. + * `required_attributes` is a list; `required_one_of_attributes` uses a + * message which allows a list of lists. In combination, the two fields allow + * the composition of this expression: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR + * ...) + * AND + * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR + * ...) + * ``` + * Restricts the search to only those vehicles with the specified attributes. + * This field is a conjunction/AND operation. A max of 50 required_attributes + * is allowed. This matches the maximum number of attributes allowed on a + * vehicle. + * @type array<\Google\Maps\FleetEngine\V1\VehicleAttributeList>|\Google\Protobuf\Internal\RepeatedField $required_one_of_attributes + * Restricts the search to only those vehicles with at least one of + * the specified attributes in each `VehicleAttributeList`. Within each + * list, a vehicle must match at least one of the attributes. This field is an + * inclusive disjunction/OR operation in each `VehicleAttributeList` and a + * conjunction/AND operation across the collection of `VehicleAttributeList`. + * @type array<\Google\Maps\FleetEngine\V1\VehicleAttributeList>|\Google\Protobuf\Internal\RepeatedField $required_one_of_attribute_sets + * `required_one_of_attribute_sets` provides additional functionality. + * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` + * uses a message which allows a list of lists, allowing expressions such as + * this one: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * ( + * (required_one_of_attribute_sets[0][0] AND + * required_one_of_attribute_sets[0][1] AND + * ...) + * OR + * (required_one_of_attribute_sets[1][0] AND + * required_one_of_attribute_sets[1][1] AND + * ...) + * ) + * ``` + * Restricts the search to only those vehicles with all the attributes in a + * `VehicleAttributeList`. Within each list, a + * vehicle must match all of the attributes. This field is a conjunction/AND + * operation in each `VehicleAttributeList` and inclusive disjunction/OR + * operation across the collection of `VehicleAttributeList`. + * @type int $order_by + * Required. Specifies the desired ordering criterion for results. + * @type bool $include_back_to_back + * This indicates if vehicles with a single active trip are eligible for this + * search. This field is only used when `current_trips_present` is + * unspecified. When `current_trips_present` is unspecified and this field + * is `false`, vehicles with assigned trips are excluded from the search + * results. When `current_trips_present` is unspecified and this field is + * `true`, search results can include vehicles with one active trip that has a + * status of `ENROUTE_TO_DROPOFF`. When `current_trips_present` is specified, + * this field cannot be set to true. + * The default value is `false`. + * @type string $trip_id + * Indicates the trip associated with this `SearchVehicleRequest`. + * @type int $current_trips_present + * This indicates if vehicles with active trips are eligible for this search. + * This must be set to something other than + * `CURRENT_TRIPS_PRESENT_UNSPECIFIED` if `trip_type` includes `SHARED`. + * @type string $filter + * Optional. A filter query to apply when searching vehicles. See + * http://aip.dev/160 for examples of the filter syntax. + * This field is designed to replace the `required_attributes`, + * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. + * If a non-empty value is specified here, the following fields must be empty: + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attributes_sets`. + * This filter functions as an AND clause with other constraints, + * such as `minimum_capacity` or `vehicle_types`. + * Note that the only queries supported are on vehicle attributes (for + * example, `attributes. = ` or `attributes. = AND + * attributes. = `). The maximum number of restrictions allowed + * in a filter query is 50. + * Also, all attributes are stored as strings, so the only supported + * comparisons against attributes are string comparisons. In order to compare + * against number or boolean values, the values must be explicitly quoted to + * be treated as strings (for example, `attributes. = "10"` or + * `attributes. = "true"`). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @return \Google\Maps\FleetEngine\V1\RequestHeader|null + */ + public function getHeader() + { + return $this->header; + } + + public function hasHeader() + { + return isset($this->header); + } + + public function clearHeader() + { + unset($this->header); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @param \Google\Maps\FleetEngine\V1\RequestHeader $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); + $this->header = $var; + + return $this; + } + + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Must be in the format `providers/{provider}`. + * 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. + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The pickup point to search near. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Maps\FleetEngine\V1\TerminalLocation|null + */ + public function getPickupPoint() + { + return $this->pickup_point; + } + + public function hasPickupPoint() + { + return isset($this->pickup_point); + } + + public function clearPickupPoint() + { + unset($this->pickup_point); + } + + /** + * Required. The pickup point to search near. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Maps\FleetEngine\V1\TerminalLocation $var + * @return $this + */ + public function setPickupPoint($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalLocation::class); + $this->pickup_point = $var; + + return $this; + } + + /** + * The customer's intended dropoff location. The field is required if + * `trip_types` contains `TripType.SHARED`. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 5; + * @return \Google\Maps\FleetEngine\V1\TerminalLocation|null + */ + public function getDropoffPoint() + { + return $this->dropoff_point; + } + + public function hasDropoffPoint() + { + return isset($this->dropoff_point); + } + + public function clearDropoffPoint() + { + unset($this->dropoff_point); + } + + /** + * The customer's intended dropoff location. The field is required if + * `trip_types` contains `TripType.SHARED`. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 5; + * @param \Google\Maps\FleetEngine\V1\TerminalLocation $var + * @return $this + */ + public function setDropoffPoint($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalLocation::class); + $this->dropoff_point = $var; + + return $this; + } + + /** + * Required. Defines the vehicle search radius around the pickup point. Only + * vehicles within the search radius will be returned. Value must be between + * 400 and 10000 meters (inclusive). + * + * Generated from protobuf field int32 pickup_radius_meters = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getPickupRadiusMeters() + { + return $this->pickup_radius_meters; + } + + /** + * Required. Defines the vehicle search radius around the pickup point. Only + * vehicles within the search radius will be returned. Value must be between + * 400 and 10000 meters (inclusive). + * + * Generated from protobuf field int32 pickup_radius_meters = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setPickupRadiusMeters($var) + { + GPBUtil::checkInt32($var); + $this->pickup_radius_meters = $var; + + return $this; + } + + /** + * Required. Specifies the maximum number of vehicles to return. The value + * must be between 1 and 50 (inclusive). + * + * Generated from protobuf field int32 count = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getCount() + { + return $this->count; + } + + /** + * Required. Specifies the maximum number of vehicles to return. The value + * must be between 1 and 50 (inclusive). + * + * Generated from protobuf field int32 count = 7 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setCount($var) + { + GPBUtil::checkInt32($var); + $this->count = $var; + + return $this; + } + + /** + * Required. Specifies the number of passengers being considered for a trip. + * The value must be greater than or equal to one. The driver is not + * considered in the capacity value. + * + * Generated from protobuf field int32 minimum_capacity = 8 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMinimumCapacity() + { + return $this->minimum_capacity; + } + + /** + * Required. Specifies the number of passengers being considered for a trip. + * The value must be greater than or equal to one. The driver is not + * considered in the capacity value. + * + * Generated from protobuf field int32 minimum_capacity = 8 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMinimumCapacity($var) + { + GPBUtil::checkInt32($var); + $this->minimum_capacity = $var; + + return $this; + } + + /** + * Required. Represents the type of proposed trip. Must include exactly one + * type. `UNKNOWN_TRIP_TYPE` is not allowed. Restricts the search to only + * those vehicles that can support that trip type. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 9 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTripTypes() + { + return $this->trip_types; + } + + /** + * Required. Represents the type of proposed trip. Must include exactly one + * type. `UNKNOWN_TRIP_TYPE` is not allowed. Restricts the search to only + * those vehicles that can support that trip type. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 9 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTripTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Maps\FleetEngine\V1\TripType::class); + $this->trip_types = $arr; + + return $this; + } + + /** + * Restricts the search to only those vehicles that have sent location updates + * to Fleet Engine within the specified duration. Stationary vehicles still + * transmitting their locations are not considered stale. If this field is not + * set, the server uses five minutes as the default value. + * + * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 10; + * @return \Google\Protobuf\Duration|null + */ + public function getMaximumStaleness() + { + return $this->maximum_staleness; + } + + public function hasMaximumStaleness() + { + return isset($this->maximum_staleness); + } + + public function clearMaximumStaleness() + { + unset($this->maximum_staleness); + } + + /** + * Restricts the search to only those vehicles that have sent location updates + * to Fleet Engine within the specified duration. Stationary vehicles still + * transmitting their locations are not considered stale. If this field is not + * set, the server uses five minutes as the default value. + * + * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 10; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setMaximumStaleness($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->maximum_staleness = $var; + + return $this; + } + + /** + * Required. Restricts the search to vehicles with one of the specified types. + * At least one vehicle type must be specified. VehicleTypes with a category + * of `UNKNOWN` are not allowed. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType vehicle_types = 14 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getVehicleTypes() + { + return $this->vehicle_types; + } + + /** + * Required. Restricts the search to vehicles with one of the specified types. + * At least one vehicle type must be specified. VehicleTypes with a category + * of `UNKNOWN` are not allowed. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType vehicle_types = 14 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Maps\FleetEngine\V1\Vehicle\VehicleType>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setVehicleTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\Vehicle\VehicleType::class); + $this->vehicle_types = $arr; + + return $this; + } + + /** + * Callers can form complex logical operations using any combination of the + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attribute_sets` fields. + * `required_attributes` is a list; `required_one_of_attributes` uses a + * message which allows a list of lists. In combination, the two fields allow + * the composition of this expression: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR + * ...) + * AND + * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR + * ...) + * ``` + * Restricts the search to only those vehicles with the specified attributes. + * This field is a conjunction/AND operation. A max of 50 required_attributes + * is allowed. This matches the maximum number of attributes allowed on a + * vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute required_attributes = 12; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequiredAttributes() + { + return $this->required_attributes; + } + + /** + * Callers can form complex logical operations using any combination of the + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attribute_sets` fields. + * `required_attributes` is a list; `required_one_of_attributes` uses a + * message which allows a list of lists. In combination, the two fields allow + * the composition of this expression: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR + * ...) + * AND + * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR + * ...) + * ``` + * Restricts the search to only those vehicles with the specified attributes. + * This field is a conjunction/AND operation. A max of 50 required_attributes + * is allowed. This matches the maximum number of attributes allowed on a + * vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute required_attributes = 12; + * @param array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequiredAttributes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttribute::class); + $this->required_attributes = $arr; + + return $this; + } + + /** + * Restricts the search to only those vehicles with at least one of + * the specified attributes in each `VehicleAttributeList`. Within each + * list, a vehicle must match at least one of the attributes. This field is an + * inclusive disjunction/OR operation in each `VehicleAttributeList` and a + * conjunction/AND operation across the collection of `VehicleAttributeList`. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attributes = 15; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequiredOneOfAttributes() + { + return $this->required_one_of_attributes; + } + + /** + * Restricts the search to only those vehicles with at least one of + * the specified attributes in each `VehicleAttributeList`. Within each + * list, a vehicle must match at least one of the attributes. This field is an + * inclusive disjunction/OR operation in each `VehicleAttributeList` and a + * conjunction/AND operation across the collection of `VehicleAttributeList`. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attributes = 15; + * @param array<\Google\Maps\FleetEngine\V1\VehicleAttributeList>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequiredOneOfAttributes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttributeList::class); + $this->required_one_of_attributes = $arr; + + return $this; + } + + /** + * `required_one_of_attribute_sets` provides additional functionality. + * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` + * uses a message which allows a list of lists, allowing expressions such as + * this one: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * ( + * (required_one_of_attribute_sets[0][0] AND + * required_one_of_attribute_sets[0][1] AND + * ...) + * OR + * (required_one_of_attribute_sets[1][0] AND + * required_one_of_attribute_sets[1][1] AND + * ...) + * ) + * ``` + * Restricts the search to only those vehicles with all the attributes in a + * `VehicleAttributeList`. Within each list, a + * vehicle must match all of the attributes. This field is a conjunction/AND + * operation in each `VehicleAttributeList` and inclusive disjunction/OR + * operation across the collection of `VehicleAttributeList`. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attribute_sets = 20; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequiredOneOfAttributeSets() + { + return $this->required_one_of_attribute_sets; + } + + /** + * `required_one_of_attribute_sets` provides additional functionality. + * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` + * uses a message which allows a list of lists, allowing expressions such as + * this one: + * ``` + * (required_attributes[0] AND required_attributes[1] AND ...) + * AND + * ( + * (required_one_of_attribute_sets[0][0] AND + * required_one_of_attribute_sets[0][1] AND + * ...) + * OR + * (required_one_of_attribute_sets[1][0] AND + * required_one_of_attribute_sets[1][1] AND + * ...) + * ) + * ``` + * Restricts the search to only those vehicles with all the attributes in a + * `VehicleAttributeList`. Within each list, a + * vehicle must match all of the attributes. This field is a conjunction/AND + * operation in each `VehicleAttributeList` and inclusive disjunction/OR + * operation across the collection of `VehicleAttributeList`. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attribute_sets = 20; + * @param array<\Google\Maps\FleetEngine\V1\VehicleAttributeList>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequiredOneOfAttributeSets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttributeList::class); + $this->required_one_of_attribute_sets = $arr; + + return $this; + } + + /** + * Required. Specifies the desired ordering criterion for results. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder order_by = 13 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Required. Specifies the desired ordering criterion for results. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder order_by = 13 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest\VehicleMatchOrder::class); + $this->order_by = $var; + + return $this; + } + + /** + * This indicates if vehicles with a single active trip are eligible for this + * search. This field is only used when `current_trips_present` is + * unspecified. When `current_trips_present` is unspecified and this field + * is `false`, vehicles with assigned trips are excluded from the search + * results. When `current_trips_present` is unspecified and this field is + * `true`, search results can include vehicles with one active trip that has a + * status of `ENROUTE_TO_DROPOFF`. When `current_trips_present` is specified, + * this field cannot be set to true. + * The default value is `false`. + * + * Generated from protobuf field bool include_back_to_back = 18; + * @return bool + */ + public function getIncludeBackToBack() + { + return $this->include_back_to_back; + } + + /** + * This indicates if vehicles with a single active trip are eligible for this + * search. This field is only used when `current_trips_present` is + * unspecified. When `current_trips_present` is unspecified and this field + * is `false`, vehicles with assigned trips are excluded from the search + * results. When `current_trips_present` is unspecified and this field is + * `true`, search results can include vehicles with one active trip that has a + * status of `ENROUTE_TO_DROPOFF`. When `current_trips_present` is specified, + * this field cannot be set to true. + * The default value is `false`. + * + * Generated from protobuf field bool include_back_to_back = 18; + * @param bool $var + * @return $this + */ + public function setIncludeBackToBack($var) + { + GPBUtil::checkBool($var); + $this->include_back_to_back = $var; + + return $this; + } + + /** + * Indicates the trip associated with this `SearchVehicleRequest`. + * + * Generated from protobuf field string trip_id = 19; + * @return string + */ + public function getTripId() + { + return $this->trip_id; + } + + /** + * Indicates the trip associated with this `SearchVehicleRequest`. + * + * Generated from protobuf field string trip_id = 19; + * @param string $var + * @return $this + */ + public function setTripId($var) + { + GPBUtil::checkString($var, True); + $this->trip_id = $var; + + return $this; + } + + /** + * This indicates if vehicles with active trips are eligible for this search. + * This must be set to something other than + * `CURRENT_TRIPS_PRESENT_UNSPECIFIED` if `trip_type` includes `SHARED`. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.CurrentTripsPresent current_trips_present = 21; + * @return int + */ + public function getCurrentTripsPresent() + { + return $this->current_trips_present; + } + + /** + * This indicates if vehicles with active trips are eligible for this search. + * This must be set to something other than + * `CURRENT_TRIPS_PRESENT_UNSPECIFIED` if `trip_type` includes `SHARED`. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.CurrentTripsPresent current_trips_present = 21; + * @param int $var + * @return $this + */ + public function setCurrentTripsPresent($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest\CurrentTripsPresent::class); + $this->current_trips_present = $var; + + return $this; + } + + /** + * Optional. A filter query to apply when searching vehicles. See + * http://aip.dev/160 for examples of the filter syntax. + * This field is designed to replace the `required_attributes`, + * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. + * If a non-empty value is specified here, the following fields must be empty: + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attributes_sets`. + * This filter functions as an AND clause with other constraints, + * such as `minimum_capacity` or `vehicle_types`. + * Note that the only queries supported are on vehicle attributes (for + * example, `attributes. = ` or `attributes. = AND + * attributes. = `). The maximum number of restrictions allowed + * in a filter query is 50. + * Also, all attributes are stored as strings, so the only supported + * comparisons against attributes are string comparisons. In order to compare + * against number or boolean values, the values must be explicitly quoted to + * be treated as strings (for example, `attributes. = "10"` or + * `attributes. = "true"`). + * + * Generated from protobuf field string filter = 22 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. A filter query to apply when searching vehicles. See + * http://aip.dev/160 for examples of the filter syntax. + * This field is designed to replace the `required_attributes`, + * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. + * If a non-empty value is specified here, the following fields must be empty: + * `required_attributes`, `required_one_of_attributes`, and + * `required_one_of_attributes_sets`. + * This filter functions as an AND clause with other constraints, + * such as `minimum_capacity` or `vehicle_types`. + * Note that the only queries supported are on vehicle attributes (for + * example, `attributes. = ` or `attributes. = AND + * attributes. = `). The maximum number of restrictions allowed + * in a filter query is 50. + * Also, all attributes are stored as strings, so the only supported + * comparisons against attributes are string comparisons. In order to compare + * against number or boolean values, the values must be explicitly quoted to + * be treated as strings (for example, `attributes. = "10"` or + * `attributes. = "true"`). + * + * Generated from protobuf field string filter = 22 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/CurrentTripsPresent.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/CurrentTripsPresent.php new file mode 100644 index 000000000000..e9d8ed63eb8d --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/CurrentTripsPresent.php @@ -0,0 +1,68 @@ +maps.fleetengine.v1.SearchVehiclesRequest.CurrentTripsPresent + */ +class CurrentTripsPresent +{ + /** + * The availability of vehicles with trips present is governed by the + * `include_back_to_back` field. + * + * Generated from protobuf enum CURRENT_TRIPS_PRESENT_UNSPECIFIED = 0; + */ + const CURRENT_TRIPS_PRESENT_UNSPECIFIED = 0; + /** + * Vehicles without trips can appear in search results. When this value is + * used, `include_back_to_back` cannot be `true`. + * + * Generated from protobuf enum NONE = 1; + */ + const NONE = 1; + /** + * Vehicles with at most 5 current trips and 10 waypoints are included + * in the search results. When this value is used, `include_back_to_back` + * cannot be `true`. + * + * Generated from protobuf enum ANY = 2; + */ + const ANY = 2; + + private static $valueToName = [ + self::CURRENT_TRIPS_PRESENT_UNSPECIFIED => 'CURRENT_TRIPS_PRESENT_UNSPECIFIED', + self::NONE => 'NONE', + self::ANY => 'ANY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CurrentTripsPresent::class, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest_CurrentTripsPresent::class); + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/VehicleMatchOrder.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/VehicleMatchOrder.php new file mode 100644 index 000000000000..5abdd153b401 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/VehicleMatchOrder.php @@ -0,0 +1,90 @@ +maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder + */ +class VehicleMatchOrder +{ + /** + * Default, used for unspecified or unrecognized vehicle matches order. + * + * Generated from protobuf enum UNKNOWN_VEHICLE_MATCH_ORDER = 0; + */ + const UNKNOWN_VEHICLE_MATCH_ORDER = 0; + /** + * Ascending order by vehicle driving time to the pickup point. + * + * Generated from protobuf enum PICKUP_POINT_ETA = 1; + */ + const PICKUP_POINT_ETA = 1; + /** + * Ascending order by vehicle driving distance to the pickup point. + * + * Generated from protobuf enum PICKUP_POINT_DISTANCE = 2; + */ + const PICKUP_POINT_DISTANCE = 2; + /** + * Ascending order by vehicle driving time to the dropoff point. This order + * can only be used if the dropoff point is specified in the request. + * + * Generated from protobuf enum DROPOFF_POINT_ETA = 3; + */ + const DROPOFF_POINT_ETA = 3; + /** + * Ascending order by straight-line distance from the vehicle's last + * reported location to the pickup point. + * + * Generated from protobuf enum PICKUP_POINT_STRAIGHT_DISTANCE = 4; + */ + const PICKUP_POINT_STRAIGHT_DISTANCE = 4; + /** + * Ascending order by the configured match cost. Match cost is defined as a + * weighted calculation between straight-line distance and ETA. Weights are + * set with default values and can be modified per customer. Please contact + * Google support if these weights need to be modified for your project. + * + * Generated from protobuf enum COST = 5; + */ + const COST = 5; + + private static $valueToName = [ + self::UNKNOWN_VEHICLE_MATCH_ORDER => 'UNKNOWN_VEHICLE_MATCH_ORDER', + self::PICKUP_POINT_ETA => 'PICKUP_POINT_ETA', + self::PICKUP_POINT_DISTANCE => 'PICKUP_POINT_DISTANCE', + self::DROPOFF_POINT_ETA => 'DROPOFF_POINT_ETA', + self::PICKUP_POINT_STRAIGHT_DISTANCE => 'PICKUP_POINT_STRAIGHT_DISTANCE', + self::COST => 'COST', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(VehicleMatchOrder::class, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest_VehicleMatchOrder::class); + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesResponse.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesResponse.php new file mode 100644 index 000000000000..c521ea8c385e --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesResponse.php @@ -0,0 +1,71 @@ +maps.fleetengine.v1.SearchVehiclesResponse + */ +class SearchVehiclesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of vehicles that match the `SearchVehiclesRequest` criteria, ordered + * according to `SearchVehiclesRequest.order_by` field. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleMatch matches = 1; + */ + private $matches; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Maps\FleetEngine\V1\VehicleMatch>|\Google\Protobuf\Internal\RepeatedField $matches + * List of vehicles that match the `SearchVehiclesRequest` criteria, ordered + * according to `SearchVehiclesRequest.order_by` field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * List of vehicles that match the `SearchVehiclesRequest` criteria, ordered + * according to `SearchVehiclesRequest.order_by` field. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleMatch matches = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMatches() + { + return $this->matches; + } + + /** + * List of vehicles that match the `SearchVehiclesRequest` criteria, ordered + * according to `SearchVehiclesRequest.order_by` field. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleMatch matches = 1; + * @param array<\Google\Maps\FleetEngine\V1\VehicleMatch>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMatches($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleMatch::class); + $this->matches = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval.php new file mode 100644 index 000000000000..53d8e860e1d4 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval.php @@ -0,0 +1,145 @@ +maps.fleetengine.v1.SpeedReadingInterval + */ +class SpeedReadingInterval extends \Google\Protobuf\Internal\Message +{ + /** + * The starting index of this interval in the path. + * In JSON, when the index is 0, the field will appear to be unpopulated. + * + * Generated from protobuf field int32 start_polyline_point_index = 1; + */ + protected $start_polyline_point_index = 0; + /** + * The ending index of this interval in the path. + * In JSON, when the index is 0, the field will appear to be unpopulated. + * + * Generated from protobuf field int32 end_polyline_point_index = 2; + */ + protected $end_polyline_point_index = 0; + /** + * Traffic speed in this interval. + * + * Generated from protobuf field .maps.fleetengine.v1.SpeedReadingInterval.Speed speed = 3; + */ + protected $speed = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $start_polyline_point_index + * The starting index of this interval in the path. + * In JSON, when the index is 0, the field will appear to be unpopulated. + * @type int $end_polyline_point_index + * The ending index of this interval in the path. + * In JSON, when the index is 0, the field will appear to be unpopulated. + * @type int $speed + * Traffic speed in this interval. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Traffic::initOnce(); + parent::__construct($data); + } + + /** + * The starting index of this interval in the path. + * In JSON, when the index is 0, the field will appear to be unpopulated. + * + * Generated from protobuf field int32 start_polyline_point_index = 1; + * @return int + */ + public function getStartPolylinePointIndex() + { + return $this->start_polyline_point_index; + } + + /** + * The starting index of this interval in the path. + * In JSON, when the index is 0, the field will appear to be unpopulated. + * + * Generated from protobuf field int32 start_polyline_point_index = 1; + * @param int $var + * @return $this + */ + public function setStartPolylinePointIndex($var) + { + GPBUtil::checkInt32($var); + $this->start_polyline_point_index = $var; + + return $this; + } + + /** + * The ending index of this interval in the path. + * In JSON, when the index is 0, the field will appear to be unpopulated. + * + * Generated from protobuf field int32 end_polyline_point_index = 2; + * @return int + */ + public function getEndPolylinePointIndex() + { + return $this->end_polyline_point_index; + } + + /** + * The ending index of this interval in the path. + * In JSON, when the index is 0, the field will appear to be unpopulated. + * + * Generated from protobuf field int32 end_polyline_point_index = 2; + * @param int $var + * @return $this + */ + public function setEndPolylinePointIndex($var) + { + GPBUtil::checkInt32($var); + $this->end_polyline_point_index = $var; + + return $this; + } + + /** + * Traffic speed in this interval. + * + * Generated from protobuf field .maps.fleetengine.v1.SpeedReadingInterval.Speed speed = 3; + * @return int + */ + public function getSpeed() + { + return $this->speed; + } + + /** + * Traffic speed in this interval. + * + * Generated from protobuf field .maps.fleetengine.v1.SpeedReadingInterval.Speed speed = 3; + * @param int $var + * @return $this + */ + public function setSpeed($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\SpeedReadingInterval\Speed::class); + $this->speed = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval/Speed.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval/Speed.php new file mode 100644 index 000000000000..6291e7ebaf55 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval/Speed.php @@ -0,0 +1,71 @@ +maps.fleetengine.v1.SpeedReadingInterval.Speed + */ +class Speed +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum SPEED_UNSPECIFIED = 0; + */ + const SPEED_UNSPECIFIED = 0; + /** + * Normal speed, no slowdown is detected. + * + * Generated from protobuf enum NORMAL = 1; + */ + const NORMAL = 1; + /** + * Slowdown detected, but no traffic jam formed. + * + * Generated from protobuf enum SLOW = 2; + */ + const SLOW = 2; + /** + * Traffic jam detected. + * + * Generated from protobuf enum TRAFFIC_JAM = 3; + */ + const TRAFFIC_JAM = 3; + + private static $valueToName = [ + self::SPEED_UNSPECIFIED => 'SPEED_UNSPECIFIED', + self::NORMAL => 'NORMAL', + self::SLOW => 'SLOW', + self::TRAFFIC_JAM => 'TRAFFIC_JAM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Speed::class, \Google\Maps\FleetEngine\V1\SpeedReadingInterval_Speed::class); + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/StopLocation.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/StopLocation.php new file mode 100644 index 000000000000..6a2b230a3673 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/StopLocation.php @@ -0,0 +1,172 @@ +maps.fleetengine.v1.StopLocation + */ +class StopLocation extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Denotes the actual location. + * + * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $point = null; + /** + * Indicates when the stop happened. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; + */ + protected $timestamp = null; + /** + * Input only. Deprecated. Use the timestamp field. + * + * Generated from protobuf field .google.protobuf.Timestamp stop_time = 3 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; + * @deprecated + */ + protected $stop_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Type\LatLng $point + * Required. Denotes the actual location. + * @type \Google\Protobuf\Timestamp $timestamp + * Indicates when the stop happened. + * @type \Google\Protobuf\Timestamp $stop_time + * Input only. Deprecated. Use the timestamp field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Trips::initOnce(); + parent::__construct($data); + } + + /** + * Required. Denotes the actual location. + * + * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Type\LatLng|null + */ + public function getPoint() + { + return $this->point; + } + + public function hasPoint() + { + return isset($this->point); + } + + public function clearPoint() + { + unset($this->point); + } + + /** + * Required. Denotes the actual location. + * + * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Type\LatLng $var + * @return $this + */ + public function setPoint($var) + { + GPBUtil::checkMessage($var, \Google\Type\LatLng::class); + $this->point = $var; + + return $this; + } + + /** + * Indicates when the stop happened. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getTimestamp() + { + return $this->timestamp; + } + + public function hasTimestamp() + { + return isset($this->timestamp); + } + + public function clearTimestamp() + { + unset($this->timestamp); + } + + /** + * Indicates when the stop happened. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setTimestamp($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->timestamp = $var; + + return $this; + } + + /** + * Input only. Deprecated. Use the timestamp field. + * + * Generated from protobuf field .google.protobuf.Timestamp stop_time = 3 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + * @deprecated + */ + public function getStopTime() + { + @trigger_error('stop_time is deprecated.', E_USER_DEPRECATED); + return $this->stop_time; + } + + public function hasStopTime() + { + @trigger_error('stop_time is deprecated.', E_USER_DEPRECATED); + return isset($this->stop_time); + } + + public function clearStopTime() + { + @trigger_error('stop_time is deprecated.', E_USER_DEPRECATED); + unset($this->stop_time); + } + + /** + * Input only. Deprecated. Use the timestamp field. + * + * Generated from protobuf field .google.protobuf.Timestamp stop_time = 3 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + * @deprecated + */ + public function setStopTime($var) + { + @trigger_error('stop_time is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->stop_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalLocation.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalLocation.php new file mode 100644 index 000000000000..aa49ef72b229 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalLocation.php @@ -0,0 +1,245 @@ +maps.fleetengine.v1.TerminalLocation + */ +class TerminalLocation extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Denotes the location of a trip waypoint. + * + * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $point = null; + /** + * Deprecated: Specify the `point` field instead. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalPointId terminal_point_id = 2 [deprecated = true]; + * @deprecated + */ + protected $terminal_point_id = null; + /** + * Deprecated: Specify the `point` field instead. + * + * Generated from protobuf field string access_point_id = 3 [deprecated = true]; + * @deprecated + */ + protected $access_point_id = ''; + /** + * Deprecated. + * + * Generated from protobuf field string trip_id = 4 [deprecated = true]; + * @deprecated + */ + protected $trip_id = ''; + /** + * Deprecated: `Vehicle.waypoint` will have this data. + * + * Generated from protobuf field .maps.fleetengine.v1.WaypointType terminal_location_type = 5 [deprecated = true]; + * @deprecated + */ + protected $terminal_location_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Type\LatLng $point + * Required. Denotes the location of a trip waypoint. + * @type \Google\Maps\FleetEngine\V1\TerminalPointId $terminal_point_id + * Deprecated: Specify the `point` field instead. + * @type string $access_point_id + * Deprecated: Specify the `point` field instead. + * @type string $trip_id + * Deprecated. + * @type int $terminal_location_type + * Deprecated: `Vehicle.waypoint` will have this data. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Fleetengine::initOnce(); + parent::__construct($data); + } + + /** + * Required. Denotes the location of a trip waypoint. + * + * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Type\LatLng|null + */ + public function getPoint() + { + return $this->point; + } + + public function hasPoint() + { + return isset($this->point); + } + + public function clearPoint() + { + unset($this->point); + } + + /** + * Required. Denotes the location of a trip waypoint. + * + * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Type\LatLng $var + * @return $this + */ + public function setPoint($var) + { + GPBUtil::checkMessage($var, \Google\Type\LatLng::class); + $this->point = $var; + + return $this; + } + + /** + * Deprecated: Specify the `point` field instead. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalPointId terminal_point_id = 2 [deprecated = true]; + * @return \Google\Maps\FleetEngine\V1\TerminalPointId|null + * @deprecated + */ + public function getTerminalPointId() + { + @trigger_error('terminal_point_id is deprecated.', E_USER_DEPRECATED); + return $this->terminal_point_id; + } + + public function hasTerminalPointId() + { + @trigger_error('terminal_point_id is deprecated.', E_USER_DEPRECATED); + return isset($this->terminal_point_id); + } + + public function clearTerminalPointId() + { + @trigger_error('terminal_point_id is deprecated.', E_USER_DEPRECATED); + unset($this->terminal_point_id); + } + + /** + * Deprecated: Specify the `point` field instead. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalPointId terminal_point_id = 2 [deprecated = true]; + * @param \Google\Maps\FleetEngine\V1\TerminalPointId $var + * @return $this + * @deprecated + */ + public function setTerminalPointId($var) + { + @trigger_error('terminal_point_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalPointId::class); + $this->terminal_point_id = $var; + + return $this; + } + + /** + * Deprecated: Specify the `point` field instead. + * + * Generated from protobuf field string access_point_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getAccessPointId() + { + @trigger_error('access_point_id is deprecated.', E_USER_DEPRECATED); + return $this->access_point_id; + } + + /** + * Deprecated: Specify the `point` field instead. + * + * Generated from protobuf field string access_point_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setAccessPointId($var) + { + @trigger_error('access_point_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->access_point_id = $var; + + return $this; + } + + /** + * Deprecated. + * + * Generated from protobuf field string trip_id = 4 [deprecated = true]; + * @return string + * @deprecated + */ + public function getTripId() + { + @trigger_error('trip_id is deprecated.', E_USER_DEPRECATED); + return $this->trip_id; + } + + /** + * Deprecated. + * + * Generated from protobuf field string trip_id = 4 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setTripId($var) + { + @trigger_error('trip_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->trip_id = $var; + + return $this; + } + + /** + * Deprecated: `Vehicle.waypoint` will have this data. + * + * Generated from protobuf field .maps.fleetengine.v1.WaypointType terminal_location_type = 5 [deprecated = true]; + * @return int + * @deprecated + */ + public function getTerminalLocationType() + { + @trigger_error('terminal_location_type is deprecated.', E_USER_DEPRECATED); + return $this->terminal_location_type; + } + + /** + * Deprecated: `Vehicle.waypoint` will have this data. + * + * Generated from protobuf field .maps.fleetengine.v1.WaypointType terminal_location_type = 5 [deprecated = true]; + * @param int $var + * @return $this + * @deprecated + */ + public function setTerminalLocationType($var) + { + @trigger_error('terminal_location_type is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\WaypointType::class); + $this->terminal_location_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalPointId.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalPointId.php new file mode 100644 index 000000000000..dbd1ada8ce1c --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalPointId.php @@ -0,0 +1,159 @@ +maps.fleetengine.v1.TerminalPointId + */ +class TerminalPointId extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. + * + * Generated from protobuf field string value = 4 [deprecated = true]; + * @deprecated + */ + protected $value = ''; + protected $Id; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $place_id + * Deprecated. + * @type string $generated_id + * Deprecated. + * @type string $value + * Deprecated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Fleetengine::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. + * + * Generated from protobuf field string place_id = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getPlaceId() + { + @trigger_error('place_id is deprecated.', E_USER_DEPRECATED); + return $this->readOneof(2); + } + + public function hasPlaceId() + { + @trigger_error('place_id is deprecated.', E_USER_DEPRECATED); + return $this->hasOneof(2); + } + + /** + * Deprecated. + * + * Generated from protobuf field string place_id = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setPlaceId($var) + { + @trigger_error('place_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Deprecated. + * + * Generated from protobuf field string generated_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getGeneratedId() + { + @trigger_error('generated_id is deprecated.', E_USER_DEPRECATED); + return $this->readOneof(3); + } + + public function hasGeneratedId() + { + @trigger_error('generated_id is deprecated.', E_USER_DEPRECATED); + return $this->hasOneof(3); + } + + /** + * Deprecated. + * + * Generated from protobuf field string generated_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setGeneratedId($var) + { + @trigger_error('generated_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Deprecated. + * + * Generated from protobuf field string value = 4 [deprecated = true]; + * @return string + * @deprecated + */ + public function getValue() + { + @trigger_error('value is deprecated.', E_USER_DEPRECATED); + return $this->value; + } + + /** + * Deprecated. + * + * Generated from protobuf field string value = 4 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setValue($var) + { + @trigger_error('value is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * @return string + */ + public function getId() + { + return $this->whichOneof("Id"); + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TrafficPolylineData.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TrafficPolylineData.php new file mode 100644 index 000000000000..d40f215739bf --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TrafficPolylineData.php @@ -0,0 +1,81 @@ +maps.fleetengine.v1.TrafficPolylineData + */ +class TrafficPolylineData extends \Google\Protobuf\Internal\Message +{ + /** + * A polyline rendering of how fast traffic is for all regions along + * one stretch of a customer ride. + * + * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering traffic_rendering = 1; + */ + protected $traffic_rendering = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering $traffic_rendering + * A polyline rendering of how fast traffic is for all regions along + * one stretch of a customer ride. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); + parent::__construct($data); + } + + /** + * A polyline rendering of how fast traffic is for all regions along + * one stretch of a customer ride. + * + * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering traffic_rendering = 1; + * @return \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering|null + */ + public function getTrafficRendering() + { + return $this->traffic_rendering; + } + + public function hasTrafficRendering() + { + return isset($this->traffic_rendering); + } + + public function clearTrafficRendering() + { + unset($this->traffic_rendering); + } + + /** + * A polyline rendering of how fast traffic is for all regions along + * one stretch of a customer ride. + * + * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering traffic_rendering = 1; + * @param \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering $var + * @return $this + */ + public function setTrafficRendering($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering::class); + $this->traffic_rendering = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Trip.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Trip.php new file mode 100644 index 000000000000..8a5d139fee2e --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Trip.php @@ -0,0 +1,1614 @@ +maps.fleetengine.v1.Trip + */ +class Trip extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. In the format "providers/{provider}/trips/{trip}" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * ID of the vehicle making this trip. + * + * Generated from protobuf field string vehicle_id = 2; + */ + protected $vehicle_id = ''; + /** + * Current status of the trip. + * + * Generated from protobuf field .maps.fleetengine.v1.TripStatus trip_status = 3; + */ + protected $trip_status = 0; + /** + * The type of the trip. + * + * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 4; + */ + protected $trip_type = 0; + /** + * Location where customer indicates they will be picked up. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 5; + */ + protected $pickup_point = null; + /** + * Input only. The actual location when and where customer was picked up. + * This field is for provider to provide feedback on actual pickup + * information. + * + * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_point = 22 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $actual_pickup_point = null; + /** + * Input only. The actual time and location of the driver arrival at + * the pickup point. + * This field is for provider to provide feedback on actual arrival + * information at the pickup point. + * + * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_arrival_point = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $actual_pickup_arrival_point = null; + /** + * Output only. Either the estimated future time when the rider(s) will be + * picked up, or the actual time when they were picked up. + * + * Generated from protobuf field .google.protobuf.Timestamp pickup_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $pickup_time = null; + /** + * Intermediate stops in order that the trip requests (in addition + * to pickup and dropoff). Initially this will not be supported for shared + * trips. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation intermediate_destinations = 14; + */ + private $intermediate_destinations; + /** + * Indicates the last time the `intermediate_destinations` was modified. + * Your server should cache this value and pass it in `UpdateTripRequest` + * when update `intermediate_destination_index` to ensure the + * `intermediate_destinations` is not changed. + * + * Generated from protobuf field .google.protobuf.Timestamp intermediate_destinations_version = 25; + */ + protected $intermediate_destinations_version = null; + /** + * When `TripStatus` is `ENROUTE_TO_INTERMEDIATE_DESTINATION`, a number + * between [0..N-1] indicating which intermediate destination the vehicle will + * cross next. When `TripStatus` is `ARRIVED_AT_INTERMEDIATE_DESTINATION`, a + * number between [0..N-1] indicating which intermediate destination the + * vehicle is at. The provider sets this value. If there are no + * `intermediate_destinations`, this field is ignored. + * + * Generated from protobuf field int32 intermediate_destination_index = 15; + */ + protected $intermediate_destination_index = 0; + /** + * Input only. The actual time and location of the driver's arrival at + * an intermediate destination. + * This field is for provider to provide feedback on actual arrival + * information at intermediate destinations. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destination_arrival_points = 33 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + private $actual_intermediate_destination_arrival_points; + /** + * Input only. The actual time and location when and where the customer was + * picked up from an intermediate destination. This field is for provider to + * provide feedback on actual pickup information at intermediate destinations. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destinations = 34 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + private $actual_intermediate_destinations; + /** + * Location where customer indicates they will be dropped off. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 7; + */ + protected $dropoff_point = null; + /** + * Input only. The actual time and location when and where customer was + * dropped off. This field is for provider to provide feedback on actual + * dropoff information. + * + * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_dropoff_point = 23 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $actual_dropoff_point = null; + /** + * Output only. Either the estimated future time when the rider(s) will be + * dropped off at the final destination, or the actual time when they were + * dropped off. + * + * Generated from protobuf field .google.protobuf.Timestamp dropoff_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $dropoff_time = null; + /** + * Output only. The full path from the current location to the dropoff point, + * inclusive. This path could include waypoints from other trips. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint remaining_waypoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $remaining_waypoints; + /** + * This field supports manual ordering of the waypoints for the trip. It + * contains all of the remaining waypoints for the assigned vehicle, as well + * as the pickup and drop-off waypoints for this trip. If the trip hasn't been + * assigned to a vehicle, then Fleet Engine ignores this field. For privacy + * reasons, this field is only populated by the server on `UpdateTrip` and + * `CreateTrip` calls, NOT on `GetTrip` calls. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint vehicle_waypoints = 20; + */ + private $vehicle_waypoints; + /** + * Output only. Anticipated route for this trip to the first entry in + * remaining_waypoints. Note that the first waypoint may belong to a different + * trip. + * + * Generated from protobuf field repeated .google.type.LatLng route = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $route; + /** + * Output only. An encoded path to the next waypoint. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. Decoding is not yet supported. + * + * Generated from protobuf field string current_route_segment = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $current_route_segment = ''; + /** + * Output only. Indicates the last time the route was modified. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $current_route_segment_version = null; + /** + * Output only. Indicates the traffic conditions along the + * `current_route_segment` when they're available. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * + * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline current_route_segment_traffic = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $current_route_segment_traffic = null; + /** + * Output only. Indicates the last time the `current_route_segment_traffic` + * was modified. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $current_route_segment_traffic_version = null; + /** + * Output only. The waypoint where `current_route_segment` ends. + * + * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $current_route_segment_end_point = null; + /** + * Output only. The remaining driving distance in the `current_route_segment` + * field. The value is unspecified if the trip is not assigned to a vehicle, + * or the trip is completed or cancelled. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $remaining_distance_meters = null; + /** + * Output only. The ETA to the next waypoint (the first entry in the + * `remaining_waypoints` field). The value is unspecified if the trip is not + * assigned to a vehicle, or the trip is inactive (completed or cancelled). + * + * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $eta_to_first_waypoint = null; + /** + * Output only. The duration from when the Trip data is returned to the time + * in `Trip.eta_to_first_waypoint`. The value is unspecified if the trip is + * not assigned to a vehicle, or the trip is inactive (completed or + * cancelled). + * + * Generated from protobuf field .google.protobuf.Duration remaining_time_to_first_waypoint = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $remaining_time_to_first_waypoint = null; + /** + * Output only. Indicates the last time that `remaining_waypoints` was changed + * (a waypoint was added, removed, or changed). + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $remaining_waypoints_version = null; + /** + * Output only. Indicates the last time the + * `remaining_waypoints.path_to_waypoint` and + * `remaining_waypoints.traffic_to_waypoint` were modified. Your client app + * should cache this value and pass it in `GetTripRequest` to ensure the + * paths and traffic for `remaining_waypoints` are only returned if updated. + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $remaining_waypoints_route_version = null; + /** + * Immutable. Indicates the number of passengers on this trip and does not + * include the driver. A vehicle must have available capacity to be returned + * in a `SearchVehicles` response. + * + * Generated from protobuf field int32 number_of_passengers = 10 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $number_of_passengers = 0; + /** + * Output only. Indicates the last reported location of the vehicle along the + * route. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_location = null; + /** + * Output only. Indicates whether the vehicle's `last_location` can be snapped + * to the current_route_segment. False if `last_location` or + * `current_route_segment` doesn't exist. + * It is computed by Fleet Engine. Any update from clients will be ignored. + * + * Generated from protobuf field bool last_location_snappable = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_location_snappable = false; + /** + * The subset of Trip fields that are populated and how they should be + * interpreted. + * + * Generated from protobuf field .maps.fleetengine.v1.TripView view = 31; + */ + protected $view = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. In the format "providers/{provider}/trips/{trip}" + * @type string $vehicle_id + * ID of the vehicle making this trip. + * @type int $trip_status + * Current status of the trip. + * @type int $trip_type + * The type of the trip. + * @type \Google\Maps\FleetEngine\V1\TerminalLocation $pickup_point + * Location where customer indicates they will be picked up. + * @type \Google\Maps\FleetEngine\V1\StopLocation $actual_pickup_point + * Input only. The actual location when and where customer was picked up. + * This field is for provider to provide feedback on actual pickup + * information. + * @type \Google\Maps\FleetEngine\V1\StopLocation $actual_pickup_arrival_point + * Input only. The actual time and location of the driver arrival at + * the pickup point. + * This field is for provider to provide feedback on actual arrival + * information at the pickup point. + * @type \Google\Protobuf\Timestamp $pickup_time + * Output only. Either the estimated future time when the rider(s) will be + * picked up, or the actual time when they were picked up. + * @type array<\Google\Maps\FleetEngine\V1\TerminalLocation>|\Google\Protobuf\Internal\RepeatedField $intermediate_destinations + * Intermediate stops in order that the trip requests (in addition + * to pickup and dropoff). Initially this will not be supported for shared + * trips. + * @type \Google\Protobuf\Timestamp $intermediate_destinations_version + * Indicates the last time the `intermediate_destinations` was modified. + * Your server should cache this value and pass it in `UpdateTripRequest` + * when update `intermediate_destination_index` to ensure the + * `intermediate_destinations` is not changed. + * @type int $intermediate_destination_index + * When `TripStatus` is `ENROUTE_TO_INTERMEDIATE_DESTINATION`, a number + * between [0..N-1] indicating which intermediate destination the vehicle will + * cross next. When `TripStatus` is `ARRIVED_AT_INTERMEDIATE_DESTINATION`, a + * number between [0..N-1] indicating which intermediate destination the + * vehicle is at. The provider sets this value. If there are no + * `intermediate_destinations`, this field is ignored. + * @type array<\Google\Maps\FleetEngine\V1\StopLocation>|\Google\Protobuf\Internal\RepeatedField $actual_intermediate_destination_arrival_points + * Input only. The actual time and location of the driver's arrival at + * an intermediate destination. + * This field is for provider to provide feedback on actual arrival + * information at intermediate destinations. + * @type array<\Google\Maps\FleetEngine\V1\StopLocation>|\Google\Protobuf\Internal\RepeatedField $actual_intermediate_destinations + * Input only. The actual time and location when and where the customer was + * picked up from an intermediate destination. This field is for provider to + * provide feedback on actual pickup information at intermediate destinations. + * @type \Google\Maps\FleetEngine\V1\TerminalLocation $dropoff_point + * Location where customer indicates they will be dropped off. + * @type \Google\Maps\FleetEngine\V1\StopLocation $actual_dropoff_point + * Input only. The actual time and location when and where customer was + * dropped off. This field is for provider to provide feedback on actual + * dropoff information. + * @type \Google\Protobuf\Timestamp $dropoff_time + * Output only. Either the estimated future time when the rider(s) will be + * dropped off at the final destination, or the actual time when they were + * dropped off. + * @type array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $remaining_waypoints + * Output only. The full path from the current location to the dropoff point, + * inclusive. This path could include waypoints from other trips. + * @type array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $vehicle_waypoints + * This field supports manual ordering of the waypoints for the trip. It + * contains all of the remaining waypoints for the assigned vehicle, as well + * as the pickup and drop-off waypoints for this trip. If the trip hasn't been + * assigned to a vehicle, then Fleet Engine ignores this field. For privacy + * reasons, this field is only populated by the server on `UpdateTrip` and + * `CreateTrip` calls, NOT on `GetTrip` calls. + * @type array<\Google\Type\LatLng>|\Google\Protobuf\Internal\RepeatedField $route + * Output only. Anticipated route for this trip to the first entry in + * remaining_waypoints. Note that the first waypoint may belong to a different + * trip. + * @type string $current_route_segment + * Output only. An encoded path to the next waypoint. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. Decoding is not yet supported. + * @type \Google\Protobuf\Timestamp $current_route_segment_version + * Output only. Indicates the last time the route was modified. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * @type \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline $current_route_segment_traffic + * Output only. Indicates the traffic conditions along the + * `current_route_segment` when they're available. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * @type \Google\Protobuf\Timestamp $current_route_segment_traffic_version + * Output only. Indicates the last time the `current_route_segment_traffic` + * was modified. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * @type \Google\Maps\FleetEngine\V1\TripWaypoint $current_route_segment_end_point + * Output only. The waypoint where `current_route_segment` ends. + * @type \Google\Protobuf\Int32Value $remaining_distance_meters + * Output only. The remaining driving distance in the `current_route_segment` + * field. The value is unspecified if the trip is not assigned to a vehicle, + * or the trip is completed or cancelled. + * @type \Google\Protobuf\Timestamp $eta_to_first_waypoint + * Output only. The ETA to the next waypoint (the first entry in the + * `remaining_waypoints` field). The value is unspecified if the trip is not + * assigned to a vehicle, or the trip is inactive (completed or cancelled). + * @type \Google\Protobuf\Duration $remaining_time_to_first_waypoint + * Output only. The duration from when the Trip data is returned to the time + * in `Trip.eta_to_first_waypoint`. The value is unspecified if the trip is + * not assigned to a vehicle, or the trip is inactive (completed or + * cancelled). + * @type \Google\Protobuf\Timestamp $remaining_waypoints_version + * Output only. Indicates the last time that `remaining_waypoints` was changed + * (a waypoint was added, removed, or changed). + * @type \Google\Protobuf\Timestamp $remaining_waypoints_route_version + * Output only. Indicates the last time the + * `remaining_waypoints.path_to_waypoint` and + * `remaining_waypoints.traffic_to_waypoint` were modified. Your client app + * should cache this value and pass it in `GetTripRequest` to ensure the + * paths and traffic for `remaining_waypoints` are only returned if updated. + * @type int $number_of_passengers + * Immutable. Indicates the number of passengers on this trip and does not + * include the driver. A vehicle must have available capacity to be returned + * in a `SearchVehicles` response. + * @type \Google\Maps\FleetEngine\V1\VehicleLocation $last_location + * Output only. Indicates the last reported location of the vehicle along the + * route. + * @type bool $last_location_snappable + * Output only. Indicates whether the vehicle's `last_location` can be snapped + * to the current_route_segment. False if `last_location` or + * `current_route_segment` doesn't exist. + * It is computed by Fleet Engine. Any update from clients will be ignored. + * @type int $view + * The subset of Trip fields that are populated and how they should be + * interpreted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Trips::initOnce(); + parent::__construct($data); + } + + /** + * Output only. In the format "providers/{provider}/trips/{trip}" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. In the format "providers/{provider}/trips/{trip}" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * ID of the vehicle making this trip. + * + * Generated from protobuf field string vehicle_id = 2; + * @return string + */ + public function getVehicleId() + { + return $this->vehicle_id; + } + + /** + * ID of the vehicle making this trip. + * + * Generated from protobuf field string vehicle_id = 2; + * @param string $var + * @return $this + */ + public function setVehicleId($var) + { + GPBUtil::checkString($var, True); + $this->vehicle_id = $var; + + return $this; + } + + /** + * Current status of the trip. + * + * Generated from protobuf field .maps.fleetengine.v1.TripStatus trip_status = 3; + * @return int + */ + public function getTripStatus() + { + return $this->trip_status; + } + + /** + * Current status of the trip. + * + * Generated from protobuf field .maps.fleetengine.v1.TripStatus trip_status = 3; + * @param int $var + * @return $this + */ + public function setTripStatus($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\TripStatus::class); + $this->trip_status = $var; + + return $this; + } + + /** + * The type of the trip. + * + * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 4; + * @return int + */ + public function getTripType() + { + return $this->trip_type; + } + + /** + * The type of the trip. + * + * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 4; + * @param int $var + * @return $this + */ + public function setTripType($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\TripType::class); + $this->trip_type = $var; + + return $this; + } + + /** + * Location where customer indicates they will be picked up. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 5; + * @return \Google\Maps\FleetEngine\V1\TerminalLocation|null + */ + public function getPickupPoint() + { + return $this->pickup_point; + } + + public function hasPickupPoint() + { + return isset($this->pickup_point); + } + + public function clearPickupPoint() + { + unset($this->pickup_point); + } + + /** + * Location where customer indicates they will be picked up. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 5; + * @param \Google\Maps\FleetEngine\V1\TerminalLocation $var + * @return $this + */ + public function setPickupPoint($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalLocation::class); + $this->pickup_point = $var; + + return $this; + } + + /** + * Input only. The actual location when and where customer was picked up. + * This field is for provider to provide feedback on actual pickup + * information. + * + * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_point = 22 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Maps\FleetEngine\V1\StopLocation|null + */ + public function getActualPickupPoint() + { + return $this->actual_pickup_point; + } + + public function hasActualPickupPoint() + { + return isset($this->actual_pickup_point); + } + + public function clearActualPickupPoint() + { + unset($this->actual_pickup_point); + } + + /** + * Input only. The actual location when and where customer was picked up. + * This field is for provider to provide feedback on actual pickup + * information. + * + * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_point = 22 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Maps\FleetEngine\V1\StopLocation $var + * @return $this + */ + public function setActualPickupPoint($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\StopLocation::class); + $this->actual_pickup_point = $var; + + return $this; + } + + /** + * Input only. The actual time and location of the driver arrival at + * the pickup point. + * This field is for provider to provide feedback on actual arrival + * information at the pickup point. + * + * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_arrival_point = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Maps\FleetEngine\V1\StopLocation|null + */ + public function getActualPickupArrivalPoint() + { + return $this->actual_pickup_arrival_point; + } + + public function hasActualPickupArrivalPoint() + { + return isset($this->actual_pickup_arrival_point); + } + + public function clearActualPickupArrivalPoint() + { + unset($this->actual_pickup_arrival_point); + } + + /** + * Input only. The actual time and location of the driver arrival at + * the pickup point. + * This field is for provider to provide feedback on actual arrival + * information at the pickup point. + * + * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_arrival_point = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Maps\FleetEngine\V1\StopLocation $var + * @return $this + */ + public function setActualPickupArrivalPoint($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\StopLocation::class); + $this->actual_pickup_arrival_point = $var; + + return $this; + } + + /** + * Output only. Either the estimated future time when the rider(s) will be + * picked up, or the actual time when they were picked up. + * + * Generated from protobuf field .google.protobuf.Timestamp pickup_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getPickupTime() + { + return $this->pickup_time; + } + + public function hasPickupTime() + { + return isset($this->pickup_time); + } + + public function clearPickupTime() + { + unset($this->pickup_time); + } + + /** + * Output only. Either the estimated future time when the rider(s) will be + * picked up, or the actual time when they were picked up. + * + * Generated from protobuf field .google.protobuf.Timestamp pickup_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setPickupTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->pickup_time = $var; + + return $this; + } + + /** + * Intermediate stops in order that the trip requests (in addition + * to pickup and dropoff). Initially this will not be supported for shared + * trips. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation intermediate_destinations = 14; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getIntermediateDestinations() + { + return $this->intermediate_destinations; + } + + /** + * Intermediate stops in order that the trip requests (in addition + * to pickup and dropoff). Initially this will not be supported for shared + * trips. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation intermediate_destinations = 14; + * @param array<\Google\Maps\FleetEngine\V1\TerminalLocation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setIntermediateDestinations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\TerminalLocation::class); + $this->intermediate_destinations = $arr; + + return $this; + } + + /** + * Indicates the last time the `intermediate_destinations` was modified. + * Your server should cache this value and pass it in `UpdateTripRequest` + * when update `intermediate_destination_index` to ensure the + * `intermediate_destinations` is not changed. + * + * Generated from protobuf field .google.protobuf.Timestamp intermediate_destinations_version = 25; + * @return \Google\Protobuf\Timestamp|null + */ + public function getIntermediateDestinationsVersion() + { + return $this->intermediate_destinations_version; + } + + public function hasIntermediateDestinationsVersion() + { + return isset($this->intermediate_destinations_version); + } + + public function clearIntermediateDestinationsVersion() + { + unset($this->intermediate_destinations_version); + } + + /** + * Indicates the last time the `intermediate_destinations` was modified. + * Your server should cache this value and pass it in `UpdateTripRequest` + * when update `intermediate_destination_index` to ensure the + * `intermediate_destinations` is not changed. + * + * Generated from protobuf field .google.protobuf.Timestamp intermediate_destinations_version = 25; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setIntermediateDestinationsVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->intermediate_destinations_version = $var; + + return $this; + } + + /** + * When `TripStatus` is `ENROUTE_TO_INTERMEDIATE_DESTINATION`, a number + * between [0..N-1] indicating which intermediate destination the vehicle will + * cross next. When `TripStatus` is `ARRIVED_AT_INTERMEDIATE_DESTINATION`, a + * number between [0..N-1] indicating which intermediate destination the + * vehicle is at. The provider sets this value. If there are no + * `intermediate_destinations`, this field is ignored. + * + * Generated from protobuf field int32 intermediate_destination_index = 15; + * @return int + */ + public function getIntermediateDestinationIndex() + { + return $this->intermediate_destination_index; + } + + /** + * When `TripStatus` is `ENROUTE_TO_INTERMEDIATE_DESTINATION`, a number + * between [0..N-1] indicating which intermediate destination the vehicle will + * cross next. When `TripStatus` is `ARRIVED_AT_INTERMEDIATE_DESTINATION`, a + * number between [0..N-1] indicating which intermediate destination the + * vehicle is at. The provider sets this value. If there are no + * `intermediate_destinations`, this field is ignored. + * + * Generated from protobuf field int32 intermediate_destination_index = 15; + * @param int $var + * @return $this + */ + public function setIntermediateDestinationIndex($var) + { + GPBUtil::checkInt32($var); + $this->intermediate_destination_index = $var; + + return $this; + } + + /** + * Input only. The actual time and location of the driver's arrival at + * an intermediate destination. + * This field is for provider to provide feedback on actual arrival + * information at intermediate destinations. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destination_arrival_points = 33 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getActualIntermediateDestinationArrivalPoints() + { + return $this->actual_intermediate_destination_arrival_points; + } + + /** + * Input only. The actual time and location of the driver's arrival at + * an intermediate destination. + * This field is for provider to provide feedback on actual arrival + * information at intermediate destinations. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destination_arrival_points = 33 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param array<\Google\Maps\FleetEngine\V1\StopLocation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setActualIntermediateDestinationArrivalPoints($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\StopLocation::class); + $this->actual_intermediate_destination_arrival_points = $arr; + + return $this; + } + + /** + * Input only. The actual time and location when and where the customer was + * picked up from an intermediate destination. This field is for provider to + * provide feedback on actual pickup information at intermediate destinations. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destinations = 34 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getActualIntermediateDestinations() + { + return $this->actual_intermediate_destinations; + } + + /** + * Input only. The actual time and location when and where the customer was + * picked up from an intermediate destination. This field is for provider to + * provide feedback on actual pickup information at intermediate destinations. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destinations = 34 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param array<\Google\Maps\FleetEngine\V1\StopLocation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setActualIntermediateDestinations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\StopLocation::class); + $this->actual_intermediate_destinations = $arr; + + return $this; + } + + /** + * Location where customer indicates they will be dropped off. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 7; + * @return \Google\Maps\FleetEngine\V1\TerminalLocation|null + */ + public function getDropoffPoint() + { + return $this->dropoff_point; + } + + public function hasDropoffPoint() + { + return isset($this->dropoff_point); + } + + public function clearDropoffPoint() + { + unset($this->dropoff_point); + } + + /** + * Location where customer indicates they will be dropped off. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 7; + * @param \Google\Maps\FleetEngine\V1\TerminalLocation $var + * @return $this + */ + public function setDropoffPoint($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalLocation::class); + $this->dropoff_point = $var; + + return $this; + } + + /** + * Input only. The actual time and location when and where customer was + * dropped off. This field is for provider to provide feedback on actual + * dropoff information. + * + * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_dropoff_point = 23 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Maps\FleetEngine\V1\StopLocation|null + */ + public function getActualDropoffPoint() + { + return $this->actual_dropoff_point; + } + + public function hasActualDropoffPoint() + { + return isset($this->actual_dropoff_point); + } + + public function clearActualDropoffPoint() + { + unset($this->actual_dropoff_point); + } + + /** + * Input only. The actual time and location when and where customer was + * dropped off. This field is for provider to provide feedback on actual + * dropoff information. + * + * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_dropoff_point = 23 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Maps\FleetEngine\V1\StopLocation $var + * @return $this + */ + public function setActualDropoffPoint($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\StopLocation::class); + $this->actual_dropoff_point = $var; + + return $this; + } + + /** + * Output only. Either the estimated future time when the rider(s) will be + * dropped off at the final destination, or the actual time when they were + * dropped off. + * + * Generated from protobuf field .google.protobuf.Timestamp dropoff_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getDropoffTime() + { + return $this->dropoff_time; + } + + public function hasDropoffTime() + { + return isset($this->dropoff_time); + } + + public function clearDropoffTime() + { + unset($this->dropoff_time); + } + + /** + * Output only. Either the estimated future time when the rider(s) will be + * dropped off at the final destination, or the actual time when they were + * dropped off. + * + * Generated from protobuf field .google.protobuf.Timestamp dropoff_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setDropoffTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->dropoff_time = $var; + + return $this; + } + + /** + * Output only. The full path from the current location to the dropoff point, + * inclusive. This path could include waypoints from other trips. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint remaining_waypoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRemainingWaypoints() + { + return $this->remaining_waypoints; + } + + /** + * Output only. The full path from the current location to the dropoff point, + * inclusive. This path could include waypoints from other trips. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint remaining_waypoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRemainingWaypoints($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\TripWaypoint::class); + $this->remaining_waypoints = $arr; + + return $this; + } + + /** + * This field supports manual ordering of the waypoints for the trip. It + * contains all of the remaining waypoints for the assigned vehicle, as well + * as the pickup and drop-off waypoints for this trip. If the trip hasn't been + * assigned to a vehicle, then Fleet Engine ignores this field. For privacy + * reasons, this field is only populated by the server on `UpdateTrip` and + * `CreateTrip` calls, NOT on `GetTrip` calls. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint vehicle_waypoints = 20; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getVehicleWaypoints() + { + return $this->vehicle_waypoints; + } + + /** + * This field supports manual ordering of the waypoints for the trip. It + * contains all of the remaining waypoints for the assigned vehicle, as well + * as the pickup and drop-off waypoints for this trip. If the trip hasn't been + * assigned to a vehicle, then Fleet Engine ignores this field. For privacy + * reasons, this field is only populated by the server on `UpdateTrip` and + * `CreateTrip` calls, NOT on `GetTrip` calls. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint vehicle_waypoints = 20; + * @param array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setVehicleWaypoints($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\TripWaypoint::class); + $this->vehicle_waypoints = $arr; + + return $this; + } + + /** + * Output only. Anticipated route for this trip to the first entry in + * remaining_waypoints. Note that the first waypoint may belong to a different + * trip. + * + * Generated from protobuf field repeated .google.type.LatLng route = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRoute() + { + return $this->route; + } + + /** + * Output only. Anticipated route for this trip to the first entry in + * remaining_waypoints. Note that the first waypoint may belong to a different + * trip. + * + * Generated from protobuf field repeated .google.type.LatLng route = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Type\LatLng>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRoute($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Type\LatLng::class); + $this->route = $arr; + + return $this; + } + + /** + * Output only. An encoded path to the next waypoint. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. Decoding is not yet supported. + * + * Generated from protobuf field string current_route_segment = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCurrentRouteSegment() + { + return $this->current_route_segment; + } + + /** + * Output only. An encoded path to the next waypoint. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. Decoding is not yet supported. + * + * Generated from protobuf field string current_route_segment = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCurrentRouteSegment($var) + { + GPBUtil::checkString($var, True); + $this->current_route_segment = $var; + + return $this; + } + + /** + * Output only. Indicates the last time the route was modified. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCurrentRouteSegmentVersion() + { + return $this->current_route_segment_version; + } + + public function hasCurrentRouteSegmentVersion() + { + return isset($this->current_route_segment_version); + } + + public function clearCurrentRouteSegmentVersion() + { + unset($this->current_route_segment_version); + } + + /** + * Output only. Indicates the last time the route was modified. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCurrentRouteSegmentVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->current_route_segment_version = $var; + + return $this; + } + + /** + * Output only. Indicates the traffic conditions along the + * `current_route_segment` when they're available. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * + * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline current_route_segment_traffic = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline|null + */ + public function getCurrentRouteSegmentTraffic() + { + return $this->current_route_segment_traffic; + } + + public function hasCurrentRouteSegmentTraffic() + { + return isset($this->current_route_segment_traffic); + } + + public function clearCurrentRouteSegmentTraffic() + { + unset($this->current_route_segment_traffic); + } + + /** + * Output only. Indicates the traffic conditions along the + * `current_route_segment` when they're available. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * + * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline current_route_segment_traffic = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline $var + * @return $this + */ + public function setCurrentRouteSegmentTraffic($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline::class); + $this->current_route_segment_traffic = $var; + + return $this; + } + + /** + * Output only. Indicates the last time the `current_route_segment_traffic` + * was modified. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCurrentRouteSegmentTrafficVersion() + { + return $this->current_route_segment_traffic_version; + } + + public function hasCurrentRouteSegmentTrafficVersion() + { + return isset($this->current_route_segment_traffic_version); + } + + public function clearCurrentRouteSegmentTrafficVersion() + { + unset($this->current_route_segment_traffic_version); + } + + /** + * Output only. Indicates the last time the `current_route_segment_traffic` + * was modified. + * Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCurrentRouteSegmentTrafficVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->current_route_segment_traffic_version = $var; + + return $this; + } + + /** + * Output only. The waypoint where `current_route_segment` ends. + * + * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Maps\FleetEngine\V1\TripWaypoint|null + */ + public function getCurrentRouteSegmentEndPoint() + { + return $this->current_route_segment_end_point; + } + + public function hasCurrentRouteSegmentEndPoint() + { + return isset($this->current_route_segment_end_point); + } + + public function clearCurrentRouteSegmentEndPoint() + { + unset($this->current_route_segment_end_point); + } + + /** + * Output only. The waypoint where `current_route_segment` ends. + * + * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Maps\FleetEngine\V1\TripWaypoint $var + * @return $this + */ + public function setCurrentRouteSegmentEndPoint($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TripWaypoint::class); + $this->current_route_segment_end_point = $var; + + return $this; + } + + /** + * Output only. The remaining driving distance in the `current_route_segment` + * field. The value is unspecified if the trip is not assigned to a vehicle, + * or the trip is completed or cancelled. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Int32Value|null + */ + public function getRemainingDistanceMeters() + { + return $this->remaining_distance_meters; + } + + public function hasRemainingDistanceMeters() + { + return isset($this->remaining_distance_meters); + } + + public function clearRemainingDistanceMeters() + { + unset($this->remaining_distance_meters); + } + + /** + * Returns the unboxed value from getRemainingDistanceMeters() + + * Output only. The remaining driving distance in the `current_route_segment` + * field. The value is unspecified if the trip is not assigned to a vehicle, + * or the trip is completed or cancelled. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|null + */ + public function getRemainingDistanceMetersUnwrapped() + { + return $this->readWrapperValue("remaining_distance_meters"); + } + + /** + * Output only. The remaining driving distance in the `current_route_segment` + * field. The value is unspecified if the trip is not assigned to a vehicle, + * or the trip is completed or cancelled. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Int32Value $var + * @return $this + */ + public function setRemainingDistanceMeters($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->remaining_distance_meters = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * Output only. The remaining driving distance in the `current_route_segment` + * field. The value is unspecified if the trip is not assigned to a vehicle, + * or the trip is completed or cancelled. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|null $var + * @return $this + */ + public function setRemainingDistanceMetersUnwrapped($var) + { + $this->writeWrapperValue("remaining_distance_meters", $var); + return $this;} + + /** + * Output only. The ETA to the next waypoint (the first entry in the + * `remaining_waypoints` field). The value is unspecified if the trip is not + * assigned to a vehicle, or the trip is inactive (completed or cancelled). + * + * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEtaToFirstWaypoint() + { + return $this->eta_to_first_waypoint; + } + + public function hasEtaToFirstWaypoint() + { + return isset($this->eta_to_first_waypoint); + } + + public function clearEtaToFirstWaypoint() + { + unset($this->eta_to_first_waypoint); + } + + /** + * Output only. The ETA to the next waypoint (the first entry in the + * `remaining_waypoints` field). The value is unspecified if the trip is not + * assigned to a vehicle, or the trip is inactive (completed or cancelled). + * + * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEtaToFirstWaypoint($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->eta_to_first_waypoint = $var; + + return $this; + } + + /** + * Output only. The duration from when the Trip data is returned to the time + * in `Trip.eta_to_first_waypoint`. The value is unspecified if the trip is + * not assigned to a vehicle, or the trip is inactive (completed or + * cancelled). + * + * Generated from protobuf field .google.protobuf.Duration remaining_time_to_first_waypoint = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Duration|null + */ + public function getRemainingTimeToFirstWaypoint() + { + return $this->remaining_time_to_first_waypoint; + } + + public function hasRemainingTimeToFirstWaypoint() + { + return isset($this->remaining_time_to_first_waypoint); + } + + public function clearRemainingTimeToFirstWaypoint() + { + unset($this->remaining_time_to_first_waypoint); + } + + /** + * Output only. The duration from when the Trip data is returned to the time + * in `Trip.eta_to_first_waypoint`. The value is unspecified if the trip is + * not assigned to a vehicle, or the trip is inactive (completed or + * cancelled). + * + * Generated from protobuf field .google.protobuf.Duration remaining_time_to_first_waypoint = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setRemainingTimeToFirstWaypoint($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->remaining_time_to_first_waypoint = $var; + + return $this; + } + + /** + * Output only. Indicates the last time that `remaining_waypoints` was changed + * (a waypoint was added, removed, or changed). + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRemainingWaypointsVersion() + { + return $this->remaining_waypoints_version; + } + + public function hasRemainingWaypointsVersion() + { + return isset($this->remaining_waypoints_version); + } + + public function clearRemainingWaypointsVersion() + { + unset($this->remaining_waypoints_version); + } + + /** + * Output only. Indicates the last time that `remaining_waypoints` was changed + * (a waypoint was added, removed, or changed). + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRemainingWaypointsVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->remaining_waypoints_version = $var; + + return $this; + } + + /** + * Output only. Indicates the last time the + * `remaining_waypoints.path_to_waypoint` and + * `remaining_waypoints.traffic_to_waypoint` were modified. Your client app + * should cache this value and pass it in `GetTripRequest` to ensure the + * paths and traffic for `remaining_waypoints` are only returned if updated. + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRemainingWaypointsRouteVersion() + { + return $this->remaining_waypoints_route_version; + } + + public function hasRemainingWaypointsRouteVersion() + { + return isset($this->remaining_waypoints_route_version); + } + + public function clearRemainingWaypointsRouteVersion() + { + unset($this->remaining_waypoints_route_version); + } + + /** + * Output only. Indicates the last time the + * `remaining_waypoints.path_to_waypoint` and + * `remaining_waypoints.traffic_to_waypoint` were modified. Your client app + * should cache this value and pass it in `GetTripRequest` to ensure the + * paths and traffic for `remaining_waypoints` are only returned if updated. + * + * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRemainingWaypointsRouteVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->remaining_waypoints_route_version = $var; + + return $this; + } + + /** + * Immutable. Indicates the number of passengers on this trip and does not + * include the driver. A vehicle must have available capacity to be returned + * in a `SearchVehicles` response. + * + * Generated from protobuf field int32 number_of_passengers = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getNumberOfPassengers() + { + return $this->number_of_passengers; + } + + /** + * Immutable. Indicates the number of passengers on this trip and does not + * include the driver. A vehicle must have available capacity to be returned + * in a `SearchVehicles` response. + * + * Generated from protobuf field int32 number_of_passengers = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setNumberOfPassengers($var) + { + GPBUtil::checkInt32($var); + $this->number_of_passengers = $var; + + return $this; + } + + /** + * Output only. Indicates the last reported location of the vehicle along the + * route. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Maps\FleetEngine\V1\VehicleLocation|null + */ + public function getLastLocation() + { + return $this->last_location; + } + + public function hasLastLocation() + { + return isset($this->last_location); + } + + public function clearLastLocation() + { + unset($this->last_location); + } + + /** + * Output only. Indicates the last reported location of the vehicle along the + * route. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Maps\FleetEngine\V1\VehicleLocation $var + * @return $this + */ + public function setLastLocation($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\VehicleLocation::class); + $this->last_location = $var; + + return $this; + } + + /** + * Output only. Indicates whether the vehicle's `last_location` can be snapped + * to the current_route_segment. False if `last_location` or + * `current_route_segment` doesn't exist. + * It is computed by Fleet Engine. Any update from clients will be ignored. + * + * Generated from protobuf field bool last_location_snappable = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getLastLocationSnappable() + { + return $this->last_location_snappable; + } + + /** + * Output only. Indicates whether the vehicle's `last_location` can be snapped + * to the current_route_segment. False if `last_location` or + * `current_route_segment` doesn't exist. + * It is computed by Fleet Engine. Any update from clients will be ignored. + * + * Generated from protobuf field bool last_location_snappable = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setLastLocationSnappable($var) + { + GPBUtil::checkBool($var); + $this->last_location_snappable = $var; + + return $this; + } + + /** + * The subset of Trip fields that are populated and how they should be + * interpreted. + * + * Generated from protobuf field .maps.fleetengine.v1.TripView view = 31; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * The subset of Trip fields that are populated and how they should be + * interpreted. + * + * Generated from protobuf field .maps.fleetengine.v1.TripView view = 31; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\TripView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripStatus.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripStatus.php new file mode 100644 index 000000000000..7c6eea573533 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripStatus.php @@ -0,0 +1,111 @@ +maps.fleetengine.v1.TripStatus + */ +class TripStatus +{ + /** + * Default, used for unspecified or unrecognized trip status. + * + * Generated from protobuf enum UNKNOWN_TRIP_STATUS = 0; + */ + const UNKNOWN_TRIP_STATUS = 0; + /** + * Newly created trip. + * + * Generated from protobuf enum NEW = 1; + */ + const PBNEW = 1; + /** + * The driver is on their way to the pickup point. + * + * Generated from protobuf enum ENROUTE_TO_PICKUP = 2; + */ + const ENROUTE_TO_PICKUP = 2; + /** + * The driver has arrived at the pickup point. + * + * Generated from protobuf enum ARRIVED_AT_PICKUP = 3; + */ + const ARRIVED_AT_PICKUP = 3; + /** + * The driver has arrived at an intermediate destination and is waiting for + * the rider. + * + * Generated from protobuf enum ARRIVED_AT_INTERMEDIATE_DESTINATION = 7; + */ + const ARRIVED_AT_INTERMEDIATE_DESTINATION = 7; + /** + * The driver is on their way to an intermediate destination + * (not the dropoff point). + * + * Generated from protobuf enum ENROUTE_TO_INTERMEDIATE_DESTINATION = 8; + */ + const ENROUTE_TO_INTERMEDIATE_DESTINATION = 8; + /** + * The driver has picked up the rider and is on their way to the + * next destination. + * + * Generated from protobuf enum ENROUTE_TO_DROPOFF = 4; + */ + const ENROUTE_TO_DROPOFF = 4; + /** + * The rider has been dropped off and the trip is complete. + * + * Generated from protobuf enum COMPLETE = 5; + */ + const COMPLETE = 5; + /** + * The trip was canceled prior to pickup by the driver, rider, or + * rideshare provider. + * + * Generated from protobuf enum CANCELED = 6; + */ + const CANCELED = 6; + + private static $valueToName = [ + self::UNKNOWN_TRIP_STATUS => 'UNKNOWN_TRIP_STATUS', + self::PBNEW => 'NEW', + self::ENROUTE_TO_PICKUP => 'ENROUTE_TO_PICKUP', + self::ARRIVED_AT_PICKUP => 'ARRIVED_AT_PICKUP', + self::ARRIVED_AT_INTERMEDIATE_DESTINATION => 'ARRIVED_AT_INTERMEDIATE_DESTINATION', + self::ENROUTE_TO_INTERMEDIATE_DESTINATION => 'ENROUTE_TO_INTERMEDIATE_DESTINATION', + self::ENROUTE_TO_DROPOFF => 'ENROUTE_TO_DROPOFF', + self::COMPLETE => 'COMPLETE', + self::CANCELED => 'CANCELED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripType.php new file mode 100644 index 000000000000..94d7f9ab6998 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripType.php @@ -0,0 +1,61 @@ +maps.fleetengine.v1.TripType + */ +class TripType +{ + /** + * Default, used for unspecified or unrecognized trip types. + * + * Generated from protobuf enum UNKNOWN_TRIP_TYPE = 0; + */ + const UNKNOWN_TRIP_TYPE = 0; + /** + * The trip may share a vehicle with other trips. + * + * Generated from protobuf enum SHARED = 1; + */ + const SHARED = 1; + /** + * The trip is exclusive to a vehicle. + * + * Generated from protobuf enum EXCLUSIVE = 2; + */ + const EXCLUSIVE = 2; + + private static $valueToName = [ + self::UNKNOWN_TRIP_TYPE => 'UNKNOWN_TRIP_TYPE', + self::SHARED => 'SHARED', + self::EXCLUSIVE => 'EXCLUSIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripView.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripView.php new file mode 100644 index 000000000000..b341430b2420 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripView.php @@ -0,0 +1,67 @@ +maps.fleetengine.v1.TripView + */ +class TripView +{ + /** + * The default value. For backwards-compatibility, the API will default to an + * SDK view. To ensure stability and support, customers are + * advised to select a `TripView` other than `SDK`. + * + * Generated from protobuf enum TRIP_VIEW_UNSPECIFIED = 0; + */ + const TRIP_VIEW_UNSPECIFIED = 0; + /** + * Includes fields that may not be interpretable or supportable using + * publicly available libraries. + * + * Generated from protobuf enum SDK = 1; + */ + const SDK = 1; + /** + * Trip fields are populated for the Journey Sharing use case. This view is + * intended for server-to-server communications. + * + * Generated from protobuf enum JOURNEY_SHARING_V1S = 2; + */ + const JOURNEY_SHARING_V1S = 2; + + private static $valueToName = [ + self::TRIP_VIEW_UNSPECIFIED => 'TRIP_VIEW_UNSPECIFIED', + self::SDK => 'SDK', + self::JOURNEY_SHARING_V1S => 'JOURNEY_SHARING_V1S', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripWaypoint.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripWaypoint.php new file mode 100644 index 000000000000..fd7cfea0163e --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripWaypoint.php @@ -0,0 +1,451 @@ +maps.fleetengine.v1.TripWaypoint + */ +class TripWaypoint extends \Google\Protobuf\Internal\Message +{ + /** + * The location of this waypoint. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation location = 1; + */ + protected $location = null; + /** + * The trip associated with this waypoint. + * + * Generated from protobuf field string trip_id = 2; + */ + protected $trip_id = ''; + /** + * The role this waypoint plays in this trip, such as pickup or dropoff. + * + * Generated from protobuf field .maps.fleetengine.v1.WaypointType waypoint_type = 3; + */ + protected $waypoint_type = 0; + /** + * The path from the previous waypoint to the current waypoint. Undefined for + * the first waypoint in a list. This field is only populated when requested. + * + * Generated from protobuf field repeated .google.type.LatLng path_to_waypoint = 4; + */ + private $path_to_waypoint; + /** + * The encoded path from the previous waypoint to the current waypoint. + *

Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. Decoding is not yet supported. + * + * Generated from protobuf field string encoded_path_to_waypoint = 5; + */ + protected $encoded_path_to_waypoint = ''; + /** + * The traffic conditions along the path to this waypoint. Note that traffic + * is only available for Google Map Platform Rides and Deliveries Solution + * customers. + * + * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline traffic_to_waypoint = 10; + */ + protected $traffic_to_waypoint = null; + /** + * The path distance from the previous waypoint to the current waypoint. + * Undefined for the first waypoint in a list. + * + * Generated from protobuf field .google.protobuf.Int32Value distance_meters = 6; + */ + protected $distance_meters = null; + /** + * The estimated time of arrival at this waypoint. Undefined for the first + * waypoint in a list. + * + * Generated from protobuf field .google.protobuf.Timestamp eta = 7; + */ + protected $eta = null; + /** + * The travel time from previous waypoint to this point. Undefined for the + * first waypoint in a list. + * + * Generated from protobuf field .google.protobuf.Duration duration = 8; + */ + protected $duration = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\TerminalLocation $location + * The location of this waypoint. + * @type string $trip_id + * The trip associated with this waypoint. + * @type int $waypoint_type + * The role this waypoint plays in this trip, such as pickup or dropoff. + * @type array<\Google\Type\LatLng>|\Google\Protobuf\Internal\RepeatedField $path_to_waypoint + * The path from the previous waypoint to the current waypoint. Undefined for + * the first waypoint in a list. This field is only populated when requested. + * @type string $encoded_path_to_waypoint + * The encoded path from the previous waypoint to the current waypoint. + *

Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. Decoding is not yet supported. + * @type \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline $traffic_to_waypoint + * The traffic conditions along the path to this waypoint. Note that traffic + * is only available for Google Map Platform Rides and Deliveries Solution + * customers. + * @type \Google\Protobuf\Int32Value $distance_meters + * The path distance from the previous waypoint to the current waypoint. + * Undefined for the first waypoint in a list. + * @type \Google\Protobuf\Timestamp $eta + * The estimated time of arrival at this waypoint. Undefined for the first + * waypoint in a list. + * @type \Google\Protobuf\Duration $duration + * The travel time from previous waypoint to this point. Undefined for the + * first waypoint in a list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Fleetengine::initOnce(); + parent::__construct($data); + } + + /** + * The location of this waypoint. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation location = 1; + * @return \Google\Maps\FleetEngine\V1\TerminalLocation|null + */ + public function getLocation() + { + return $this->location; + } + + public function hasLocation() + { + return isset($this->location); + } + + public function clearLocation() + { + unset($this->location); + } + + /** + * The location of this waypoint. + * + * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation location = 1; + * @param \Google\Maps\FleetEngine\V1\TerminalLocation $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalLocation::class); + $this->location = $var; + + return $this; + } + + /** + * The trip associated with this waypoint. + * + * Generated from protobuf field string trip_id = 2; + * @return string + */ + public function getTripId() + { + return $this->trip_id; + } + + /** + * The trip associated with this waypoint. + * + * Generated from protobuf field string trip_id = 2; + * @param string $var + * @return $this + */ + public function setTripId($var) + { + GPBUtil::checkString($var, True); + $this->trip_id = $var; + + return $this; + } + + /** + * The role this waypoint plays in this trip, such as pickup or dropoff. + * + * Generated from protobuf field .maps.fleetengine.v1.WaypointType waypoint_type = 3; + * @return int + */ + public function getWaypointType() + { + return $this->waypoint_type; + } + + /** + * The role this waypoint plays in this trip, such as pickup or dropoff. + * + * Generated from protobuf field .maps.fleetengine.v1.WaypointType waypoint_type = 3; + * @param int $var + * @return $this + */ + public function setWaypointType($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\WaypointType::class); + $this->waypoint_type = $var; + + return $this; + } + + /** + * The path from the previous waypoint to the current waypoint. Undefined for + * the first waypoint in a list. This field is only populated when requested. + * + * Generated from protobuf field repeated .google.type.LatLng path_to_waypoint = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPathToWaypoint() + { + return $this->path_to_waypoint; + } + + /** + * The path from the previous waypoint to the current waypoint. Undefined for + * the first waypoint in a list. This field is only populated when requested. + * + * Generated from protobuf field repeated .google.type.LatLng path_to_waypoint = 4; + * @param array<\Google\Type\LatLng>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPathToWaypoint($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Type\LatLng::class); + $this->path_to_waypoint = $arr; + + return $this; + } + + /** + * The encoded path from the previous waypoint to the current waypoint. + *

Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. Decoding is not yet supported. + * + * Generated from protobuf field string encoded_path_to_waypoint = 5; + * @return string + */ + public function getEncodedPathToWaypoint() + { + return $this->encoded_path_to_waypoint; + } + + /** + * The encoded path from the previous waypoint to the current waypoint. + *

Note: This field is intended only for use by the Driver SDK and Consumer + * SDK. Decoding is not yet supported. + * + * Generated from protobuf field string encoded_path_to_waypoint = 5; + * @param string $var + * @return $this + */ + public function setEncodedPathToWaypoint($var) + { + GPBUtil::checkString($var, True); + $this->encoded_path_to_waypoint = $var; + + return $this; + } + + /** + * The traffic conditions along the path to this waypoint. Note that traffic + * is only available for Google Map Platform Rides and Deliveries Solution + * customers. + * + * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline traffic_to_waypoint = 10; + * @return \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline|null + */ + public function getTrafficToWaypoint() + { + return $this->traffic_to_waypoint; + } + + public function hasTrafficToWaypoint() + { + return isset($this->traffic_to_waypoint); + } + + public function clearTrafficToWaypoint() + { + unset($this->traffic_to_waypoint); + } + + /** + * The traffic conditions along the path to this waypoint. Note that traffic + * is only available for Google Map Platform Rides and Deliveries Solution + * customers. + * + * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline traffic_to_waypoint = 10; + * @param \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline $var + * @return $this + */ + public function setTrafficToWaypoint($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline::class); + $this->traffic_to_waypoint = $var; + + return $this; + } + + /** + * The path distance from the previous waypoint to the current waypoint. + * Undefined for the first waypoint in a list. + * + * Generated from protobuf field .google.protobuf.Int32Value distance_meters = 6; + * @return \Google\Protobuf\Int32Value|null + */ + public function getDistanceMeters() + { + return $this->distance_meters; + } + + public function hasDistanceMeters() + { + return isset($this->distance_meters); + } + + public function clearDistanceMeters() + { + unset($this->distance_meters); + } + + /** + * Returns the unboxed value from getDistanceMeters() + + * The path distance from the previous waypoint to the current waypoint. + * Undefined for the first waypoint in a list. + * + * Generated from protobuf field .google.protobuf.Int32Value distance_meters = 6; + * @return int|null + */ + public function getDistanceMetersUnwrapped() + { + return $this->readWrapperValue("distance_meters"); + } + + /** + * The path distance from the previous waypoint to the current waypoint. + * Undefined for the first waypoint in a list. + * + * Generated from protobuf field .google.protobuf.Int32Value distance_meters = 6; + * @param \Google\Protobuf\Int32Value $var + * @return $this + */ + public function setDistanceMeters($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->distance_meters = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * The path distance from the previous waypoint to the current waypoint. + * Undefined for the first waypoint in a list. + * + * Generated from protobuf field .google.protobuf.Int32Value distance_meters = 6; + * @param int|null $var + * @return $this + */ + public function setDistanceMetersUnwrapped($var) + { + $this->writeWrapperValue("distance_meters", $var); + return $this;} + + /** + * The estimated time of arrival at this waypoint. Undefined for the first + * waypoint in a list. + * + * Generated from protobuf field .google.protobuf.Timestamp eta = 7; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEta() + { + return $this->eta; + } + + public function hasEta() + { + return isset($this->eta); + } + + public function clearEta() + { + unset($this->eta); + } + + /** + * The estimated time of arrival at this waypoint. Undefined for the first + * waypoint in a list. + * + * Generated from protobuf field .google.protobuf.Timestamp eta = 7; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEta($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->eta = $var; + + return $this; + } + + /** + * The travel time from previous waypoint to this point. Undefined for the + * first waypoint in a list. + * + * Generated from protobuf field .google.protobuf.Duration duration = 8; + * @return \Google\Protobuf\Duration|null + */ + public function getDuration() + { + return $this->duration; + } + + public function hasDuration() + { + return isset($this->duration); + } + + public function clearDuration() + { + unset($this->duration); + } + + /** + * The travel time from previous waypoint to this point. Undefined for the + * first waypoint in a list. + * + * Generated from protobuf field .google.protobuf.Duration duration = 8; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->duration = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateTripRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateTripRequest.php new file mode 100644 index 000000000000..309be11621d8 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateTripRequest.php @@ -0,0 +1,355 @@ +maps.fleetengine.v1.UpdateTripRequest + */ +class UpdateTripRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + */ + protected $header = null; + /** + * Required. Must be in the format + * `providers/{provider}/trips/{trip}`. The provider must + * be the Project ID (for example, `sample-consumer-project`) of the Google + * Cloud Project of which the service account making this call is a member. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. The Trip associated with the update. + * The following fields are maintained by the Fleet Engine. Do not update + * them using Trip.update. + * * `current_route_segment` + * * `current_route_segment_end_point` + * * `current_route_segment_traffic` + * * `current_route_segment_traffic_version` + * * `current_route_segment_version` + * * `dropoff_time` + * * `eta_to_next_waypoint` + * * `intermediate_destinations_version` + * * `last_location` + * * `name` + * * `number_of_passengers` + * * `pickup_time` + * * `remaining_distance_meters` + * * `remaining_time_to_first_waypoint` + * * `remaining_waypoints` + * * `remaining_waypoints_version` + * * `route` + * When you update the `Trip.vehicle_id` for a shared trip, you must supply + * the list of `Trip.vehicle_waypoints` to specify the order of the remaining + * waypoints, otherwise the order will be undetermined. + * When you specify `Trip.vehicle_waypoints`, the list must contain all + * the remaining waypoints of the vehicle's trips, with no extra waypoints. + * You must order these waypoints such that for a given trip, the pickup + * point is before intermediate destinations, and all intermediate + * destinations come before the drop-off point. An `EXCLUSIVE` trip's + * waypoints must not interleave with any other trips. + * The `trip_id`, `waypoint_type` and `location` fields are used, and all + * other TripWaypoint fields in `vehicle_waypoints` are ignored. + * To avoid a race condition for trips with multiple destinations, you + * should provide `Trip.intermediate_destinations_version` when updating + * the trip status to `ENROUTE_TO_INTERMEDIATE_DESTINATION`. The + * `Trip.intermediate_destinations_version` passed must be consistent with + * Fleet Engine's version. If it isn't, the request fails. + * + * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $trip = null; + /** + * Required. The field mask indicating which fields in Trip to update. + * The `update_mask` must contain at least one field. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\RequestHeader $header + * The standard Fleet Engine request header. + * @type string $name + * Required. Must be in the format + * `providers/{provider}/trips/{trip}`. The provider must + * be the Project ID (for example, `sample-consumer-project`) of the Google + * Cloud Project of which the service account making this call is a member. + * @type \Google\Maps\FleetEngine\V1\Trip $trip + * Required. The Trip associated with the update. + * The following fields are maintained by the Fleet Engine. Do not update + * them using Trip.update. + * * `current_route_segment` + * * `current_route_segment_end_point` + * * `current_route_segment_traffic` + * * `current_route_segment_traffic_version` + * * `current_route_segment_version` + * * `dropoff_time` + * * `eta_to_next_waypoint` + * * `intermediate_destinations_version` + * * `last_location` + * * `name` + * * `number_of_passengers` + * * `pickup_time` + * * `remaining_distance_meters` + * * `remaining_time_to_first_waypoint` + * * `remaining_waypoints` + * * `remaining_waypoints_version` + * * `route` + * When you update the `Trip.vehicle_id` for a shared trip, you must supply + * the list of `Trip.vehicle_waypoints` to specify the order of the remaining + * waypoints, otherwise the order will be undetermined. + * When you specify `Trip.vehicle_waypoints`, the list must contain all + * the remaining waypoints of the vehicle's trips, with no extra waypoints. + * You must order these waypoints such that for a given trip, the pickup + * point is before intermediate destinations, and all intermediate + * destinations come before the drop-off point. An `EXCLUSIVE` trip's + * waypoints must not interleave with any other trips. + * The `trip_id`, `waypoint_type` and `location` fields are used, and all + * other TripWaypoint fields in `vehicle_waypoints` are ignored. + * To avoid a race condition for trips with multiple destinations, you + * should provide `Trip.intermediate_destinations_version` when updating + * the trip status to `ENROUTE_TO_INTERMEDIATE_DESTINATION`. The + * `Trip.intermediate_destinations_version` passed must be consistent with + * Fleet Engine's version. If it isn't, the request fails. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The field mask indicating which fields in Trip to update. + * The `update_mask` must contain at least one field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); + parent::__construct($data); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @return \Google\Maps\FleetEngine\V1\RequestHeader|null + */ + public function getHeader() + { + return $this->header; + } + + public function hasHeader() + { + return isset($this->header); + } + + public function clearHeader() + { + unset($this->header); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @param \Google\Maps\FleetEngine\V1\RequestHeader $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); + $this->header = $var; + + return $this; + } + + /** + * Required. Must be in the format + * `providers/{provider}/trips/{trip}`. The provider must + * be the Project ID (for example, `sample-consumer-project`) of the Google + * Cloud Project of which the service account making this call is a member. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Must be in the format + * `providers/{provider}/trips/{trip}`. The provider must + * be the Project ID (for example, `sample-consumer-project`) of the Google + * Cloud Project of which the service account making this call is a member. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The Trip associated with the update. + * The following fields are maintained by the Fleet Engine. Do not update + * them using Trip.update. + * * `current_route_segment` + * * `current_route_segment_end_point` + * * `current_route_segment_traffic` + * * `current_route_segment_traffic_version` + * * `current_route_segment_version` + * * `dropoff_time` + * * `eta_to_next_waypoint` + * * `intermediate_destinations_version` + * * `last_location` + * * `name` + * * `number_of_passengers` + * * `pickup_time` + * * `remaining_distance_meters` + * * `remaining_time_to_first_waypoint` + * * `remaining_waypoints` + * * `remaining_waypoints_version` + * * `route` + * When you update the `Trip.vehicle_id` for a shared trip, you must supply + * the list of `Trip.vehicle_waypoints` to specify the order of the remaining + * waypoints, otherwise the order will be undetermined. + * When you specify `Trip.vehicle_waypoints`, the list must contain all + * the remaining waypoints of the vehicle's trips, with no extra waypoints. + * You must order these waypoints such that for a given trip, the pickup + * point is before intermediate destinations, and all intermediate + * destinations come before the drop-off point. An `EXCLUSIVE` trip's + * waypoints must not interleave with any other trips. + * The `trip_id`, `waypoint_type` and `location` fields are used, and all + * other TripWaypoint fields in `vehicle_waypoints` are ignored. + * To avoid a race condition for trips with multiple destinations, you + * should provide `Trip.intermediate_destinations_version` when updating + * the trip status to `ENROUTE_TO_INTERMEDIATE_DESTINATION`. The + * `Trip.intermediate_destinations_version` passed must be consistent with + * Fleet Engine's version. If it isn't, the request fails. + * + * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Maps\FleetEngine\V1\Trip|null + */ + public function getTrip() + { + return $this->trip; + } + + public function hasTrip() + { + return isset($this->trip); + } + + public function clearTrip() + { + unset($this->trip); + } + + /** + * Required. The Trip associated with the update. + * The following fields are maintained by the Fleet Engine. Do not update + * them using Trip.update. + * * `current_route_segment` + * * `current_route_segment_end_point` + * * `current_route_segment_traffic` + * * `current_route_segment_traffic_version` + * * `current_route_segment_version` + * * `dropoff_time` + * * `eta_to_next_waypoint` + * * `intermediate_destinations_version` + * * `last_location` + * * `name` + * * `number_of_passengers` + * * `pickup_time` + * * `remaining_distance_meters` + * * `remaining_time_to_first_waypoint` + * * `remaining_waypoints` + * * `remaining_waypoints_version` + * * `route` + * When you update the `Trip.vehicle_id` for a shared trip, you must supply + * the list of `Trip.vehicle_waypoints` to specify the order of the remaining + * waypoints, otherwise the order will be undetermined. + * When you specify `Trip.vehicle_waypoints`, the list must contain all + * the remaining waypoints of the vehicle's trips, with no extra waypoints. + * You must order these waypoints such that for a given trip, the pickup + * point is before intermediate destinations, and all intermediate + * destinations come before the drop-off point. An `EXCLUSIVE` trip's + * waypoints must not interleave with any other trips. + * The `trip_id`, `waypoint_type` and `location` fields are used, and all + * other TripWaypoint fields in `vehicle_waypoints` are ignored. + * To avoid a race condition for trips with multiple destinations, you + * should provide `Trip.intermediate_destinations_version` when updating + * the trip status to `ENROUTE_TO_INTERMEDIATE_DESTINATION`. The + * `Trip.intermediate_destinations_version` passed must be consistent with + * Fleet Engine's version. If it isn't, the request fails. + * + * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Maps\FleetEngine\V1\Trip $var + * @return $this + */ + public function setTrip($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Trip::class); + $this->trip = $var; + + return $this; + } + + /** + * Required. The field mask indicating which fields in Trip to update. + * The `update_mask` must contain at least one field. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The field mask indicating which fields in Trip to update. + * The `update_mask` must contain at least one field. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesRequest.php new file mode 100644 index 000000000000..30be79f52ba3 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesRequest.php @@ -0,0 +1,161 @@ +maps.fleetengine.v1.UpdateVehicleAttributesRequest + */ +class UpdateVehicleAttributesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + */ + protected $header = null; + /** + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. The vehicle attributes to update. Unmentioned attributes are not + * altered or removed. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + private $attributes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\RequestHeader $header + * The standard Fleet Engine request header. + * @type string $name + * 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. + * @type array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $attributes + * Required. The vehicle attributes to update. Unmentioned attributes are not + * altered or removed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @return \Google\Maps\FleetEngine\V1\RequestHeader|null + */ + public function getHeader() + { + return $this->header; + } + + public function hasHeader() + { + return isset($this->header); + } + + public function clearHeader() + { + unset($this->header); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @param \Google\Maps\FleetEngine\V1\RequestHeader $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); + $this->header = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The vehicle attributes to update. Unmentioned attributes are not + * altered or removed. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAttributes() + { + return $this->attributes; + } + + /** + * Required. The vehicle attributes to update. Unmentioned attributes are not + * altered or removed. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAttributes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttribute::class); + $this->attributes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesResponse.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesResponse.php new file mode 100644 index 000000000000..ba1eb389f4f9 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesResponse.php @@ -0,0 +1,71 @@ +maps.fleetengine.v1.UpdateVehicleAttributesResponse + */ +class UpdateVehicleAttributesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The updated full list of vehicle attributes, including new, + * altered, and untouched attributes. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $attributes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $attributes + * Required. The updated full list of vehicle attributes, including new, + * altered, and untouched attributes. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * Required. The updated full list of vehicle attributes, including new, + * altered, and untouched attributes. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAttributes() + { + return $this->attributes; + } + + /** + * Required. The updated full list of vehicle attributes, including new, + * altered, and untouched attributes. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAttributes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttribute::class); + $this->attributes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleRequest.php new file mode 100644 index 000000000000..3aded0e174b6 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleRequest.php @@ -0,0 +1,267 @@ +maps.fleetengine.v1.UpdateVehicleRequest + */ +class UpdateVehicleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + */ + protected $header = null; + /** + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. The `Vehicle` entity values to apply. When updating a `Vehicle`, + * the following fields may not be updated as they are managed by the + * server. + * * `available_capacity` + * * `current_route_segment_version` + * * `current_trips` + * * `name` + * * `waypoints_version` + * If the `attributes` field is updated, **all** the vehicle's attributes are + * replaced with the attributes provided in the request. If you want to update + * only some attributes, see the `UpdateVehicleAttributes` method. + * Likewise, the `waypoints` field can be updated, but must contain all the + * waypoints currently on the vehicle, and no other waypoints. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $vehicle = null; + /** + * Required. A field mask indicating which fields of the `Vehicle` to update. + * At least one field name must be provided. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\RequestHeader $header + * The standard Fleet Engine request header. + * @type string $name + * 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. + * @type \Google\Maps\FleetEngine\V1\Vehicle $vehicle + * Required. The `Vehicle` entity values to apply. When updating a `Vehicle`, + * the following fields may not be updated as they are managed by the + * server. + * * `available_capacity` + * * `current_route_segment_version` + * * `current_trips` + * * `name` + * * `waypoints_version` + * If the `attributes` field is updated, **all** the vehicle's attributes are + * replaced with the attributes provided in the request. If you want to update + * only some attributes, see the `UpdateVehicleAttributes` method. + * Likewise, the `waypoints` field can be updated, but must contain all the + * waypoints currently on the vehicle, and no other waypoints. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. A field mask indicating which fields of the `Vehicle` to update. + * At least one field name must be provided. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @return \Google\Maps\FleetEngine\V1\RequestHeader|null + */ + public function getHeader() + { + return $this->header; + } + + public function hasHeader() + { + return isset($this->header); + } + + public function clearHeader() + { + unset($this->header); + } + + /** + * The standard Fleet Engine request header. + * + * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; + * @param \Google\Maps\FleetEngine\V1\RequestHeader $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); + $this->header = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * 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. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The `Vehicle` entity values to apply. When updating a `Vehicle`, + * the following fields may not be updated as they are managed by the + * server. + * * `available_capacity` + * * `current_route_segment_version` + * * `current_trips` + * * `name` + * * `waypoints_version` + * If the `attributes` field is updated, **all** the vehicle's attributes are + * replaced with the attributes provided in the request. If you want to update + * only some attributes, see the `UpdateVehicleAttributes` method. + * Likewise, the `waypoints` field can be updated, but must contain all the + * waypoints currently on the vehicle, and no other waypoints. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Maps\FleetEngine\V1\Vehicle|null + */ + public function getVehicle() + { + return $this->vehicle; + } + + public function hasVehicle() + { + return isset($this->vehicle); + } + + public function clearVehicle() + { + unset($this->vehicle); + } + + /** + * Required. The `Vehicle` entity values to apply. When updating a `Vehicle`, + * the following fields may not be updated as they are managed by the + * server. + * * `available_capacity` + * * `current_route_segment_version` + * * `current_trips` + * * `name` + * * `waypoints_version` + * If the `attributes` field is updated, **all** the vehicle's attributes are + * replaced with the attributes provided in the request. If you want to update + * only some attributes, see the `UpdateVehicleAttributes` method. + * Likewise, the `waypoints` field can be updated, but must contain all the + * waypoints currently on the vehicle, and no other waypoints. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Maps\FleetEngine\V1\Vehicle $var + * @return $this + */ + public function setVehicle($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Vehicle::class); + $this->vehicle = $var; + + return $this; + } + + /** + * Required. A field mask indicating which fields of the `Vehicle` to update. + * At least one field name must be provided. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. A field mask indicating which fields of the `Vehicle` to update. + * At least one field name must be provided. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle.php new file mode 100644 index 000000000000..cef7be90d471 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle.php @@ -0,0 +1,1108 @@ +maps.fleetengine.v1.Vehicle + */ +class Vehicle extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The unique name for this vehicle. + * The format is `providers/{provider}/vehicles/{vehicle}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * The vehicle state. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 2; + */ + protected $vehicle_state = 0; + /** + * Trip types supported by this vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripType supported_trip_types = 3; + */ + private $supported_trip_types; + /** + * Output only. List of `trip_id`'s for trips currently assigned to this + * vehicle. + * + * Generated from protobuf field repeated string current_trips = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $current_trips; + /** + * Last reported location of the vehicle. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 5; + */ + protected $last_location = null; + /** + * The total numbers of riders this vehicle can carry. The driver is not + * considered in this value. This value must be greater than or equal to one. + * + * Generated from protobuf field int32 maximum_capacity = 6; + */ + protected $maximum_capacity = 0; + /** + * List of vehicle attributes. A vehicle can have at most 100 + * attributes, and each attribute must have a unique key. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 8; + */ + private $attributes; + /** + * Required. The type of this vehicle. Can be used to filter vehicles in + * `SearchVehicles` results. Also influences ETA and route calculations. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType vehicle_type = 9 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $vehicle_type = null; + /** + * License plate information for the vehicle. + * + * Generated from protobuf field .maps.fleetengine.v1.LicensePlate license_plate = 10; + */ + protected $license_plate = null; + /** + * Deprecated: Use `Vehicle.waypoints` instead. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation route = 12 [deprecated = true]; + * @deprecated + */ + private $route; + /** + * The polyline specifying the route the driver app intends to take to + * the next waypoint. This list is also returned in + * `Trip.current_route_segment` for all active trips assigned to the vehicle. + * Note: This field is intended only for use by the Driver SDK. Decoding is + * not yet supported. + * + * Generated from protobuf field string current_route_segment = 20; + */ + protected $current_route_segment = ''; + /** + * Input only. Fleet Engine uses this information to improve journey sharing. + * Note: This field is intended only for use by the Driver SDK. + * + * Generated from protobuf field .maps.fleetengine.v1.TrafficPolylineData current_route_segment_traffic = 28 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $current_route_segment_traffic = null; + /** + * Output only. Time when `current_route_segment` was set. It can be stored by + * the client and passed in future `GetVehicle` requests to prevent returning + * routes that haven't changed. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $current_route_segment_version = null; + /** + * The waypoint where `current_route_segment` ends. This can be supplied by + * drivers on `UpdateVehicle` calls either as a full trip waypoint, a waypoint + * `LatLng`, or as the last `LatLng` of the `current_route_segment`. Fleet + * Engine will then do its best to interpolate to an actual waypoint if it is + * not fully specified. This field is ignored in `UpdateVehicle` calls unless + * `current_route_segment` is also specified. + * + * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24; + */ + protected $current_route_segment_end_point = null; + /** + * The remaining driving distance for the `current_route_segment`. + * This value is also returned in `Trip.remaining_distance_meters` for all + * active trips assigned to the vehicle. The value is unspecified if the + * `current_route_segment` field is empty. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 18; + */ + protected $remaining_distance_meters = null; + /** + * The ETA to the first entry in the `waypoints` field. The value is + * unspecified if the `waypoints` field is empty or the + * `Vehicle.current_route_segment` field is empty. + * When updating a vehicle, `remaining_time_seconds` takes precedence over + * `eta_to_first_waypoint` in the same request. + * + * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 19; + */ + protected $eta_to_first_waypoint = null; + /** + * Input only. The remaining driving time for the `current_route_segment`. The + * value is unspecified if the `waypoints` field is empty or the + * `Vehicle.current_route_segment` field is empty. This value should match + * `eta_to_first_waypoint` - `current_time` if all parties are using the same + * clock. + * When updating a vehicle, `remaining_time_seconds` takes precedence over + * `eta_to_first_waypoint` in the same request. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_time_seconds = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $remaining_time_seconds = null; + /** + * The remaining waypoints assigned to this Vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint waypoints = 22; + */ + private $waypoints; + /** + * Output only. Last time the `waypoints` field was updated. Clients should + * cache this value and pass it in `GetVehicleRequest` to ensure the + * `waypoints` field is only returned if it is updated. + * + * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $waypoints_version = null; + /** + * Indicates if the driver accepts back-to-back trips. If `true`, + * `SearchVehicles` may include the vehicle even if it is currently assigned + * to a trip. The default value is `false`. + * + * Generated from protobuf field bool back_to_back_enabled = 23; + */ + protected $back_to_back_enabled = false; + /** + * The vehicle's navigation status. + * + * Generated from protobuf field .maps.fleetengine.v1.NavigationStatus navigation_status = 26; + */ + protected $navigation_status = 0; + /** + * Input only. Information about settings in the mobile device being used by + * the driver. + * + * Generated from protobuf field .maps.fleetengine.v1.DeviceSettings device_settings = 27 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $device_settings = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The unique name for this vehicle. + * The format is `providers/{provider}/vehicles/{vehicle}`. + * @type int $vehicle_state + * The vehicle state. + * @type array|\Google\Protobuf\Internal\RepeatedField $supported_trip_types + * Trip types supported by this vehicle. + * @type array|\Google\Protobuf\Internal\RepeatedField $current_trips + * Output only. List of `trip_id`'s for trips currently assigned to this + * vehicle. + * @type \Google\Maps\FleetEngine\V1\VehicleLocation $last_location + * Last reported location of the vehicle. + * @type int $maximum_capacity + * The total numbers of riders this vehicle can carry. The driver is not + * considered in this value. This value must be greater than or equal to one. + * @type array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $attributes + * List of vehicle attributes. A vehicle can have at most 100 + * attributes, and each attribute must have a unique key. + * @type \Google\Maps\FleetEngine\V1\Vehicle\VehicleType $vehicle_type + * Required. The type of this vehicle. Can be used to filter vehicles in + * `SearchVehicles` results. Also influences ETA and route calculations. + * @type \Google\Maps\FleetEngine\V1\LicensePlate $license_plate + * License plate information for the vehicle. + * @type array<\Google\Maps\FleetEngine\V1\TerminalLocation>|\Google\Protobuf\Internal\RepeatedField $route + * Deprecated: Use `Vehicle.waypoints` instead. + * @type string $current_route_segment + * The polyline specifying the route the driver app intends to take to + * the next waypoint. This list is also returned in + * `Trip.current_route_segment` for all active trips assigned to the vehicle. + * Note: This field is intended only for use by the Driver SDK. Decoding is + * not yet supported. + * @type \Google\Maps\FleetEngine\V1\TrafficPolylineData $current_route_segment_traffic + * Input only. Fleet Engine uses this information to improve journey sharing. + * Note: This field is intended only for use by the Driver SDK. + * @type \Google\Protobuf\Timestamp $current_route_segment_version + * Output only. Time when `current_route_segment` was set. It can be stored by + * the client and passed in future `GetVehicle` requests to prevent returning + * routes that haven't changed. + * @type \Google\Maps\FleetEngine\V1\TripWaypoint $current_route_segment_end_point + * The waypoint where `current_route_segment` ends. This can be supplied by + * drivers on `UpdateVehicle` calls either as a full trip waypoint, a waypoint + * `LatLng`, or as the last `LatLng` of the `current_route_segment`. Fleet + * Engine will then do its best to interpolate to an actual waypoint if it is + * not fully specified. This field is ignored in `UpdateVehicle` calls unless + * `current_route_segment` is also specified. + * @type \Google\Protobuf\Int32Value $remaining_distance_meters + * The remaining driving distance for the `current_route_segment`. + * This value is also returned in `Trip.remaining_distance_meters` for all + * active trips assigned to the vehicle. The value is unspecified if the + * `current_route_segment` field is empty. + * @type \Google\Protobuf\Timestamp $eta_to_first_waypoint + * The ETA to the first entry in the `waypoints` field. The value is + * unspecified if the `waypoints` field is empty or the + * `Vehicle.current_route_segment` field is empty. + * When updating a vehicle, `remaining_time_seconds` takes precedence over + * `eta_to_first_waypoint` in the same request. + * @type \Google\Protobuf\Int32Value $remaining_time_seconds + * Input only. The remaining driving time for the `current_route_segment`. The + * value is unspecified if the `waypoints` field is empty or the + * `Vehicle.current_route_segment` field is empty. This value should match + * `eta_to_first_waypoint` - `current_time` if all parties are using the same + * clock. + * When updating a vehicle, `remaining_time_seconds` takes precedence over + * `eta_to_first_waypoint` in the same request. + * @type array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $waypoints + * The remaining waypoints assigned to this Vehicle. + * @type \Google\Protobuf\Timestamp $waypoints_version + * Output only. Last time the `waypoints` field was updated. Clients should + * cache this value and pass it in `GetVehicleRequest` to ensure the + * `waypoints` field is only returned if it is updated. + * @type bool $back_to_back_enabled + * Indicates if the driver accepts back-to-back trips. If `true`, + * `SearchVehicles` may include the vehicle even if it is currently assigned + * to a trip. The default value is `false`. + * @type int $navigation_status + * The vehicle's navigation status. + * @type \Google\Maps\FleetEngine\V1\DeviceSettings $device_settings + * Input only. Information about settings in the mobile device being used by + * the driver. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The unique name for this vehicle. + * The format is `providers/{provider}/vehicles/{vehicle}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The unique name for this vehicle. + * The format is `providers/{provider}/vehicles/{vehicle}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The vehicle state. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 2; + * @return int + */ + public function getVehicleState() + { + return $this->vehicle_state; + } + + /** + * The vehicle state. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 2; + * @param int $var + * @return $this + */ + public function setVehicleState($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\VehicleState::class); + $this->vehicle_state = $var; + + return $this; + } + + /** + * Trip types supported by this vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripType supported_trip_types = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSupportedTripTypes() + { + return $this->supported_trip_types; + } + + /** + * Trip types supported by this vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripType supported_trip_types = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSupportedTripTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Maps\FleetEngine\V1\TripType::class); + $this->supported_trip_types = $arr; + + return $this; + } + + /** + * Output only. List of `trip_id`'s for trips currently assigned to this + * vehicle. + * + * Generated from protobuf field repeated string current_trips = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCurrentTrips() + { + return $this->current_trips; + } + + /** + * Output only. List of `trip_id`'s for trips currently assigned to this + * vehicle. + * + * Generated from protobuf field repeated string current_trips = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCurrentTrips($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->current_trips = $arr; + + return $this; + } + + /** + * Last reported location of the vehicle. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 5; + * @return \Google\Maps\FleetEngine\V1\VehicleLocation|null + */ + public function getLastLocation() + { + return $this->last_location; + } + + public function hasLastLocation() + { + return isset($this->last_location); + } + + public function clearLastLocation() + { + unset($this->last_location); + } + + /** + * Last reported location of the vehicle. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 5; + * @param \Google\Maps\FleetEngine\V1\VehicleLocation $var + * @return $this + */ + public function setLastLocation($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\VehicleLocation::class); + $this->last_location = $var; + + return $this; + } + + /** + * The total numbers of riders this vehicle can carry. The driver is not + * considered in this value. This value must be greater than or equal to one. + * + * Generated from protobuf field int32 maximum_capacity = 6; + * @return int + */ + public function getMaximumCapacity() + { + return $this->maximum_capacity; + } + + /** + * The total numbers of riders this vehicle can carry. The driver is not + * considered in this value. This value must be greater than or equal to one. + * + * Generated from protobuf field int32 maximum_capacity = 6; + * @param int $var + * @return $this + */ + public function setMaximumCapacity($var) + { + GPBUtil::checkInt32($var); + $this->maximum_capacity = $var; + + return $this; + } + + /** + * List of vehicle attributes. A vehicle can have at most 100 + * attributes, and each attribute must have a unique key. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 8; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAttributes() + { + return $this->attributes; + } + + /** + * List of vehicle attributes. A vehicle can have at most 100 + * attributes, and each attribute must have a unique key. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 8; + * @param array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAttributes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttribute::class); + $this->attributes = $arr; + + return $this; + } + + /** + * Required. The type of this vehicle. Can be used to filter vehicles in + * `SearchVehicles` results. Also influences ETA and route calculations. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType vehicle_type = 9 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Maps\FleetEngine\V1\Vehicle\VehicleType|null + */ + public function getVehicleType() + { + return $this->vehicle_type; + } + + public function hasVehicleType() + { + return isset($this->vehicle_type); + } + + public function clearVehicleType() + { + unset($this->vehicle_type); + } + + /** + * Required. The type of this vehicle. Can be used to filter vehicles in + * `SearchVehicles` results. Also influences ETA and route calculations. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType vehicle_type = 9 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Maps\FleetEngine\V1\Vehicle\VehicleType $var + * @return $this + */ + public function setVehicleType($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Vehicle\VehicleType::class); + $this->vehicle_type = $var; + + return $this; + } + + /** + * License plate information for the vehicle. + * + * Generated from protobuf field .maps.fleetengine.v1.LicensePlate license_plate = 10; + * @return \Google\Maps\FleetEngine\V1\LicensePlate|null + */ + public function getLicensePlate() + { + return $this->license_plate; + } + + public function hasLicensePlate() + { + return isset($this->license_plate); + } + + public function clearLicensePlate() + { + unset($this->license_plate); + } + + /** + * License plate information for the vehicle. + * + * Generated from protobuf field .maps.fleetengine.v1.LicensePlate license_plate = 10; + * @param \Google\Maps\FleetEngine\V1\LicensePlate $var + * @return $this + */ + public function setLicensePlate($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\LicensePlate::class); + $this->license_plate = $var; + + return $this; + } + + /** + * Deprecated: Use `Vehicle.waypoints` instead. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation route = 12 [deprecated = true]; + * @return \Google\Protobuf\Internal\RepeatedField + * @deprecated + */ + public function getRoute() + { + @trigger_error('route is deprecated.', E_USER_DEPRECATED); + return $this->route; + } + + /** + * Deprecated: Use `Vehicle.waypoints` instead. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation route = 12 [deprecated = true]; + * @param array<\Google\Maps\FleetEngine\V1\TerminalLocation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + * @deprecated + */ + public function setRoute($var) + { + @trigger_error('route is deprecated.', E_USER_DEPRECATED); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\TerminalLocation::class); + $this->route = $arr; + + return $this; + } + + /** + * The polyline specifying the route the driver app intends to take to + * the next waypoint. This list is also returned in + * `Trip.current_route_segment` for all active trips assigned to the vehicle. + * Note: This field is intended only for use by the Driver SDK. Decoding is + * not yet supported. + * + * Generated from protobuf field string current_route_segment = 20; + * @return string + */ + public function getCurrentRouteSegment() + { + return $this->current_route_segment; + } + + /** + * The polyline specifying the route the driver app intends to take to + * the next waypoint. This list is also returned in + * `Trip.current_route_segment` for all active trips assigned to the vehicle. + * Note: This field is intended only for use by the Driver SDK. Decoding is + * not yet supported. + * + * Generated from protobuf field string current_route_segment = 20; + * @param string $var + * @return $this + */ + public function setCurrentRouteSegment($var) + { + GPBUtil::checkString($var, True); + $this->current_route_segment = $var; + + return $this; + } + + /** + * Input only. Fleet Engine uses this information to improve journey sharing. + * Note: This field is intended only for use by the Driver SDK. + * + * Generated from protobuf field .maps.fleetengine.v1.TrafficPolylineData current_route_segment_traffic = 28 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Maps\FleetEngine\V1\TrafficPolylineData|null + */ + public function getCurrentRouteSegmentTraffic() + { + return $this->current_route_segment_traffic; + } + + public function hasCurrentRouteSegmentTraffic() + { + return isset($this->current_route_segment_traffic); + } + + public function clearCurrentRouteSegmentTraffic() + { + unset($this->current_route_segment_traffic); + } + + /** + * Input only. Fleet Engine uses this information to improve journey sharing. + * Note: This field is intended only for use by the Driver SDK. + * + * Generated from protobuf field .maps.fleetengine.v1.TrafficPolylineData current_route_segment_traffic = 28 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Maps\FleetEngine\V1\TrafficPolylineData $var + * @return $this + */ + public function setCurrentRouteSegmentTraffic($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TrafficPolylineData::class); + $this->current_route_segment_traffic = $var; + + return $this; + } + + /** + * Output only. Time when `current_route_segment` was set. It can be stored by + * the client and passed in future `GetVehicle` requests to prevent returning + * routes that haven't changed. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCurrentRouteSegmentVersion() + { + return $this->current_route_segment_version; + } + + public function hasCurrentRouteSegmentVersion() + { + return isset($this->current_route_segment_version); + } + + public function clearCurrentRouteSegmentVersion() + { + unset($this->current_route_segment_version); + } + + /** + * Output only. Time when `current_route_segment` was set. It can be stored by + * the client and passed in future `GetVehicle` requests to prevent returning + * routes that haven't changed. + * + * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCurrentRouteSegmentVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->current_route_segment_version = $var; + + return $this; + } + + /** + * The waypoint where `current_route_segment` ends. This can be supplied by + * drivers on `UpdateVehicle` calls either as a full trip waypoint, a waypoint + * `LatLng`, or as the last `LatLng` of the `current_route_segment`. Fleet + * Engine will then do its best to interpolate to an actual waypoint if it is + * not fully specified. This field is ignored in `UpdateVehicle` calls unless + * `current_route_segment` is also specified. + * + * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24; + * @return \Google\Maps\FleetEngine\V1\TripWaypoint|null + */ + public function getCurrentRouteSegmentEndPoint() + { + return $this->current_route_segment_end_point; + } + + public function hasCurrentRouteSegmentEndPoint() + { + return isset($this->current_route_segment_end_point); + } + + public function clearCurrentRouteSegmentEndPoint() + { + unset($this->current_route_segment_end_point); + } + + /** + * The waypoint where `current_route_segment` ends. This can be supplied by + * drivers on `UpdateVehicle` calls either as a full trip waypoint, a waypoint + * `LatLng`, or as the last `LatLng` of the `current_route_segment`. Fleet + * Engine will then do its best to interpolate to an actual waypoint if it is + * not fully specified. This field is ignored in `UpdateVehicle` calls unless + * `current_route_segment` is also specified. + * + * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24; + * @param \Google\Maps\FleetEngine\V1\TripWaypoint $var + * @return $this + */ + public function setCurrentRouteSegmentEndPoint($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TripWaypoint::class); + $this->current_route_segment_end_point = $var; + + return $this; + } + + /** + * The remaining driving distance for the `current_route_segment`. + * This value is also returned in `Trip.remaining_distance_meters` for all + * active trips assigned to the vehicle. The value is unspecified if the + * `current_route_segment` field is empty. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 18; + * @return \Google\Protobuf\Int32Value|null + */ + public function getRemainingDistanceMeters() + { + return $this->remaining_distance_meters; + } + + public function hasRemainingDistanceMeters() + { + return isset($this->remaining_distance_meters); + } + + public function clearRemainingDistanceMeters() + { + unset($this->remaining_distance_meters); + } + + /** + * Returns the unboxed value from getRemainingDistanceMeters() + + * The remaining driving distance for the `current_route_segment`. + * This value is also returned in `Trip.remaining_distance_meters` for all + * active trips assigned to the vehicle. The value is unspecified if the + * `current_route_segment` field is empty. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 18; + * @return int|null + */ + public function getRemainingDistanceMetersUnwrapped() + { + return $this->readWrapperValue("remaining_distance_meters"); + } + + /** + * The remaining driving distance for the `current_route_segment`. + * This value is also returned in `Trip.remaining_distance_meters` for all + * active trips assigned to the vehicle. The value is unspecified if the + * `current_route_segment` field is empty. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 18; + * @param \Google\Protobuf\Int32Value $var + * @return $this + */ + public function setRemainingDistanceMeters($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->remaining_distance_meters = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * The remaining driving distance for the `current_route_segment`. + * This value is also returned in `Trip.remaining_distance_meters` for all + * active trips assigned to the vehicle. The value is unspecified if the + * `current_route_segment` field is empty. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 18; + * @param int|null $var + * @return $this + */ + public function setRemainingDistanceMetersUnwrapped($var) + { + $this->writeWrapperValue("remaining_distance_meters", $var); + return $this;} + + /** + * The ETA to the first entry in the `waypoints` field. The value is + * unspecified if the `waypoints` field is empty or the + * `Vehicle.current_route_segment` field is empty. + * When updating a vehicle, `remaining_time_seconds` takes precedence over + * `eta_to_first_waypoint` in the same request. + * + * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 19; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEtaToFirstWaypoint() + { + return $this->eta_to_first_waypoint; + } + + public function hasEtaToFirstWaypoint() + { + return isset($this->eta_to_first_waypoint); + } + + public function clearEtaToFirstWaypoint() + { + unset($this->eta_to_first_waypoint); + } + + /** + * The ETA to the first entry in the `waypoints` field. The value is + * unspecified if the `waypoints` field is empty or the + * `Vehicle.current_route_segment` field is empty. + * When updating a vehicle, `remaining_time_seconds` takes precedence over + * `eta_to_first_waypoint` in the same request. + * + * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 19; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEtaToFirstWaypoint($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->eta_to_first_waypoint = $var; + + return $this; + } + + /** + * Input only. The remaining driving time for the `current_route_segment`. The + * value is unspecified if the `waypoints` field is empty or the + * `Vehicle.current_route_segment` field is empty. This value should match + * `eta_to_first_waypoint` - `current_time` if all parties are using the same + * clock. + * When updating a vehicle, `remaining_time_seconds` takes precedence over + * `eta_to_first_waypoint` in the same request. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_time_seconds = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Protobuf\Int32Value|null + */ + public function getRemainingTimeSeconds() + { + return $this->remaining_time_seconds; + } + + public function hasRemainingTimeSeconds() + { + return isset($this->remaining_time_seconds); + } + + public function clearRemainingTimeSeconds() + { + unset($this->remaining_time_seconds); + } + + /** + * Returns the unboxed value from getRemainingTimeSeconds() + + * Input only. The remaining driving time for the `current_route_segment`. The + * value is unspecified if the `waypoints` field is empty or the + * `Vehicle.current_route_segment` field is empty. This value should match + * `eta_to_first_waypoint` - `current_time` if all parties are using the same + * clock. + * When updating a vehicle, `remaining_time_seconds` takes precedence over + * `eta_to_first_waypoint` in the same request. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_time_seconds = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return int|null + */ + public function getRemainingTimeSecondsUnwrapped() + { + return $this->readWrapperValue("remaining_time_seconds"); + } + + /** + * Input only. The remaining driving time for the `current_route_segment`. The + * value is unspecified if the `waypoints` field is empty or the + * `Vehicle.current_route_segment` field is empty. This value should match + * `eta_to_first_waypoint` - `current_time` if all parties are using the same + * clock. + * When updating a vehicle, `remaining_time_seconds` takes precedence over + * `eta_to_first_waypoint` in the same request. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_time_seconds = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Protobuf\Int32Value $var + * @return $this + */ + public function setRemainingTimeSeconds($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->remaining_time_seconds = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * Input only. The remaining driving time for the `current_route_segment`. The + * value is unspecified if the `waypoints` field is empty or the + * `Vehicle.current_route_segment` field is empty. This value should match + * `eta_to_first_waypoint` - `current_time` if all parties are using the same + * clock. + * When updating a vehicle, `remaining_time_seconds` takes precedence over + * `eta_to_first_waypoint` in the same request. + * + * Generated from protobuf field .google.protobuf.Int32Value remaining_time_seconds = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param int|null $var + * @return $this + */ + public function setRemainingTimeSecondsUnwrapped($var) + { + $this->writeWrapperValue("remaining_time_seconds", $var); + return $this;} + + /** + * The remaining waypoints assigned to this Vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint waypoints = 22; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getWaypoints() + { + return $this->waypoints; + } + + /** + * The remaining waypoints assigned to this Vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint waypoints = 22; + * @param array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setWaypoints($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\TripWaypoint::class); + $this->waypoints = $arr; + + return $this; + } + + /** + * Output only. Last time the `waypoints` field was updated. Clients should + * cache this value and pass it in `GetVehicleRequest` to ensure the + * `waypoints` field is only returned if it is updated. + * + * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getWaypointsVersion() + { + return $this->waypoints_version; + } + + public function hasWaypointsVersion() + { + return isset($this->waypoints_version); + } + + public function clearWaypointsVersion() + { + unset($this->waypoints_version); + } + + /** + * Output only. Last time the `waypoints` field was updated. Clients should + * cache this value and pass it in `GetVehicleRequest` to ensure the + * `waypoints` field is only returned if it is updated. + * + * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setWaypointsVersion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->waypoints_version = $var; + + return $this; + } + + /** + * Indicates if the driver accepts back-to-back trips. If `true`, + * `SearchVehicles` may include the vehicle even if it is currently assigned + * to a trip. The default value is `false`. + * + * Generated from protobuf field bool back_to_back_enabled = 23; + * @return bool + */ + public function getBackToBackEnabled() + { + return $this->back_to_back_enabled; + } + + /** + * Indicates if the driver accepts back-to-back trips. If `true`, + * `SearchVehicles` may include the vehicle even if it is currently assigned + * to a trip. The default value is `false`. + * + * Generated from protobuf field bool back_to_back_enabled = 23; + * @param bool $var + * @return $this + */ + public function setBackToBackEnabled($var) + { + GPBUtil::checkBool($var); + $this->back_to_back_enabled = $var; + + return $this; + } + + /** + * The vehicle's navigation status. + * + * Generated from protobuf field .maps.fleetengine.v1.NavigationStatus navigation_status = 26; + * @return int + */ + public function getNavigationStatus() + { + return $this->navigation_status; + } + + /** + * The vehicle's navigation status. + * + * Generated from protobuf field .maps.fleetengine.v1.NavigationStatus navigation_status = 26; + * @param int $var + * @return $this + */ + public function setNavigationStatus($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\NavigationStatus::class); + $this->navigation_status = $var; + + return $this; + } + + /** + * Input only. Information about settings in the mobile device being used by + * the driver. + * + * Generated from protobuf field .maps.fleetengine.v1.DeviceSettings device_settings = 27 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Maps\FleetEngine\V1\DeviceSettings|null + */ + public function getDeviceSettings() + { + return $this->device_settings; + } + + public function hasDeviceSettings() + { + return isset($this->device_settings); + } + + public function clearDeviceSettings() + { + unset($this->device_settings); + } + + /** + * Input only. Information about settings in the mobile device being used by + * the driver. + * + * Generated from protobuf field .maps.fleetengine.v1.DeviceSettings device_settings = 27 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Maps\FleetEngine\V1\DeviceSettings $var + * @return $this + */ + public function setDeviceSettings($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\DeviceSettings::class); + $this->device_settings = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType.php new file mode 100644 index 000000000000..2b1dfb175e0d --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType.php @@ -0,0 +1,70 @@ +maps.fleetengine.v1.Vehicle.VehicleType + */ +class VehicleType extends \Google\Protobuf\Internal\Message +{ + /** + * Vehicle type category + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType.Category category = 1; + */ + protected $category = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $category + * Vehicle type category + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); + parent::__construct($data); + } + + /** + * Vehicle type category + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType.Category category = 1; + * @return int + */ + public function getCategory() + { + return $this->category; + } + + /** + * Vehicle type category + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType.Category category = 1; + * @param int $var + * @return $this + */ + public function setCategory($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\Vehicle\VehicleType\Category::class); + $this->category = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(VehicleType::class, \Google\Maps\FleetEngine\V1\Vehicle_VehicleType::class); + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType/Category.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType/Category.php new file mode 100644 index 000000000000..8133764e8bc8 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType/Category.php @@ -0,0 +1,93 @@ +maps.fleetengine.v1.Vehicle.VehicleType.Category + */ +class Category +{ + /** + * Default, used for unspecified or unrecognized vehicle categories. + * + * Generated from protobuf enum UNKNOWN = 0; + */ + const UNKNOWN = 0; + /** + * An automobile. + * + * Generated from protobuf enum AUTO = 1; + */ + const AUTO = 1; + /** + * Any vehicle that acts as a taxi (typically licensed or regulated). + * + * Generated from protobuf enum TAXI = 2; + */ + const TAXI = 2; + /** + * Generally, a vehicle with a large storage capacity. + * + * Generated from protobuf enum TRUCK = 3; + */ + const TRUCK = 3; + /** + * A motorcycle, moped, or other two-wheeled vehicle + * + * Generated from protobuf enum TWO_WHEELER = 4; + */ + const TWO_WHEELER = 4; + /** + * Human-powered transport. + * + * Generated from protobuf enum BICYCLE = 5; + */ + const BICYCLE = 5; + /** + * A human transporter, typically walking or running, traveling along + * pedestrian pathways. + * + * Generated from protobuf enum PEDESTRIAN = 6; + */ + const PEDESTRIAN = 6; + + private static $valueToName = [ + self::UNKNOWN => 'UNKNOWN', + self::AUTO => 'AUTO', + self::TAXI => 'TAXI', + self::TRUCK => 'TRUCK', + self::TWO_WHEELER => 'TWO_WHEELER', + self::BICYCLE => 'BICYCLE', + self::PEDESTRIAN => 'PEDESTRIAN', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Category::class, \Google\Maps\FleetEngine\V1\Vehicle_VehicleType_Category::class); + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttribute.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttribute.php new file mode 100644 index 000000000000..33dc410a64bc --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttribute.php @@ -0,0 +1,225 @@ +maps.fleetengine.v1.VehicleAttribute + */ +class VehicleAttribute extends \Google\Protobuf\Internal\Message +{ + /** + * The attribute's key. Keys may not contain the colon character (:). + * + * Generated from protobuf field string key = 1; + */ + protected $key = ''; + /** + * The attribute's value. + * + * Generated from protobuf field string value = 2; + */ + protected $value = ''; + protected $vehicle_attribute_value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * The attribute's key. Keys may not contain the colon character (:). + * @type string $value + * The attribute's value. + * @type string $string_value + * String typed attribute value. + * Note: This is identical to the `value` field which will eventually be + * deprecated. For create or update methods, either field can be used, but + * it's strongly recommended to use `string_value`. If both `string_value` + * and `value` are set, they must be identical or an error will be thrown. + * Both fields are populated in responses. + * @type bool $bool_value + * Boolean typed attribute value. + * @type float $number_value + * Double typed attribute value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Fleetengine::initOnce(); + parent::__construct($data); + } + + /** + * The attribute's key. Keys may not contain the colon character (:). + * + * Generated from protobuf field string key = 1; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * The attribute's key. Keys may not contain the colon character (:). + * + * Generated from protobuf field string key = 1; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + + /** + * The attribute's value. + * + * Generated from protobuf field string value = 2; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * The attribute's value. + * + * Generated from protobuf field string value = 2; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * String typed attribute value. + * Note: This is identical to the `value` field which will eventually be + * deprecated. For create or update methods, either field can be used, but + * it's strongly recommended to use `string_value`. If both `string_value` + * and `value` are set, they must be identical or an error will be thrown. + * Both fields are populated in responses. + * + * Generated from protobuf field string string_value = 3; + * @return string + */ + public function getStringValue() + { + return $this->readOneof(3); + } + + public function hasStringValue() + { + return $this->hasOneof(3); + } + + /** + * String typed attribute value. + * Note: This is identical to the `value` field which will eventually be + * deprecated. For create or update methods, either field can be used, but + * it's strongly recommended to use `string_value`. If both `string_value` + * and `value` are set, they must be identical or an error will be thrown. + * Both fields are populated in responses. + * + * Generated from protobuf field string string_value = 3; + * @param string $var + * @return $this + */ + public function setStringValue($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Boolean typed attribute value. + * + * Generated from protobuf field bool bool_value = 4; + * @return bool + */ + public function getBoolValue() + { + return $this->readOneof(4); + } + + public function hasBoolValue() + { + return $this->hasOneof(4); + } + + /** + * Boolean typed attribute value. + * + * Generated from protobuf field bool bool_value = 4; + * @param bool $var + * @return $this + */ + public function setBoolValue($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Double typed attribute value. + * + * Generated from protobuf field double number_value = 5; + * @return float + */ + public function getNumberValue() + { + return $this->readOneof(5); + } + + public function hasNumberValue() + { + return $this->hasOneof(5); + } + + /** + * Double typed attribute value. + * + * Generated from protobuf field double number_value = 5; + * @param float $var + * @return $this + */ + public function setNumberValue($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * @return string + */ + public function getVehicleAttributeValue() + { + return $this->whichOneof("vehicle_attribute_value"); + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttributeList.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttributeList.php new file mode 100644 index 000000000000..99d5f9de749e --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttributeList.php @@ -0,0 +1,67 @@ +maps.fleetengine.v1.VehicleAttributeList + */ +class VehicleAttributeList extends \Google\Protobuf\Internal\Message +{ + /** + * A list of attributes in this collection. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1; + */ + private $attributes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $attributes + * A list of attributes in this collection. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * A list of attributes in this collection. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAttributes() + { + return $this->attributes; + } + + /** + * A list of attributes in this collection. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1; + * @param array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAttributes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttribute::class); + $this->attributes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleLocation.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleLocation.php new file mode 100644 index 000000000000..a4efa0721e4a --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleLocation.php @@ -0,0 +1,1789 @@ +maps.fleetengine.v1.VehicleLocation + */ +class VehicleLocation extends \Google\Protobuf\Internal\Message +{ + /** + * The location of the vehicle. + * When it is sent to Fleet Engine, the vehicle's location is a GPS location. + * When you receive it in a response, the vehicle's location can be either a + * GPS location, a supplemental location, or some other estimated location. + * The source is specified in `location_sensor`. + * + * Generated from protobuf field .google.type.LatLng location = 1; + */ + protected $location = null; + /** + * Deprecated: Use `latlng_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; + * @deprecated + */ + protected $horizontal_accuracy = null; + /** + * Accuracy of `location` in meters as a radius. + * + * Generated from protobuf field .google.protobuf.DoubleValue latlng_accuracy = 22; + */ + protected $latlng_accuracy = null; + /** + * Direction the vehicle is moving in degrees. 0 represents North. + * The valid range is [0,360). + * + * Generated from protobuf field .google.protobuf.Int32Value heading = 2; + */ + protected $heading = null; + /** + * Deprecated: Use `heading_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; + * @deprecated + */ + protected $bearing_accuracy = null; + /** + * Accuracy of `heading` in degrees. + * + * Generated from protobuf field .google.protobuf.DoubleValue heading_accuracy = 23; + */ + protected $heading_accuracy = null; + /** + * Altitude in meters above WGS84. + * + * Generated from protobuf field .google.protobuf.DoubleValue altitude = 5; + */ + protected $altitude = null; + /** + * Deprecated: Use `altitude_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; + * @deprecated + */ + protected $vertical_accuracy = null; + /** + * Accuracy of `altitude` in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue altitude_accuracy = 24; + */ + protected $altitude_accuracy = null; + /** + * Speed of the vehicle in kilometers per hour. + * Deprecated: Use `speed` instead. + * + * Generated from protobuf field .google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; + * @deprecated + */ + protected $speed_kmph = null; + /** + * Speed of the vehicle in meters/second + * + * Generated from protobuf field .google.protobuf.DoubleValue speed = 6; + */ + protected $speed = null; + /** + * Accuracy of `speed` in meters/second. + * + * Generated from protobuf field .google.protobuf.DoubleValue speed_accuracy = 7; + */ + protected $speed_accuracy = null; + /** + * The time when `location` was reported by the sensor according to the + * sensor's clock. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; + */ + protected $update_time = null; + /** + * Output only. The time when the server received the location information. + * + * Generated from protobuf field .google.protobuf.Timestamp server_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $server_time = null; + /** + * Provider of location data (for example, `GPS`). + * + * Generated from protobuf field .maps.fleetengine.v1.LocationSensor location_sensor = 11; + */ + protected $location_sensor = 0; + /** + * Whether `location` is snapped to a road. + * + * Generated from protobuf field .google.protobuf.BoolValue is_road_snapped = 27; + */ + protected $is_road_snapped = null; + /** + * Input only. Indicates whether the GPS sensor is enabled on the mobile + * device. + * + * Generated from protobuf field .google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $is_gps_sensor_enabled = null; + /** + * Input only. Time (in seconds) since this location was first sent to the + * server. This will be zero for the first update. If the time is unknown (for + * example, when the app restarts), this value resets to zero. + * + * Generated from protobuf field .google.protobuf.Int32Value time_since_update = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $time_since_update = null; + /** + * Input only. Deprecated: Other signals are now used to determine if a + * location is stale. + * + * Generated from protobuf field .google.protobuf.Int32Value num_stale_updates = 15 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; + * @deprecated + */ + protected $num_stale_updates = null; + /** + * Raw vehicle location (unprocessed by road-snapper). + * + * Generated from protobuf field .google.type.LatLng raw_location = 16; + */ + protected $raw_location = null; + /** + * Timestamp associated with the raw location. + * + * Generated from protobuf field .google.protobuf.Timestamp raw_location_time = 17; + */ + protected $raw_location_time = null; + /** + * Source of the raw location. Defaults to `GPS`. + * + * Generated from protobuf field .maps.fleetengine.v1.LocationSensor raw_location_sensor = 28; + */ + protected $raw_location_sensor = 0; + /** + * Accuracy of `raw_location` as a radius, in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue raw_location_accuracy = 25; + */ + protected $raw_location_accuracy = null; + /** + * Supplemental location provided by the integrating app. + * + * Generated from protobuf field .google.type.LatLng supplemental_location = 18; + */ + protected $supplemental_location = null; + /** + * Timestamp associated with the supplemental location. + * + * Generated from protobuf field .google.protobuf.Timestamp supplemental_location_time = 19; + */ + protected $supplemental_location_time = null; + /** + * Source of the supplemental location. Defaults to + * `CUSTOMER_SUPPLIED_LOCATION`. + * + * Generated from protobuf field .maps.fleetengine.v1.LocationSensor supplemental_location_sensor = 20; + */ + protected $supplemental_location_sensor = 0; + /** + * Accuracy of `supplemental_location` as a radius, in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue supplemental_location_accuracy = 21; + */ + protected $supplemental_location_accuracy = null; + /** + * Deprecated: Use `is_road_snapped` instead. + * + * Generated from protobuf field bool road_snapped = 26 [deprecated = true]; + * @deprecated + */ + protected $road_snapped = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Type\LatLng $location + * The location of the vehicle. + * When it is sent to Fleet Engine, the vehicle's location is a GPS location. + * When you receive it in a response, the vehicle's location can be either a + * GPS location, a supplemental location, or some other estimated location. + * The source is specified in `location_sensor`. + * @type \Google\Protobuf\DoubleValue $horizontal_accuracy + * Deprecated: Use `latlng_accuracy` instead. + * @type \Google\Protobuf\DoubleValue $latlng_accuracy + * Accuracy of `location` in meters as a radius. + * @type \Google\Protobuf\Int32Value $heading + * Direction the vehicle is moving in degrees. 0 represents North. + * The valid range is [0,360). + * @type \Google\Protobuf\DoubleValue $bearing_accuracy + * Deprecated: Use `heading_accuracy` instead. + * @type \Google\Protobuf\DoubleValue $heading_accuracy + * Accuracy of `heading` in degrees. + * @type \Google\Protobuf\DoubleValue $altitude + * Altitude in meters above WGS84. + * @type \Google\Protobuf\DoubleValue $vertical_accuracy + * Deprecated: Use `altitude_accuracy` instead. + * @type \Google\Protobuf\DoubleValue $altitude_accuracy + * Accuracy of `altitude` in meters. + * @type \Google\Protobuf\Int32Value $speed_kmph + * Speed of the vehicle in kilometers per hour. + * Deprecated: Use `speed` instead. + * @type \Google\Protobuf\DoubleValue $speed + * Speed of the vehicle in meters/second + * @type \Google\Protobuf\DoubleValue $speed_accuracy + * Accuracy of `speed` in meters/second. + * @type \Google\Protobuf\Timestamp $update_time + * The time when `location` was reported by the sensor according to the + * sensor's clock. + * @type \Google\Protobuf\Timestamp $server_time + * Output only. The time when the server received the location information. + * @type int $location_sensor + * Provider of location data (for example, `GPS`). + * @type \Google\Protobuf\BoolValue $is_road_snapped + * Whether `location` is snapped to a road. + * @type \Google\Protobuf\BoolValue $is_gps_sensor_enabled + * Input only. Indicates whether the GPS sensor is enabled on the mobile + * device. + * @type \Google\Protobuf\Int32Value $time_since_update + * Input only. Time (in seconds) since this location was first sent to the + * server. This will be zero for the first update. If the time is unknown (for + * example, when the app restarts), this value resets to zero. + * @type \Google\Protobuf\Int32Value $num_stale_updates + * Input only. Deprecated: Other signals are now used to determine if a + * location is stale. + * @type \Google\Type\LatLng $raw_location + * Raw vehicle location (unprocessed by road-snapper). + * @type \Google\Protobuf\Timestamp $raw_location_time + * Timestamp associated with the raw location. + * @type int $raw_location_sensor + * Source of the raw location. Defaults to `GPS`. + * @type \Google\Protobuf\DoubleValue $raw_location_accuracy + * Accuracy of `raw_location` as a radius, in meters. + * @type \Google\Type\LatLng $supplemental_location + * Supplemental location provided by the integrating app. + * @type \Google\Protobuf\Timestamp $supplemental_location_time + * Timestamp associated with the supplemental location. + * @type int $supplemental_location_sensor + * Source of the supplemental location. Defaults to + * `CUSTOMER_SUPPLIED_LOCATION`. + * @type \Google\Protobuf\DoubleValue $supplemental_location_accuracy + * Accuracy of `supplemental_location` as a radius, in meters. + * @type bool $road_snapped + * Deprecated: Use `is_road_snapped` instead. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Fleetengine::initOnce(); + parent::__construct($data); + } + + /** + * The location of the vehicle. + * When it is sent to Fleet Engine, the vehicle's location is a GPS location. + * When you receive it in a response, the vehicle's location can be either a + * GPS location, a supplemental location, or some other estimated location. + * The source is specified in `location_sensor`. + * + * Generated from protobuf field .google.type.LatLng location = 1; + * @return \Google\Type\LatLng|null + */ + public function getLocation() + { + return $this->location; + } + + public function hasLocation() + { + return isset($this->location); + } + + public function clearLocation() + { + unset($this->location); + } + + /** + * The location of the vehicle. + * When it is sent to Fleet Engine, the vehicle's location is a GPS location. + * When you receive it in a response, the vehicle's location can be either a + * GPS location, a supplemental location, or some other estimated location. + * The source is specified in `location_sensor`. + * + * Generated from protobuf field .google.type.LatLng location = 1; + * @param \Google\Type\LatLng $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkMessage($var, \Google\Type\LatLng::class); + $this->location = $var; + + return $this; + } + + /** + * Deprecated: Use `latlng_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; + * @return \Google\Protobuf\DoubleValue|null + * @deprecated + */ + public function getHorizontalAccuracy() + { + @trigger_error('horizontal_accuracy is deprecated.', E_USER_DEPRECATED); + return $this->horizontal_accuracy; + } + + public function hasHorizontalAccuracy() + { + @trigger_error('horizontal_accuracy is deprecated.', E_USER_DEPRECATED); + return isset($this->horizontal_accuracy); + } + + public function clearHorizontalAccuracy() + { + @trigger_error('horizontal_accuracy is deprecated.', E_USER_DEPRECATED); + unset($this->horizontal_accuracy); + } + + /** + * Returns the unboxed value from getHorizontalAccuracy() + + * Deprecated: Use `latlng_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; + * @return float|null + */ + public function getHorizontalAccuracyUnwrapped() + { + @trigger_error('horizontal_accuracy is deprecated.', E_USER_DEPRECATED); + return $this->readWrapperValue("horizontal_accuracy"); + } + + /** + * Deprecated: Use `latlng_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; + * @param \Google\Protobuf\DoubleValue $var + * @return $this + * @deprecated + */ + public function setHorizontalAccuracy($var) + { + @trigger_error('horizontal_accuracy is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); + $this->horizontal_accuracy = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. + + * Deprecated: Use `latlng_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; + * @param float|null $var + * @return $this + */ + public function setHorizontalAccuracyUnwrapped($var) + { + $this->writeWrapperValue("horizontal_accuracy", $var); + return $this;} + + /** + * Accuracy of `location` in meters as a radius. + * + * Generated from protobuf field .google.protobuf.DoubleValue latlng_accuracy = 22; + * @return \Google\Protobuf\DoubleValue|null + */ + public function getLatlngAccuracy() + { + return $this->latlng_accuracy; + } + + public function hasLatlngAccuracy() + { + return isset($this->latlng_accuracy); + } + + public function clearLatlngAccuracy() + { + unset($this->latlng_accuracy); + } + + /** + * Returns the unboxed value from getLatlngAccuracy() + + * Accuracy of `location` in meters as a radius. + * + * Generated from protobuf field .google.protobuf.DoubleValue latlng_accuracy = 22; + * @return float|null + */ + public function getLatlngAccuracyUnwrapped() + { + return $this->readWrapperValue("latlng_accuracy"); + } + + /** + * Accuracy of `location` in meters as a radius. + * + * Generated from protobuf field .google.protobuf.DoubleValue latlng_accuracy = 22; + * @param \Google\Protobuf\DoubleValue $var + * @return $this + */ + public function setLatlngAccuracy($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); + $this->latlng_accuracy = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. + + * Accuracy of `location` in meters as a radius. + * + * Generated from protobuf field .google.protobuf.DoubleValue latlng_accuracy = 22; + * @param float|null $var + * @return $this + */ + public function setLatlngAccuracyUnwrapped($var) + { + $this->writeWrapperValue("latlng_accuracy", $var); + return $this;} + + /** + * Direction the vehicle is moving in degrees. 0 represents North. + * The valid range is [0,360). + * + * Generated from protobuf field .google.protobuf.Int32Value heading = 2; + * @return \Google\Protobuf\Int32Value|null + */ + public function getHeading() + { + return $this->heading; + } + + public function hasHeading() + { + return isset($this->heading); + } + + public function clearHeading() + { + unset($this->heading); + } + + /** + * Returns the unboxed value from getHeading() + + * Direction the vehicle is moving in degrees. 0 represents North. + * The valid range is [0,360). + * + * Generated from protobuf field .google.protobuf.Int32Value heading = 2; + * @return int|null + */ + public function getHeadingUnwrapped() + { + return $this->readWrapperValue("heading"); + } + + /** + * Direction the vehicle is moving in degrees. 0 represents North. + * The valid range is [0,360). + * + * Generated from protobuf field .google.protobuf.Int32Value heading = 2; + * @param \Google\Protobuf\Int32Value $var + * @return $this + */ + public function setHeading($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->heading = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * Direction the vehicle is moving in degrees. 0 represents North. + * The valid range is [0,360). + * + * Generated from protobuf field .google.protobuf.Int32Value heading = 2; + * @param int|null $var + * @return $this + */ + public function setHeadingUnwrapped($var) + { + $this->writeWrapperValue("heading", $var); + return $this;} + + /** + * Deprecated: Use `heading_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; + * @return \Google\Protobuf\DoubleValue|null + * @deprecated + */ + public function getBearingAccuracy() + { + @trigger_error('bearing_accuracy is deprecated.', E_USER_DEPRECATED); + return $this->bearing_accuracy; + } + + public function hasBearingAccuracy() + { + @trigger_error('bearing_accuracy is deprecated.', E_USER_DEPRECATED); + return isset($this->bearing_accuracy); + } + + public function clearBearingAccuracy() + { + @trigger_error('bearing_accuracy is deprecated.', E_USER_DEPRECATED); + unset($this->bearing_accuracy); + } + + /** + * Returns the unboxed value from getBearingAccuracy() + + * Deprecated: Use `heading_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; + * @return float|null + */ + public function getBearingAccuracyUnwrapped() + { + @trigger_error('bearing_accuracy is deprecated.', E_USER_DEPRECATED); + return $this->readWrapperValue("bearing_accuracy"); + } + + /** + * Deprecated: Use `heading_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; + * @param \Google\Protobuf\DoubleValue $var + * @return $this + * @deprecated + */ + public function setBearingAccuracy($var) + { + @trigger_error('bearing_accuracy is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); + $this->bearing_accuracy = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. + + * Deprecated: Use `heading_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; + * @param float|null $var + * @return $this + */ + public function setBearingAccuracyUnwrapped($var) + { + $this->writeWrapperValue("bearing_accuracy", $var); + return $this;} + + /** + * Accuracy of `heading` in degrees. + * + * Generated from protobuf field .google.protobuf.DoubleValue heading_accuracy = 23; + * @return \Google\Protobuf\DoubleValue|null + */ + public function getHeadingAccuracy() + { + return $this->heading_accuracy; + } + + public function hasHeadingAccuracy() + { + return isset($this->heading_accuracy); + } + + public function clearHeadingAccuracy() + { + unset($this->heading_accuracy); + } + + /** + * Returns the unboxed value from getHeadingAccuracy() + + * Accuracy of `heading` in degrees. + * + * Generated from protobuf field .google.protobuf.DoubleValue heading_accuracy = 23; + * @return float|null + */ + public function getHeadingAccuracyUnwrapped() + { + return $this->readWrapperValue("heading_accuracy"); + } + + /** + * Accuracy of `heading` in degrees. + * + * Generated from protobuf field .google.protobuf.DoubleValue heading_accuracy = 23; + * @param \Google\Protobuf\DoubleValue $var + * @return $this + */ + public function setHeadingAccuracy($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); + $this->heading_accuracy = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. + + * Accuracy of `heading` in degrees. + * + * Generated from protobuf field .google.protobuf.DoubleValue heading_accuracy = 23; + * @param float|null $var + * @return $this + */ + public function setHeadingAccuracyUnwrapped($var) + { + $this->writeWrapperValue("heading_accuracy", $var); + return $this;} + + /** + * Altitude in meters above WGS84. + * + * Generated from protobuf field .google.protobuf.DoubleValue altitude = 5; + * @return \Google\Protobuf\DoubleValue|null + */ + public function getAltitude() + { + return $this->altitude; + } + + public function hasAltitude() + { + return isset($this->altitude); + } + + public function clearAltitude() + { + unset($this->altitude); + } + + /** + * Returns the unboxed value from getAltitude() + + * Altitude in meters above WGS84. + * + * Generated from protobuf field .google.protobuf.DoubleValue altitude = 5; + * @return float|null + */ + public function getAltitudeUnwrapped() + { + return $this->readWrapperValue("altitude"); + } + + /** + * Altitude in meters above WGS84. + * + * Generated from protobuf field .google.protobuf.DoubleValue altitude = 5; + * @param \Google\Protobuf\DoubleValue $var + * @return $this + */ + public function setAltitude($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); + $this->altitude = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. + + * Altitude in meters above WGS84. + * + * Generated from protobuf field .google.protobuf.DoubleValue altitude = 5; + * @param float|null $var + * @return $this + */ + public function setAltitudeUnwrapped($var) + { + $this->writeWrapperValue("altitude", $var); + return $this;} + + /** + * Deprecated: Use `altitude_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; + * @return \Google\Protobuf\DoubleValue|null + * @deprecated + */ + public function getVerticalAccuracy() + { + @trigger_error('vertical_accuracy is deprecated.', E_USER_DEPRECATED); + return $this->vertical_accuracy; + } + + public function hasVerticalAccuracy() + { + @trigger_error('vertical_accuracy is deprecated.', E_USER_DEPRECATED); + return isset($this->vertical_accuracy); + } + + public function clearVerticalAccuracy() + { + @trigger_error('vertical_accuracy is deprecated.', E_USER_DEPRECATED); + unset($this->vertical_accuracy); + } + + /** + * Returns the unboxed value from getVerticalAccuracy() + + * Deprecated: Use `altitude_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; + * @return float|null + */ + public function getVerticalAccuracyUnwrapped() + { + @trigger_error('vertical_accuracy is deprecated.', E_USER_DEPRECATED); + return $this->readWrapperValue("vertical_accuracy"); + } + + /** + * Deprecated: Use `altitude_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; + * @param \Google\Protobuf\DoubleValue $var + * @return $this + * @deprecated + */ + public function setVerticalAccuracy($var) + { + @trigger_error('vertical_accuracy is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); + $this->vertical_accuracy = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. + + * Deprecated: Use `altitude_accuracy` instead. + * + * Generated from protobuf field .google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; + * @param float|null $var + * @return $this + */ + public function setVerticalAccuracyUnwrapped($var) + { + $this->writeWrapperValue("vertical_accuracy", $var); + return $this;} + + /** + * Accuracy of `altitude` in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue altitude_accuracy = 24; + * @return \Google\Protobuf\DoubleValue|null + */ + public function getAltitudeAccuracy() + { + return $this->altitude_accuracy; + } + + public function hasAltitudeAccuracy() + { + return isset($this->altitude_accuracy); + } + + public function clearAltitudeAccuracy() + { + unset($this->altitude_accuracy); + } + + /** + * Returns the unboxed value from getAltitudeAccuracy() + + * Accuracy of `altitude` in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue altitude_accuracy = 24; + * @return float|null + */ + public function getAltitudeAccuracyUnwrapped() + { + return $this->readWrapperValue("altitude_accuracy"); + } + + /** + * Accuracy of `altitude` in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue altitude_accuracy = 24; + * @param \Google\Protobuf\DoubleValue $var + * @return $this + */ + public function setAltitudeAccuracy($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); + $this->altitude_accuracy = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. + + * Accuracy of `altitude` in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue altitude_accuracy = 24; + * @param float|null $var + * @return $this + */ + public function setAltitudeAccuracyUnwrapped($var) + { + $this->writeWrapperValue("altitude_accuracy", $var); + return $this;} + + /** + * Speed of the vehicle in kilometers per hour. + * Deprecated: Use `speed` instead. + * + * Generated from protobuf field .google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; + * @return \Google\Protobuf\Int32Value|null + * @deprecated + */ + public function getSpeedKmph() + { + @trigger_error('speed_kmph is deprecated.', E_USER_DEPRECATED); + return $this->speed_kmph; + } + + public function hasSpeedKmph() + { + @trigger_error('speed_kmph is deprecated.', E_USER_DEPRECATED); + return isset($this->speed_kmph); + } + + public function clearSpeedKmph() + { + @trigger_error('speed_kmph is deprecated.', E_USER_DEPRECATED); + unset($this->speed_kmph); + } + + /** + * Returns the unboxed value from getSpeedKmph() + + * Speed of the vehicle in kilometers per hour. + * Deprecated: Use `speed` instead. + * + * Generated from protobuf field .google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; + * @return int|null + */ + public function getSpeedKmphUnwrapped() + { + @trigger_error('speed_kmph is deprecated.', E_USER_DEPRECATED); + return $this->readWrapperValue("speed_kmph"); + } + + /** + * Speed of the vehicle in kilometers per hour. + * Deprecated: Use `speed` instead. + * + * Generated from protobuf field .google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; + * @param \Google\Protobuf\Int32Value $var + * @return $this + * @deprecated + */ + public function setSpeedKmph($var) + { + @trigger_error('speed_kmph is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->speed_kmph = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * Speed of the vehicle in kilometers per hour. + * Deprecated: Use `speed` instead. + * + * Generated from protobuf field .google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; + * @param int|null $var + * @return $this + */ + public function setSpeedKmphUnwrapped($var) + { + $this->writeWrapperValue("speed_kmph", $var); + return $this;} + + /** + * Speed of the vehicle in meters/second + * + * Generated from protobuf field .google.protobuf.DoubleValue speed = 6; + * @return \Google\Protobuf\DoubleValue|null + */ + public function getSpeed() + { + return $this->speed; + } + + public function hasSpeed() + { + return isset($this->speed); + } + + public function clearSpeed() + { + unset($this->speed); + } + + /** + * Returns the unboxed value from getSpeed() + + * Speed of the vehicle in meters/second + * + * Generated from protobuf field .google.protobuf.DoubleValue speed = 6; + * @return float|null + */ + public function getSpeedUnwrapped() + { + return $this->readWrapperValue("speed"); + } + + /** + * Speed of the vehicle in meters/second + * + * Generated from protobuf field .google.protobuf.DoubleValue speed = 6; + * @param \Google\Protobuf\DoubleValue $var + * @return $this + */ + public function setSpeed($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); + $this->speed = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. + + * Speed of the vehicle in meters/second + * + * Generated from protobuf field .google.protobuf.DoubleValue speed = 6; + * @param float|null $var + * @return $this + */ + public function setSpeedUnwrapped($var) + { + $this->writeWrapperValue("speed", $var); + return $this;} + + /** + * Accuracy of `speed` in meters/second. + * + * Generated from protobuf field .google.protobuf.DoubleValue speed_accuracy = 7; + * @return \Google\Protobuf\DoubleValue|null + */ + public function getSpeedAccuracy() + { + return $this->speed_accuracy; + } + + public function hasSpeedAccuracy() + { + return isset($this->speed_accuracy); + } + + public function clearSpeedAccuracy() + { + unset($this->speed_accuracy); + } + + /** + * Returns the unboxed value from getSpeedAccuracy() + + * Accuracy of `speed` in meters/second. + * + * Generated from protobuf field .google.protobuf.DoubleValue speed_accuracy = 7; + * @return float|null + */ + public function getSpeedAccuracyUnwrapped() + { + return $this->readWrapperValue("speed_accuracy"); + } + + /** + * Accuracy of `speed` in meters/second. + * + * Generated from protobuf field .google.protobuf.DoubleValue speed_accuracy = 7; + * @param \Google\Protobuf\DoubleValue $var + * @return $this + */ + public function setSpeedAccuracy($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); + $this->speed_accuracy = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. + + * Accuracy of `speed` in meters/second. + * + * Generated from protobuf field .google.protobuf.DoubleValue speed_accuracy = 7; + * @param float|null $var + * @return $this + */ + public function setSpeedAccuracyUnwrapped($var) + { + $this->writeWrapperValue("speed_accuracy", $var); + return $this;} + + /** + * The time when `location` was reported by the sensor according to the + * sensor's clock. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * The time when `location` was reported by the sensor according to the + * sensor's clock. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. The time when the server received the location information. + * + * Generated from protobuf field .google.protobuf.Timestamp server_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getServerTime() + { + return $this->server_time; + } + + public function hasServerTime() + { + return isset($this->server_time); + } + + public function clearServerTime() + { + unset($this->server_time); + } + + /** + * Output only. The time when the server received the location information. + * + * Generated from protobuf field .google.protobuf.Timestamp server_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setServerTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->server_time = $var; + + return $this; + } + + /** + * Provider of location data (for example, `GPS`). + * + * Generated from protobuf field .maps.fleetengine.v1.LocationSensor location_sensor = 11; + * @return int + */ + public function getLocationSensor() + { + return $this->location_sensor; + } + + /** + * Provider of location data (for example, `GPS`). + * + * Generated from protobuf field .maps.fleetengine.v1.LocationSensor location_sensor = 11; + * @param int $var + * @return $this + */ + public function setLocationSensor($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\LocationSensor::class); + $this->location_sensor = $var; + + return $this; + } + + /** + * Whether `location` is snapped to a road. + * + * Generated from protobuf field .google.protobuf.BoolValue is_road_snapped = 27; + * @return \Google\Protobuf\BoolValue|null + */ + public function getIsRoadSnapped() + { + return $this->is_road_snapped; + } + + public function hasIsRoadSnapped() + { + return isset($this->is_road_snapped); + } + + public function clearIsRoadSnapped() + { + unset($this->is_road_snapped); + } + + /** + * Returns the unboxed value from getIsRoadSnapped() + + * Whether `location` is snapped to a road. + * + * Generated from protobuf field .google.protobuf.BoolValue is_road_snapped = 27; + * @return bool|null + */ + public function getIsRoadSnappedUnwrapped() + { + return $this->readWrapperValue("is_road_snapped"); + } + + /** + * Whether `location` is snapped to a road. + * + * Generated from protobuf field .google.protobuf.BoolValue is_road_snapped = 27; + * @param \Google\Protobuf\BoolValue $var + * @return $this + */ + public function setIsRoadSnapped($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); + $this->is_road_snapped = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. + + * Whether `location` is snapped to a road. + * + * Generated from protobuf field .google.protobuf.BoolValue is_road_snapped = 27; + * @param bool|null $var + * @return $this + */ + public function setIsRoadSnappedUnwrapped($var) + { + $this->writeWrapperValue("is_road_snapped", $var); + return $this;} + + /** + * Input only. Indicates whether the GPS sensor is enabled on the mobile + * device. + * + * Generated from protobuf field .google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Protobuf\BoolValue|null + */ + public function getIsGpsSensorEnabled() + { + return $this->is_gps_sensor_enabled; + } + + public function hasIsGpsSensorEnabled() + { + return isset($this->is_gps_sensor_enabled); + } + + public function clearIsGpsSensorEnabled() + { + unset($this->is_gps_sensor_enabled); + } + + /** + * Returns the unboxed value from getIsGpsSensorEnabled() + + * Input only. Indicates whether the GPS sensor is enabled on the mobile + * device. + * + * Generated from protobuf field .google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return bool|null + */ + public function getIsGpsSensorEnabledUnwrapped() + { + return $this->readWrapperValue("is_gps_sensor_enabled"); + } + + /** + * Input only. Indicates whether the GPS sensor is enabled on the mobile + * device. + * + * Generated from protobuf field .google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Protobuf\BoolValue $var + * @return $this + */ + public function setIsGpsSensorEnabled($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); + $this->is_gps_sensor_enabled = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. + + * Input only. Indicates whether the GPS sensor is enabled on the mobile + * device. + * + * Generated from protobuf field .google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param bool|null $var + * @return $this + */ + public function setIsGpsSensorEnabledUnwrapped($var) + { + $this->writeWrapperValue("is_gps_sensor_enabled", $var); + return $this;} + + /** + * Input only. Time (in seconds) since this location was first sent to the + * server. This will be zero for the first update. If the time is unknown (for + * example, when the app restarts), this value resets to zero. + * + * Generated from protobuf field .google.protobuf.Int32Value time_since_update = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Protobuf\Int32Value|null + */ + public function getTimeSinceUpdate() + { + return $this->time_since_update; + } + + public function hasTimeSinceUpdate() + { + return isset($this->time_since_update); + } + + public function clearTimeSinceUpdate() + { + unset($this->time_since_update); + } + + /** + * Returns the unboxed value from getTimeSinceUpdate() + + * Input only. Time (in seconds) since this location was first sent to the + * server. This will be zero for the first update. If the time is unknown (for + * example, when the app restarts), this value resets to zero. + * + * Generated from protobuf field .google.protobuf.Int32Value time_since_update = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return int|null + */ + public function getTimeSinceUpdateUnwrapped() + { + return $this->readWrapperValue("time_since_update"); + } + + /** + * Input only. Time (in seconds) since this location was first sent to the + * server. This will be zero for the first update. If the time is unknown (for + * example, when the app restarts), this value resets to zero. + * + * Generated from protobuf field .google.protobuf.Int32Value time_since_update = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Protobuf\Int32Value $var + * @return $this + */ + public function setTimeSinceUpdate($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->time_since_update = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * Input only. Time (in seconds) since this location was first sent to the + * server. This will be zero for the first update. If the time is unknown (for + * example, when the app restarts), this value resets to zero. + * + * Generated from protobuf field .google.protobuf.Int32Value time_since_update = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param int|null $var + * @return $this + */ + public function setTimeSinceUpdateUnwrapped($var) + { + $this->writeWrapperValue("time_since_update", $var); + return $this;} + + /** + * Input only. Deprecated: Other signals are now used to determine if a + * location is stale. + * + * Generated from protobuf field .google.protobuf.Int32Value num_stale_updates = 15 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Protobuf\Int32Value|null + * @deprecated + */ + public function getNumStaleUpdates() + { + @trigger_error('num_stale_updates is deprecated.', E_USER_DEPRECATED); + return $this->num_stale_updates; + } + + public function hasNumStaleUpdates() + { + @trigger_error('num_stale_updates is deprecated.', E_USER_DEPRECATED); + return isset($this->num_stale_updates); + } + + public function clearNumStaleUpdates() + { + @trigger_error('num_stale_updates is deprecated.', E_USER_DEPRECATED); + unset($this->num_stale_updates); + } + + /** + * Returns the unboxed value from getNumStaleUpdates() + + * Input only. Deprecated: Other signals are now used to determine if a + * location is stale. + * + * Generated from protobuf field .google.protobuf.Int32Value num_stale_updates = 15 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; + * @return int|null + */ + public function getNumStaleUpdatesUnwrapped() + { + @trigger_error('num_stale_updates is deprecated.', E_USER_DEPRECATED); + return $this->readWrapperValue("num_stale_updates"); + } + + /** + * Input only. Deprecated: Other signals are now used to determine if a + * location is stale. + * + * Generated from protobuf field .google.protobuf.Int32Value num_stale_updates = 15 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; + * @param \Google\Protobuf\Int32Value $var + * @return $this + * @deprecated + */ + public function setNumStaleUpdates($var) + { + @trigger_error('num_stale_updates is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->num_stale_updates = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * Input only. Deprecated: Other signals are now used to determine if a + * location is stale. + * + * Generated from protobuf field .google.protobuf.Int32Value num_stale_updates = 15 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; + * @param int|null $var + * @return $this + */ + public function setNumStaleUpdatesUnwrapped($var) + { + $this->writeWrapperValue("num_stale_updates", $var); + return $this;} + + /** + * Raw vehicle location (unprocessed by road-snapper). + * + * Generated from protobuf field .google.type.LatLng raw_location = 16; + * @return \Google\Type\LatLng|null + */ + public function getRawLocation() + { + return $this->raw_location; + } + + public function hasRawLocation() + { + return isset($this->raw_location); + } + + public function clearRawLocation() + { + unset($this->raw_location); + } + + /** + * Raw vehicle location (unprocessed by road-snapper). + * + * Generated from protobuf field .google.type.LatLng raw_location = 16; + * @param \Google\Type\LatLng $var + * @return $this + */ + public function setRawLocation($var) + { + GPBUtil::checkMessage($var, \Google\Type\LatLng::class); + $this->raw_location = $var; + + return $this; + } + + /** + * Timestamp associated with the raw location. + * + * Generated from protobuf field .google.protobuf.Timestamp raw_location_time = 17; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRawLocationTime() + { + return $this->raw_location_time; + } + + public function hasRawLocationTime() + { + return isset($this->raw_location_time); + } + + public function clearRawLocationTime() + { + unset($this->raw_location_time); + } + + /** + * Timestamp associated with the raw location. + * + * Generated from protobuf field .google.protobuf.Timestamp raw_location_time = 17; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRawLocationTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->raw_location_time = $var; + + return $this; + } + + /** + * Source of the raw location. Defaults to `GPS`. + * + * Generated from protobuf field .maps.fleetengine.v1.LocationSensor raw_location_sensor = 28; + * @return int + */ + public function getRawLocationSensor() + { + return $this->raw_location_sensor; + } + + /** + * Source of the raw location. Defaults to `GPS`. + * + * Generated from protobuf field .maps.fleetengine.v1.LocationSensor raw_location_sensor = 28; + * @param int $var + * @return $this + */ + public function setRawLocationSensor($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\LocationSensor::class); + $this->raw_location_sensor = $var; + + return $this; + } + + /** + * Accuracy of `raw_location` as a radius, in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue raw_location_accuracy = 25; + * @return \Google\Protobuf\DoubleValue|null + */ + public function getRawLocationAccuracy() + { + return $this->raw_location_accuracy; + } + + public function hasRawLocationAccuracy() + { + return isset($this->raw_location_accuracy); + } + + public function clearRawLocationAccuracy() + { + unset($this->raw_location_accuracy); + } + + /** + * Returns the unboxed value from getRawLocationAccuracy() + + * Accuracy of `raw_location` as a radius, in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue raw_location_accuracy = 25; + * @return float|null + */ + public function getRawLocationAccuracyUnwrapped() + { + return $this->readWrapperValue("raw_location_accuracy"); + } + + /** + * Accuracy of `raw_location` as a radius, in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue raw_location_accuracy = 25; + * @param \Google\Protobuf\DoubleValue $var + * @return $this + */ + public function setRawLocationAccuracy($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); + $this->raw_location_accuracy = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. + + * Accuracy of `raw_location` as a radius, in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue raw_location_accuracy = 25; + * @param float|null $var + * @return $this + */ + public function setRawLocationAccuracyUnwrapped($var) + { + $this->writeWrapperValue("raw_location_accuracy", $var); + return $this;} + + /** + * Supplemental location provided by the integrating app. + * + * Generated from protobuf field .google.type.LatLng supplemental_location = 18; + * @return \Google\Type\LatLng|null + */ + public function getSupplementalLocation() + { + return $this->supplemental_location; + } + + public function hasSupplementalLocation() + { + return isset($this->supplemental_location); + } + + public function clearSupplementalLocation() + { + unset($this->supplemental_location); + } + + /** + * Supplemental location provided by the integrating app. + * + * Generated from protobuf field .google.type.LatLng supplemental_location = 18; + * @param \Google\Type\LatLng $var + * @return $this + */ + public function setSupplementalLocation($var) + { + GPBUtil::checkMessage($var, \Google\Type\LatLng::class); + $this->supplemental_location = $var; + + return $this; + } + + /** + * Timestamp associated with the supplemental location. + * + * Generated from protobuf field .google.protobuf.Timestamp supplemental_location_time = 19; + * @return \Google\Protobuf\Timestamp|null + */ + public function getSupplementalLocationTime() + { + return $this->supplemental_location_time; + } + + public function hasSupplementalLocationTime() + { + return isset($this->supplemental_location_time); + } + + public function clearSupplementalLocationTime() + { + unset($this->supplemental_location_time); + } + + /** + * Timestamp associated with the supplemental location. + * + * Generated from protobuf field .google.protobuf.Timestamp supplemental_location_time = 19; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setSupplementalLocationTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->supplemental_location_time = $var; + + return $this; + } + + /** + * Source of the supplemental location. Defaults to + * `CUSTOMER_SUPPLIED_LOCATION`. + * + * Generated from protobuf field .maps.fleetengine.v1.LocationSensor supplemental_location_sensor = 20; + * @return int + */ + public function getSupplementalLocationSensor() + { + return $this->supplemental_location_sensor; + } + + /** + * Source of the supplemental location. Defaults to + * `CUSTOMER_SUPPLIED_LOCATION`. + * + * Generated from protobuf field .maps.fleetengine.v1.LocationSensor supplemental_location_sensor = 20; + * @param int $var + * @return $this + */ + public function setSupplementalLocationSensor($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\LocationSensor::class); + $this->supplemental_location_sensor = $var; + + return $this; + } + + /** + * Accuracy of `supplemental_location` as a radius, in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue supplemental_location_accuracy = 21; + * @return \Google\Protobuf\DoubleValue|null + */ + public function getSupplementalLocationAccuracy() + { + return $this->supplemental_location_accuracy; + } + + public function hasSupplementalLocationAccuracy() + { + return isset($this->supplemental_location_accuracy); + } + + public function clearSupplementalLocationAccuracy() + { + unset($this->supplemental_location_accuracy); + } + + /** + * Returns the unboxed value from getSupplementalLocationAccuracy() + + * Accuracy of `supplemental_location` as a radius, in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue supplemental_location_accuracy = 21; + * @return float|null + */ + public function getSupplementalLocationAccuracyUnwrapped() + { + return $this->readWrapperValue("supplemental_location_accuracy"); + } + + /** + * Accuracy of `supplemental_location` as a radius, in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue supplemental_location_accuracy = 21; + * @param \Google\Protobuf\DoubleValue $var + * @return $this + */ + public function setSupplementalLocationAccuracy($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); + $this->supplemental_location_accuracy = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. + + * Accuracy of `supplemental_location` as a radius, in meters. + * + * Generated from protobuf field .google.protobuf.DoubleValue supplemental_location_accuracy = 21; + * @param float|null $var + * @return $this + */ + public function setSupplementalLocationAccuracyUnwrapped($var) + { + $this->writeWrapperValue("supplemental_location_accuracy", $var); + return $this;} + + /** + * Deprecated: Use `is_road_snapped` instead. + * + * Generated from protobuf field bool road_snapped = 26 [deprecated = true]; + * @return bool + * @deprecated + */ + public function getRoadSnapped() + { + @trigger_error('road_snapped is deprecated.', E_USER_DEPRECATED); + return $this->road_snapped; + } + + /** + * Deprecated: Use `is_road_snapped` instead. + * + * Generated from protobuf field bool road_snapped = 26 [deprecated = true]; + * @param bool $var + * @return $this + * @deprecated + */ + public function setRoadSnapped($var) + { + @trigger_error('road_snapped is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkBool($var); + $this->road_snapped = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch.php new file mode 100644 index 000000000000..70cfc1b7f9f8 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch.php @@ -0,0 +1,693 @@ +maps.fleetengine.v1.VehicleMatch + */ +class VehicleMatch extends \Google\Protobuf\Internal\Message +{ + /** + * Required. A vehicle that matches the request. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $vehicle = null; + /** + * The vehicle's driving ETA to the pickup point specified in the + * request. An empty value indicates a failure in calculating ETA for the + * vehicle. If `SearchVehiclesRequest.include_back_to_back` was `true` and + * this vehicle has an active trip, `vehicle_pickup_eta` includes the time + * required to complete the current active trip. + * + * Generated from protobuf field .google.protobuf.Timestamp vehicle_pickup_eta = 2; + */ + protected $vehicle_pickup_eta = null; + /** + * The distance from the Vehicle's current location to the pickup point + * specified in the request, including any intermediate pickup or dropoff + * points for existing trips. This distance comprises the calculated driving + * (route) distance, plus the straight line distance between the navigation + * end point and the requested pickup point. (The distance between the + * navigation end point and the requested pickup point is typically small.) An + * empty value indicates an error in calculating the distance. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_distance_meters = 3; + */ + protected $vehicle_pickup_distance_meters = null; + /** + * Required. The straight-line distance between the vehicle and the pickup + * point specified in the request. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_straight_line_distance_meters = 11 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $vehicle_pickup_straight_line_distance_meters = null; + /** + * The complete vehicle's driving ETA to the drop off point specified in the + * request. The ETA includes stopping at any waypoints before the + * `dropoff_point` specified in the request. The value will only be populated + * when a drop off point is specified in the request. An empty value indicates + * an error calculating the ETA. + * + * Generated from protobuf field .google.protobuf.Timestamp vehicle_dropoff_eta = 4; + */ + protected $vehicle_dropoff_eta = null; + /** + * The vehicle's driving distance (in meters) from the pickup point + * to the drop off point specified in the request. The distance is only + * between the two points and does not include the vehicle location or any + * other points that must be visited before the vehicle visits either the + * pickup point or dropoff point. The value will only be populated when a + * `dropoff_point` is specified in the request. An empty value indicates + * a failure in calculating the distance from the pickup to + * drop off point specified in the request. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_to_dropoff_distance_meters = 5; + */ + protected $vehicle_pickup_to_dropoff_distance_meters = null; + /** + * Required. The trip type of the request that was used to calculate the ETA + * to the pickup point. + * + * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $trip_type = 0; + /** + * The ordered list of waypoints used to calculate the ETA. The list + * includes vehicle location, the pickup points of active + * trips for the vehicle, and the pickup points provided in the + * request. An empty list indicates a failure in calculating ETA for the + * vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Waypoint vehicle_trips_waypoints = 7; + */ + private $vehicle_trips_waypoints; + /** + * Type of the vehicle match. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleMatch.VehicleMatchType vehicle_match_type = 8; + */ + protected $vehicle_match_type = 0; + /** + * The order requested for sorting vehicle matches. Equivalent to + * `ordered_by`. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; + */ + protected $requested_ordered_by = 0; + /** + * The order requested for sorting vehicle matches. Equivalent to + * `requested_ordered_by`. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; + */ + protected $ordered_by = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Maps\FleetEngine\V1\Vehicle $vehicle + * Required. A vehicle that matches the request. + * @type \Google\Protobuf\Timestamp $vehicle_pickup_eta + * The vehicle's driving ETA to the pickup point specified in the + * request. An empty value indicates a failure in calculating ETA for the + * vehicle. If `SearchVehiclesRequest.include_back_to_back` was `true` and + * this vehicle has an active trip, `vehicle_pickup_eta` includes the time + * required to complete the current active trip. + * @type \Google\Protobuf\Int32Value $vehicle_pickup_distance_meters + * The distance from the Vehicle's current location to the pickup point + * specified in the request, including any intermediate pickup or dropoff + * points for existing trips. This distance comprises the calculated driving + * (route) distance, plus the straight line distance between the navigation + * end point and the requested pickup point. (The distance between the + * navigation end point and the requested pickup point is typically small.) An + * empty value indicates an error in calculating the distance. + * @type \Google\Protobuf\Int32Value $vehicle_pickup_straight_line_distance_meters + * Required. The straight-line distance between the vehicle and the pickup + * point specified in the request. + * @type \Google\Protobuf\Timestamp $vehicle_dropoff_eta + * The complete vehicle's driving ETA to the drop off point specified in the + * request. The ETA includes stopping at any waypoints before the + * `dropoff_point` specified in the request. The value will only be populated + * when a drop off point is specified in the request. An empty value indicates + * an error calculating the ETA. + * @type \Google\Protobuf\Int32Value $vehicle_pickup_to_dropoff_distance_meters + * The vehicle's driving distance (in meters) from the pickup point + * to the drop off point specified in the request. The distance is only + * between the two points and does not include the vehicle location or any + * other points that must be visited before the vehicle visits either the + * pickup point or dropoff point. The value will only be populated when a + * `dropoff_point` is specified in the request. An empty value indicates + * a failure in calculating the distance from the pickup to + * drop off point specified in the request. + * @type int $trip_type + * Required. The trip type of the request that was used to calculate the ETA + * to the pickup point. + * @type array<\Google\Maps\FleetEngine\V1\Waypoint>|\Google\Protobuf\Internal\RepeatedField $vehicle_trips_waypoints + * The ordered list of waypoints used to calculate the ETA. The list + * includes vehicle location, the pickup points of active + * trips for the vehicle, and the pickup points provided in the + * request. An empty list indicates a failure in calculating ETA for the + * vehicle. + * @type int $vehicle_match_type + * Type of the vehicle match. + * @type int $requested_ordered_by + * The order requested for sorting vehicle matches. Equivalent to + * `ordered_by`. + * @type int $ordered_by + * The order requested for sorting vehicle matches. Equivalent to + * `requested_ordered_by`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * Required. A vehicle that matches the request. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Maps\FleetEngine\V1\Vehicle|null + */ + public function getVehicle() + { + return $this->vehicle; + } + + public function hasVehicle() + { + return isset($this->vehicle); + } + + public function clearVehicle() + { + unset($this->vehicle); + } + + /** + * Required. A vehicle that matches the request. + * + * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Maps\FleetEngine\V1\Vehicle $var + * @return $this + */ + public function setVehicle($var) + { + GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Vehicle::class); + $this->vehicle = $var; + + return $this; + } + + /** + * The vehicle's driving ETA to the pickup point specified in the + * request. An empty value indicates a failure in calculating ETA for the + * vehicle. If `SearchVehiclesRequest.include_back_to_back` was `true` and + * this vehicle has an active trip, `vehicle_pickup_eta` includes the time + * required to complete the current active trip. + * + * Generated from protobuf field .google.protobuf.Timestamp vehicle_pickup_eta = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getVehiclePickupEta() + { + return $this->vehicle_pickup_eta; + } + + public function hasVehiclePickupEta() + { + return isset($this->vehicle_pickup_eta); + } + + public function clearVehiclePickupEta() + { + unset($this->vehicle_pickup_eta); + } + + /** + * The vehicle's driving ETA to the pickup point specified in the + * request. An empty value indicates a failure in calculating ETA for the + * vehicle. If `SearchVehiclesRequest.include_back_to_back` was `true` and + * this vehicle has an active trip, `vehicle_pickup_eta` includes the time + * required to complete the current active trip. + * + * Generated from protobuf field .google.protobuf.Timestamp vehicle_pickup_eta = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setVehiclePickupEta($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->vehicle_pickup_eta = $var; + + return $this; + } + + /** + * The distance from the Vehicle's current location to the pickup point + * specified in the request, including any intermediate pickup or dropoff + * points for existing trips. This distance comprises the calculated driving + * (route) distance, plus the straight line distance between the navigation + * end point and the requested pickup point. (The distance between the + * navigation end point and the requested pickup point is typically small.) An + * empty value indicates an error in calculating the distance. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_distance_meters = 3; + * @return \Google\Protobuf\Int32Value|null + */ + public function getVehiclePickupDistanceMeters() + { + return $this->vehicle_pickup_distance_meters; + } + + public function hasVehiclePickupDistanceMeters() + { + return isset($this->vehicle_pickup_distance_meters); + } + + public function clearVehiclePickupDistanceMeters() + { + unset($this->vehicle_pickup_distance_meters); + } + + /** + * Returns the unboxed value from getVehiclePickupDistanceMeters() + + * The distance from the Vehicle's current location to the pickup point + * specified in the request, including any intermediate pickup or dropoff + * points for existing trips. This distance comprises the calculated driving + * (route) distance, plus the straight line distance between the navigation + * end point and the requested pickup point. (The distance between the + * navigation end point and the requested pickup point is typically small.) An + * empty value indicates an error in calculating the distance. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_distance_meters = 3; + * @return int|null + */ + public function getVehiclePickupDistanceMetersUnwrapped() + { + return $this->readWrapperValue("vehicle_pickup_distance_meters"); + } + + /** + * The distance from the Vehicle's current location to the pickup point + * specified in the request, including any intermediate pickup or dropoff + * points for existing trips. This distance comprises the calculated driving + * (route) distance, plus the straight line distance between the navigation + * end point and the requested pickup point. (The distance between the + * navigation end point and the requested pickup point is typically small.) An + * empty value indicates an error in calculating the distance. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_distance_meters = 3; + * @param \Google\Protobuf\Int32Value $var + * @return $this + */ + public function setVehiclePickupDistanceMeters($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->vehicle_pickup_distance_meters = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * The distance from the Vehicle's current location to the pickup point + * specified in the request, including any intermediate pickup or dropoff + * points for existing trips. This distance comprises the calculated driving + * (route) distance, plus the straight line distance between the navigation + * end point and the requested pickup point. (The distance between the + * navigation end point and the requested pickup point is typically small.) An + * empty value indicates an error in calculating the distance. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_distance_meters = 3; + * @param int|null $var + * @return $this + */ + public function setVehiclePickupDistanceMetersUnwrapped($var) + { + $this->writeWrapperValue("vehicle_pickup_distance_meters", $var); + return $this;} + + /** + * Required. The straight-line distance between the vehicle and the pickup + * point specified in the request. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_straight_line_distance_meters = 11 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Int32Value|null + */ + public function getVehiclePickupStraightLineDistanceMeters() + { + return $this->vehicle_pickup_straight_line_distance_meters; + } + + public function hasVehiclePickupStraightLineDistanceMeters() + { + return isset($this->vehicle_pickup_straight_line_distance_meters); + } + + public function clearVehiclePickupStraightLineDistanceMeters() + { + unset($this->vehicle_pickup_straight_line_distance_meters); + } + + /** + * Returns the unboxed value from getVehiclePickupStraightLineDistanceMeters() + + * Required. The straight-line distance between the vehicle and the pickup + * point specified in the request. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_straight_line_distance_meters = 11 [(.google.api.field_behavior) = REQUIRED]; + * @return int|null + */ + public function getVehiclePickupStraightLineDistanceMetersUnwrapped() + { + return $this->readWrapperValue("vehicle_pickup_straight_line_distance_meters"); + } + + /** + * Required. The straight-line distance between the vehicle and the pickup + * point specified in the request. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_straight_line_distance_meters = 11 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\Int32Value $var + * @return $this + */ + public function setVehiclePickupStraightLineDistanceMeters($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->vehicle_pickup_straight_line_distance_meters = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * Required. The straight-line distance between the vehicle and the pickup + * point specified in the request. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_straight_line_distance_meters = 11 [(.google.api.field_behavior) = REQUIRED]; + * @param int|null $var + * @return $this + */ + public function setVehiclePickupStraightLineDistanceMetersUnwrapped($var) + { + $this->writeWrapperValue("vehicle_pickup_straight_line_distance_meters", $var); + return $this;} + + /** + * The complete vehicle's driving ETA to the drop off point specified in the + * request. The ETA includes stopping at any waypoints before the + * `dropoff_point` specified in the request. The value will only be populated + * when a drop off point is specified in the request. An empty value indicates + * an error calculating the ETA. + * + * Generated from protobuf field .google.protobuf.Timestamp vehicle_dropoff_eta = 4; + * @return \Google\Protobuf\Timestamp|null + */ + public function getVehicleDropoffEta() + { + return $this->vehicle_dropoff_eta; + } + + public function hasVehicleDropoffEta() + { + return isset($this->vehicle_dropoff_eta); + } + + public function clearVehicleDropoffEta() + { + unset($this->vehicle_dropoff_eta); + } + + /** + * The complete vehicle's driving ETA to the drop off point specified in the + * request. The ETA includes stopping at any waypoints before the + * `dropoff_point` specified in the request. The value will only be populated + * when a drop off point is specified in the request. An empty value indicates + * an error calculating the ETA. + * + * Generated from protobuf field .google.protobuf.Timestamp vehicle_dropoff_eta = 4; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setVehicleDropoffEta($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->vehicle_dropoff_eta = $var; + + return $this; + } + + /** + * The vehicle's driving distance (in meters) from the pickup point + * to the drop off point specified in the request. The distance is only + * between the two points and does not include the vehicle location or any + * other points that must be visited before the vehicle visits either the + * pickup point or dropoff point. The value will only be populated when a + * `dropoff_point` is specified in the request. An empty value indicates + * a failure in calculating the distance from the pickup to + * drop off point specified in the request. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_to_dropoff_distance_meters = 5; + * @return \Google\Protobuf\Int32Value|null + */ + public function getVehiclePickupToDropoffDistanceMeters() + { + return $this->vehicle_pickup_to_dropoff_distance_meters; + } + + public function hasVehiclePickupToDropoffDistanceMeters() + { + return isset($this->vehicle_pickup_to_dropoff_distance_meters); + } + + public function clearVehiclePickupToDropoffDistanceMeters() + { + unset($this->vehicle_pickup_to_dropoff_distance_meters); + } + + /** + * Returns the unboxed value from getVehiclePickupToDropoffDistanceMeters() + + * The vehicle's driving distance (in meters) from the pickup point + * to the drop off point specified in the request. The distance is only + * between the two points and does not include the vehicle location or any + * other points that must be visited before the vehicle visits either the + * pickup point or dropoff point. The value will only be populated when a + * `dropoff_point` is specified in the request. An empty value indicates + * a failure in calculating the distance from the pickup to + * drop off point specified in the request. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_to_dropoff_distance_meters = 5; + * @return int|null + */ + public function getVehiclePickupToDropoffDistanceMetersUnwrapped() + { + return $this->readWrapperValue("vehicle_pickup_to_dropoff_distance_meters"); + } + + /** + * The vehicle's driving distance (in meters) from the pickup point + * to the drop off point specified in the request. The distance is only + * between the two points and does not include the vehicle location or any + * other points that must be visited before the vehicle visits either the + * pickup point or dropoff point. The value will only be populated when a + * `dropoff_point` is specified in the request. An empty value indicates + * a failure in calculating the distance from the pickup to + * drop off point specified in the request. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_to_dropoff_distance_meters = 5; + * @param \Google\Protobuf\Int32Value $var + * @return $this + */ + public function setVehiclePickupToDropoffDistanceMeters($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->vehicle_pickup_to_dropoff_distance_meters = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * The vehicle's driving distance (in meters) from the pickup point + * to the drop off point specified in the request. The distance is only + * between the two points and does not include the vehicle location or any + * other points that must be visited before the vehicle visits either the + * pickup point or dropoff point. The value will only be populated when a + * `dropoff_point` is specified in the request. An empty value indicates + * a failure in calculating the distance from the pickup to + * drop off point specified in the request. + * + * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_to_dropoff_distance_meters = 5; + * @param int|null $var + * @return $this + */ + public function setVehiclePickupToDropoffDistanceMetersUnwrapped($var) + { + $this->writeWrapperValue("vehicle_pickup_to_dropoff_distance_meters", $var); + return $this;} + + /** + * Required. The trip type of the request that was used to calculate the ETA + * to the pickup point. + * + * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getTripType() + { + return $this->trip_type; + } + + /** + * Required. The trip type of the request that was used to calculate the ETA + * to the pickup point. + * + * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setTripType($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\TripType::class); + $this->trip_type = $var; + + return $this; + } + + /** + * The ordered list of waypoints used to calculate the ETA. The list + * includes vehicle location, the pickup points of active + * trips for the vehicle, and the pickup points provided in the + * request. An empty list indicates a failure in calculating ETA for the + * vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Waypoint vehicle_trips_waypoints = 7; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getVehicleTripsWaypoints() + { + return $this->vehicle_trips_waypoints; + } + + /** + * The ordered list of waypoints used to calculate the ETA. The list + * includes vehicle location, the pickup points of active + * trips for the vehicle, and the pickup points provided in the + * request. An empty list indicates a failure in calculating ETA for the + * vehicle. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.Waypoint vehicle_trips_waypoints = 7; + * @param array<\Google\Maps\FleetEngine\V1\Waypoint>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setVehicleTripsWaypoints($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\Waypoint::class); + $this->vehicle_trips_waypoints = $arr; + + return $this; + } + + /** + * Type of the vehicle match. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleMatch.VehicleMatchType vehicle_match_type = 8; + * @return int + */ + public function getVehicleMatchType() + { + return $this->vehicle_match_type; + } + + /** + * Type of the vehicle match. + * + * Generated from protobuf field .maps.fleetengine.v1.VehicleMatch.VehicleMatchType vehicle_match_type = 8; + * @param int $var + * @return $this + */ + public function setVehicleMatchType($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\VehicleMatch\VehicleMatchType::class); + $this->vehicle_match_type = $var; + + return $this; + } + + /** + * The order requested for sorting vehicle matches. Equivalent to + * `ordered_by`. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; + * @return int + */ + public function getRequestedOrderedBy() + { + return $this->requested_ordered_by; + } + + /** + * The order requested for sorting vehicle matches. Equivalent to + * `ordered_by`. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; + * @param int $var + * @return $this + */ + public function setRequestedOrderedBy($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest\VehicleMatchOrder::class); + $this->requested_ordered_by = $var; + + return $this; + } + + /** + * The order requested for sorting vehicle matches. Equivalent to + * `requested_ordered_by`. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; + * @return int + */ + public function getOrderedBy() + { + return $this->ordered_by; + } + + /** + * The order requested for sorting vehicle matches. Equivalent to + * `requested_ordered_by`. + * + * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; + * @param int $var + * @return $this + */ + public function setOrderedBy($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest\VehicleMatchOrder::class); + $this->ordered_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch/VehicleMatchType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch/VehicleMatchType.php new file mode 100644 index 000000000000..e578da5397d6 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch/VehicleMatchType.php @@ -0,0 +1,83 @@ +maps.fleetengine.v1.VehicleMatch.VehicleMatchType + */ +class VehicleMatchType +{ + /** + * Unknown vehicle match type + * + * Generated from protobuf enum UNKNOWN = 0; + */ + const UNKNOWN = 0; + /** + * The vehicle currently has no trip assigned to it and can proceed to the + * pickup point. + * + * Generated from protobuf enum EXCLUSIVE = 1; + */ + const EXCLUSIVE = 1; + /** + * The vehicle is currently assigned to a trip, but can proceed to the + * pickup point after completing the in-progress trip. ETA and distance + * calculations take the existing trip into account. + * + * Generated from protobuf enum BACK_TO_BACK = 2; + */ + const BACK_TO_BACK = 2; + /** + * The vehicle has sufficient capacity for a shared ride. + * + * Generated from protobuf enum CARPOOL = 3; + */ + const CARPOOL = 3; + /** + * The vehicle will finish its current, active trip before proceeding to the + * pickup point. ETA and distance calculations take the existing trip into + * account. + * + * Generated from protobuf enum CARPOOL_BACK_TO_BACK = 4; + */ + const CARPOOL_BACK_TO_BACK = 4; + + private static $valueToName = [ + self::UNKNOWN => 'UNKNOWN', + self::EXCLUSIVE => 'EXCLUSIVE', + self::BACK_TO_BACK => 'BACK_TO_BACK', + self::CARPOOL => 'CARPOOL', + self::CARPOOL_BACK_TO_BACK => 'CARPOOL_BACK_TO_BACK', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(VehicleMatchType::class, \Google\Maps\FleetEngine\V1\VehicleMatch_VehicleMatchType::class); + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleState.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleState.php new file mode 100644 index 000000000000..b2964c65ab9f --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleState.php @@ -0,0 +1,62 @@ +maps.fleetengine.v1.VehicleState + */ +class VehicleState +{ + /** + * Default, used for unspecified or unrecognized vehicle states. + * + * Generated from protobuf enum UNKNOWN_VEHICLE_STATE = 0; + */ + const UNKNOWN_VEHICLE_STATE = 0; + /** + * The vehicle is not accepting new trips. Note: the vehicle may continue to + * operate in this state while completing a trip assigned to it. + * + * Generated from protobuf enum OFFLINE = 1; + */ + const OFFLINE = 1; + /** + * The vehicle is accepting new trips. + * + * Generated from protobuf enum ONLINE = 2; + */ + const ONLINE = 2; + + private static $valueToName = [ + self::UNKNOWN_VEHICLE_STATE => 'UNKNOWN_VEHICLE_STATE', + self::OFFLINE => 'OFFLINE', + self::ONLINE => 'ONLINE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering.php new file mode 100644 index 000000000000..ccaba2879f9f --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering.php @@ -0,0 +1,84 @@ +maps.fleetengine.v1.VisualTrafficReportPolylineRendering + */ +class VisualTrafficReportPolylineRendering extends \Google\Protobuf\Internal\Message +{ + /** + * 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. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch road_stretch = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $road_stretch; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering\RoadStretch>|\Google\Protobuf\Internal\RepeatedField $road_stretch + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); + parent::__construct($data); + } + + /** + * 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. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch road_stretch = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRoadStretch() + { + return $this->road_stretch; + } + + /** + * 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. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch road_stretch = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering\RoadStretch>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRoadStretch($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering\RoadStretch::class); + $this->road_stretch = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch.php new file mode 100644 index 000000000000..c0504a6c4426 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch.php @@ -0,0 +1,142 @@ +maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch + */ +class RoadStretch extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The style to apply. + * + * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch.Style style = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $style = 0; + /** + * Required. The style should be applied between `[offset_meters, + * offset_meters + length_meters)`. + * + * Generated from protobuf field int32 offset_meters = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $offset_meters = 0; + /** + * Required. The length of the path where to apply the style. + * + * Generated from protobuf field int32 length_meters = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $length_meters = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $style + * Required. The style to apply. + * @type int $offset_meters + * Required. The style should be applied between `[offset_meters, + * offset_meters + length_meters)`. + * @type int $length_meters + * Required. The length of the path where to apply the style. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); + parent::__construct($data); + } + + /** + * Required. The style to apply. + * + * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch.Style style = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getStyle() + { + return $this->style; + } + + /** + * Required. The style to apply. + * + * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch.Style style = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setStyle($var) + { + GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering\RoadStretch\Style::class); + $this->style = $var; + + return $this; + } + + /** + * Required. The style should be applied between `[offset_meters, + * offset_meters + length_meters)`. + * + * Generated from protobuf field int32 offset_meters = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getOffsetMeters() + { + return $this->offset_meters; + } + + /** + * Required. The style should be applied between `[offset_meters, + * offset_meters + length_meters)`. + * + * Generated from protobuf field int32 offset_meters = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setOffsetMeters($var) + { + GPBUtil::checkInt32($var); + $this->offset_meters = $var; + + return $this; + } + + /** + * Required. The length of the path where to apply the style. + * + * Generated from protobuf field int32 length_meters = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getLengthMeters() + { + return $this->length_meters; + } + + /** + * Required. The length of the path where to apply the style. + * + * Generated from protobuf field int32 length_meters = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setLengthMeters($var) + { + GPBUtil::checkInt32($var); + $this->length_meters = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RoadStretch::class, \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering_RoadStretch::class); + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch/Style.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch/Style.php new file mode 100644 index 000000000000..a712c06ecdce --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch/Style.php @@ -0,0 +1,64 @@ +maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch.Style + */ +class Style +{ + /** + * No style selected. + * + * Generated from protobuf enum STYLE_UNSPECIFIED = 0; + */ + const STYLE_UNSPECIFIED = 0; + /** + * Traffic is slowing down. + * + * Generated from protobuf enum SLOWER_TRAFFIC = 1; + */ + const SLOWER_TRAFFIC = 1; + /** + * There is a traffic jam. + * + * Generated from protobuf enum TRAFFIC_JAM = 2; + */ + const TRAFFIC_JAM = 2; + + private static $valueToName = [ + self::STYLE_UNSPECIFIED => 'STYLE_UNSPECIFIED', + self::SLOWER_TRAFFIC => 'SLOWER_TRAFFIC', + self::TRAFFIC_JAM => 'TRAFFIC_JAM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Style::class, \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering_RoadStretch_Style::class); + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Waypoint.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Waypoint.php new file mode 100644 index 000000000000..06827e4e93bc --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Waypoint.php @@ -0,0 +1,123 @@ +maps.fleetengine.v1.Waypoint + */ +class Waypoint extends \Google\Protobuf\Internal\Message +{ + /** + * The location of this waypoint. + * + * Generated from protobuf field .google.type.LatLng lat_lng = 1; + */ + protected $lat_lng = null; + /** + * The estimated time that the vehicle will arrive at this waypoint. + * + * Generated from protobuf field .google.protobuf.Timestamp eta = 2; + */ + protected $eta = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Type\LatLng $lat_lng + * The location of this waypoint. + * @type \Google\Protobuf\Timestamp $eta + * The estimated time that the vehicle will arrive at this waypoint. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); + parent::__construct($data); + } + + /** + * The location of this waypoint. + * + * Generated from protobuf field .google.type.LatLng lat_lng = 1; + * @return \Google\Type\LatLng|null + */ + public function getLatLng() + { + return $this->lat_lng; + } + + public function hasLatLng() + { + return isset($this->lat_lng); + } + + public function clearLatLng() + { + unset($this->lat_lng); + } + + /** + * The location of this waypoint. + * + * Generated from protobuf field .google.type.LatLng lat_lng = 1; + * @param \Google\Type\LatLng $var + * @return $this + */ + public function setLatLng($var) + { + GPBUtil::checkMessage($var, \Google\Type\LatLng::class); + $this->lat_lng = $var; + + return $this; + } + + /** + * The estimated time that the vehicle will arrive at this waypoint. + * + * Generated from protobuf field .google.protobuf.Timestamp eta = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEta() + { + return $this->eta; + } + + public function hasEta() + { + return isset($this->eta); + } + + public function clearEta() + { + unset($this->eta); + } + + /** + * The estimated time that the vehicle will arrive at this waypoint. + * + * Generated from protobuf field .google.protobuf.Timestamp eta = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEta($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->eta = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/WaypointType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/WaypointType.php new file mode 100644 index 000000000000..7e3a3120d30b --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/WaypointType.php @@ -0,0 +1,68 @@ +maps.fleetengine.v1.WaypointType + */ +class WaypointType +{ + /** + * Unknown or unspecified waypoint type. + * + * Generated from protobuf enum UNKNOWN_WAYPOINT_TYPE = 0; + */ + const UNKNOWN_WAYPOINT_TYPE = 0; + /** + * Waypoints for picking up riders or items. + * + * Generated from protobuf enum PICKUP_WAYPOINT_TYPE = 1; + */ + const PICKUP_WAYPOINT_TYPE = 1; + /** + * Waypoints for dropping off riders or items. + * + * Generated from protobuf enum DROP_OFF_WAYPOINT_TYPE = 2; + */ + const DROP_OFF_WAYPOINT_TYPE = 2; + /** + * Waypoints for intermediate destinations in a multi-destination trip. + * + * Generated from protobuf enum INTERMEDIATE_DESTINATION_WAYPOINT_TYPE = 3; + */ + const INTERMEDIATE_DESTINATION_WAYPOINT_TYPE = 3; + + private static $valueToName = [ + self::UNKNOWN_WAYPOINT_TYPE => 'UNKNOWN_WAYPOINT_TYPE', + self::PICKUP_WAYPOINT_TYPE => 'PICKUP_WAYPOINT_TYPE', + self::DROP_OFF_WAYPOINT_TYPE => 'DROP_OFF_WAYPOINT_TYPE', + self::INTERMEDIATE_DESTINATION_WAYPOINT_TYPE => 'INTERMEDIATE_DESTINATION_WAYPOINT_TYPE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/create_trip.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/create_trip.php new file mode 100644 index 000000000000..f5eeb732199a --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/create_trip.php @@ -0,0 +1,87 @@ +setParent($formattedParent) + ->setTripId($tripId) + ->setTrip($trip); + + // Call the API and handle any network failures. + try { + /** @var Trip $response */ + $response = $tripServiceClient->createTrip($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = TripServiceClient::tripName('[PROVIDER]', '[TRIP]'); + $tripId = '[TRIP_ID]'; + + create_trip_sample($formattedParent, $tripId); +} +// [END fleetengine_v1_generated_TripService_CreateTrip_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/get_trip.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/get_trip.php new file mode 100644 index 000000000000..8a9dc4e2c9ff --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/get_trip.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Trip $response */ + $response = $tripServiceClient->getTrip($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = TripServiceClient::tripName('[PROVIDER]', '[TRIP]'); + + get_trip_sample($formattedName); +} +// [END fleetengine_v1_generated_TripService_GetTrip_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/report_billable_trip.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/report_billable_trip.php new file mode 100644 index 000000000000..1a87dbda4869 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/report_billable_trip.php @@ -0,0 +1,76 @@ +setName($name) + ->setCountryCode($countryCode); + + // Call the API and handle any network failures. + try { + $tripServiceClient->reportBillableTrip($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $name = '[NAME]'; + $countryCode = '[COUNTRY_CODE]'; + + report_billable_trip_sample($name, $countryCode); +} +// [END fleetengine_v1_generated_TripService_ReportBillableTrip_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/search_trips.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/search_trips.php new file mode 100644 index 000000000000..726d56e085b1 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/search_trips.php @@ -0,0 +1,78 @@ +setParent($parent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $tripServiceClient->searchTrips($request); + + /** @var Trip $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $parent = '[PARENT]'; + + search_trips_sample($parent); +} +// [END fleetengine_v1_generated_TripService_SearchTrips_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/update_trip.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/update_trip.php new file mode 100644 index 000000000000..82e653ec835f --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/update_trip.php @@ -0,0 +1,78 @@ +setName($name) + ->setTrip($trip) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var Trip $response */ + $response = $tripServiceClient->updateTrip($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $name = '[NAME]'; + + update_trip_sample($name); +} +// [END fleetengine_v1_generated_TripService_UpdateTrip_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/create_vehicle.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/create_vehicle.php new file mode 100644 index 000000000000..ef62555f9cc2 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/create_vehicle.php @@ -0,0 +1,116 @@ +setVehicleType($vehicleVehicleType); + $request = (new CreateVehicleRequest()) + ->setParent($parent) + ->setVehicleId($vehicleId) + ->setVehicle($vehicle); + + // Call the API and handle any network failures. + try { + /** @var Vehicle $response */ + $response = $vehicleServiceClient->createVehicle($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $parent = '[PARENT]'; + $vehicleId = '[VEHICLE_ID]'; + + create_vehicle_sample($parent, $vehicleId); +} +// [END fleetengine_v1_generated_VehicleService_CreateVehicle_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/get_vehicle.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/get_vehicle.php new file mode 100644 index 000000000000..7e0840142f46 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/get_vehicle.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Vehicle $response */ + $response = $vehicleServiceClient->getVehicle($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = VehicleServiceClient::vehicleName('[PROVIDER]', '[VEHICLE]'); + + get_vehicle_sample($formattedName); +} +// [END fleetengine_v1_generated_VehicleService_GetVehicle_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/list_vehicles.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/list_vehicles.php new file mode 100644 index 000000000000..0d0629cd08e6 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/list_vehicles.php @@ -0,0 +1,85 @@ +setParent($parent) + ->setVehicleTypeCategories($vehicleTypeCategories); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $vehicleServiceClient->listVehicles($request); + + /** @var Vehicle $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $parent = '[PARENT]'; + $vehicleTypeCategoriesElement = Category::UNKNOWN; + + list_vehicles_sample($parent, $vehicleTypeCategoriesElement); +} +// [END fleetengine_v1_generated_VehicleService_ListVehicles_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/search_vehicles.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/search_vehicles.php new file mode 100644 index 000000000000..0671afa2ba59 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/search_vehicles.php @@ -0,0 +1,120 @@ +setPoint($pickupPointPoint); + $tripTypes = [$tripTypesElement,]; + $vehicleTypes = [new VehicleType()]; + $request = (new SearchVehiclesRequest()) + ->setParent($parent) + ->setPickupPoint($pickupPoint) + ->setPickupRadiusMeters($pickupRadiusMeters) + ->setCount($count) + ->setMinimumCapacity($minimumCapacity) + ->setTripTypes($tripTypes) + ->setVehicleTypes($vehicleTypes) + ->setOrderBy($orderBy); + + // Call the API and handle any network failures. + try { + /** @var SearchVehiclesResponse $response */ + $response = $vehicleServiceClient->searchVehicles($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $parent = '[PARENT]'; + $pickupRadiusMeters = 0; + $count = 0; + $minimumCapacity = 0; + $tripTypesElement = TripType::UNKNOWN_TRIP_TYPE; + $orderBy = VehicleMatchOrder::UNKNOWN_VEHICLE_MATCH_ORDER; + + search_vehicles_sample( + $parent, + $pickupRadiusMeters, + $count, + $minimumCapacity, + $tripTypesElement, + $orderBy + ); +} +// [END fleetengine_v1_generated_VehicleService_SearchVehicles_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle.php new file mode 100644 index 000000000000..740fb26c6caa --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle.php @@ -0,0 +1,98 @@ +setVehicleType($vehicleVehicleType); + $updateMask = new FieldMask(); + $request = (new UpdateVehicleRequest()) + ->setName($name) + ->setVehicle($vehicle) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var Vehicle $response */ + $response = $vehicleServiceClient->updateVehicle($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $name = '[NAME]'; + + update_vehicle_sample($name); +} +// [END fleetengine_v1_generated_VehicleService_UpdateVehicle_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle_attributes.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle_attributes.php new file mode 100644 index 000000000000..9c8ed7a0c76a --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle_attributes.php @@ -0,0 +1,80 @@ +setName($name) + ->setAttributes($attributes); + + // Call the API and handle any network failures. + try { + /** @var UpdateVehicleAttributesResponse $response */ + $response = $vehicleServiceClient->updateVehicleAttributes($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $name = '[NAME]'; + + update_vehicle_attributes_sample($name); +} +// [END fleetengine_v1_generated_VehicleService_UpdateVehicleAttributes_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/TripServiceClient.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/TripServiceClient.php new file mode 100644 index 000000000000..a34a05c1d4f7 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/TripServiceClient.php @@ -0,0 +1,352 @@ + createTripAsync(CreateTripRequest $request, array $optionalArgs = []) + * @method PromiseInterface getTripAsync(GetTripRequest $request, array $optionalArgs = []) + * @method PromiseInterface reportBillableTripAsync(ReportBillableTripRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchTripsAsync(SearchTripsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateTripAsync(UpdateTripRequest $request, array $optionalArgs = []) + */ +final class TripServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'maps.fleetengine.v1.TripService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'fleetengine.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'fleetengine.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/trip_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/trip_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/trip_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/trip_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a trip + * resource. + * + * @param string $provider + * @param string $trip + * + * @return string The formatted trip resource. + */ + public static function tripName(string $provider, string $trip): string + { + return self::getPathTemplate('trip')->render([ + 'provider' => $provider, + 'trip' => $trip, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - trip: providers/{provider}/trips/{trip} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'fleetengine.googleapis.com:443'. + * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * } + * + * @throws ValidationException + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Creates a trip in the Fleet Engine and returns the new trip. + * + * The async variant is {@see TripServiceClient::createTripAsync()} . + * + * @example samples/V1/TripServiceClient/create_trip.php + * + * @param CreateTripRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Trip + * + * @throws ApiException Thrown if the API call fails. + */ + public function createTrip(CreateTripRequest $request, array $callOptions = []): Trip + { + return $this->startApiCall('CreateTrip', $request, $callOptions)->wait(); + } + + /** + * Get information about a single trip. + * + * The async variant is {@see TripServiceClient::getTripAsync()} . + * + * @example samples/V1/TripServiceClient/get_trip.php + * + * @param GetTripRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Trip + * + * @throws ApiException Thrown if the API call fails. + */ + public function getTrip(GetTripRequest $request, array $callOptions = []): Trip + { + return $this->startApiCall('GetTrip', $request, $callOptions)->wait(); + } + + /** + * Report billable trip usage. + * + * The async variant is {@see TripServiceClient::reportBillableTripAsync()} . + * + * @example samples/V1/TripServiceClient/report_billable_trip.php + * + * @param ReportBillableTripRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function reportBillableTrip(ReportBillableTripRequest $request, array $callOptions = []): void + { + $this->startApiCall('ReportBillableTrip', $request, $callOptions)->wait(); + } + + /** + * Get all the trips for a specific vehicle. + * + * The async variant is {@see TripServiceClient::searchTripsAsync()} . + * + * @example samples/V1/TripServiceClient/search_trips.php + * + * @param SearchTripsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function searchTrips(SearchTripsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('SearchTrips', $request, $callOptions); + } + + /** + * Updates trip data. + * + * The async variant is {@see TripServiceClient::updateTripAsync()} . + * + * @example samples/V1/TripServiceClient/update_trip.php + * + * @param UpdateTripRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Trip + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateTrip(UpdateTripRequest $request, array $callOptions = []): Trip + { + return $this->startApiCall('UpdateTrip', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/VehicleServiceClient.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/VehicleServiceClient.php new file mode 100644 index 000000000000..489a745dfee5 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/VehicleServiceClient.php @@ -0,0 +1,434 @@ + createVehicleAsync(CreateVehicleRequest $request, array $optionalArgs = []) + * @method PromiseInterface getVehicleAsync(GetVehicleRequest $request, array $optionalArgs = []) + * @method PromiseInterface listVehiclesAsync(ListVehiclesRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchVehiclesAsync(SearchVehiclesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateVehicleAsync(UpdateVehicleRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateVehicleAttributesAsync(UpdateVehicleAttributesRequest $request, array $optionalArgs = []) + */ +final class VehicleServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'maps.fleetengine.v1.VehicleService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'fleetengine.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'fleetengine.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/vehicle_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/vehicle_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/vehicle_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/vehicle_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a vehicle + * resource. + * + * @param string $provider + * @param string $vehicle + * + * @return string The formatted vehicle resource. + */ + public static function vehicleName(string $provider, string $vehicle): string + { + return self::getPathTemplate('vehicle')->render([ + 'provider' => $provider, + 'vehicle' => $vehicle, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - vehicle: providers/{provider}/vehicles/{vehicle} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'fleetengine.googleapis.com:443'. + * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * } + * + * @throws ValidationException + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Instantiates a new vehicle associated with an on-demand rideshare or + * deliveries provider. Each `Vehicle` must have a unique vehicle ID. + * + * The following `Vehicle` fields are required when creating a `Vehicle`: + * + * * `vehicleState` + * * `supportedTripTypes` + * * `maximumCapacity` + * * `vehicleType` + * + * The following `Vehicle` fields are ignored when creating a `Vehicle`: + * + * * `name` + * * `currentTrips` + * * `availableCapacity` + * * `current_route_segment` + * * `current_route_segment_end_point` + * * `current_route_segment_version` + * * `current_route_segment_traffic` + * * `route` + * * `waypoints` + * * `waypoints_version` + * * `remaining_distance_meters` + * * `remaining_time_seconds` + * * `eta_to_next_waypoint` + * * `navigation_status` + * + * All other fields are optional and used if provided. + * + * The async variant is {@see VehicleServiceClient::createVehicleAsync()} . + * + * @example samples/V1/VehicleServiceClient/create_vehicle.php + * + * @param CreateVehicleRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Vehicle + * + * @throws ApiException Thrown if the API call fails. + */ + public function createVehicle(CreateVehicleRequest $request, array $callOptions = []): Vehicle + { + return $this->startApiCall('CreateVehicle', $request, $callOptions)->wait(); + } + + /** + * Returns a vehicle from the Fleet Engine. + * + * The async variant is {@see VehicleServiceClient::getVehicleAsync()} . + * + * @example samples/V1/VehicleServiceClient/get_vehicle.php + * + * @param GetVehicleRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Vehicle + * + * @throws ApiException Thrown if the API call fails. + */ + public function getVehicle(GetVehicleRequest $request, array $callOptions = []): Vehicle + { + return $this->startApiCall('GetVehicle', $request, $callOptions)->wait(); + } + + /** + * Returns a paginated list of vehicles associated with + * a provider that match the request options. + * + * The async variant is {@see VehicleServiceClient::listVehiclesAsync()} . + * + * @example samples/V1/VehicleServiceClient/list_vehicles.php + * + * @param ListVehiclesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listVehicles(ListVehiclesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListVehicles', $request, $callOptions); + } + + /** + * Returns a list of vehicles that match the request options. + * + * The async variant is {@see VehicleServiceClient::searchVehiclesAsync()} . + * + * @example samples/V1/VehicleServiceClient/search_vehicles.php + * + * @param SearchVehiclesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return SearchVehiclesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function searchVehicles(SearchVehiclesRequest $request, array $callOptions = []): SearchVehiclesResponse + { + return $this->startApiCall('SearchVehicles', $request, $callOptions)->wait(); + } + + /** + * Writes updated vehicle data to the Fleet Engine. + * + * When updating a `Vehicle`, the following fields cannot be updated since + * they are managed by the server: + * + * * `currentTrips` + * * `availableCapacity` + * * `current_route_segment_version` + * * `waypoints_version` + * + * The vehicle `name` also cannot be updated. + * + * If the `attributes` field is updated, **all** the vehicle's attributes are + * replaced with the attributes provided in the request. If you want to update + * only some attributes, see the `UpdateVehicleAttributes` method. Likewise, + * the `waypoints` field can be updated, but must contain all the waypoints + * currently on the vehicle, and no other waypoints. + * + * The async variant is {@see VehicleServiceClient::updateVehicleAsync()} . + * + * @example samples/V1/VehicleServiceClient/update_vehicle.php + * + * @param UpdateVehicleRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Vehicle + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateVehicle(UpdateVehicleRequest $request, array $callOptions = []): Vehicle + { + return $this->startApiCall('UpdateVehicle', $request, $callOptions)->wait(); + } + + /** + * Partially updates a vehicle's attributes. + * Only the attributes mentioned in the request will be updated, other + * attributes will NOT be altered. Note: this is different in `UpdateVehicle`, + * where the whole `attributes` field will be replaced by the one in + * `UpdateVehicleRequest`, attributes not in the request would be removed. + * + * The async variant is {@see VehicleServiceClient::updateVehicleAttributesAsync()} + * . + * + * @example samples/V1/VehicleServiceClient/update_vehicle_attributes.php + * + * @param UpdateVehicleAttributesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return UpdateVehicleAttributesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateVehicleAttributes(UpdateVehicleAttributesRequest $request, array $callOptions = []): UpdateVehicleAttributesResponse + { + return $this->startApiCall('UpdateVehicleAttributes', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/gapic_metadata.json b/owl-bot-staging/MapsFleetEngine/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..280373142e1a --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/src/V1/gapic_metadata.json @@ -0,0 +1,82 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "maps.fleetengine.v1", + "libraryPackage": "Google\\Maps\\FleetEngine\\V1", + "services": { + "TripService": { + "clients": { + "grpc": { + "libraryClient": "TripServiceGapicClient", + "rpcs": { + "CreateTrip": { + "methods": [ + "createTrip" + ] + }, + "GetTrip": { + "methods": [ + "getTrip" + ] + }, + "ReportBillableTrip": { + "methods": [ + "reportBillableTrip" + ] + }, + "SearchTrips": { + "methods": [ + "searchTrips" + ] + }, + "UpdateTrip": { + "methods": [ + "updateTrip" + ] + } + } + } + } + }, + "VehicleService": { + "clients": { + "grpc": { + "libraryClient": "VehicleServiceGapicClient", + "rpcs": { + "CreateVehicle": { + "methods": [ + "createVehicle" + ] + }, + "GetVehicle": { + "methods": [ + "getVehicle" + ] + }, + "ListVehicles": { + "methods": [ + "listVehicles" + ] + }, + "SearchVehicles": { + "methods": [ + "searchVehicles" + ] + }, + "UpdateVehicle": { + "methods": [ + "updateVehicle" + ] + }, + "UpdateVehicleAttributes": { + "methods": [ + "updateVehicleAttributes" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_client_config.json b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_client_config.json new file mode 100644 index 000000000000..baf7c028dc49 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_client_config.json @@ -0,0 +1,59 @@ +{ + "interfaces": { + "maps.fleetengine.v1.TripService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 15000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 15000, + "total_timeout_millis": 15000 + } + }, + "methods": { + "CreateTrip": { + "timeout_millis": 15000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetTrip": { + "timeout_millis": 15000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ReportBillableTrip": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SearchTrips": { + "timeout_millis": 15000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateTrip": { + "timeout_millis": 15000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_descriptor_config.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_descriptor_config.php new file mode 100644 index 000000000000..1e3977139b4b --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_descriptor_config.php @@ -0,0 +1,114 @@ + [ + 'maps.fleetengine.v1.TripService' => [ + 'CreateTrip' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Maps\FleetEngine\V1\Trip', + 'headerParams' => [ + [ + 'keyName' => 'provider_id', + 'fieldAccessors' => [ + 'getParent', + ], + 'matchers' => [ + '/^(?providers\/[^\/]+)$/', + ], + ], + ], + ], + 'GetTrip' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Maps\FleetEngine\V1\Trip', + 'headerParams' => [ + [ + 'keyName' => 'provider_id', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?providers\/[^\/]+)$/', + ], + ], + ], + ], + 'ReportBillableTrip' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'provider_id', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?providers\/[^\/]+)$/', + ], + ], + ], + ], + 'SearchTrips' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getTrips', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Maps\FleetEngine\V1\SearchTripsResponse', + 'headerParams' => [ + [ + 'keyName' => 'provider_id', + 'fieldAccessors' => [ + 'getParent', + ], + 'matchers' => [ + '/^(?providers\/[^\/]+)$/', + ], + ], + ], + ], + 'UpdateTrip' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Maps\FleetEngine\V1\Trip', + 'headerParams' => [ + [ + 'keyName' => 'provider_id', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?providers\/[^\/]+)$/', + ], + ], + ], + ], + 'templateMap' => [ + 'trip' => 'providers/{provider}/trips/{trip}', + ], + ], + ], +]; diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_rest_client_config.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_rest_client_config.php new file mode 100644 index 000000000000..961afdee4c09 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_rest_client_config.php @@ -0,0 +1,94 @@ + [ + 'maps.fleetengine.v1.TripService' => [ + 'CreateTrip' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=providers/*}/trips', + 'body' => 'trip', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'trip_id', + ], + ], + 'GetTrip' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=providers/*/trips/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ReportBillableTrip' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=providers/*/billableTrips/*}:report', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'SearchTrips' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=providers/*}/trips:search', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateTrip' => [ + 'method' => 'put', + 'uriTemplate' => '/v1/{name=providers/*/trips/*}', + 'body' => 'trip', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_client_config.json b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_client_config.json new file mode 100644 index 000000000000..8d97cde39440 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_client_config.json @@ -0,0 +1,64 @@ +{ + "interfaces": { + "maps.fleetengine.v1.VehicleService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 15000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 15000, + "total_timeout_millis": 15000 + } + }, + "methods": { + "CreateVehicle": { + "timeout_millis": 15000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetVehicle": { + "timeout_millis": 15000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListVehicles": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SearchVehicles": { + "timeout_millis": 15000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateVehicle": { + "timeout_millis": 15000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateVehicleAttributes": { + "timeout_millis": 15000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_descriptor_config.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_descriptor_config.php new file mode 100644 index 000000000000..ec49a409478c --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_descriptor_config.php @@ -0,0 +1,129 @@ + [ + 'maps.fleetengine.v1.VehicleService' => [ + 'CreateVehicle' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Maps\FleetEngine\V1\Vehicle', + 'headerParams' => [ + [ + 'keyName' => 'provider_id', + 'fieldAccessors' => [ + 'getParent', + ], + 'matchers' => [ + '/^(?providers\/[^\/]+)$/', + ], + ], + ], + ], + 'GetVehicle' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Maps\FleetEngine\V1\Vehicle', + 'headerParams' => [ + [ + 'keyName' => 'provider_id', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?providers\/[^\/]+)$/', + ], + ], + ], + ], + 'ListVehicles' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getVehicles', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Maps\FleetEngine\V1\ListVehiclesResponse', + 'headerParams' => [ + [ + 'keyName' => 'provider_id', + 'fieldAccessors' => [ + 'getParent', + ], + 'matchers' => [ + '/^(?providers\/[^\/]+)$/', + ], + ], + ], + ], + 'SearchVehicles' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Maps\FleetEngine\V1\SearchVehiclesResponse', + 'headerParams' => [ + [ + 'keyName' => 'provider_id', + 'fieldAccessors' => [ + 'getParent', + ], + 'matchers' => [ + '/^(?providers\/[^\/]+)$/', + ], + ], + ], + ], + 'UpdateVehicle' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Maps\FleetEngine\V1\Vehicle', + 'headerParams' => [ + [ + 'keyName' => 'provider_id', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?providers\/[^\/]+)$/', + ], + ], + ], + ], + 'UpdateVehicleAttributes' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Maps\FleetEngine\V1\UpdateVehicleAttributesResponse', + 'headerParams' => [ + [ + 'keyName' => 'provider_id', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?providers\/[^\/]+)$/', + ], + ], + ], + ], + 'templateMap' => [ + 'vehicle' => 'providers/{provider}/vehicles/{vehicle}', + ], + ], + ], +]; diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_rest_client_config.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_rest_client_config.php new file mode 100644 index 000000000000..ac8a656607f0 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_rest_client_config.php @@ -0,0 +1,108 @@ + [ + 'maps.fleetengine.v1.VehicleService' => [ + 'CreateVehicle' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=providers/*}/vehicles', + 'body' => 'vehicle', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'vehicle_id', + ], + ], + 'GetVehicle' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=providers/*/vehicles/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListVehicles' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=providers/*}/vehicles', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'vehicle_type_categories', + ], + ], + 'SearchVehicles' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=providers/*}/vehicles:search', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateVehicle' => [ + 'method' => 'put', + 'uriTemplate' => '/v1/{name=providers/*/vehicles/*}', + 'body' => 'vehicle', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateVehicleAttributes' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=providers/*/vehicles/*}:updateAttributes', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/TripServiceClientTest.php b/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/TripServiceClientTest.php new file mode 100644 index 000000000000..24ec467b67de --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/TripServiceClientTest.php @@ -0,0 +1,501 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return TripServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new TripServiceClient($options); + } + + /** @test */ + public function createTripTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $vehicleId = 'vehicleId-1378647282'; + $intermediateDestinationIndex = 144716901; + $currentRouteSegment = 'currentRouteSegment-289364233'; + $numberOfPassengers = 674364405; + $lastLocationSnappable = false; + $expectedResponse = new Trip(); + $expectedResponse->setName($name); + $expectedResponse->setVehicleId($vehicleId); + $expectedResponse->setIntermediateDestinationIndex($intermediateDestinationIndex); + $expectedResponse->setCurrentRouteSegment($currentRouteSegment); + $expectedResponse->setNumberOfPassengers($numberOfPassengers); + $expectedResponse->setLastLocationSnappable($lastLocationSnappable); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->tripName('[PROVIDER]', '[TRIP]'); + $tripId = 'tripId-1059631243'; + $trip = new Trip(); + $request = (new CreateTripRequest()) + ->setParent($formattedParent) + ->setTripId($tripId) + ->setTrip($trip); + $response = $gapicClient->createTrip($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.TripService/CreateTrip', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getTripId(); + $this->assertProtobufEquals($tripId, $actualValue); + $actualValue = $actualRequestObject->getTrip(); + $this->assertProtobufEquals($trip, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createTripExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->tripName('[PROVIDER]', '[TRIP]'); + $tripId = 'tripId-1059631243'; + $trip = new Trip(); + $request = (new CreateTripRequest()) + ->setParent($formattedParent) + ->setTripId($tripId) + ->setTrip($trip); + try { + $gapicClient->createTrip($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTripTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $vehicleId = 'vehicleId-1378647282'; + $intermediateDestinationIndex = 144716901; + $currentRouteSegment = 'currentRouteSegment-289364233'; + $numberOfPassengers = 674364405; + $lastLocationSnappable = false; + $expectedResponse = new Trip(); + $expectedResponse->setName($name2); + $expectedResponse->setVehicleId($vehicleId); + $expectedResponse->setIntermediateDestinationIndex($intermediateDestinationIndex); + $expectedResponse->setCurrentRouteSegment($currentRouteSegment); + $expectedResponse->setNumberOfPassengers($numberOfPassengers); + $expectedResponse->setLastLocationSnappable($lastLocationSnappable); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->tripName('[PROVIDER]', '[TRIP]'); + $request = (new GetTripRequest()) + ->setName($formattedName); + $response = $gapicClient->getTrip($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.TripService/GetTrip', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTripExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->tripName('[PROVIDER]', '[TRIP]'); + $request = (new GetTripRequest()) + ->setName($formattedName); + try { + $gapicClient->getTrip($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function reportBillableTripTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $countryCode = 'countryCode1481071862'; + $request = (new ReportBillableTripRequest()) + ->setName($name) + ->setCountryCode($countryCode); + $gapicClient->reportBillableTrip($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.TripService/ReportBillableTrip', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $actualValue = $actualRequestObject->getCountryCode(); + $this->assertProtobufEquals($countryCode, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function reportBillableTripExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $name = 'name3373707'; + $countryCode = 'countryCode1481071862'; + $request = (new ReportBillableTripRequest()) + ->setName($name) + ->setCountryCode($countryCode); + try { + $gapicClient->reportBillableTrip($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchTripsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $tripsElement = new Trip(); + $trips = [ + $tripsElement, + ]; + $expectedResponse = new SearchTripsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTrips($trips); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $request = (new SearchTripsRequest()) + ->setParent($parent); + $response = $gapicClient->searchTrips($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getTrips()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.TripService/SearchTrips', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchTripsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $parent = 'parent-995424086'; + $request = (new SearchTripsRequest()) + ->setParent($parent); + try { + $gapicClient->searchTrips($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateTripTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $vehicleId = 'vehicleId-1378647282'; + $intermediateDestinationIndex = 144716901; + $currentRouteSegment = 'currentRouteSegment-289364233'; + $numberOfPassengers = 674364405; + $lastLocationSnappable = false; + $expectedResponse = new Trip(); + $expectedResponse->setName($name2); + $expectedResponse->setVehicleId($vehicleId); + $expectedResponse->setIntermediateDestinationIndex($intermediateDestinationIndex); + $expectedResponse->setCurrentRouteSegment($currentRouteSegment); + $expectedResponse->setNumberOfPassengers($numberOfPassengers); + $expectedResponse->setLastLocationSnappable($lastLocationSnappable); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $trip = new Trip(); + $updateMask = new FieldMask(); + $request = (new UpdateTripRequest()) + ->setName($name) + ->setTrip($trip) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateTrip($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.TripService/UpdateTrip', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $actualValue = $actualRequestObject->getTrip(); + $this->assertProtobufEquals($trip, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateTripExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $name = 'name3373707'; + $trip = new Trip(); + $updateMask = new FieldMask(); + $request = (new UpdateTripRequest()) + ->setName($name) + ->setTrip($trip) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateTrip($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createTripAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $vehicleId = 'vehicleId-1378647282'; + $intermediateDestinationIndex = 144716901; + $currentRouteSegment = 'currentRouteSegment-289364233'; + $numberOfPassengers = 674364405; + $lastLocationSnappable = false; + $expectedResponse = new Trip(); + $expectedResponse->setName($name); + $expectedResponse->setVehicleId($vehicleId); + $expectedResponse->setIntermediateDestinationIndex($intermediateDestinationIndex); + $expectedResponse->setCurrentRouteSegment($currentRouteSegment); + $expectedResponse->setNumberOfPassengers($numberOfPassengers); + $expectedResponse->setLastLocationSnappable($lastLocationSnappable); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->tripName('[PROVIDER]', '[TRIP]'); + $tripId = 'tripId-1059631243'; + $trip = new Trip(); + $request = (new CreateTripRequest()) + ->setParent($formattedParent) + ->setTripId($tripId) + ->setTrip($trip); + $response = $gapicClient->createTripAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.TripService/CreateTrip', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getTripId(); + $this->assertProtobufEquals($tripId, $actualValue); + $actualValue = $actualRequestObject->getTrip(); + $this->assertProtobufEquals($trip, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/VehicleServiceClientTest.php b/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/VehicleServiceClientTest.php new file mode 100644 index 000000000000..55dff33beee6 --- /dev/null +++ b/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/VehicleServiceClientTest.php @@ -0,0 +1,618 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return VehicleServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new VehicleServiceClient($options); + } + + /** @test */ + public function createVehicleTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $maximumCapacity = 582710265; + $currentRouteSegment = 'currentRouteSegment-289364233'; + $backToBackEnabled = false; + $expectedResponse = new Vehicle(); + $expectedResponse->setName($name); + $expectedResponse->setMaximumCapacity($maximumCapacity); + $expectedResponse->setCurrentRouteSegment($currentRouteSegment); + $expectedResponse->setBackToBackEnabled($backToBackEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $vehicleId = 'vehicleId-1378647282'; + $vehicle = new Vehicle(); + $vehicleVehicleType = new VehicleType(); + $vehicle->setVehicleType($vehicleVehicleType); + $request = (new CreateVehicleRequest()) + ->setParent($parent) + ->setVehicleId($vehicleId) + ->setVehicle($vehicle); + $response = $gapicClient->createVehicle($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.VehicleService/CreateVehicle', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $actualValue = $actualRequestObject->getVehicleId(); + $this->assertProtobufEquals($vehicleId, $actualValue); + $actualValue = $actualRequestObject->getVehicle(); + $this->assertProtobufEquals($vehicle, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createVehicleExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $parent = 'parent-995424086'; + $vehicleId = 'vehicleId-1378647282'; + $vehicle = new Vehicle(); + $vehicleVehicleType = new VehicleType(); + $vehicle->setVehicleType($vehicleVehicleType); + $request = (new CreateVehicleRequest()) + ->setParent($parent) + ->setVehicleId($vehicleId) + ->setVehicle($vehicle); + try { + $gapicClient->createVehicle($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getVehicleTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $maximumCapacity = 582710265; + $currentRouteSegment = 'currentRouteSegment-289364233'; + $backToBackEnabled = false; + $expectedResponse = new Vehicle(); + $expectedResponse->setName($name2); + $expectedResponse->setMaximumCapacity($maximumCapacity); + $expectedResponse->setCurrentRouteSegment($currentRouteSegment); + $expectedResponse->setBackToBackEnabled($backToBackEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->vehicleName('[PROVIDER]', '[VEHICLE]'); + $request = (new GetVehicleRequest()) + ->setName($formattedName); + $response = $gapicClient->getVehicle($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.VehicleService/GetVehicle', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getVehicleExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->vehicleName('[PROVIDER]', '[VEHICLE]'); + $request = (new GetVehicleRequest()) + ->setName($formattedName); + try { + $gapicClient->getVehicle($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listVehiclesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $vehiclesElement = new Vehicle(); + $vehicles = [ + $vehiclesElement, + ]; + $expectedResponse = new ListVehiclesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setVehicles($vehicles); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $vehicleTypeCategories = []; + $request = (new ListVehiclesRequest()) + ->setParent($parent) + ->setVehicleTypeCategories($vehicleTypeCategories); + $response = $gapicClient->listVehicles($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getVehicles()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.VehicleService/ListVehicles', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $actualValue = $actualRequestObject->getVehicleTypeCategories(); + $this->assertProtobufEquals($vehicleTypeCategories, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listVehiclesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $parent = 'parent-995424086'; + $vehicleTypeCategories = []; + $request = (new ListVehiclesRequest()) + ->setParent($parent) + ->setVehicleTypeCategories($vehicleTypeCategories); + try { + $gapicClient->listVehicles($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchVehiclesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new SearchVehiclesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $pickupPoint = new TerminalLocation(); + $pickupPointPoint = new LatLng(); + $pickupPoint->setPoint($pickupPointPoint); + $pickupRadiusMeters = 254656044; + $count = 94851343; + $minimumCapacity = 518841803; + $tripTypes = []; + $vehicleTypes = []; + $orderBy = VehicleMatchOrder::UNKNOWN_VEHICLE_MATCH_ORDER; + $request = (new SearchVehiclesRequest()) + ->setParent($parent) + ->setPickupPoint($pickupPoint) + ->setPickupRadiusMeters($pickupRadiusMeters) + ->setCount($count) + ->setMinimumCapacity($minimumCapacity) + ->setTripTypes($tripTypes) + ->setVehicleTypes($vehicleTypes) + ->setOrderBy($orderBy); + $response = $gapicClient->searchVehicles($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.VehicleService/SearchVehicles', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $actualValue = $actualRequestObject->getPickupPoint(); + $this->assertProtobufEquals($pickupPoint, $actualValue); + $actualValue = $actualRequestObject->getPickupRadiusMeters(); + $this->assertProtobufEquals($pickupRadiusMeters, $actualValue); + $actualValue = $actualRequestObject->getCount(); + $this->assertProtobufEquals($count, $actualValue); + $actualValue = $actualRequestObject->getMinimumCapacity(); + $this->assertProtobufEquals($minimumCapacity, $actualValue); + $actualValue = $actualRequestObject->getTripTypes(); + $this->assertProtobufEquals($tripTypes, $actualValue); + $actualValue = $actualRequestObject->getVehicleTypes(); + $this->assertProtobufEquals($vehicleTypes, $actualValue); + $actualValue = $actualRequestObject->getOrderBy(); + $this->assertProtobufEquals($orderBy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchVehiclesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $parent = 'parent-995424086'; + $pickupPoint = new TerminalLocation(); + $pickupPointPoint = new LatLng(); + $pickupPoint->setPoint($pickupPointPoint); + $pickupRadiusMeters = 254656044; + $count = 94851343; + $minimumCapacity = 518841803; + $tripTypes = []; + $vehicleTypes = []; + $orderBy = VehicleMatchOrder::UNKNOWN_VEHICLE_MATCH_ORDER; + $request = (new SearchVehiclesRequest()) + ->setParent($parent) + ->setPickupPoint($pickupPoint) + ->setPickupRadiusMeters($pickupRadiusMeters) + ->setCount($count) + ->setMinimumCapacity($minimumCapacity) + ->setTripTypes($tripTypes) + ->setVehicleTypes($vehicleTypes) + ->setOrderBy($orderBy); + try { + $gapicClient->searchVehicles($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateVehicleTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $maximumCapacity = 582710265; + $currentRouteSegment = 'currentRouteSegment-289364233'; + $backToBackEnabled = false; + $expectedResponse = new Vehicle(); + $expectedResponse->setName($name2); + $expectedResponse->setMaximumCapacity($maximumCapacity); + $expectedResponse->setCurrentRouteSegment($currentRouteSegment); + $expectedResponse->setBackToBackEnabled($backToBackEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $vehicle = new Vehicle(); + $vehicleVehicleType = new VehicleType(); + $vehicle->setVehicleType($vehicleVehicleType); + $updateMask = new FieldMask(); + $request = (new UpdateVehicleRequest()) + ->setName($name) + ->setVehicle($vehicle) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateVehicle($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.VehicleService/UpdateVehicle', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $actualValue = $actualRequestObject->getVehicle(); + $this->assertProtobufEquals($vehicle, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateVehicleExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $name = 'name3373707'; + $vehicle = new Vehicle(); + $vehicleVehicleType = new VehicleType(); + $vehicle->setVehicleType($vehicleVehicleType); + $updateMask = new FieldMask(); + $request = (new UpdateVehicleRequest()) + ->setName($name) + ->setVehicle($vehicle) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateVehicle($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateVehicleAttributesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new UpdateVehicleAttributesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $attributes = []; + $request = (new UpdateVehicleAttributesRequest()) + ->setName($name) + ->setAttributes($attributes); + $response = $gapicClient->updateVehicleAttributes($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.VehicleService/UpdateVehicleAttributes', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $actualValue = $actualRequestObject->getAttributes(); + $this->assertProtobufEquals($attributes, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateVehicleAttributesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $name = 'name3373707'; + $attributes = []; + $request = (new UpdateVehicleAttributesRequest()) + ->setName($name) + ->setAttributes($attributes); + try { + $gapicClient->updateVehicleAttributes($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createVehicleAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $maximumCapacity = 582710265; + $currentRouteSegment = 'currentRouteSegment-289364233'; + $backToBackEnabled = false; + $expectedResponse = new Vehicle(); + $expectedResponse->setName($name); + $expectedResponse->setMaximumCapacity($maximumCapacity); + $expectedResponse->setCurrentRouteSegment($currentRouteSegment); + $expectedResponse->setBackToBackEnabled($backToBackEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $vehicleId = 'vehicleId-1378647282'; + $vehicle = new Vehicle(); + $vehicleVehicleType = new VehicleType(); + $vehicle->setVehicleType($vehicleVehicleType); + $request = (new CreateVehicleRequest()) + ->setParent($parent) + ->setVehicleId($vehicleId) + ->setVehicle($vehicle); + $response = $gapicClient->createVehicleAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/maps.fleetengine.v1.VehicleService/CreateVehicle', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $actualValue = $actualRequestObject->getVehicleId(); + $this->assertProtobufEquals($vehicleId, $actualValue); + $actualValue = $actualRequestObject->getVehicle(); + $this->assertProtobufEquals($vehicle, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} From 009e9c314c60c58a8fd096fccece8a38d0dde15d Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 10 Dec 2024 21:01:36 +0000 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../src/V1/Client/TripServiceClient.php | 10 +- .../src/V1/Client/VehicleServiceClient.php | 10 +- .../Maps/Fleetengine/V1/Fleetengine.php | Bin 4557 -> 0 bytes .../Google/Maps/Fleetengine/V1/Header.php | Bin 1414 -> 0 bytes .../Google/Maps/Fleetengine/V1/Traffic.php | Bin 1210 -> 0 bytes .../Google/Maps/Fleetengine/V1/TripApi.php | Bin 4480 -> 0 bytes .../Google/Maps/Fleetengine/V1/Trips.php | Bin 4253 -> 0 bytes .../Google/Maps/Fleetengine/V1/VehicleApi.php | Bin 7424 -> 0 bytes .../Google/Maps/Fleetengine/V1/Vehicles.php | Bin 4391 -> 0 bytes .../Maps/FleetEngine/V1/BatteryInfo.php | 135 -- .../Maps/FleetEngine/V1/BatteryStatus.php | 82 - .../V1/BillingPlatformIdentifier.php | 82 - .../V1/ConsumableTrafficPolyline.php | 117 -- .../Maps/FleetEngine/V1/CreateTripRequest.php | 329 --- .../FleetEngine/V1/CreateVehicleRequest.php | 313 --- .../Maps/FleetEngine/V1/DeviceSettings.php | 183 -- .../Maps/FleetEngine/V1/GetTripRequest.php | 439 ---- .../Maps/FleetEngine/V1/GetVehicleRequest.php | 243 --- .../Maps/FleetEngine/V1/LicensePlate.php | 123 -- .../FleetEngine/V1/ListVehiclesRequest.php | 926 --------- .../FleetEngine/V1/ListVehiclesResponse.php | 151 -- .../FleetEngine/V1/LocationPowerSaveMode.php | 89 - .../Maps/FleetEngine/V1/LocationSensor.php | 110 - .../Maps/FleetEngine/V1/NavigationStatus.php | 76 - .../FleetEngine/V1/PolylineFormatType.php | 62 - .../Maps/FleetEngine/V1/PowerSource.php | 75 - .../V1/ReportBillableTripRequest.php | 239 --- .../SolutionType.php | 59 - .../Maps/FleetEngine/V1/RequestHeader.php | 493 ----- .../FleetEngine/V1/RequestHeader/Platform.php | 71 - .../FleetEngine/V1/RequestHeader/SdkType.php | 71 - .../FleetEngine/V1/SearchTripsRequest.php | 335 --- .../FleetEngine/V1/SearchTripsResponse.php | 109 - .../FleetEngine/V1/SearchVehiclesRequest.php | 1029 ---------- .../CurrentTripsPresent.php | 68 - .../VehicleMatchOrder.php | 90 - .../FleetEngine/V1/SearchVehiclesResponse.php | 71 - .../FleetEngine/V1/SpeedReadingInterval.php | 145 -- .../V1/SpeedReadingInterval/Speed.php | 71 - .../Maps/FleetEngine/V1/StopLocation.php | 172 -- .../Maps/FleetEngine/V1/TerminalLocation.php | 245 --- .../Maps/FleetEngine/V1/TerminalPointId.php | 159 -- .../FleetEngine/V1/TrafficPolylineData.php | 81 - .../src/Google/Maps/FleetEngine/V1/Trip.php | 1614 --------------- .../Google/Maps/FleetEngine/V1/TripStatus.php | 111 - .../Google/Maps/FleetEngine/V1/TripType.php | 61 - .../Google/Maps/FleetEngine/V1/TripView.php | 67 - .../Maps/FleetEngine/V1/TripWaypoint.php | 451 ----- .../Maps/FleetEngine/V1/UpdateTripRequest.php | 355 ---- .../V1/UpdateVehicleAttributesRequest.php | 161 -- .../V1/UpdateVehicleAttributesResponse.php | 71 - .../FleetEngine/V1/UpdateVehicleRequest.php | 267 --- .../Google/Maps/FleetEngine/V1/Vehicle.php | 1108 ---------- .../FleetEngine/V1/Vehicle/VehicleType.php | 70 - .../V1/Vehicle/VehicleType/Category.php | 93 - .../Maps/FleetEngine/V1/VehicleAttribute.php | 225 --- .../FleetEngine/V1/VehicleAttributeList.php | 67 - .../Maps/FleetEngine/V1/VehicleLocation.php | 1789 ----------------- .../Maps/FleetEngine/V1/VehicleMatch.php | 693 ------- .../V1/VehicleMatch/VehicleMatchType.php | 83 - .../Maps/FleetEngine/V1/VehicleState.php | 62 - .../VisualTrafficReportPolylineRendering.php | 84 - .../RoadStretch.php | 142 -- .../RoadStretch/Style.php | 64 - .../Google/Maps/FleetEngine/V1/Waypoint.php | 123 -- .../Maps/FleetEngine/V1/WaypointType.php | 68 - .../V1/TripServiceClient/create_trip.php | 87 - .../samples/V1/TripServiceClient/get_trip.php | 74 - .../report_billable_trip.php | 76 - .../V1/TripServiceClient/search_trips.php | 78 - .../V1/TripServiceClient/update_trip.php | 78 - .../VehicleServiceClient/create_vehicle.php | 116 -- .../V1/VehicleServiceClient/get_vehicle.php | 75 - .../V1/VehicleServiceClient/list_vehicles.php | 85 - .../VehicleServiceClient/search_vehicles.php | 120 -- .../VehicleServiceClient/update_vehicle.php | 98 - .../update_vehicle_attributes.php | 80 - .../v1/src/V1/Client/TripServiceClient.php | 352 ---- .../v1/src/V1/Client/VehicleServiceClient.php | 434 ---- .../v1/src/V1/gapic_metadata.json | 82 - .../resources/trip_service_client_config.json | 59 - .../trip_service_descriptor_config.php | 114 -- .../trip_service_rest_client_config.php | 94 - .../vehicle_service_client_config.json | 64 - .../vehicle_service_descriptor_config.php | 129 -- .../vehicle_service_rest_client_config.php | 108 - .../Unit/V1/Client/TripServiceClientTest.php | 501 ----- .../V1/Client/VehicleServiceClientTest.php | 618 ------ 88 files changed, 14 insertions(+), 18400 deletions(-) delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Fleetengine.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Header.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Traffic.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/TripApi.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Trips.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/VehicleApi.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Vehicles.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryInfo.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryStatus.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BillingPlatformIdentifier.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ConsumableTrafficPolyline.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateTripRequest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateVehicleRequest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/DeviceSettings.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetTripRequest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetVehicleRequest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LicensePlate.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesRequest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesResponse.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationPowerSaveMode.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationSensor.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/NavigationStatus.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PolylineFormatType.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PowerSource.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest/SolutionType.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/Platform.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/SdkType.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsRequest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsResponse.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/CurrentTripsPresent.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/VehicleMatchOrder.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesResponse.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval/Speed.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/StopLocation.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalLocation.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalPointId.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TrafficPolylineData.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Trip.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripStatus.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripType.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripView.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripWaypoint.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateTripRequest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesRequest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesResponse.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleRequest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType/Category.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttribute.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttributeList.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleLocation.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch/VehicleMatchType.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleState.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch/Style.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Waypoint.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/WaypointType.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/create_trip.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/get_trip.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/report_billable_trip.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/search_trips.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/update_trip.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/create_vehicle.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/get_vehicle.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/list_vehicles.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/search_vehicles.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle_attributes.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/TripServiceClient.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/VehicleServiceClient.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_client_config.json delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_descriptor_config.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_rest_client_config.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_client_config.json delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_descriptor_config.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_rest_client_config.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/TripServiceClientTest.php delete mode 100644 owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/VehicleServiceClientTest.php diff --git a/MapsFleetEngine/src/V1/Client/TripServiceClient.php b/MapsFleetEngine/src/V1/Client/TripServiceClient.php index 07c1f7f6c070..083cc27fd064 100644 --- a/MapsFleetEngine/src/V1/Client/TripServiceClient.php +++ b/MapsFleetEngine/src/V1/Client/TripServiceClient.php @@ -40,6 +40,7 @@ use Google\Maps\FleetEngine\V1\Trip; use Google\Maps\FleetEngine\V1\UpdateTripRequest; use GuzzleHttp\Promise\PromiseInterface; +use Psr\Log\LoggerInterface; /** * Service Description: Trip management service. @@ -133,14 +134,14 @@ public static function tripName(string $provider, string $trip): string * listed, then parseName will check each of the supported templates, and return * the first match. * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match * * @return array An associative array from name component IDs to component values. * * @throws ValidationException If $formattedName could not be matched. */ - public static function parseName(string $formattedName, string $template = null): array + public static function parseName(string $formattedName, ?string $template = null): array { return self::parseFormattedName($formattedName, $template); } @@ -195,6 +196,9 @@ public static function parseName(string $formattedName, string $template = null) * @type callable $clientCertSource * A callable which returns the client cert as a string. This can be used to * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag * } * * @throws ValidationException diff --git a/MapsFleetEngine/src/V1/Client/VehicleServiceClient.php b/MapsFleetEngine/src/V1/Client/VehicleServiceClient.php index 9eb70d735cf0..c33555a3df8d 100644 --- a/MapsFleetEngine/src/V1/Client/VehicleServiceClient.php +++ b/MapsFleetEngine/src/V1/Client/VehicleServiceClient.php @@ -44,6 +44,7 @@ use Google\Maps\FleetEngine\V1\Vehicle; use Google\Maps\FleetEngine\V1\Vehicle\VehicleType; use GuzzleHttp\Promise\PromiseInterface; +use Psr\Log\LoggerInterface; /** * Service Description: Vehicle management service. @@ -138,14 +139,14 @@ public static function vehicleName(string $provider, string $vehicle): string * listed, then parseName will check each of the supported templates, and return * the first match. * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match * * @return array An associative array from name component IDs to component values. * * @throws ValidationException If $formattedName could not be matched. */ - public static function parseName(string $formattedName, string $template = null): array + public static function parseName(string $formattedName, ?string $template = null): array { return self::parseFormattedName($formattedName, $template); } @@ -200,6 +201,9 @@ public static function parseName(string $formattedName, string $template = null) * @type callable $clientCertSource * A callable which returns the client cert as a string. This can be used to * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag * } * * @throws ValidationException diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Fleetengine.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Fleetengine.php deleted file mode 100644 index 11ab219baf22a4e85eda528d0b9885d9bf5540bd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4557 zcmbVQT~piG8D85E;5ETU1R_Y5YT0Z<*sK|xY`0@VT7Sr_Cq~lPGBh2}Xk_bPG%HIQ zNhZT~@&h`(=zr++s`tI?59ss{^tRXi2Yc7|9DUdXW9a6FSm%A-kLUe3A8&r+Ubyh3 za7=9C=>ai>-jxts5W)4F!09`d&>Nkf6Hn+nL)Wy3R}h4nEJ(5{h_#0L1wwsi8O z7&y+rBKt$#_4m&$LIPqBOq=Xq9!&l$FvS42J|w=Y_la<0-6y**git4yedanC|B(=TrBF(cj&8#ah-d3ow?_QFXS#voDJWVh4M>m> zNx$sAh|E%T=DDyN`dBL6aPmk9yb+nSE(jh8MxK4h{H6*%CjaYB;jHYM-MUFEqe3q9 zOVja6rEyeaCDWi&=Px=#uE1q)}oTWrW06d3sd8(I<`L=>OG4@ z6H0NcD+~7-?lt5L6Q>7`aczjZkLU9bn4%|fjl_*oXxPE4;wh~>T2L9>efR|?x^+V| z8A;sNuoyQOzsRIFZ%D_pZ|Bcgyr<;C>|3N9V3qVn0pYTc`GH)q^eu4@ zV*8HAXA!wl{Br7iiF>2XM3KB4o+mv=H#Fa-2MmLMa*N#xwrMz1-oiS92ClD#1~p>S zfo1T^cR{JkbF@w0 zOc|eN$f;xDTUebG4YRU(ONiq+`de7L28)vN6oL0l$|0;@(~y+iCNn;}?254Nk6hOx zL&C;c5-E3kq;FwsDkcnh?aq)J@N_ypiv7|3W3R#XbX5rn>-Qjm$1G3Q^cG?kY2)v` zfkk@mpa&6d9acNiJ4rs1G_}=GH1)kA=0D>A9<;wNx5QdLg}d02_`7Pe({7xK`SjkO zQm`B!S(u7VSdUelmES9JLsDZkJUmhw)ps35yS|dbBjZM`B`ca-uYa z;Ptbtids!TzopHJKj(am`jggEq19cw@%85Ll|xoe>J6Jt=VWt zpHm!$AWBuaCe}1XZoY3eBryyjz4u4lvk~`7ac+HwocFF@v4X`|UJEJ&hyCb!<99sHq`+boG0ZU?qoa=E6prLv-+ zsis^FV^CW1X`?2#@^joaY*jmLRX!10TDzkt&Blaaex8z6Z;GO-iPAA8EY^{KfM@E* z^-g<2TubyC90w1pa%)2VpQ#E)wvEpZ@i}A4*}alwuL2@_a8OdeulFryWW)f(?hl-s z4->j;UVoc#dxsO3F}L@Zbf#Jt|CZi5X3r7@dQUD)SSp+z{3~AUhL0BEt3~KY7oRQu zoBlimmr4{}DowykrPG7n19m8V^*p&tz6@UiCLRuOl;fFU%A*0346pVd;UmER0BK5- AfB*mh diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Header.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Header.php deleted file mode 100644 index 52f1053ac43c8dcfc58a40db1bf162d39d348b9d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1414 zcma)6-EPxJ6y7Azgww(XQ-oP*SF_zp4S$XTcP<6xw`6zISV;&1S+XYfNjk#unDICg zpx*KzNZjx!d&>)O%~LS8+cc$JiQHs-=6v7zoAW(>8Xku57um-E1(oQL$y*{1k%WRv z?sA_@;^`Cxarr!CJ_>`7R-YX7N2J~Aj{a28h{wW3lgv1u`B{M2W$S1z26w zs)tBD1x+~t0y@Viq%M+utI-_xIM1z0=PbnBJwPyf%ibvFN`NX zb4etrRDatna#+A5qdt45s@Nk_>PM)c=Y6Mf;7Y~=k^uUFi~0`Y1k|@%7`cLlk_$_@n&u4UvVDoAa_2Z~LdT}0lI3Wc=aSqbQpC6#oe+UC z7Qt?scS3NqJlPkts~$4D!_fB{ct{tF3)4KU>Xalc>cJCsTteORmKk@{R4dCENyHua zvv`=4tViB!XMrM8*Lop!*8q65v|UPVo3P>Gg1P9-6|b*fPOXojl)&ZN z5cM@>x%Tj`aY3fWnJkT=_j;rdDy?$j?5t)`OnGm?uK``0xhSO zdp{A-I)-Sfia8D9DRtHSQRtA8-iGTm@C0X`Lqq2HxKIVItE5T{zcn>QnPpr$6ZZz_$*?`ax^Z@3s_O5enV@P;sfli*}=2Xne`R zA4)rn>@{7~kVY|kA(54P)p30udne8cSDo?milRE9L}lg0g_GSgUmx>@W~co*|63+1 zMj|RkDk|+%lZfgc5XA|pV2dD_4~0sgB~+>_fuoe0ON-LPu7a8-YD1BbC2M1k)0H+}%U%}> z>YY3PfFnPJU%;Ikzk;{d>W%?cpoB2h=2f(&apTJ94B0G zpEEql!VnVd^GQq@Bqqk4K0fRZvEAtopGs)Tv&07rk2xPRXiP|)HbMpNI(Q}_Y1t+lX%zpi+4|&+X(rLq$wV%Jm@pR@`1c=z#nG}Zk=(%|$zbtzj1v%9 z5^Wc}^8^?3Rl)4VE}imd1;PAUM>fZp2j;L1^tFPFt9C`dmp9H_XqW)v{L*4UT)0i^tl@U1-JayDMh3*#Ra-R=nw8Thynlr diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/TripApi.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/TripApi.php deleted file mode 100644 index 3f22c6d8e70f2da43348ea1cc03de3bf7ccd9098..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4480 zcmbtYOK;mo5Uy;;j#sH0uZu=f;DnZ)SV!y+=IRau^kRRzo0I{N05)q1I z$)#L3@FmAyd+V`>qUe8Ud+8}afui{XJ@nH4gq}LPBxO3H{772yZq>Z z)wR%~v_TDO6GmH7^H5@4Dp|J4Ox4t-rrT~)TT;!QrRmhpN>XWC+S=Zg%BAY=0=PP+ zYpYb2I;PptX|6{sC)d^~Wz^_s2F>+Xa?I8&g;-ivL`BFTJ?dCQrP4;NxJeml5k?vt zB0ysk0yHYe0UG-&s|cw&aU5wE0u?L`Jw+1yv)rbxsglD8gFj1}qiBZ4G@@%?Ln3QZ zo9GS&-(lOfYp6^!4T(E!8!FA*k-V7PcF8g!@ii$xRO7XPIy9;VqqafxMu|EqKw+j` z15;Vd`0| zhRLg78jdU<=X4xml;gUtQG;E~r=n54Ris_g*G&6ju663OnXng+qB+7Q@JdGNu~Kr-cszd^-^zG%VNhDdewTe|ep9lK6{(rVpIGy7YhwzC}>9fdvct?HQzhi=o+do5I$@ zIbWw=x4nEVx#`0f6s?uGBwWYA6W>D<{AprBAV@|c;O<3koqjffW;Q6}4_+sU z56}eP{4SiryJ(`X(St-Bz|Q37M}pl4BV0i9s%!I7DK?OiDh}=R_^&>-9Z-+Nq)0iH z^@`IS3@d(suG_RnU@I{?$^kjFOc+sT5Mb)e07W$Gy}NDNJ;D@rXwk%FfxfXE z3BP9QhdLY>D#BqG>~R&{icW;tq}|rk0iNkI@s!a*R6-ucpf2dFFzMgNP_j-f(`H3Y z*GW@9LF-w+yJHY%TJQ!Z(G}Hn4Q3xIs@Vz}F9`Svx@_r$@d626&g8R^h2d|4Hq?CE zY71Ja!6e#v4#jN>k7*0I?Lb?{Gt;<^-gHbIc1+Xos?M7=lV6RDJu;WOXZ!1g?e>s zL*c(m1a=lvKxf)CV0`jnD!SU}z9bZKrg4%oHaPbMp@1wXYkSJW=L`UNJ;Taih zhMq3`6GM215?k$ZX>eXg8|GdTIFSQJs873^s#7jsT&t#mQ?mq)uYIa;0do}7&<_RP z%Xk(|TciUM4@Y1z=9e%;5RaJogc=D>hH1!kwg|a9Y;)OJf9p=h2YSU z{uIrfNY%06yh)+kmjn*b@^R4e(MpQ1p|=eB6;ncZ#Hi%|m_l)0za47#HI?EYV+bAZ z8u)f3caIJHs;5T3I{oio@=E%Y(bgJ?{=5y7G^_ O?h8xrT7HC%5c(gd2H+_G diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Trips.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Trips.php deleted file mode 100644 index 2fa51c46dc0ef2fe9bb3a34f8a912ef55298b374..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4253 zcmbVP+fv(B6s} zOh2JN(5F832l@|v>mPLbn6KzQN0KqYCQkAaEbYCtFKgdkeCM1x=svfHE$pg3*13~& z&OgPRd9TR7}s^ewb zCdNLtI);U_XWLodH5`wpkO*077kiGXVQ#NhIK;lHtG?RWquQ-Q&~BA4wOh^YU4%4K z^*l}{DCiyH;GYwmn1;rAzUsq&8-}MCmf;(!Y5W2{yyV)d>0!{kF53<)%{Od|BMMbZ z!&{HI5R=GmI5znFl8f!BkuX3ATB7A+*HX<^340nC;@fTwM02?g_Itr2PqrRKpCxcc zo7)O)%;l~b`I7V90QY~L<6P_quC+_;CIA<`zgh#Lm3NF**}$e=z^Ce&VY|89rB|0A z!&K`y%H7CX1JcuKd+e%?gI#ZQ zRr%b(t%~ZKR%fsh<=?YcM#Q$fuJ_1QhVt9$(SeX-6aAJ!4@avzW}Xx#-&dIY+4f>4 zQdS)!>qcw{>vZwy4Y>U%w5k`kZjkoFyhgYyktEfF%F60d@}l>vAHMhF3=IQ#8>Jz7 z&qe?~#5!xzSch-c|4O5A(nOd!G)}q@o8S^#(}m=}`6R<2bcRn2&BThKvt#51^9`CI zol7AV9C&OJ9^T$rN#QSmP04-ewQC-(KBbd}6 z?vubEY>_D>b?gLHUgX2HgsFhM^S#Oo6R?jml=WS#8!(6z9m*0MC1vfgx4Go#5fRYZ zP$cCH>J=c_%*U)^9-@_DFfeR%{4@I{V5FEI5g)~FsQ8s=dh8nYX4Kr&5cd&$k6r&H z#24t6?%IysZb$i@q`?@Ga3ypnvgazuJqj|aSKp%9Se>$D>SOr`SpsZ#aaV;YXLXdf z>N(}7$EI)apOoftBpHIdKyz`eUqaj&5rS!LqLga~K4zz>%6!ahQt&)9_lngCzq5`O zw7_+-buptzo#)7VTV&Z59 z*KG6Lgyk*tLqZP*+ZbW@Y+V`6)+$;ZjE5~fVkAqE29xP}LW?MK$qLGi-;r5< zvHp7k&GwH?+6BVlNS271onc*IjClt8K)k}x#bRdXhG7Ux$Fv9YS)pB#tQ{br0TJx$aS%%G~~Q|)JT89OroSD9H$e^0-6(~di6*a6uGL@ z#NxqGEj>ma=j(N`DU_7F96wGHZ}0a#7bRJ!AHo5c2lbNBkVPpki&ZH-NhSM$he}Q{ zcM;PkSgKcR)p9vK&dj2zV)d|A5o95qqQCM|QK$%|^u*&|QKn#+(3v_l*zDT2+ZA?X=kE1lY~){iIXN$tz;fm9<40Pju2bYNV3zJYD&=5l}tn; zS(38j2HA93bk~2-MGFkNEsFku7M*1ablpW)MOR(6z@Xtx2tQi1|m*kEOd2ZxTEo`>!jOSC41_=ZrY=<)`-ZN zk(8{NeOEU+XWwdrn9ataMVdQ0Ij~H71Op=yFqn^L*C9&KbE3A$2ri3~A*x`6IQ!|l z*2hA}967rYJ}Zm)mg>Cv2D}X&3*J?G);HjNX{(k+>=CSGao<$k?nw#5s{6q+UDR^E z)$&Vs9dT~iFE(0wci@*9xIYTONeey1uygF;7^}s@#7M8Lr zDoYSt4iMO)e8f^RxWsEjtXvZ-9b#r&EQHLyCJ+cZ4`<*-?bwV>vD4 z-W@_HT7h#!MYaWkYo;Z#Q>=Sk#b4*%>0u5E3eR;uh3h5SNn0FUS|%EZ79wqA0f-`Dq`MSjxhAZg4Ut$CjtFsdPlN(}J3pyR-o3E!9StO^zc^e0BUE z`7!AdfN+SSw~`Zsg)B^ph2%N5#ru(42)&rF)c;~Izd_t@LDx@Ug7#;j={?l+zxi8` z3g!e4F($H;#?c@nHkI;lRqNZ-OvT1rB#J{iJ^Hkd<%^)hY@E(6r8z%$G{!yc!-Mo8 z%pa(SmWie5_-xz>L)cP(#$at*I7NIL!I}>_fQ2d$5gMoI?CBAa9>H{jiDJwvu+PdG+z_0sS4LmRMfF>3?Wi@ zi`d9p{3#9>>qND+J&|JX)Av|H(*ihZ>uf6?j&j3JFw2@AZ3% zrs5>6yNAiC!SY7{m^GF{Va-X#(eZQHtC6v7AQ|nKe5*$=-&0>RvDmJ=crI|9B(RLX ze5`7{SwdQa*?lqO^9|=%q?aQ%6p>7e-@)FiuwWy^>NaU9fyA5{A#0>9Sn_3<22sp* zP}Bt`>h3VL{2brZ5$ZpMYbT0BaC4pH;;16)FlE{}0V=zP$ys#lT=q$%K9OnfIc-aI zwY>@z!^8GIEb4~V?YD@st7@+l*JQs*2{)LMF2E#925d45_#!TS0T(@-rVEZ@;Z#AJ z(?zDxvk??3aJ;8kuwAPaQIAHg zRIMx3TCq-_w#)Tuu~1qs71vN_lvA#hi>T)$jOWXrCB{;l@ZQmY3W&tc(xcJDGUfPq zBhvdp*QLImfCZYL;$;LV&Y2#0okMoUoTh;1b2V>Ff|(dI^{I1Gt1p>5`6V z>pmo|4D+>DY!so=1+MQ3Q~{b2$5b1JL9>kJgHwTpVpUxFWPq&n`hX;-(dN1A z&>X2#LM)sa(@fznLiGcQf)dobml4U+R=pW@*mO(8w)ouYX$zlOzd z{)uExqa^NdFPn$XNjL#tFvx3H31rq7)r*eCF5YHz2N^idJfHdure2EqP`U+^II$~u z$`h0Lf|qqnWjp|G8Xc*52gdP+DM*RMrmMKO)3&ZB_5=p_lMBPB|))X47zy+^COX!ISHa zI@BsY3LhV72jhGh?s|;E8`zpW5l6M*bJI}h_z>bOrD=fKh;$lqaQ&YJfPghT|BQh% z6`gydXCpt;%7dUXux4`=o44k&*4V738xWjL=Ni-bro?roC;#B4zQU+HQxysM z@pzb`zeg8`&W0zrI7D+cb$`rVymY#{VHclC?|;YOQb;F14;|@Yq_}3eO!t@u?0yy!=g(jOew5sgc596QH)Xx ze~H0dc%+u@MLIi7p6)d5cZ{ zosWN5;mb|@()X{itDHHPqujY%fIXMnS=l|$u6iHd@vrFb^RH)tk8N~P*0qQaZH$tC K5PJ)60sapxOrkXa diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Vehicles.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/GPBMetadata/Google/Maps/Fleetengine/V1/Vehicles.php deleted file mode 100644 index e3dd430a3bf43572325505b3aa161cfa0b9862b7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4391 zcmb_gUvt{n6))JN_OU~-Y$q~~6NU9o9M2ZUPN&nw&9(vrVS|B1!fraus6t$@W`(4Y z1gV?x2k2|x`_jjLfO!$?TLDgzouwf9IUvxtCx4+PQGx zGoeN-;%Yt_2>naJzaWC++P(!Wn z-YFXBRj&>7&W=t1bW`&@;Vd)+??J$iGwGX#E_lA?9rD!cF4xbs&+6jGalfk5=?mQP$uGkX={>8|1Uw%bP0 zVsS+L8HDuB!Hdu>HD?TkgCNFY@m7$p1mB&IdGCVY5`W@aCoFDi;A-~Nivdh@j9%3s z=Ac9_w5egc#p3m@u8n+1wL`)TezI0fhUOFY>F#H^Dh3vWuZ^7_p?mIXjze58UX`Wt zXI~j%;>5vVmZvJ#^T7;Rit}^$=PtbXevtQg{ zdfp0alkC$_n*GA+EBFygp}8kF1>S{F1nar~tieyij^Q?7nRXqY5E2KgrKNw1OWZHv ze%P2Qtxm!xaV>rPEFZJ0d}v3eg4_vgc@xL6T_gpTdyVj`w3Nh9NaVS&oOySo?!9o{Uvp zLv}IzOa30}r?@WxG#}&aPkfAW1^ulZe}0!uF_PxWupWU#_sFlZfDZ0bjww-HjtGfBuYs>!R^6z1T(XsdSo<4 z(D^O&y~-)D7rTr((S}1q=O5p(Q6-RR+vcT-6kkF1rW;-6svojC#RjGMe88+`^FieX zb&92(pAkS%nqR}y_~?i=P#qh)ndk3-kk;C{cF6>}uVBX|V+|?M8mR*VOC9N69pij* zJ)UD$c5lUlME~;mOfx40i)R}rlNf!N=dc?2^Z19X2I8w`Var9>m}#jI^qG%^8$kaUw)&d>E!{8sCYIJW$$)=^>MOXT z4GU+?h;=8Ujfux+aVh6YJQmbeG7rkuCb^VgEpkUE)Vs$8m<-_HS zeBvlZrt`HC!Eul{NansvKzcEYTm$%s;jx>UKW&OVX%B({l|DXYB|m{X(O@iObMj&HXnC`)7tX(aexWJA_Wsh)g?3am2;G;C>J5uB{C) zi+CQ?FR--f+>&CE`4ofs4qB4~W3-VH*&ncU=3a6tq&)x9jFRx?|KchyQFev4~L73wYIEQ>atjBNEJ$FO;s*;B>ckQ zkn(QHi;c#I<(If;u(xQx+UiKPPOICjsJO$o$doUkuqdLu?z9vIq3KB9bdfaWTXCcg z|B-r>hY=VhQBkDMTLx`c4j@>3M*-;6>dhKL@C33q7IFWx^(6NQHgBv~yNw2N z{!`e!v49uiYs<^rW8iNH1lhqF&7=UPRBgPZVR{*5Zq!rp?+ z!pp8)!u()?ExbLicW@xdGKPx)Ei84L?MAm&!_HYQ{VM@aaPCA0pqQh7X(cRVubuc^ zRX6R)Ad;p7Yh>TP^5ZnaTmRgYbNVL>zy6wBDp#eyC9^el=g-p{Wxh)9{1W@qAb)oB zU9{K>{t*ann89)n{}cE=xfduGi&VQ Pb17$%!PWT+t^ocAm(z9? diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryInfo.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryInfo.php deleted file mode 100644 index ae3acb5ba812..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryInfo.php +++ /dev/null @@ -1,135 +0,0 @@ -maps.fleetengine.v1.BatteryInfo - */ -class BatteryInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Status of the battery, whether full or charging etc. - * - * Generated from protobuf field .maps.fleetengine.v1.BatteryStatus battery_status = 1; - */ - protected $battery_status = 0; - /** - * Status of battery power source. - * - * Generated from protobuf field .maps.fleetengine.v1.PowerSource power_source = 2; - */ - protected $power_source = 0; - /** - * Current battery percentage [0-100]. - * - * Generated from protobuf field float battery_percentage = 3; - */ - protected $battery_percentage = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $battery_status - * Status of the battery, whether full or charging etc. - * @type int $power_source - * Status of battery power source. - * @type float $battery_percentage - * Current battery percentage [0-100]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); - parent::__construct($data); - } - - /** - * Status of the battery, whether full or charging etc. - * - * Generated from protobuf field .maps.fleetengine.v1.BatteryStatus battery_status = 1; - * @return int - */ - public function getBatteryStatus() - { - return $this->battery_status; - } - - /** - * Status of the battery, whether full or charging etc. - * - * Generated from protobuf field .maps.fleetengine.v1.BatteryStatus battery_status = 1; - * @param int $var - * @return $this - */ - public function setBatteryStatus($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\BatteryStatus::class); - $this->battery_status = $var; - - return $this; - } - - /** - * Status of battery power source. - * - * Generated from protobuf field .maps.fleetengine.v1.PowerSource power_source = 2; - * @return int - */ - public function getPowerSource() - { - return $this->power_source; - } - - /** - * Status of battery power source. - * - * Generated from protobuf field .maps.fleetengine.v1.PowerSource power_source = 2; - * @param int $var - * @return $this - */ - public function setPowerSource($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\PowerSource::class); - $this->power_source = $var; - - return $this; - } - - /** - * Current battery percentage [0-100]. - * - * Generated from protobuf field float battery_percentage = 3; - * @return float - */ - public function getBatteryPercentage() - { - return $this->battery_percentage; - } - - /** - * Current battery percentage [0-100]. - * - * Generated from protobuf field float battery_percentage = 3; - * @param float $var - * @return $this - */ - public function setBatteryPercentage($var) - { - GPBUtil::checkFloat($var); - $this->battery_percentage = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryStatus.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryStatus.php deleted file mode 100644 index 618208d92d46..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BatteryStatus.php +++ /dev/null @@ -1,82 +0,0 @@ -maps.fleetengine.v1.BatteryStatus - */ -class BatteryStatus -{ - /** - * Battery status unknown. - * - * Generated from protobuf enum UNKNOWN_BATTERY_STATUS = 0; - */ - const UNKNOWN_BATTERY_STATUS = 0; - /** - * Battery is being charged. - * - * Generated from protobuf enum BATTERY_STATUS_CHARGING = 1; - */ - const BATTERY_STATUS_CHARGING = 1; - /** - * Battery is discharging. - * - * Generated from protobuf enum BATTERY_STATUS_DISCHARGING = 2; - */ - const BATTERY_STATUS_DISCHARGING = 2; - /** - * Battery is full. - * - * Generated from protobuf enum BATTERY_STATUS_FULL = 3; - */ - const BATTERY_STATUS_FULL = 3; - /** - * Battery is not charging. - * - * Generated from protobuf enum BATTERY_STATUS_NOT_CHARGING = 4; - */ - const BATTERY_STATUS_NOT_CHARGING = 4; - /** - * Battery is low on power. - * - * Generated from protobuf enum BATTERY_STATUS_POWER_LOW = 5; - */ - const BATTERY_STATUS_POWER_LOW = 5; - - private static $valueToName = [ - self::UNKNOWN_BATTERY_STATUS => 'UNKNOWN_BATTERY_STATUS', - self::BATTERY_STATUS_CHARGING => 'BATTERY_STATUS_CHARGING', - self::BATTERY_STATUS_DISCHARGING => 'BATTERY_STATUS_DISCHARGING', - self::BATTERY_STATUS_FULL => 'BATTERY_STATUS_FULL', - self::BATTERY_STATUS_NOT_CHARGING => 'BATTERY_STATUS_NOT_CHARGING', - self::BATTERY_STATUS_POWER_LOW => 'BATTERY_STATUS_POWER_LOW', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BillingPlatformIdentifier.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BillingPlatformIdentifier.php deleted file mode 100644 index 6b3b7e454bdd..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/BillingPlatformIdentifier.php +++ /dev/null @@ -1,82 +0,0 @@ -maps.fleetengine.v1.BillingPlatformIdentifier - */ -class BillingPlatformIdentifier -{ - /** - * Default. Used for unspecified platforms. - * - * Generated from protobuf enum BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED = 0; - */ - const BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED = 0; - /** - * The platform is a client server. - * - * Generated from protobuf enum SERVER = 1; - */ - const SERVER = 1; - /** - * The platform is a web browser. - * - * Generated from protobuf enum WEB = 2; - */ - const WEB = 2; - /** - * The platform is an Android mobile device. - * - * Generated from protobuf enum ANDROID = 3; - */ - const ANDROID = 3; - /** - * The platform is an IOS mobile device. - * - * Generated from protobuf enum IOS = 4; - */ - const IOS = 4; - /** - * Other platforms that are not listed in this enumeration. - * - * Generated from protobuf enum OTHERS = 5; - */ - const OTHERS = 5; - - private static $valueToName = [ - self::BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED => 'BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED', - self::SERVER => 'SERVER', - self::WEB => 'WEB', - self::ANDROID => 'ANDROID', - self::IOS => 'IOS', - self::OTHERS => 'OTHERS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ConsumableTrafficPolyline.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ConsumableTrafficPolyline.php deleted file mode 100644 index e9320fa4cdb4..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ConsumableTrafficPolyline.php +++ /dev/null @@ -1,117 +0,0 @@ -maps.fleetengine.v1.ConsumableTrafficPolyline - */ -class ConsumableTrafficPolyline extends \Google\Protobuf\Internal\Message -{ - /** - * Traffic speed along the path from the previous waypoint to the current - * waypoint. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.SpeedReadingInterval speed_reading_interval = 1; - */ - private $speed_reading_interval; - /** - * The path the driver is taking from the previous waypoint to the current - * waypoint. This path has landmarks in it so clients can show traffic markers - * along the path (see `speed_reading_interval`). Decoding is not yet - * supported. - * - * Generated from protobuf field string encoded_path_to_waypoint = 2; - */ - protected $encoded_path_to_waypoint = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Maps\FleetEngine\V1\SpeedReadingInterval>|\Google\Protobuf\Internal\RepeatedField $speed_reading_interval - * Traffic speed along the path from the previous waypoint to the current - * waypoint. - * @type string $encoded_path_to_waypoint - * The path the driver is taking from the previous waypoint to the current - * waypoint. This path has landmarks in it so clients can show traffic markers - * along the path (see `speed_reading_interval`). Decoding is not yet - * supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Traffic::initOnce(); - parent::__construct($data); - } - - /** - * Traffic speed along the path from the previous waypoint to the current - * waypoint. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.SpeedReadingInterval speed_reading_interval = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSpeedReadingInterval() - { - return $this->speed_reading_interval; - } - - /** - * Traffic speed along the path from the previous waypoint to the current - * waypoint. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.SpeedReadingInterval speed_reading_interval = 1; - * @param array<\Google\Maps\FleetEngine\V1\SpeedReadingInterval>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSpeedReadingInterval($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\SpeedReadingInterval::class); - $this->speed_reading_interval = $arr; - - return $this; - } - - /** - * The path the driver is taking from the previous waypoint to the current - * waypoint. This path has landmarks in it so clients can show traffic markers - * along the path (see `speed_reading_interval`). Decoding is not yet - * supported. - * - * Generated from protobuf field string encoded_path_to_waypoint = 2; - * @return string - */ - public function getEncodedPathToWaypoint() - { - return $this->encoded_path_to_waypoint; - } - - /** - * The path the driver is taking from the previous waypoint to the current - * waypoint. This path has landmarks in it so clients can show traffic markers - * along the path (see `speed_reading_interval`). Decoding is not yet - * supported. - * - * Generated from protobuf field string encoded_path_to_waypoint = 2; - * @param string $var - * @return $this - */ - public function setEncodedPathToWaypoint($var) - { - GPBUtil::checkString($var, True); - $this->encoded_path_to_waypoint = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateTripRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateTripRequest.php deleted file mode 100644 index d98b71603eaf..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateTripRequest.php +++ /dev/null @@ -1,329 +0,0 @@ -maps.fleetengine.v1.CreateTripRequest - */ -class CreateTripRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - */ - protected $header = null; - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Unique Trip ID. - * Subject to the following restrictions: - * * Must be a valid Unicode string. - * * Limited to a maximum length of 64 characters. - * * Normalized according to [Unicode Normalization Form C] - * (http://www.unicode.org/reports/tr15/). - * * May not contain any of the following ASCII characters: '/', ':', '?', - * ',', or '#'. - * - * Generated from protobuf field string trip_id = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $trip_id = ''; - /** - * Required. Trip entity to create. - * When creating a Trip, the following fields are required: - * * `trip_type` - * * `pickup_point` - * The following fields are used if you provide them: - * * `number_of_passengers` - * * `vehicle_id` - * * `dropoff_point` - * * `intermediate_destinations` - * * `vehicle_waypoints` - * All other Trip fields are ignored. For example, all trips start with a - * `trip_status` of `NEW` even if you pass in a `trip_status` of `CANCELED` in - * the creation request. - * Only `EXCLUSIVE` trips support `intermediate_destinations`. - * When `vehicle_id` is set for a shared trip, you must supply - * the list of `Trip.vehicle_waypoints` to specify the order of the remaining - * waypoints for the vehicle, otherwise the waypoint order will be - * undetermined. - * When you specify `Trip.vehicle_waypoints`, the list must contain all - * the remaining waypoints of the vehicle's trips, with no extra waypoints. - * You must order these waypoints such that for a given trip, the pickup - * point is before intermediate destinations, and all intermediate - * destinations come before the drop-off point. An `EXCLUSIVE` trip's - * waypoints must not interleave with any other trips. - * The `trip_id`, `waypoint_type` and `location` fields are used, and all - * other TripWaypoint fields in `vehicle_waypoints` are ignored. - * - * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $trip = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\RequestHeader $header - * The standard Fleet Engine request header. - * @type string $parent - * Required. Must be in the format `providers/{provider}`. - * 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. - * @type string $trip_id - * Required. Unique Trip ID. - * Subject to the following restrictions: - * * Must be a valid Unicode string. - * * Limited to a maximum length of 64 characters. - * * Normalized according to [Unicode Normalization Form C] - * (http://www.unicode.org/reports/tr15/). - * * May not contain any of the following ASCII characters: '/', ':', '?', - * ',', or '#'. - * @type \Google\Maps\FleetEngine\V1\Trip $trip - * Required. Trip entity to create. - * When creating a Trip, the following fields are required: - * * `trip_type` - * * `pickup_point` - * The following fields are used if you provide them: - * * `number_of_passengers` - * * `vehicle_id` - * * `dropoff_point` - * * `intermediate_destinations` - * * `vehicle_waypoints` - * All other Trip fields are ignored. For example, all trips start with a - * `trip_status` of `NEW` even if you pass in a `trip_status` of `CANCELED` in - * the creation request. - * Only `EXCLUSIVE` trips support `intermediate_destinations`. - * When `vehicle_id` is set for a shared trip, you must supply - * the list of `Trip.vehicle_waypoints` to specify the order of the remaining - * waypoints for the vehicle, otherwise the waypoint order will be - * undetermined. - * When you specify `Trip.vehicle_waypoints`, the list must contain all - * the remaining waypoints of the vehicle's trips, with no extra waypoints. - * You must order these waypoints such that for a given trip, the pickup - * point is before intermediate destinations, and all intermediate - * destinations come before the drop-off point. An `EXCLUSIVE` trip's - * waypoints must not interleave with any other trips. - * The `trip_id`, `waypoint_type` and `location` fields are used, and all - * other TripWaypoint fields in `vehicle_waypoints` are ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); - parent::__construct($data); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @return \Google\Maps\FleetEngine\V1\RequestHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @param \Google\Maps\FleetEngine\V1\RequestHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); - $this->header = $var; - - return $this; - } - - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Unique Trip ID. - * Subject to the following restrictions: - * * Must be a valid Unicode string. - * * Limited to a maximum length of 64 characters. - * * Normalized according to [Unicode Normalization Form C] - * (http://www.unicode.org/reports/tr15/). - * * May not contain any of the following ASCII characters: '/', ':', '?', - * ',', or '#'. - * - * Generated from protobuf field string trip_id = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTripId() - { - return $this->trip_id; - } - - /** - * Required. Unique Trip ID. - * Subject to the following restrictions: - * * Must be a valid Unicode string. - * * Limited to a maximum length of 64 characters. - * * Normalized according to [Unicode Normalization Form C] - * (http://www.unicode.org/reports/tr15/). - * * May not contain any of the following ASCII characters: '/', ':', '?', - * ',', or '#'. - * - * Generated from protobuf field string trip_id = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTripId($var) - { - GPBUtil::checkString($var, True); - $this->trip_id = $var; - - return $this; - } - - /** - * Required. Trip entity to create. - * When creating a Trip, the following fields are required: - * * `trip_type` - * * `pickup_point` - * The following fields are used if you provide them: - * * `number_of_passengers` - * * `vehicle_id` - * * `dropoff_point` - * * `intermediate_destinations` - * * `vehicle_waypoints` - * All other Trip fields are ignored. For example, all trips start with a - * `trip_status` of `NEW` even if you pass in a `trip_status` of `CANCELED` in - * the creation request. - * Only `EXCLUSIVE` trips support `intermediate_destinations`. - * When `vehicle_id` is set for a shared trip, you must supply - * the list of `Trip.vehicle_waypoints` to specify the order of the remaining - * waypoints for the vehicle, otherwise the waypoint order will be - * undetermined. - * When you specify `Trip.vehicle_waypoints`, the list must contain all - * the remaining waypoints of the vehicle's trips, with no extra waypoints. - * You must order these waypoints such that for a given trip, the pickup - * point is before intermediate destinations, and all intermediate - * destinations come before the drop-off point. An `EXCLUSIVE` trip's - * waypoints must not interleave with any other trips. - * The `trip_id`, `waypoint_type` and `location` fields are used, and all - * other TripWaypoint fields in `vehicle_waypoints` are ignored. - * - * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Maps\FleetEngine\V1\Trip|null - */ - public function getTrip() - { - return $this->trip; - } - - public function hasTrip() - { - return isset($this->trip); - } - - public function clearTrip() - { - unset($this->trip); - } - - /** - * Required. Trip entity to create. - * When creating a Trip, the following fields are required: - * * `trip_type` - * * `pickup_point` - * The following fields are used if you provide them: - * * `number_of_passengers` - * * `vehicle_id` - * * `dropoff_point` - * * `intermediate_destinations` - * * `vehicle_waypoints` - * All other Trip fields are ignored. For example, all trips start with a - * `trip_status` of `NEW` even if you pass in a `trip_status` of `CANCELED` in - * the creation request. - * Only `EXCLUSIVE` trips support `intermediate_destinations`. - * When `vehicle_id` is set for a shared trip, you must supply - * the list of `Trip.vehicle_waypoints` to specify the order of the remaining - * waypoints for the vehicle, otherwise the waypoint order will be - * undetermined. - * When you specify `Trip.vehicle_waypoints`, the list must contain all - * the remaining waypoints of the vehicle's trips, with no extra waypoints. - * You must order these waypoints such that for a given trip, the pickup - * point is before intermediate destinations, and all intermediate - * destinations come before the drop-off point. An `EXCLUSIVE` trip's - * waypoints must not interleave with any other trips. - * The `trip_id`, `waypoint_type` and `location` fields are used, and all - * other TripWaypoint fields in `vehicle_waypoints` are ignored. - * - * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Maps\FleetEngine\V1\Trip $var - * @return $this - */ - public function setTrip($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Trip::class); - $this->trip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateVehicleRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateVehicleRequest.php deleted file mode 100644 index 5cb20e991a11..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/CreateVehicleRequest.php +++ /dev/null @@ -1,313 +0,0 @@ -maps.fleetengine.v1.CreateVehicleRequest - */ -class CreateVehicleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - */ - protected $header = null; - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * Required. Unique Vehicle ID. - * Subject to the following restrictions: - * * Must be a valid Unicode string. - * * Limited to a maximum length of 64 characters. - * * Normalized according to [Unicode Normalization Form C] - * (http://www.unicode.org/reports/tr15/). - * * May not contain any of the following ASCII characters: '/', ':', '?', - * ',', or '#'. - * - * Generated from protobuf field string vehicle_id = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $vehicle_id = ''; - /** - * Required. The Vehicle entity to create. When creating a Vehicle, the - * following fields are required: - * * `vehicleState` - * * `supportedTripTypes` - * * `maximumCapacity` - * * `vehicleType` - * When creating a Vehicle, the following fields are ignored: - * * `name` - * * `currentTrips` - * * `availableCapacity` - * * `current_route_segment` - * * `current_route_segment_end_point` - * * `current_route_segment_version` - * * `current_route_segment_traffic` - * * `route` - * * `waypoints` - * * `waypoints_version` - * * `remaining_distance_meters` - * * `remaining_time_seconds` - * * `eta_to_next_waypoint` - * * `navigation_status` - * All other fields are optional and used if provided. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $vehicle = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\RequestHeader $header - * The standard Fleet Engine request header. - * @type string $parent - * Required. Must be in the format `providers/{provider}`. - * 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. - * @type string $vehicle_id - * Required. Unique Vehicle ID. - * Subject to the following restrictions: - * * Must be a valid Unicode string. - * * Limited to a maximum length of 64 characters. - * * Normalized according to [Unicode Normalization Form C] - * (http://www.unicode.org/reports/tr15/). - * * May not contain any of the following ASCII characters: '/', ':', '?', - * ',', or '#'. - * @type \Google\Maps\FleetEngine\V1\Vehicle $vehicle - * Required. The Vehicle entity to create. When creating a Vehicle, the - * following fields are required: - * * `vehicleState` - * * `supportedTripTypes` - * * `maximumCapacity` - * * `vehicleType` - * When creating a Vehicle, the following fields are ignored: - * * `name` - * * `currentTrips` - * * `availableCapacity` - * * `current_route_segment` - * * `current_route_segment_end_point` - * * `current_route_segment_version` - * * `current_route_segment_traffic` - * * `route` - * * `waypoints` - * * `waypoints_version` - * * `remaining_distance_meters` - * * `remaining_time_seconds` - * * `eta_to_next_waypoint` - * * `navigation_status` - * All other fields are optional and used if provided. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @return \Google\Maps\FleetEngine\V1\RequestHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @param \Google\Maps\FleetEngine\V1\RequestHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); - $this->header = $var; - - return $this; - } - - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Unique Vehicle ID. - * Subject to the following restrictions: - * * Must be a valid Unicode string. - * * Limited to a maximum length of 64 characters. - * * Normalized according to [Unicode Normalization Form C] - * (http://www.unicode.org/reports/tr15/). - * * May not contain any of the following ASCII characters: '/', ':', '?', - * ',', or '#'. - * - * Generated from protobuf field string vehicle_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getVehicleId() - { - return $this->vehicle_id; - } - - /** - * Required. Unique Vehicle ID. - * Subject to the following restrictions: - * * Must be a valid Unicode string. - * * Limited to a maximum length of 64 characters. - * * Normalized according to [Unicode Normalization Form C] - * (http://www.unicode.org/reports/tr15/). - * * May not contain any of the following ASCII characters: '/', ':', '?', - * ',', or '#'. - * - * Generated from protobuf field string vehicle_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setVehicleId($var) - { - GPBUtil::checkString($var, True); - $this->vehicle_id = $var; - - return $this; - } - - /** - * Required. The Vehicle entity to create. When creating a Vehicle, the - * following fields are required: - * * `vehicleState` - * * `supportedTripTypes` - * * `maximumCapacity` - * * `vehicleType` - * When creating a Vehicle, the following fields are ignored: - * * `name` - * * `currentTrips` - * * `availableCapacity` - * * `current_route_segment` - * * `current_route_segment_end_point` - * * `current_route_segment_version` - * * `current_route_segment_traffic` - * * `route` - * * `waypoints` - * * `waypoints_version` - * * `remaining_distance_meters` - * * `remaining_time_seconds` - * * `eta_to_next_waypoint` - * * `navigation_status` - * All other fields are optional and used if provided. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Maps\FleetEngine\V1\Vehicle|null - */ - public function getVehicle() - { - return $this->vehicle; - } - - public function hasVehicle() - { - return isset($this->vehicle); - } - - public function clearVehicle() - { - unset($this->vehicle); - } - - /** - * Required. The Vehicle entity to create. When creating a Vehicle, the - * following fields are required: - * * `vehicleState` - * * `supportedTripTypes` - * * `maximumCapacity` - * * `vehicleType` - * When creating a Vehicle, the following fields are ignored: - * * `name` - * * `currentTrips` - * * `availableCapacity` - * * `current_route_segment` - * * `current_route_segment_end_point` - * * `current_route_segment_version` - * * `current_route_segment_traffic` - * * `route` - * * `waypoints` - * * `waypoints_version` - * * `remaining_distance_meters` - * * `remaining_time_seconds` - * * `eta_to_next_waypoint` - * * `navigation_status` - * All other fields are optional and used if provided. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Maps\FleetEngine\V1\Vehicle $var - * @return $this - */ - public function setVehicle($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Vehicle::class); - $this->vehicle = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/DeviceSettings.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/DeviceSettings.php deleted file mode 100644 index 7cd163b718f0..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/DeviceSettings.php +++ /dev/null @@ -1,183 +0,0 @@ -maps.fleetengine.v1.DeviceSettings - */ -class DeviceSettings extends \Google\Protobuf\Internal\Message -{ - /** - * How location features are set to behave on the device when battery saver is - * on. - * - * Generated from protobuf field .maps.fleetengine.v1.LocationPowerSaveMode location_power_save_mode = 1; - */ - protected $location_power_save_mode = 0; - /** - * Whether the device is currently in power save mode. - * - * Generated from protobuf field bool is_power_save_mode = 2; - */ - protected $is_power_save_mode = false; - /** - * Whether the device is in an interactive state. - * - * Generated from protobuf field bool is_interactive = 3; - */ - protected $is_interactive = false; - /** - * Information about the battery state. - * - * Generated from protobuf field .maps.fleetengine.v1.BatteryInfo battery_info = 4; - */ - protected $battery_info = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $location_power_save_mode - * How location features are set to behave on the device when battery saver is - * on. - * @type bool $is_power_save_mode - * Whether the device is currently in power save mode. - * @type bool $is_interactive - * Whether the device is in an interactive state. - * @type \Google\Maps\FleetEngine\V1\BatteryInfo $battery_info - * Information about the battery state. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); - parent::__construct($data); - } - - /** - * How location features are set to behave on the device when battery saver is - * on. - * - * Generated from protobuf field .maps.fleetengine.v1.LocationPowerSaveMode location_power_save_mode = 1; - * @return int - */ - public function getLocationPowerSaveMode() - { - return $this->location_power_save_mode; - } - - /** - * How location features are set to behave on the device when battery saver is - * on. - * - * Generated from protobuf field .maps.fleetengine.v1.LocationPowerSaveMode location_power_save_mode = 1; - * @param int $var - * @return $this - */ - public function setLocationPowerSaveMode($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\LocationPowerSaveMode::class); - $this->location_power_save_mode = $var; - - return $this; - } - - /** - * Whether the device is currently in power save mode. - * - * Generated from protobuf field bool is_power_save_mode = 2; - * @return bool - */ - public function getIsPowerSaveMode() - { - return $this->is_power_save_mode; - } - - /** - * Whether the device is currently in power save mode. - * - * Generated from protobuf field bool is_power_save_mode = 2; - * @param bool $var - * @return $this - */ - public function setIsPowerSaveMode($var) - { - GPBUtil::checkBool($var); - $this->is_power_save_mode = $var; - - return $this; - } - - /** - * Whether the device is in an interactive state. - * - * Generated from protobuf field bool is_interactive = 3; - * @return bool - */ - public function getIsInteractive() - { - return $this->is_interactive; - } - - /** - * Whether the device is in an interactive state. - * - * Generated from protobuf field bool is_interactive = 3; - * @param bool $var - * @return $this - */ - public function setIsInteractive($var) - { - GPBUtil::checkBool($var); - $this->is_interactive = $var; - - return $this; - } - - /** - * Information about the battery state. - * - * Generated from protobuf field .maps.fleetengine.v1.BatteryInfo battery_info = 4; - * @return \Google\Maps\FleetEngine\V1\BatteryInfo|null - */ - public function getBatteryInfo() - { - return $this->battery_info; - } - - public function hasBatteryInfo() - { - return isset($this->battery_info); - } - - public function clearBatteryInfo() - { - unset($this->battery_info); - } - - /** - * Information about the battery state. - * - * Generated from protobuf field .maps.fleetengine.v1.BatteryInfo battery_info = 4; - * @param \Google\Maps\FleetEngine\V1\BatteryInfo $var - * @return $this - */ - public function setBatteryInfo($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\BatteryInfo::class); - $this->battery_info = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetTripRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetTripRequest.php deleted file mode 100644 index 471812e6a653..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetTripRequest.php +++ /dev/null @@ -1,439 +0,0 @@ -maps.fleetengine.v1.GetTripRequest - */ -class GetTripRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - */ - protected $header = null; - /** - * Required. Must be in the format `providers/{provider}/trips/{trip}`. - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The subset of Trip fields that should be returned and their interpretation. - * - * Generated from protobuf field .maps.fleetengine.v1.TripView view = 11; - */ - protected $view = 0; - /** - * Indicates the minimum timestamp (exclusive) for which `Trip.route` or - * `Trip.current_route_segment` data are retrieved. If route data are - * unchanged since this timestamp, the route field is not set in the response. - * If a minimum is unspecified, the route data are always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 6; - */ - protected $current_route_segment_version = null; - /** - * Indicates the minimum timestamp (exclusive) for which - * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this - * timestamp, the `remaining_waypoints` are not set in the response. If this - * field is unspecified, `remaining_waypoints` is always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 7; - */ - protected $remaining_waypoints_version = null; - /** - * The returned current route format, `LAT_LNG_LIST_TYPE` (in `Trip.route`), - * or `ENCODED_POLYLINE_TYPE` (in `Trip.current_route_segment`). The default - * is `LAT_LNG_LIST_TYPE`. - * - * Generated from protobuf field .maps.fleetengine.v1.PolylineFormatType route_format_type = 8; - */ - protected $route_format_type = 0; - /** - * Indicates the minimum timestamp (exclusive) for which - * `Trip.current_route_segment_traffic` is retrieved. If traffic data are - * unchanged since this timestamp, the `current_route_segment_traffic` field - * is not set in the response. If a minimum is unspecified, the traffic data - * are always retrieved. Note that traffic is only available for On-Demand - * Rides and Deliveries Solution customers. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 9; - */ - protected $current_route_segment_traffic_version = null; - /** - * Indicates the minimum timestamp (exclusive) for which - * `Trip.remaining_waypoints.traffic_to_waypoint` and - * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved. If data are - * unchanged since this timestamp, the fields above are - * not set in the response. If `remaining_waypoints_route_version` is - * unspecified, traffic and path are always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 10; - */ - protected $remaining_waypoints_route_version = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\RequestHeader $header - * The standard Fleet Engine request header. - * @type string $name - * Required. Must be in the format `providers/{provider}/trips/{trip}`. - * 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. - * @type int $view - * The subset of Trip fields that should be returned and their interpretation. - * @type \Google\Protobuf\Timestamp $current_route_segment_version - * Indicates the minimum timestamp (exclusive) for which `Trip.route` or - * `Trip.current_route_segment` data are retrieved. If route data are - * unchanged since this timestamp, the route field is not set in the response. - * If a minimum is unspecified, the route data are always retrieved. - * @type \Google\Protobuf\Timestamp $remaining_waypoints_version - * Indicates the minimum timestamp (exclusive) for which - * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this - * timestamp, the `remaining_waypoints` are not set in the response. If this - * field is unspecified, `remaining_waypoints` is always retrieved. - * @type int $route_format_type - * The returned current route format, `LAT_LNG_LIST_TYPE` (in `Trip.route`), - * or `ENCODED_POLYLINE_TYPE` (in `Trip.current_route_segment`). The default - * is `LAT_LNG_LIST_TYPE`. - * @type \Google\Protobuf\Timestamp $current_route_segment_traffic_version - * Indicates the minimum timestamp (exclusive) for which - * `Trip.current_route_segment_traffic` is retrieved. If traffic data are - * unchanged since this timestamp, the `current_route_segment_traffic` field - * is not set in the response. If a minimum is unspecified, the traffic data - * are always retrieved. Note that traffic is only available for On-Demand - * Rides and Deliveries Solution customers. - * @type \Google\Protobuf\Timestamp $remaining_waypoints_route_version - * Indicates the minimum timestamp (exclusive) for which - * `Trip.remaining_waypoints.traffic_to_waypoint` and - * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved. If data are - * unchanged since this timestamp, the fields above are - * not set in the response. If `remaining_waypoints_route_version` is - * unspecified, traffic and path are always retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); - parent::__construct($data); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @return \Google\Maps\FleetEngine\V1\RequestHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @param \Google\Maps\FleetEngine\V1\RequestHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); - $this->header = $var; - - return $this; - } - - /** - * Required. Must be in the format `providers/{provider}/trips/{trip}`. - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Must be in the format `providers/{provider}/trips/{trip}`. - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The subset of Trip fields that should be returned and their interpretation. - * - * Generated from protobuf field .maps.fleetengine.v1.TripView view = 11; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * The subset of Trip fields that should be returned and their interpretation. - * - * Generated from protobuf field .maps.fleetengine.v1.TripView view = 11; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\TripView::class); - $this->view = $var; - - return $this; - } - - /** - * Indicates the minimum timestamp (exclusive) for which `Trip.route` or - * `Trip.current_route_segment` data are retrieved. If route data are - * unchanged since this timestamp, the route field is not set in the response. - * If a minimum is unspecified, the route data are always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCurrentRouteSegmentVersion() - { - return $this->current_route_segment_version; - } - - public function hasCurrentRouteSegmentVersion() - { - return isset($this->current_route_segment_version); - } - - public function clearCurrentRouteSegmentVersion() - { - unset($this->current_route_segment_version); - } - - /** - * Indicates the minimum timestamp (exclusive) for which `Trip.route` or - * `Trip.current_route_segment` data are retrieved. If route data are - * unchanged since this timestamp, the route field is not set in the response. - * If a minimum is unspecified, the route data are always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCurrentRouteSegmentVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->current_route_segment_version = $var; - - return $this; - } - - /** - * Indicates the minimum timestamp (exclusive) for which - * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this - * timestamp, the `remaining_waypoints` are not set in the response. If this - * field is unspecified, `remaining_waypoints` is always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 7; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRemainingWaypointsVersion() - { - return $this->remaining_waypoints_version; - } - - public function hasRemainingWaypointsVersion() - { - return isset($this->remaining_waypoints_version); - } - - public function clearRemainingWaypointsVersion() - { - unset($this->remaining_waypoints_version); - } - - /** - * Indicates the minimum timestamp (exclusive) for which - * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this - * timestamp, the `remaining_waypoints` are not set in the response. If this - * field is unspecified, `remaining_waypoints` is always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRemainingWaypointsVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->remaining_waypoints_version = $var; - - return $this; - } - - /** - * The returned current route format, `LAT_LNG_LIST_TYPE` (in `Trip.route`), - * or `ENCODED_POLYLINE_TYPE` (in `Trip.current_route_segment`). The default - * is `LAT_LNG_LIST_TYPE`. - * - * Generated from protobuf field .maps.fleetengine.v1.PolylineFormatType route_format_type = 8; - * @return int - */ - public function getRouteFormatType() - { - return $this->route_format_type; - } - - /** - * The returned current route format, `LAT_LNG_LIST_TYPE` (in `Trip.route`), - * or `ENCODED_POLYLINE_TYPE` (in `Trip.current_route_segment`). The default - * is `LAT_LNG_LIST_TYPE`. - * - * Generated from protobuf field .maps.fleetengine.v1.PolylineFormatType route_format_type = 8; - * @param int $var - * @return $this - */ - public function setRouteFormatType($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\PolylineFormatType::class); - $this->route_format_type = $var; - - return $this; - } - - /** - * Indicates the minimum timestamp (exclusive) for which - * `Trip.current_route_segment_traffic` is retrieved. If traffic data are - * unchanged since this timestamp, the `current_route_segment_traffic` field - * is not set in the response. If a minimum is unspecified, the traffic data - * are always retrieved. Note that traffic is only available for On-Demand - * Rides and Deliveries Solution customers. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 9; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCurrentRouteSegmentTrafficVersion() - { - return $this->current_route_segment_traffic_version; - } - - public function hasCurrentRouteSegmentTrafficVersion() - { - return isset($this->current_route_segment_traffic_version); - } - - public function clearCurrentRouteSegmentTrafficVersion() - { - unset($this->current_route_segment_traffic_version); - } - - /** - * Indicates the minimum timestamp (exclusive) for which - * `Trip.current_route_segment_traffic` is retrieved. If traffic data are - * unchanged since this timestamp, the `current_route_segment_traffic` field - * is not set in the response. If a minimum is unspecified, the traffic data - * are always retrieved. Note that traffic is only available for On-Demand - * Rides and Deliveries Solution customers. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 9; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCurrentRouteSegmentTrafficVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->current_route_segment_traffic_version = $var; - - return $this; - } - - /** - * Indicates the minimum timestamp (exclusive) for which - * `Trip.remaining_waypoints.traffic_to_waypoint` and - * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved. If data are - * unchanged since this timestamp, the fields above are - * not set in the response. If `remaining_waypoints_route_version` is - * unspecified, traffic and path are always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 10; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRemainingWaypointsRouteVersion() - { - return $this->remaining_waypoints_route_version; - } - - public function hasRemainingWaypointsRouteVersion() - { - return isset($this->remaining_waypoints_route_version); - } - - public function clearRemainingWaypointsRouteVersion() - { - unset($this->remaining_waypoints_route_version); - } - - /** - * Indicates the minimum timestamp (exclusive) for which - * `Trip.remaining_waypoints.traffic_to_waypoint` and - * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved. If data are - * unchanged since this timestamp, the fields above are - * not set in the response. If `remaining_waypoints_route_version` is - * unspecified, traffic and path are always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 10; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRemainingWaypointsRouteVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->remaining_waypoints_route_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetVehicleRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetVehicleRequest.php deleted file mode 100644 index 90b14b5176c4..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/GetVehicleRequest.php +++ /dev/null @@ -1,243 +0,0 @@ -maps.fleetengine.v1.GetVehicleRequest - */ -class GetVehicleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - */ - protected $header = null; - /** - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Indicates the minimum timestamp (exclusive) for which - * `Vehicle.current_route_segment` is retrieved. - * If the route is unchanged since this timestamp, the `current_route_segment` - * field is not set in the response. If a minimum is unspecified, the - * `current_route_segment` is always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 4; - */ - protected $current_route_segment_version = null; - /** - * Indicates the minimum timestamp (exclusive) for which `Vehicle.waypoints` - * data is retrieved. If the waypoints are unchanged since this timestamp, the - * `vehicle.waypoints` data is not set in the response. If this field is - * unspecified, `vehicle.waypoints` is always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 5; - */ - protected $waypoints_version = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\RequestHeader $header - * The standard Fleet Engine request header. - * @type string $name - * 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. - * @type \Google\Protobuf\Timestamp $current_route_segment_version - * Indicates the minimum timestamp (exclusive) for which - * `Vehicle.current_route_segment` is retrieved. - * If the route is unchanged since this timestamp, the `current_route_segment` - * field is not set in the response. If a minimum is unspecified, the - * `current_route_segment` is always retrieved. - * @type \Google\Protobuf\Timestamp $waypoints_version - * Indicates the minimum timestamp (exclusive) for which `Vehicle.waypoints` - * data is retrieved. If the waypoints are unchanged since this timestamp, the - * `vehicle.waypoints` data is not set in the response. If this field is - * unspecified, `vehicle.waypoints` is always retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @return \Google\Maps\FleetEngine\V1\RequestHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @param \Google\Maps\FleetEngine\V1\RequestHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); - $this->header = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Indicates the minimum timestamp (exclusive) for which - * `Vehicle.current_route_segment` is retrieved. - * If the route is unchanged since this timestamp, the `current_route_segment` - * field is not set in the response. If a minimum is unspecified, the - * `current_route_segment` is always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCurrentRouteSegmentVersion() - { - return $this->current_route_segment_version; - } - - public function hasCurrentRouteSegmentVersion() - { - return isset($this->current_route_segment_version); - } - - public function clearCurrentRouteSegmentVersion() - { - unset($this->current_route_segment_version); - } - - /** - * Indicates the minimum timestamp (exclusive) for which - * `Vehicle.current_route_segment` is retrieved. - * If the route is unchanged since this timestamp, the `current_route_segment` - * field is not set in the response. If a minimum is unspecified, the - * `current_route_segment` is always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCurrentRouteSegmentVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->current_route_segment_version = $var; - - return $this; - } - - /** - * Indicates the minimum timestamp (exclusive) for which `Vehicle.waypoints` - * data is retrieved. If the waypoints are unchanged since this timestamp, the - * `vehicle.waypoints` data is not set in the response. If this field is - * unspecified, `vehicle.waypoints` is always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 5; - * @return \Google\Protobuf\Timestamp|null - */ - public function getWaypointsVersion() - { - return $this->waypoints_version; - } - - public function hasWaypointsVersion() - { - return isset($this->waypoints_version); - } - - public function clearWaypointsVersion() - { - unset($this->waypoints_version); - } - - /** - * Indicates the minimum timestamp (exclusive) for which `Vehicle.waypoints` - * data is retrieved. If the waypoints are unchanged since this timestamp, the - * `vehicle.waypoints` data is not set in the response. If this field is - * unspecified, `vehicle.waypoints` is always retrieved. - * - * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setWaypointsVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->waypoints_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LicensePlate.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LicensePlate.php deleted file mode 100644 index 8d2fe48298c7..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LicensePlate.php +++ /dev/null @@ -1,123 +0,0 @@ -maps.fleetengine.v1.LicensePlate - */ -class LicensePlate extends \Google\Protobuf\Internal\Message -{ - /** - * Required. CLDR Country/Region Code. For example, `US` for United States, - * or `IN` for India. - * - * Generated from protobuf field string country_code = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $country_code = ''; - /** - * The last digit of the license plate or "-1" to denote no numeric value - * is present in the license plate. - * * "ABC 1234" -> "4" - * * "AB 123 CD" -> "3" - * * "ABCDEF" -> "-1" - * - * Generated from protobuf field string last_character = 2; - */ - protected $last_character = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $country_code - * Required. CLDR Country/Region Code. For example, `US` for United States, - * or `IN` for India. - * @type string $last_character - * The last digit of the license plate or "-1" to denote no numeric value - * is present in the license plate. - * * "ABC 1234" -> "4" - * * "AB 123 CD" -> "3" - * * "ABCDEF" -> "-1" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); - parent::__construct($data); - } - - /** - * Required. CLDR Country/Region Code. For example, `US` for United States, - * or `IN` for India. - * - * Generated from protobuf field string country_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCountryCode() - { - return $this->country_code; - } - - /** - * Required. CLDR Country/Region Code. For example, `US` for United States, - * or `IN` for India. - * - * Generated from protobuf field string country_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCountryCode($var) - { - GPBUtil::checkString($var, True); - $this->country_code = $var; - - return $this; - } - - /** - * The last digit of the license plate or "-1" to denote no numeric value - * is present in the license plate. - * * "ABC 1234" -> "4" - * * "AB 123 CD" -> "3" - * * "ABCDEF" -> "-1" - * - * Generated from protobuf field string last_character = 2; - * @return string - */ - public function getLastCharacter() - { - return $this->last_character; - } - - /** - * The last digit of the license plate or "-1" to denote no numeric value - * is present in the license plate. - * * "ABC 1234" -> "4" - * * "AB 123 CD" -> "3" - * * "ABCDEF" -> "-1" - * - * Generated from protobuf field string last_character = 2; - * @param string $var - * @return $this - */ - public function setLastCharacter($var) - { - GPBUtil::checkString($var, True); - $this->last_character = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesRequest.php deleted file mode 100644 index e9849fa89a77..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesRequest.php +++ /dev/null @@ -1,926 +0,0 @@ -maps.fleetengine.v1.ListVehiclesRequest - */ -class ListVehiclesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 12; - */ - protected $header = null; - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * The maximum number of vehicles to return. - * Default value: 100. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * The value of the `next_page_token` provided by a previous call to - * `ListVehicles` so that you can paginate through groups of vehicles. The - * value is undefined if the filter criteria of the request is not the same as - * the filter criteria for the previous call to `ListVehicles`. - * - * Generated from protobuf field string page_token = 4; - */ - protected $page_token = ''; - /** - * Specifies the required minimum capacity of the vehicle. All vehicles - * returned will have a `maximum_capacity` greater than or equal to this - * value. If set, must be greater or equal to 0. - * - * Generated from protobuf field .google.protobuf.Int32Value minimum_capacity = 6; - */ - protected $minimum_capacity = null; - /** - * Restricts the response to vehicles that support at least one of the - * specified trip types. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 7; - */ - private $trip_types; - /** - * Restricts the response to vehicles that have sent location updates to Fleet - * Engine within the specified duration. Stationary vehicles still - * transmitting their locations are not considered stale. If present, must be - * a valid positive duration. - * - * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 8; - */ - protected $maximum_staleness = null; - /** - * Required. Restricts the response to vehicles with one of the specified type - * categories. `UNKNOWN` is not allowed. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType.Category vehicle_type_categories = 9 [(.google.api.field_behavior) = REQUIRED]; - */ - private $vehicle_type_categories; - /** - * Callers can form complex logical operations using any combination of the - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attribute_sets` fields. - * `required_attributes` is a list; `required_one_of_attributes` uses a - * message which allows a list of lists. In combination, the two fields allow - * the composition of this expression: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR - * ...) - * AND - * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR - * ...) - * ``` - * Restricts the response to vehicles with the specified attributes. This - * field is a conjunction/AND operation. A max of 50 required_attributes is - * allowed. This matches the maximum number of attributes allowed on a - * vehicle. Each repeated string should be of the format "key:value". - * - * Generated from protobuf field repeated string required_attributes = 10; - */ - private $required_attributes; - /** - * Restricts the response to vehicles with at least one of the specified - * attributes in each `VehicleAttributeList`. Within each list, a vehicle must - * match at least one of the attributes. This field is an inclusive - * disjunction/OR operation in each `VehicleAttributeList` and a - * conjunction/AND operation across the collection of `VehicleAttributeList`. - * Each repeated string should be of the format - * "key1:value1|key2:value2|key3:value3". - * - * Generated from protobuf field repeated string required_one_of_attributes = 13; - */ - private $required_one_of_attributes; - /** - * `required_one_of_attribute_sets` provides additional functionality. - * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` - * uses a message which allows a list of lists, allowing expressions such as - * this one: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * ( - * (required_one_of_attribute_sets[0][0] AND - * required_one_of_attribute_sets[0][1] AND - * ...) - * OR - * (required_one_of_attribute_sets[1][0] AND - * required_one_of_attribute_sets[1][1] AND - * ...) - * ) - * ``` - * Restricts the response to vehicles that match all the attributes in a - * `VehicleAttributeList`. Within each list, a vehicle must match all of the - * attributes. This field is a conjunction/AND operation in each - * `VehicleAttributeList` and inclusive disjunction/OR operation across the - * collection of `VehicleAttributeList`. Each repeated string should be of the - * format "key1:value1|key2:value2|key3:value3". - * - * Generated from protobuf field repeated string required_one_of_attribute_sets = 15; - */ - private $required_one_of_attribute_sets; - /** - * Restricts the response to vehicles that have this vehicle state. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 11; - */ - protected $vehicle_state = 0; - /** - * Only return the vehicles with current trip(s). - * - * Generated from protobuf field bool on_trip_only = 14; - */ - protected $on_trip_only = false; - /** - * Optional. A filter query to apply when listing vehicles. See - * http://aip.dev/160 for examples of the filter syntax. - * This field is designed to replace the `required_attributes`, - * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. - * If a non-empty value is specified here, the following fields must be empty: - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attributes_sets`. - * This filter functions as an AND clause with other constraints, - * such as `vehicle_state` or `on_trip_only`. - * Note that the only queries supported are on vehicle attributes (for - * example, `attributes. = ` or `attributes. = AND - * attributes. = `). The maximum number of restrictions allowed - * in a filter query is 50. - * Also, all attributes are stored as strings, so the only supported - * comparisons against attributes are string comparisons. In order to compare - * against number or boolean values, the values must be explicitly quoted to - * be treated as strings (for example, `attributes. = "10"` or - * `attributes. = "true"`). - * - * Generated from protobuf field string filter = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. A filter that limits the vehicles returned to those whose last - * known location was in the rectangular area defined by the viewport. - * - * Generated from protobuf field .google.geo.type.Viewport viewport = 17 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $viewport = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\RequestHeader $header - * The standard Fleet Engine request header. - * @type string $parent - * Required. Must be in the format `providers/{provider}`. - * 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. - * @type int $page_size - * The maximum number of vehicles to return. - * Default value: 100. - * @type string $page_token - * The value of the `next_page_token` provided by a previous call to - * `ListVehicles` so that you can paginate through groups of vehicles. The - * value is undefined if the filter criteria of the request is not the same as - * the filter criteria for the previous call to `ListVehicles`. - * @type \Google\Protobuf\Int32Value $minimum_capacity - * Specifies the required minimum capacity of the vehicle. All vehicles - * returned will have a `maximum_capacity` greater than or equal to this - * value. If set, must be greater or equal to 0. - * @type array|\Google\Protobuf\Internal\RepeatedField $trip_types - * Restricts the response to vehicles that support at least one of the - * specified trip types. - * @type \Google\Protobuf\Duration $maximum_staleness - * Restricts the response to vehicles that have sent location updates to Fleet - * Engine within the specified duration. Stationary vehicles still - * transmitting their locations are not considered stale. If present, must be - * a valid positive duration. - * @type array|\Google\Protobuf\Internal\RepeatedField $vehicle_type_categories - * Required. Restricts the response to vehicles with one of the specified type - * categories. `UNKNOWN` is not allowed. - * @type array|\Google\Protobuf\Internal\RepeatedField $required_attributes - * Callers can form complex logical operations using any combination of the - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attribute_sets` fields. - * `required_attributes` is a list; `required_one_of_attributes` uses a - * message which allows a list of lists. In combination, the two fields allow - * the composition of this expression: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR - * ...) - * AND - * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR - * ...) - * ``` - * Restricts the response to vehicles with the specified attributes. This - * field is a conjunction/AND operation. A max of 50 required_attributes is - * allowed. This matches the maximum number of attributes allowed on a - * vehicle. Each repeated string should be of the format "key:value". - * @type array|\Google\Protobuf\Internal\RepeatedField $required_one_of_attributes - * Restricts the response to vehicles with at least one of the specified - * attributes in each `VehicleAttributeList`. Within each list, a vehicle must - * match at least one of the attributes. This field is an inclusive - * disjunction/OR operation in each `VehicleAttributeList` and a - * conjunction/AND operation across the collection of `VehicleAttributeList`. - * Each repeated string should be of the format - * "key1:value1|key2:value2|key3:value3". - * @type array|\Google\Protobuf\Internal\RepeatedField $required_one_of_attribute_sets - * `required_one_of_attribute_sets` provides additional functionality. - * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` - * uses a message which allows a list of lists, allowing expressions such as - * this one: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * ( - * (required_one_of_attribute_sets[0][0] AND - * required_one_of_attribute_sets[0][1] AND - * ...) - * OR - * (required_one_of_attribute_sets[1][0] AND - * required_one_of_attribute_sets[1][1] AND - * ...) - * ) - * ``` - * Restricts the response to vehicles that match all the attributes in a - * `VehicleAttributeList`. Within each list, a vehicle must match all of the - * attributes. This field is a conjunction/AND operation in each - * `VehicleAttributeList` and inclusive disjunction/OR operation across the - * collection of `VehicleAttributeList`. Each repeated string should be of the - * format "key1:value1|key2:value2|key3:value3". - * @type int $vehicle_state - * Restricts the response to vehicles that have this vehicle state. - * @type bool $on_trip_only - * Only return the vehicles with current trip(s). - * @type string $filter - * Optional. A filter query to apply when listing vehicles. See - * http://aip.dev/160 for examples of the filter syntax. - * This field is designed to replace the `required_attributes`, - * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. - * If a non-empty value is specified here, the following fields must be empty: - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attributes_sets`. - * This filter functions as an AND clause with other constraints, - * such as `vehicle_state` or `on_trip_only`. - * Note that the only queries supported are on vehicle attributes (for - * example, `attributes. = ` or `attributes. = AND - * attributes. = `). The maximum number of restrictions allowed - * in a filter query is 50. - * Also, all attributes are stored as strings, so the only supported - * comparisons against attributes are string comparisons. In order to compare - * against number or boolean values, the values must be explicitly quoted to - * be treated as strings (for example, `attributes. = "10"` or - * `attributes. = "true"`). - * @type \Google\Geo\Type\Viewport $viewport - * Optional. A filter that limits the vehicles returned to those whose last - * known location was in the rectangular area defined by the viewport. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 12; - * @return \Google\Maps\FleetEngine\V1\RequestHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 12; - * @param \Google\Maps\FleetEngine\V1\RequestHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); - $this->header = $var; - - return $this; - } - - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of vehicles to return. - * Default value: 100. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of vehicles to return. - * Default value: 100. - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * The value of the `next_page_token` provided by a previous call to - * `ListVehicles` so that you can paginate through groups of vehicles. The - * value is undefined if the filter criteria of the request is not the same as - * the filter criteria for the previous call to `ListVehicles`. - * - * Generated from protobuf field string page_token = 4; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The value of the `next_page_token` provided by a previous call to - * `ListVehicles` so that you can paginate through groups of vehicles. The - * value is undefined if the filter criteria of the request is not the same as - * the filter criteria for the previous call to `ListVehicles`. - * - * Generated from protobuf field string page_token = 4; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Specifies the required minimum capacity of the vehicle. All vehicles - * returned will have a `maximum_capacity` greater than or equal to this - * value. If set, must be greater or equal to 0. - * - * Generated from protobuf field .google.protobuf.Int32Value minimum_capacity = 6; - * @return \Google\Protobuf\Int32Value|null - */ - public function getMinimumCapacity() - { - return $this->minimum_capacity; - } - - public function hasMinimumCapacity() - { - return isset($this->minimum_capacity); - } - - public function clearMinimumCapacity() - { - unset($this->minimum_capacity); - } - - /** - * Returns the unboxed value from getMinimumCapacity() - - * Specifies the required minimum capacity of the vehicle. All vehicles - * returned will have a `maximum_capacity` greater than or equal to this - * value. If set, must be greater or equal to 0. - * - * Generated from protobuf field .google.protobuf.Int32Value minimum_capacity = 6; - * @return int|null - */ - public function getMinimumCapacityUnwrapped() - { - return $this->readWrapperValue("minimum_capacity"); - } - - /** - * Specifies the required minimum capacity of the vehicle. All vehicles - * returned will have a `maximum_capacity` greater than or equal to this - * value. If set, must be greater or equal to 0. - * - * Generated from protobuf field .google.protobuf.Int32Value minimum_capacity = 6; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setMinimumCapacity($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->minimum_capacity = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * Specifies the required minimum capacity of the vehicle. All vehicles - * returned will have a `maximum_capacity` greater than or equal to this - * value. If set, must be greater or equal to 0. - * - * Generated from protobuf field .google.protobuf.Int32Value minimum_capacity = 6; - * @param int|null $var - * @return $this - */ - public function setMinimumCapacityUnwrapped($var) - { - $this->writeWrapperValue("minimum_capacity", $var); - return $this;} - - /** - * Restricts the response to vehicles that support at least one of the - * specified trip types. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTripTypes() - { - return $this->trip_types; - } - - /** - * Restricts the response to vehicles that support at least one of the - * specified trip types. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTripTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Maps\FleetEngine\V1\TripType::class); - $this->trip_types = $arr; - - return $this; - } - - /** - * Restricts the response to vehicles that have sent location updates to Fleet - * Engine within the specified duration. Stationary vehicles still - * transmitting their locations are not considered stale. If present, must be - * a valid positive duration. - * - * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 8; - * @return \Google\Protobuf\Duration|null - */ - public function getMaximumStaleness() - { - return $this->maximum_staleness; - } - - public function hasMaximumStaleness() - { - return isset($this->maximum_staleness); - } - - public function clearMaximumStaleness() - { - unset($this->maximum_staleness); - } - - /** - * Restricts the response to vehicles that have sent location updates to Fleet - * Engine within the specified duration. Stationary vehicles still - * transmitting their locations are not considered stale. If present, must be - * a valid positive duration. - * - * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 8; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMaximumStaleness($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->maximum_staleness = $var; - - return $this; - } - - /** - * Required. Restricts the response to vehicles with one of the specified type - * categories. `UNKNOWN` is not allowed. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType.Category vehicle_type_categories = 9 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVehicleTypeCategories() - { - return $this->vehicle_type_categories; - } - - /** - * Required. Restricts the response to vehicles with one of the specified type - * categories. `UNKNOWN` is not allowed. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType.Category vehicle_type_categories = 9 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVehicleTypeCategories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Maps\FleetEngine\V1\Vehicle\VehicleType\Category::class); - $this->vehicle_type_categories = $arr; - - return $this; - } - - /** - * Callers can form complex logical operations using any combination of the - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attribute_sets` fields. - * `required_attributes` is a list; `required_one_of_attributes` uses a - * message which allows a list of lists. In combination, the two fields allow - * the composition of this expression: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR - * ...) - * AND - * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR - * ...) - * ``` - * Restricts the response to vehicles with the specified attributes. This - * field is a conjunction/AND operation. A max of 50 required_attributes is - * allowed. This matches the maximum number of attributes allowed on a - * vehicle. Each repeated string should be of the format "key:value". - * - * Generated from protobuf field repeated string required_attributes = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequiredAttributes() - { - return $this->required_attributes; - } - - /** - * Callers can form complex logical operations using any combination of the - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attribute_sets` fields. - * `required_attributes` is a list; `required_one_of_attributes` uses a - * message which allows a list of lists. In combination, the two fields allow - * the composition of this expression: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR - * ...) - * AND - * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR - * ...) - * ``` - * Restricts the response to vehicles with the specified attributes. This - * field is a conjunction/AND operation. A max of 50 required_attributes is - * allowed. This matches the maximum number of attributes allowed on a - * vehicle. Each repeated string should be of the format "key:value". - * - * Generated from protobuf field repeated string required_attributes = 10; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequiredAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->required_attributes = $arr; - - return $this; - } - - /** - * Restricts the response to vehicles with at least one of the specified - * attributes in each `VehicleAttributeList`. Within each list, a vehicle must - * match at least one of the attributes. This field is an inclusive - * disjunction/OR operation in each `VehicleAttributeList` and a - * conjunction/AND operation across the collection of `VehicleAttributeList`. - * Each repeated string should be of the format - * "key1:value1|key2:value2|key3:value3". - * - * Generated from protobuf field repeated string required_one_of_attributes = 13; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequiredOneOfAttributes() - { - return $this->required_one_of_attributes; - } - - /** - * Restricts the response to vehicles with at least one of the specified - * attributes in each `VehicleAttributeList`. Within each list, a vehicle must - * match at least one of the attributes. This field is an inclusive - * disjunction/OR operation in each `VehicleAttributeList` and a - * conjunction/AND operation across the collection of `VehicleAttributeList`. - * Each repeated string should be of the format - * "key1:value1|key2:value2|key3:value3". - * - * Generated from protobuf field repeated string required_one_of_attributes = 13; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequiredOneOfAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->required_one_of_attributes = $arr; - - return $this; - } - - /** - * `required_one_of_attribute_sets` provides additional functionality. - * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` - * uses a message which allows a list of lists, allowing expressions such as - * this one: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * ( - * (required_one_of_attribute_sets[0][0] AND - * required_one_of_attribute_sets[0][1] AND - * ...) - * OR - * (required_one_of_attribute_sets[1][0] AND - * required_one_of_attribute_sets[1][1] AND - * ...) - * ) - * ``` - * Restricts the response to vehicles that match all the attributes in a - * `VehicleAttributeList`. Within each list, a vehicle must match all of the - * attributes. This field is a conjunction/AND operation in each - * `VehicleAttributeList` and inclusive disjunction/OR operation across the - * collection of `VehicleAttributeList`. Each repeated string should be of the - * format "key1:value1|key2:value2|key3:value3". - * - * Generated from protobuf field repeated string required_one_of_attribute_sets = 15; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequiredOneOfAttributeSets() - { - return $this->required_one_of_attribute_sets; - } - - /** - * `required_one_of_attribute_sets` provides additional functionality. - * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` - * uses a message which allows a list of lists, allowing expressions such as - * this one: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * ( - * (required_one_of_attribute_sets[0][0] AND - * required_one_of_attribute_sets[0][1] AND - * ...) - * OR - * (required_one_of_attribute_sets[1][0] AND - * required_one_of_attribute_sets[1][1] AND - * ...) - * ) - * ``` - * Restricts the response to vehicles that match all the attributes in a - * `VehicleAttributeList`. Within each list, a vehicle must match all of the - * attributes. This field is a conjunction/AND operation in each - * `VehicleAttributeList` and inclusive disjunction/OR operation across the - * collection of `VehicleAttributeList`. Each repeated string should be of the - * format "key1:value1|key2:value2|key3:value3". - * - * Generated from protobuf field repeated string required_one_of_attribute_sets = 15; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequiredOneOfAttributeSets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->required_one_of_attribute_sets = $arr; - - return $this; - } - - /** - * Restricts the response to vehicles that have this vehicle state. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 11; - * @return int - */ - public function getVehicleState() - { - return $this->vehicle_state; - } - - /** - * Restricts the response to vehicles that have this vehicle state. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 11; - * @param int $var - * @return $this - */ - public function setVehicleState($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\VehicleState::class); - $this->vehicle_state = $var; - - return $this; - } - - /** - * Only return the vehicles with current trip(s). - * - * Generated from protobuf field bool on_trip_only = 14; - * @return bool - */ - public function getOnTripOnly() - { - return $this->on_trip_only; - } - - /** - * Only return the vehicles with current trip(s). - * - * Generated from protobuf field bool on_trip_only = 14; - * @param bool $var - * @return $this - */ - public function setOnTripOnly($var) - { - GPBUtil::checkBool($var); - $this->on_trip_only = $var; - - return $this; - } - - /** - * Optional. A filter query to apply when listing vehicles. See - * http://aip.dev/160 for examples of the filter syntax. - * This field is designed to replace the `required_attributes`, - * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. - * If a non-empty value is specified here, the following fields must be empty: - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attributes_sets`. - * This filter functions as an AND clause with other constraints, - * such as `vehicle_state` or `on_trip_only`. - * Note that the only queries supported are on vehicle attributes (for - * example, `attributes. = ` or `attributes. = AND - * attributes. = `). The maximum number of restrictions allowed - * in a filter query is 50. - * Also, all attributes are stored as strings, so the only supported - * comparisons against attributes are string comparisons. In order to compare - * against number or boolean values, the values must be explicitly quoted to - * be treated as strings (for example, `attributes. = "10"` or - * `attributes. = "true"`). - * - * Generated from protobuf field string filter = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. A filter query to apply when listing vehicles. See - * http://aip.dev/160 for examples of the filter syntax. - * This field is designed to replace the `required_attributes`, - * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. - * If a non-empty value is specified here, the following fields must be empty: - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attributes_sets`. - * This filter functions as an AND clause with other constraints, - * such as `vehicle_state` or `on_trip_only`. - * Note that the only queries supported are on vehicle attributes (for - * example, `attributes. = ` or `attributes. = AND - * attributes. = `). The maximum number of restrictions allowed - * in a filter query is 50. - * Also, all attributes are stored as strings, so the only supported - * comparisons against attributes are string comparisons. In order to compare - * against number or boolean values, the values must be explicitly quoted to - * be treated as strings (for example, `attributes. = "10"` or - * `attributes. = "true"`). - * - * Generated from protobuf field string filter = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. A filter that limits the vehicles returned to those whose last - * known location was in the rectangular area defined by the viewport. - * - * Generated from protobuf field .google.geo.type.Viewport viewport = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Geo\Type\Viewport|null - */ - public function getViewport() - { - return $this->viewport; - } - - public function hasViewport() - { - return isset($this->viewport); - } - - public function clearViewport() - { - unset($this->viewport); - } - - /** - * Optional. A filter that limits the vehicles returned to those whose last - * known location was in the rectangular area defined by the viewport. - * - * Generated from protobuf field .google.geo.type.Viewport viewport = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Geo\Type\Viewport $var - * @return $this - */ - public function setViewport($var) - { - GPBUtil::checkMessage($var, \Google\Geo\Type\Viewport::class); - $this->viewport = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesResponse.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesResponse.php deleted file mode 100644 index 2ba9724c211e..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ListVehiclesResponse.php +++ /dev/null @@ -1,151 +0,0 @@ -maps.fleetengine.v1.ListVehiclesResponse - */ -class ListVehiclesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Vehicles matching the criteria in the request. - * The maximum number of vehicles returned is determined by the `page_size` - * field in the request. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle vehicles = 1; - */ - private $vehicles; - /** - * Token to retrieve the next page of vehicles, or empty if there are no - * more vehicles that meet the request criteria. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Required. Total number of vehicles matching the request criteria across all - * pages. - * - * Generated from protobuf field int64 total_size = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Maps\FleetEngine\V1\Vehicle>|\Google\Protobuf\Internal\RepeatedField $vehicles - * Vehicles matching the criteria in the request. - * The maximum number of vehicles returned is determined by the `page_size` - * field in the request. - * @type string $next_page_token - * Token to retrieve the next page of vehicles, or empty if there are no - * more vehicles that meet the request criteria. - * @type int|string $total_size - * Required. Total number of vehicles matching the request criteria across all - * pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * Vehicles matching the criteria in the request. - * The maximum number of vehicles returned is determined by the `page_size` - * field in the request. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle vehicles = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVehicles() - { - return $this->vehicles; - } - - /** - * Vehicles matching the criteria in the request. - * The maximum number of vehicles returned is determined by the `page_size` - * field in the request. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle vehicles = 1; - * @param array<\Google\Maps\FleetEngine\V1\Vehicle>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVehicles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\Vehicle::class); - $this->vehicles = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of vehicles, or empty if there are no - * more vehicles that meet the request criteria. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of vehicles, or empty if there are no - * more vehicles that meet the request criteria. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Required. Total number of vehicles matching the request criteria across all - * pages. - * - * Generated from protobuf field int64 total_size = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int|string - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Required. Total number of vehicles matching the request criteria across all - * pages. - * - * Generated from protobuf field int64 total_size = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int|string $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt64($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationPowerSaveMode.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationPowerSaveMode.php deleted file mode 100644 index 4eb20054c4f9..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationPowerSaveMode.php +++ /dev/null @@ -1,89 +0,0 @@ -maps.fleetengine.v1.LocationPowerSaveMode - */ -class LocationPowerSaveMode -{ - /** - * Undefined LocationPowerSaveMode - * - * Generated from protobuf enum UNKNOWN_LOCATION_POWER_SAVE_MODE = 0; - */ - const UNKNOWN_LOCATION_POWER_SAVE_MODE = 0; - /** - * Either the location providers shouldn't be affected by battery saver, or - * battery saver is off. - * - * Generated from protobuf enum LOCATION_MODE_NO_CHANGE = 1; - */ - const LOCATION_MODE_NO_CHANGE = 1; - /** - * The GPS based location provider should be disabled when battery saver is on - * and the device is non-interactive. - * - * Generated from protobuf enum LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF = 2; - */ - const LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF = 2; - /** - * All location providers should be disabled when battery saver is on and the - * device is non-interactive. - * - * Generated from protobuf enum LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF = 3; - */ - const LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF = 3; - /** - * All the location providers will be kept available, but location fixes - * should only be provided to foreground apps. - * - * Generated from protobuf enum LOCATION_MODE_FOREGROUND_ONLY = 4; - */ - const LOCATION_MODE_FOREGROUND_ONLY = 4; - /** - * Location will not be turned off, but LocationManager will throttle all - * requests to providers when the device is non-interactive. - * - * Generated from protobuf enum LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF = 5; - */ - const LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF = 5; - - private static $valueToName = [ - self::UNKNOWN_LOCATION_POWER_SAVE_MODE => 'UNKNOWN_LOCATION_POWER_SAVE_MODE', - self::LOCATION_MODE_NO_CHANGE => 'LOCATION_MODE_NO_CHANGE', - self::LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF => 'LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF', - self::LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF => 'LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF', - self::LOCATION_MODE_FOREGROUND_ONLY => 'LOCATION_MODE_FOREGROUND_ONLY', - self::LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF => 'LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationSensor.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationSensor.php deleted file mode 100644 index 63194cc7ea5b..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/LocationSensor.php +++ /dev/null @@ -1,110 +0,0 @@ -maps.fleetengine.v1.LocationSensor - */ -class LocationSensor -{ - /** - * The sensor is unspecified or unknown. - * - * Generated from protobuf enum UNKNOWN_SENSOR = 0; - */ - const UNKNOWN_SENSOR = 0; - /** - * GPS or Assisted GPS. - * - * Generated from protobuf enum GPS = 1; - */ - const GPS = 1; - /** - * Assisted GPS, cell tower ID, or WiFi access point. - * - * Generated from protobuf enum NETWORK = 2; - */ - const NETWORK = 2; - /** - * Cell tower ID or WiFi access point. - * - * Generated from protobuf enum PASSIVE = 3; - */ - const PASSIVE = 3; - /** - * A location determined by the mobile device to be the most likely - * road position. - * - * Generated from protobuf enum ROAD_SNAPPED_LOCATION_PROVIDER = 4; - */ - const ROAD_SNAPPED_LOCATION_PROVIDER = 4; - /** - * A customer-supplied location from an independent source. Typically, this - * value is used for a location provided from sources other than the mobile - * device running Driver SDK. If the original source is described by one of - * the other enum values, use that value. Locations marked - * CUSTOMER_SUPPLIED_LOCATION are typically provided via a Vehicle's - * `last_location.supplemental_location_sensor`. - * - * Generated from protobuf enum CUSTOMER_SUPPLIED_LOCATION = 5; - */ - const CUSTOMER_SUPPLIED_LOCATION = 5; - /** - * A location calculated by Fleet Engine based on the signals available to it. - * Output only. This value will be rejected if it is received in a request. - * - * Generated from protobuf enum FLEET_ENGINE_LOCATION = 6; - */ - const FLEET_ENGINE_LOCATION = 6; - /** - * Android's Fused Location Provider. - * - * Generated from protobuf enum FUSED_LOCATION_PROVIDER = 100; - */ - const FUSED_LOCATION_PROVIDER = 100; - /** - * The location provider on Apple operating systems. - * - * Generated from protobuf enum CORE_LOCATION = 200; - */ - const CORE_LOCATION = 200; - - private static $valueToName = [ - self::UNKNOWN_SENSOR => 'UNKNOWN_SENSOR', - self::GPS => 'GPS', - self::NETWORK => 'NETWORK', - self::PASSIVE => 'PASSIVE', - self::ROAD_SNAPPED_LOCATION_PROVIDER => 'ROAD_SNAPPED_LOCATION_PROVIDER', - self::CUSTOMER_SUPPLIED_LOCATION => 'CUSTOMER_SUPPLIED_LOCATION', - self::FLEET_ENGINE_LOCATION => 'FLEET_ENGINE_LOCATION', - self::FUSED_LOCATION_PROVIDER => 'FUSED_LOCATION_PROVIDER', - self::CORE_LOCATION => 'CORE_LOCATION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/NavigationStatus.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/NavigationStatus.php deleted file mode 100644 index 40e2a39a9556..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/NavigationStatus.php +++ /dev/null @@ -1,76 +0,0 @@ -maps.fleetengine.v1.NavigationStatus - */ -class NavigationStatus -{ - /** - * Unspecified navigation status. - * - * Generated from protobuf enum UNKNOWN_NAVIGATION_STATUS = 0; - */ - const UNKNOWN_NAVIGATION_STATUS = 0; - /** - * The Driver app's navigation is in `FREE_NAV` mode. - * - * Generated from protobuf enum NO_GUIDANCE = 1; - */ - const NO_GUIDANCE = 1; - /** - * Turn-by-turn navigation is available and the Driver app navigation has - * entered `GUIDED_NAV` mode. - * - * Generated from protobuf enum ENROUTE_TO_DESTINATION = 2; - */ - const ENROUTE_TO_DESTINATION = 2; - /** - * The vehicle has gone off the suggested route. - * - * Generated from protobuf enum OFF_ROUTE = 3; - */ - const OFF_ROUTE = 3; - /** - * The vehicle is within approximately 50m of the destination. - * - * Generated from protobuf enum ARRIVED_AT_DESTINATION = 4; - */ - const ARRIVED_AT_DESTINATION = 4; - - private static $valueToName = [ - self::UNKNOWN_NAVIGATION_STATUS => 'UNKNOWN_NAVIGATION_STATUS', - self::NO_GUIDANCE => 'NO_GUIDANCE', - self::ENROUTE_TO_DESTINATION => 'ENROUTE_TO_DESTINATION', - self::OFF_ROUTE => 'OFF_ROUTE', - self::ARRIVED_AT_DESTINATION => 'ARRIVED_AT_DESTINATION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PolylineFormatType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PolylineFormatType.php deleted file mode 100644 index 40a6b80a1726..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PolylineFormatType.php +++ /dev/null @@ -1,62 +0,0 @@ -maps.fleetengine.v1.PolylineFormatType - */ -class PolylineFormatType -{ - /** - * The format is unspecified or unknown. - * - * Generated from protobuf enum UNKNOWN_FORMAT_TYPE = 0; - */ - const UNKNOWN_FORMAT_TYPE = 0; - /** - * A list of `google.type.LatLng`. - * - * Generated from protobuf enum LAT_LNG_LIST_TYPE = 1; - */ - const LAT_LNG_LIST_TYPE = 1; - /** - * A polyline encoded with a polyline compression algorithm. Decoding is not - * yet supported. - * - * Generated from protobuf enum ENCODED_POLYLINE_TYPE = 2; - */ - const ENCODED_POLYLINE_TYPE = 2; - - private static $valueToName = [ - self::UNKNOWN_FORMAT_TYPE => 'UNKNOWN_FORMAT_TYPE', - self::LAT_LNG_LIST_TYPE => 'LAT_LNG_LIST_TYPE', - self::ENCODED_POLYLINE_TYPE => 'ENCODED_POLYLINE_TYPE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PowerSource.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PowerSource.php deleted file mode 100644 index 1dd4ecfc1b49..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/PowerSource.php +++ /dev/null @@ -1,75 +0,0 @@ -maps.fleetengine.v1.PowerSource - */ -class PowerSource -{ - /** - * Power source unknown. - * - * Generated from protobuf enum UNKNOWN_POWER_SOURCE = 0; - */ - const UNKNOWN_POWER_SOURCE = 0; - /** - * Power source is an AC charger. - * - * Generated from protobuf enum POWER_SOURCE_AC = 1; - */ - const POWER_SOURCE_AC = 1; - /** - * Power source is a USB port. - * - * Generated from protobuf enum POWER_SOURCE_USB = 2; - */ - const POWER_SOURCE_USB = 2; - /** - * Power source is wireless. - * - * Generated from protobuf enum POWER_SOURCE_WIRELESS = 3; - */ - const POWER_SOURCE_WIRELESS = 3; - /** - * Battery is unplugged. - * - * Generated from protobuf enum POWER_SOURCE_UNPLUGGED = 4; - */ - const POWER_SOURCE_UNPLUGGED = 4; - - private static $valueToName = [ - self::UNKNOWN_POWER_SOURCE => 'UNKNOWN_POWER_SOURCE', - self::POWER_SOURCE_AC => 'POWER_SOURCE_AC', - self::POWER_SOURCE_USB => 'POWER_SOURCE_USB', - self::POWER_SOURCE_WIRELESS => 'POWER_SOURCE_WIRELESS', - self::POWER_SOURCE_UNPLUGGED => 'POWER_SOURCE_UNPLUGGED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest.php deleted file mode 100644 index 48d21dc5444e..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest.php +++ /dev/null @@ -1,239 +0,0 @@ -maps.fleetengine.v1.ReportBillableTripRequest - */ -class ReportBillableTripRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Must be in the format - * `providers/{provider}/billableTrips/{billable_trip}`. 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. - * - * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. Two letter country code of the country where the trip takes - * place. Price is defined according to country code. - * - * Generated from protobuf field string country_code = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $country_code = ''; - /** - * The platform upon which the request was issued. - * - * Generated from protobuf field .maps.fleetengine.v1.BillingPlatformIdentifier platform = 5; - */ - protected $platform = 0; - /** - * The identifiers that are directly related to the trip being reported. These - * are usually IDs (for example, session IDs) of pre-booking operations done - * before the trip ID is available. The number of `related_ids` is - * limited to 50. - * - * Generated from protobuf field repeated string related_ids = 6; - */ - private $related_ids; - /** - * The type of GMP product solution (for example, - * `ON_DEMAND_RIDESHARING_AND_DELIVERIES`) used for the reported trip. - * - * Generated from protobuf field .maps.fleetengine.v1.ReportBillableTripRequest.SolutionType solution_type = 7; - */ - protected $solution_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Must be in the format - * `providers/{provider}/billableTrips/{billable_trip}`. 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. - * @type string $country_code - * Required. Two letter country code of the country where the trip takes - * place. Price is defined according to country code. - * @type int $platform - * The platform upon which the request was issued. - * @type array|\Google\Protobuf\Internal\RepeatedField $related_ids - * The identifiers that are directly related to the trip being reported. These - * are usually IDs (for example, session IDs) of pre-booking operations done - * before the trip ID is available. The number of `related_ids` is - * limited to 50. - * @type int $solution_type - * The type of GMP product solution (for example, - * `ON_DEMAND_RIDESHARING_AND_DELIVERIES`) used for the reported trip. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. Must be in the format - * `providers/{provider}/billableTrips/{billable_trip}`. 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. - * - * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Must be in the format - * `providers/{provider}/billableTrips/{billable_trip}`. 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. - * - * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Two letter country code of the country where the trip takes - * place. Price is defined according to country code. - * - * Generated from protobuf field string country_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCountryCode() - { - return $this->country_code; - } - - /** - * Required. Two letter country code of the country where the trip takes - * place. Price is defined according to country code. - * - * Generated from protobuf field string country_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCountryCode($var) - { - GPBUtil::checkString($var, True); - $this->country_code = $var; - - return $this; - } - - /** - * The platform upon which the request was issued. - * - * Generated from protobuf field .maps.fleetengine.v1.BillingPlatformIdentifier platform = 5; - * @return int - */ - public function getPlatform() - { - return $this->platform; - } - - /** - * The platform upon which the request was issued. - * - * Generated from protobuf field .maps.fleetengine.v1.BillingPlatformIdentifier platform = 5; - * @param int $var - * @return $this - */ - public function setPlatform($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\BillingPlatformIdentifier::class); - $this->platform = $var; - - return $this; - } - - /** - * The identifiers that are directly related to the trip being reported. These - * are usually IDs (for example, session IDs) of pre-booking operations done - * before the trip ID is available. The number of `related_ids` is - * limited to 50. - * - * Generated from protobuf field repeated string related_ids = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRelatedIds() - { - return $this->related_ids; - } - - /** - * The identifiers that are directly related to the trip being reported. These - * are usually IDs (for example, session IDs) of pre-booking operations done - * before the trip ID is available. The number of `related_ids` is - * limited to 50. - * - * Generated from protobuf field repeated string related_ids = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRelatedIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->related_ids = $arr; - - return $this; - } - - /** - * The type of GMP product solution (for example, - * `ON_DEMAND_RIDESHARING_AND_DELIVERIES`) used for the reported trip. - * - * Generated from protobuf field .maps.fleetengine.v1.ReportBillableTripRequest.SolutionType solution_type = 7; - * @return int - */ - public function getSolutionType() - { - return $this->solution_type; - } - - /** - * The type of GMP product solution (for example, - * `ON_DEMAND_RIDESHARING_AND_DELIVERIES`) used for the reported trip. - * - * Generated from protobuf field .maps.fleetengine.v1.ReportBillableTripRequest.SolutionType solution_type = 7; - * @param int $var - * @return $this - */ - public function setSolutionType($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\ReportBillableTripRequest\SolutionType::class); - $this->solution_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest/SolutionType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest/SolutionType.php deleted file mode 100644 index c50613c46254..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/ReportBillableTripRequest/SolutionType.php +++ /dev/null @@ -1,59 +0,0 @@ -maps.fleetengine.v1.ReportBillableTripRequest.SolutionType - */ -class SolutionType -{ - /** - * The default value. For backwards-compatibility, the API will use - * `ON_DEMAND_RIDESHARING_AND_DELIVERIES` by default which is the first - * supported solution type. - * - * Generated from protobuf enum SOLUTION_TYPE_UNSPECIFIED = 0; - */ - const SOLUTION_TYPE_UNSPECIFIED = 0; - /** - * The solution is an on-demand ridesharing and deliveries trip. - * - * Generated from protobuf enum ON_DEMAND_RIDESHARING_AND_DELIVERIES = 1; - */ - const ON_DEMAND_RIDESHARING_AND_DELIVERIES = 1; - - private static $valueToName = [ - self::SOLUTION_TYPE_UNSPECIFIED => 'SOLUTION_TYPE_UNSPECIFIED', - self::ON_DEMAND_RIDESHARING_AND_DELIVERIES => 'ON_DEMAND_RIDESHARING_AND_DELIVERIES', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SolutionType::class, \Google\Maps\FleetEngine\V1\ReportBillableTripRequest_SolutionType::class); - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader.php deleted file mode 100644 index c892bc38df04..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader.php +++ /dev/null @@ -1,493 +0,0 @@ -maps.fleetengine.v1.RequestHeader - */ -class RequestHeader extends \Google\Protobuf\Internal\Message -{ - /** - * The BCP-47 language code, such as en-US or sr-Latn. For more information, - * see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If none - * is specified, the response may be in any language, with a preference for - * English if such a name exists. Field value example: `en-US`. - * - * Generated from protobuf field string language_code = 1; - */ - protected $language_code = ''; - /** - * Required. CLDR region code of the region where the request originates. - * Field value example: `US`. - * - * Generated from protobuf field string region_code = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $region_code = ''; - /** - * Version of the calling SDK, if applicable. - * The version format is "major.minor.patch", example: `1.1.2`. - * - * Generated from protobuf field string sdk_version = 3; - */ - protected $sdk_version = ''; - /** - * Version of the operating system on which the calling SDK is running. - * Field value examples: `4.4.1`, `12.1`. - * - * Generated from protobuf field string os_version = 4; - */ - protected $os_version = ''; - /** - * Model of the device on which the calling SDK is running. - * Field value examples: `iPhone12,1`, `SM-G920F`. - * - * Generated from protobuf field string device_model = 5; - */ - protected $device_model = ''; - /** - * The type of SDK sending the request. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.SdkType sdk_type = 6; - */ - protected $sdk_type = 0; - /** - * Version of the MapSDK which the calling SDK depends on, if applicable. - * The version format is "major.minor.patch", example: `5.2.1`. - * - * Generated from protobuf field string maps_sdk_version = 7; - */ - protected $maps_sdk_version = ''; - /** - * Version of the NavSDK which the calling SDK depends on, if applicable. - * The version format is "major.minor.patch", example: `2.1.0`. - * - * Generated from protobuf field string nav_sdk_version = 8; - */ - protected $nav_sdk_version = ''; - /** - * Platform of the calling SDK. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.Platform platform = 9; - */ - protected $platform = 0; - /** - * Manufacturer of the Android device from the calling SDK, only applicable - * for the Android SDKs. - * Field value example: `Samsung`. - * - * Generated from protobuf field string manufacturer = 10; - */ - protected $manufacturer = ''; - /** - * Android API level of the calling SDK, only applicable for the Android SDKs. - * Field value example: `23`. - * - * Generated from protobuf field int32 android_api_level = 11; - */ - protected $android_api_level = 0; - /** - * Optional ID that can be provided for logging purposes in order to identify - * the request. - * - * Generated from protobuf field string trace_id = 12; - */ - protected $trace_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $language_code - * The BCP-47 language code, such as en-US or sr-Latn. For more information, - * see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If none - * is specified, the response may be in any language, with a preference for - * English if such a name exists. Field value example: `en-US`. - * @type string $region_code - * Required. CLDR region code of the region where the request originates. - * Field value example: `US`. - * @type string $sdk_version - * Version of the calling SDK, if applicable. - * The version format is "major.minor.patch", example: `1.1.2`. - * @type string $os_version - * Version of the operating system on which the calling SDK is running. - * Field value examples: `4.4.1`, `12.1`. - * @type string $device_model - * Model of the device on which the calling SDK is running. - * Field value examples: `iPhone12,1`, `SM-G920F`. - * @type int $sdk_type - * The type of SDK sending the request. - * @type string $maps_sdk_version - * Version of the MapSDK which the calling SDK depends on, if applicable. - * The version format is "major.minor.patch", example: `5.2.1`. - * @type string $nav_sdk_version - * Version of the NavSDK which the calling SDK depends on, if applicable. - * The version format is "major.minor.patch", example: `2.1.0`. - * @type int $platform - * Platform of the calling SDK. - * @type string $manufacturer - * Manufacturer of the Android device from the calling SDK, only applicable - * for the Android SDKs. - * Field value example: `Samsung`. - * @type int $android_api_level - * Android API level of the calling SDK, only applicable for the Android SDKs. - * Field value example: `23`. - * @type string $trace_id - * Optional ID that can be provided for logging purposes in order to identify - * the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Header::initOnce(); - parent::__construct($data); - } - - /** - * The BCP-47 language code, such as en-US or sr-Latn. For more information, - * see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If none - * is specified, the response may be in any language, with a preference for - * English if such a name exists. Field value example: `en-US`. - * - * Generated from protobuf field string language_code = 1; - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * The BCP-47 language code, such as en-US or sr-Latn. For more information, - * see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If none - * is specified, the response may be in any language, with a preference for - * English if such a name exists. Field value example: `en-US`. - * - * Generated from protobuf field string language_code = 1; - * @param string $var - * @return $this - */ - public function setLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->language_code = $var; - - return $this; - } - - /** - * Required. CLDR region code of the region where the request originates. - * Field value example: `US`. - * - * Generated from protobuf field string region_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRegionCode() - { - return $this->region_code; - } - - /** - * Required. CLDR region code of the region where the request originates. - * Field value example: `US`. - * - * Generated from protobuf field string region_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRegionCode($var) - { - GPBUtil::checkString($var, True); - $this->region_code = $var; - - return $this; - } - - /** - * Version of the calling SDK, if applicable. - * The version format is "major.minor.patch", example: `1.1.2`. - * - * Generated from protobuf field string sdk_version = 3; - * @return string - */ - public function getSdkVersion() - { - return $this->sdk_version; - } - - /** - * Version of the calling SDK, if applicable. - * The version format is "major.minor.patch", example: `1.1.2`. - * - * Generated from protobuf field string sdk_version = 3; - * @param string $var - * @return $this - */ - public function setSdkVersion($var) - { - GPBUtil::checkString($var, True); - $this->sdk_version = $var; - - return $this; - } - - /** - * Version of the operating system on which the calling SDK is running. - * Field value examples: `4.4.1`, `12.1`. - * - * Generated from protobuf field string os_version = 4; - * @return string - */ - public function getOsVersion() - { - return $this->os_version; - } - - /** - * Version of the operating system on which the calling SDK is running. - * Field value examples: `4.4.1`, `12.1`. - * - * Generated from protobuf field string os_version = 4; - * @param string $var - * @return $this - */ - public function setOsVersion($var) - { - GPBUtil::checkString($var, True); - $this->os_version = $var; - - return $this; - } - - /** - * Model of the device on which the calling SDK is running. - * Field value examples: `iPhone12,1`, `SM-G920F`. - * - * Generated from protobuf field string device_model = 5; - * @return string - */ - public function getDeviceModel() - { - return $this->device_model; - } - - /** - * Model of the device on which the calling SDK is running. - * Field value examples: `iPhone12,1`, `SM-G920F`. - * - * Generated from protobuf field string device_model = 5; - * @param string $var - * @return $this - */ - public function setDeviceModel($var) - { - GPBUtil::checkString($var, True); - $this->device_model = $var; - - return $this; - } - - /** - * The type of SDK sending the request. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.SdkType sdk_type = 6; - * @return int - */ - public function getSdkType() - { - return $this->sdk_type; - } - - /** - * The type of SDK sending the request. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.SdkType sdk_type = 6; - * @param int $var - * @return $this - */ - public function setSdkType($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\RequestHeader\SdkType::class); - $this->sdk_type = $var; - - return $this; - } - - /** - * Version of the MapSDK which the calling SDK depends on, if applicable. - * The version format is "major.minor.patch", example: `5.2.1`. - * - * Generated from protobuf field string maps_sdk_version = 7; - * @return string - */ - public function getMapsSdkVersion() - { - return $this->maps_sdk_version; - } - - /** - * Version of the MapSDK which the calling SDK depends on, if applicable. - * The version format is "major.minor.patch", example: `5.2.1`. - * - * Generated from protobuf field string maps_sdk_version = 7; - * @param string $var - * @return $this - */ - public function setMapsSdkVersion($var) - { - GPBUtil::checkString($var, True); - $this->maps_sdk_version = $var; - - return $this; - } - - /** - * Version of the NavSDK which the calling SDK depends on, if applicable. - * The version format is "major.minor.patch", example: `2.1.0`. - * - * Generated from protobuf field string nav_sdk_version = 8; - * @return string - */ - public function getNavSdkVersion() - { - return $this->nav_sdk_version; - } - - /** - * Version of the NavSDK which the calling SDK depends on, if applicable. - * The version format is "major.minor.patch", example: `2.1.0`. - * - * Generated from protobuf field string nav_sdk_version = 8; - * @param string $var - * @return $this - */ - public function setNavSdkVersion($var) - { - GPBUtil::checkString($var, True); - $this->nav_sdk_version = $var; - - return $this; - } - - /** - * Platform of the calling SDK. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.Platform platform = 9; - * @return int - */ - public function getPlatform() - { - return $this->platform; - } - - /** - * Platform of the calling SDK. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader.Platform platform = 9; - * @param int $var - * @return $this - */ - public function setPlatform($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\RequestHeader\Platform::class); - $this->platform = $var; - - return $this; - } - - /** - * Manufacturer of the Android device from the calling SDK, only applicable - * for the Android SDKs. - * Field value example: `Samsung`. - * - * Generated from protobuf field string manufacturer = 10; - * @return string - */ - public function getManufacturer() - { - return $this->manufacturer; - } - - /** - * Manufacturer of the Android device from the calling SDK, only applicable - * for the Android SDKs. - * Field value example: `Samsung`. - * - * Generated from protobuf field string manufacturer = 10; - * @param string $var - * @return $this - */ - public function setManufacturer($var) - { - GPBUtil::checkString($var, True); - $this->manufacturer = $var; - - return $this; - } - - /** - * Android API level of the calling SDK, only applicable for the Android SDKs. - * Field value example: `23`. - * - * Generated from protobuf field int32 android_api_level = 11; - * @return int - */ - public function getAndroidApiLevel() - { - return $this->android_api_level; - } - - /** - * Android API level of the calling SDK, only applicable for the Android SDKs. - * Field value example: `23`. - * - * Generated from protobuf field int32 android_api_level = 11; - * @param int $var - * @return $this - */ - public function setAndroidApiLevel($var) - { - GPBUtil::checkInt32($var); - $this->android_api_level = $var; - - return $this; - } - - /** - * Optional ID that can be provided for logging purposes in order to identify - * the request. - * - * Generated from protobuf field string trace_id = 12; - * @return string - */ - public function getTraceId() - { - return $this->trace_id; - } - - /** - * Optional ID that can be provided for logging purposes in order to identify - * the request. - * - * Generated from protobuf field string trace_id = 12; - * @param string $var - * @return $this - */ - public function setTraceId($var) - { - GPBUtil::checkString($var, True); - $this->trace_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/Platform.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/Platform.php deleted file mode 100644 index dfe0f5d12542..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/Platform.php +++ /dev/null @@ -1,71 +0,0 @@ -maps.fleetengine.v1.RequestHeader.Platform - */ -class Platform -{ - /** - * The default value. This value is used if the platform is omitted. - * - * Generated from protobuf enum PLATFORM_UNSPECIFIED = 0; - */ - const PLATFORM_UNSPECIFIED = 0; - /** - * The request is coming from Android. - * - * Generated from protobuf enum ANDROID = 1; - */ - const ANDROID = 1; - /** - * The request is coming from iOS. - * - * Generated from protobuf enum IOS = 2; - */ - const IOS = 2; - /** - * The request is coming from the web. - * - * Generated from protobuf enum WEB = 3; - */ - const WEB = 3; - - private static $valueToName = [ - self::PLATFORM_UNSPECIFIED => 'PLATFORM_UNSPECIFIED', - self::ANDROID => 'ANDROID', - self::IOS => 'IOS', - self::WEB => 'WEB', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Platform::class, \Google\Maps\FleetEngine\V1\RequestHeader_Platform::class); - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/SdkType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/SdkType.php deleted file mode 100644 index 3061cc50a581..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/RequestHeader/SdkType.php +++ /dev/null @@ -1,71 +0,0 @@ -maps.fleetengine.v1.RequestHeader.SdkType - */ -class SdkType -{ - /** - * The default value. This value is used if the `sdk_type` is omitted. - * - * Generated from protobuf enum SDK_TYPE_UNSPECIFIED = 0; - */ - const SDK_TYPE_UNSPECIFIED = 0; - /** - * The calling SDK is Consumer. - * - * Generated from protobuf enum CONSUMER = 1; - */ - const CONSUMER = 1; - /** - * The calling SDK is Driver. - * - * Generated from protobuf enum DRIVER = 2; - */ - const DRIVER = 2; - /** - * The calling SDK is JavaScript. - * - * Generated from protobuf enum JAVASCRIPT = 3; - */ - const JAVASCRIPT = 3; - - private static $valueToName = [ - self::SDK_TYPE_UNSPECIFIED => 'SDK_TYPE_UNSPECIFIED', - self::CONSUMER => 'CONSUMER', - self::DRIVER => 'DRIVER', - self::JAVASCRIPT => 'JAVASCRIPT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SdkType::class, \Google\Maps\FleetEngine\V1\RequestHeader_SdkType::class); - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsRequest.php deleted file mode 100644 index 05455c7754ea..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsRequest.php +++ /dev/null @@ -1,335 +0,0 @@ -maps.fleetengine.v1.SearchTripsRequest - */ -class SearchTripsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - */ - protected $header = null; - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * The vehicle associated with the trips in the request. If unspecified, the - * returned trips do not contain: - * * `current_route_segment` - * * `remaining_waypoints` - * * `remaining_distance_meters` - * * `eta_to_first_waypoint` - * - * Generated from protobuf field string vehicle_id = 4; - */ - protected $vehicle_id = ''; - /** - * If set to true, the response includes Trips that influence a driver's - * route. - * - * Generated from protobuf field bool active_trips_only = 5; - */ - protected $active_trips_only = false; - /** - * If not set, the server decides the number of results to return. - * - * Generated from protobuf field int32 page_size = 6; - */ - protected $page_size = 0; - /** - * Set this to a value previously returned in the `SearchTripsResponse` to - * continue from previous results. - * - * Generated from protobuf field string page_token = 7; - */ - protected $page_token = ''; - /** - * If specified, returns the trips that have not been updated after the time - * `(current - minimum_staleness)`. - * - * Generated from protobuf field .google.protobuf.Duration minimum_staleness = 8; - */ - protected $minimum_staleness = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\RequestHeader $header - * The standard Fleet Engine request header. - * @type string $parent - * Required. Must be in the format `providers/{provider}`. - * 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. - * @type string $vehicle_id - * The vehicle associated with the trips in the request. If unspecified, the - * returned trips do not contain: - * * `current_route_segment` - * * `remaining_waypoints` - * * `remaining_distance_meters` - * * `eta_to_first_waypoint` - * @type bool $active_trips_only - * If set to true, the response includes Trips that influence a driver's - * route. - * @type int $page_size - * If not set, the server decides the number of results to return. - * @type string $page_token - * Set this to a value previously returned in the `SearchTripsResponse` to - * continue from previous results. - * @type \Google\Protobuf\Duration $minimum_staleness - * If specified, returns the trips that have not been updated after the time - * `(current - minimum_staleness)`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); - parent::__construct($data); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @return \Google\Maps\FleetEngine\V1\RequestHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @param \Google\Maps\FleetEngine\V1\RequestHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); - $this->header = $var; - - return $this; - } - - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The vehicle associated with the trips in the request. If unspecified, the - * returned trips do not contain: - * * `current_route_segment` - * * `remaining_waypoints` - * * `remaining_distance_meters` - * * `eta_to_first_waypoint` - * - * Generated from protobuf field string vehicle_id = 4; - * @return string - */ - public function getVehicleId() - { - return $this->vehicle_id; - } - - /** - * The vehicle associated with the trips in the request. If unspecified, the - * returned trips do not contain: - * * `current_route_segment` - * * `remaining_waypoints` - * * `remaining_distance_meters` - * * `eta_to_first_waypoint` - * - * Generated from protobuf field string vehicle_id = 4; - * @param string $var - * @return $this - */ - public function setVehicleId($var) - { - GPBUtil::checkString($var, True); - $this->vehicle_id = $var; - - return $this; - } - - /** - * If set to true, the response includes Trips that influence a driver's - * route. - * - * Generated from protobuf field bool active_trips_only = 5; - * @return bool - */ - public function getActiveTripsOnly() - { - return $this->active_trips_only; - } - - /** - * If set to true, the response includes Trips that influence a driver's - * route. - * - * Generated from protobuf field bool active_trips_only = 5; - * @param bool $var - * @return $this - */ - public function setActiveTripsOnly($var) - { - GPBUtil::checkBool($var); - $this->active_trips_only = $var; - - return $this; - } - - /** - * If not set, the server decides the number of results to return. - * - * Generated from protobuf field int32 page_size = 6; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * If not set, the server decides the number of results to return. - * - * Generated from protobuf field int32 page_size = 6; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Set this to a value previously returned in the `SearchTripsResponse` to - * continue from previous results. - * - * Generated from protobuf field string page_token = 7; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Set this to a value previously returned in the `SearchTripsResponse` to - * continue from previous results. - * - * Generated from protobuf field string page_token = 7; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * If specified, returns the trips that have not been updated after the time - * `(current - minimum_staleness)`. - * - * Generated from protobuf field .google.protobuf.Duration minimum_staleness = 8; - * @return \Google\Protobuf\Duration|null - */ - public function getMinimumStaleness() - { - return $this->minimum_staleness; - } - - public function hasMinimumStaleness() - { - return isset($this->minimum_staleness); - } - - public function clearMinimumStaleness() - { - unset($this->minimum_staleness); - } - - /** - * If specified, returns the trips that have not been updated after the time - * `(current - minimum_staleness)`. - * - * Generated from protobuf field .google.protobuf.Duration minimum_staleness = 8; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMinimumStaleness($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->minimum_staleness = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsResponse.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsResponse.php deleted file mode 100644 index a416a1ded2ab..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchTripsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -maps.fleetengine.v1.SearchTripsResponse - */ -class SearchTripsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of trips for the requested vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Trip trips = 1; - */ - private $trips; - /** - * Pass this token in the SearchTripsRequest to page through list results. The - * API returns a trip list on each call, and when no more results remain the - * trip list is empty. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Maps\FleetEngine\V1\Trip>|\Google\Protobuf\Internal\RepeatedField $trips - * The list of trips for the requested vehicle. - * @type string $next_page_token - * Pass this token in the SearchTripsRequest to page through list results. The - * API returns a trip list on each call, and when no more results remain the - * trip list is empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); - parent::__construct($data); - } - - /** - * The list of trips for the requested vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Trip trips = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTrips() - { - return $this->trips; - } - - /** - * The list of trips for the requested vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Trip trips = 1; - * @param array<\Google\Maps\FleetEngine\V1\Trip>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTrips($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\Trip::class); - $this->trips = $arr; - - return $this; - } - - /** - * Pass this token in the SearchTripsRequest to page through list results. The - * API returns a trip list on each call, and when no more results remain the - * trip list is empty. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Pass this token in the SearchTripsRequest to page through list results. The - * API returns a trip list on each call, and when no more results remain the - * trip list is empty. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest.php deleted file mode 100644 index 47e4b07b2d9a..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest.php +++ /dev/null @@ -1,1029 +0,0 @@ -maps.fleetengine.v1.SearchVehiclesRequest - */ -class SearchVehiclesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - */ - protected $header = null; - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * Required. The pickup point to search near. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $pickup_point = null; - /** - * The customer's intended dropoff location. The field is required if - * `trip_types` contains `TripType.SHARED`. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 5; - */ - protected $dropoff_point = null; - /** - * Required. Defines the vehicle search radius around the pickup point. Only - * vehicles within the search radius will be returned. Value must be between - * 400 and 10000 meters (inclusive). - * - * Generated from protobuf field int32 pickup_radius_meters = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $pickup_radius_meters = 0; - /** - * Required. Specifies the maximum number of vehicles to return. The value - * must be between 1 and 50 (inclusive). - * - * Generated from protobuf field int32 count = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $count = 0; - /** - * Required. Specifies the number of passengers being considered for a trip. - * The value must be greater than or equal to one. The driver is not - * considered in the capacity value. - * - * Generated from protobuf field int32 minimum_capacity = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $minimum_capacity = 0; - /** - * Required. Represents the type of proposed trip. Must include exactly one - * type. `UNKNOWN_TRIP_TYPE` is not allowed. Restricts the search to only - * those vehicles that can support that trip type. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 9 [(.google.api.field_behavior) = REQUIRED]; - */ - private $trip_types; - /** - * Restricts the search to only those vehicles that have sent location updates - * to Fleet Engine within the specified duration. Stationary vehicles still - * transmitting their locations are not considered stale. If this field is not - * set, the server uses five minutes as the default value. - * - * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 10; - */ - protected $maximum_staleness = null; - /** - * Required. Restricts the search to vehicles with one of the specified types. - * At least one vehicle type must be specified. VehicleTypes with a category - * of `UNKNOWN` are not allowed. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType vehicle_types = 14 [(.google.api.field_behavior) = REQUIRED]; - */ - private $vehicle_types; - /** - * Callers can form complex logical operations using any combination of the - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attribute_sets` fields. - * `required_attributes` is a list; `required_one_of_attributes` uses a - * message which allows a list of lists. In combination, the two fields allow - * the composition of this expression: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR - * ...) - * AND - * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR - * ...) - * ``` - * Restricts the search to only those vehicles with the specified attributes. - * This field is a conjunction/AND operation. A max of 50 required_attributes - * is allowed. This matches the maximum number of attributes allowed on a - * vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute required_attributes = 12; - */ - private $required_attributes; - /** - * Restricts the search to only those vehicles with at least one of - * the specified attributes in each `VehicleAttributeList`. Within each - * list, a vehicle must match at least one of the attributes. This field is an - * inclusive disjunction/OR operation in each `VehicleAttributeList` and a - * conjunction/AND operation across the collection of `VehicleAttributeList`. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attributes = 15; - */ - private $required_one_of_attributes; - /** - * `required_one_of_attribute_sets` provides additional functionality. - * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` - * uses a message which allows a list of lists, allowing expressions such as - * this one: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * ( - * (required_one_of_attribute_sets[0][0] AND - * required_one_of_attribute_sets[0][1] AND - * ...) - * OR - * (required_one_of_attribute_sets[1][0] AND - * required_one_of_attribute_sets[1][1] AND - * ...) - * ) - * ``` - * Restricts the search to only those vehicles with all the attributes in a - * `VehicleAttributeList`. Within each list, a - * vehicle must match all of the attributes. This field is a conjunction/AND - * operation in each `VehicleAttributeList` and inclusive disjunction/OR - * operation across the collection of `VehicleAttributeList`. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attribute_sets = 20; - */ - private $required_one_of_attribute_sets; - /** - * Required. Specifies the desired ordering criterion for results. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder order_by = 13 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $order_by = 0; - /** - * This indicates if vehicles with a single active trip are eligible for this - * search. This field is only used when `current_trips_present` is - * unspecified. When `current_trips_present` is unspecified and this field - * is `false`, vehicles with assigned trips are excluded from the search - * results. When `current_trips_present` is unspecified and this field is - * `true`, search results can include vehicles with one active trip that has a - * status of `ENROUTE_TO_DROPOFF`. When `current_trips_present` is specified, - * this field cannot be set to true. - * The default value is `false`. - * - * Generated from protobuf field bool include_back_to_back = 18; - */ - protected $include_back_to_back = false; - /** - * Indicates the trip associated with this `SearchVehicleRequest`. - * - * Generated from protobuf field string trip_id = 19; - */ - protected $trip_id = ''; - /** - * This indicates if vehicles with active trips are eligible for this search. - * This must be set to something other than - * `CURRENT_TRIPS_PRESENT_UNSPECIFIED` if `trip_type` includes `SHARED`. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.CurrentTripsPresent current_trips_present = 21; - */ - protected $current_trips_present = 0; - /** - * Optional. A filter query to apply when searching vehicles. See - * http://aip.dev/160 for examples of the filter syntax. - * This field is designed to replace the `required_attributes`, - * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. - * If a non-empty value is specified here, the following fields must be empty: - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attributes_sets`. - * This filter functions as an AND clause with other constraints, - * such as `minimum_capacity` or `vehicle_types`. - * Note that the only queries supported are on vehicle attributes (for - * example, `attributes. = ` or `attributes. = AND - * attributes. = `). The maximum number of restrictions allowed - * in a filter query is 50. - * Also, all attributes are stored as strings, so the only supported - * comparisons against attributes are string comparisons. In order to compare - * against number or boolean values, the values must be explicitly quoted to - * be treated as strings (for example, `attributes. = "10"` or - * `attributes. = "true"`). - * - * Generated from protobuf field string filter = 22 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\RequestHeader $header - * The standard Fleet Engine request header. - * @type string $parent - * Required. Must be in the format `providers/{provider}`. - * 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. - * @type \Google\Maps\FleetEngine\V1\TerminalLocation $pickup_point - * Required. The pickup point to search near. - * @type \Google\Maps\FleetEngine\V1\TerminalLocation $dropoff_point - * The customer's intended dropoff location. The field is required if - * `trip_types` contains `TripType.SHARED`. - * @type int $pickup_radius_meters - * Required. Defines the vehicle search radius around the pickup point. Only - * vehicles within the search radius will be returned. Value must be between - * 400 and 10000 meters (inclusive). - * @type int $count - * Required. Specifies the maximum number of vehicles to return. The value - * must be between 1 and 50 (inclusive). - * @type int $minimum_capacity - * Required. Specifies the number of passengers being considered for a trip. - * The value must be greater than or equal to one. The driver is not - * considered in the capacity value. - * @type array|\Google\Protobuf\Internal\RepeatedField $trip_types - * Required. Represents the type of proposed trip. Must include exactly one - * type. `UNKNOWN_TRIP_TYPE` is not allowed. Restricts the search to only - * those vehicles that can support that trip type. - * @type \Google\Protobuf\Duration $maximum_staleness - * Restricts the search to only those vehicles that have sent location updates - * to Fleet Engine within the specified duration. Stationary vehicles still - * transmitting their locations are not considered stale. If this field is not - * set, the server uses five minutes as the default value. - * @type array<\Google\Maps\FleetEngine\V1\Vehicle\VehicleType>|\Google\Protobuf\Internal\RepeatedField $vehicle_types - * Required. Restricts the search to vehicles with one of the specified types. - * At least one vehicle type must be specified. VehicleTypes with a category - * of `UNKNOWN` are not allowed. - * @type array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $required_attributes - * Callers can form complex logical operations using any combination of the - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attribute_sets` fields. - * `required_attributes` is a list; `required_one_of_attributes` uses a - * message which allows a list of lists. In combination, the two fields allow - * the composition of this expression: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR - * ...) - * AND - * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR - * ...) - * ``` - * Restricts the search to only those vehicles with the specified attributes. - * This field is a conjunction/AND operation. A max of 50 required_attributes - * is allowed. This matches the maximum number of attributes allowed on a - * vehicle. - * @type array<\Google\Maps\FleetEngine\V1\VehicleAttributeList>|\Google\Protobuf\Internal\RepeatedField $required_one_of_attributes - * Restricts the search to only those vehicles with at least one of - * the specified attributes in each `VehicleAttributeList`. Within each - * list, a vehicle must match at least one of the attributes. This field is an - * inclusive disjunction/OR operation in each `VehicleAttributeList` and a - * conjunction/AND operation across the collection of `VehicleAttributeList`. - * @type array<\Google\Maps\FleetEngine\V1\VehicleAttributeList>|\Google\Protobuf\Internal\RepeatedField $required_one_of_attribute_sets - * `required_one_of_attribute_sets` provides additional functionality. - * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` - * uses a message which allows a list of lists, allowing expressions such as - * this one: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * ( - * (required_one_of_attribute_sets[0][0] AND - * required_one_of_attribute_sets[0][1] AND - * ...) - * OR - * (required_one_of_attribute_sets[1][0] AND - * required_one_of_attribute_sets[1][1] AND - * ...) - * ) - * ``` - * Restricts the search to only those vehicles with all the attributes in a - * `VehicleAttributeList`. Within each list, a - * vehicle must match all of the attributes. This field is a conjunction/AND - * operation in each `VehicleAttributeList` and inclusive disjunction/OR - * operation across the collection of `VehicleAttributeList`. - * @type int $order_by - * Required. Specifies the desired ordering criterion for results. - * @type bool $include_back_to_back - * This indicates if vehicles with a single active trip are eligible for this - * search. This field is only used when `current_trips_present` is - * unspecified. When `current_trips_present` is unspecified and this field - * is `false`, vehicles with assigned trips are excluded from the search - * results. When `current_trips_present` is unspecified and this field is - * `true`, search results can include vehicles with one active trip that has a - * status of `ENROUTE_TO_DROPOFF`. When `current_trips_present` is specified, - * this field cannot be set to true. - * The default value is `false`. - * @type string $trip_id - * Indicates the trip associated with this `SearchVehicleRequest`. - * @type int $current_trips_present - * This indicates if vehicles with active trips are eligible for this search. - * This must be set to something other than - * `CURRENT_TRIPS_PRESENT_UNSPECIFIED` if `trip_type` includes `SHARED`. - * @type string $filter - * Optional. A filter query to apply when searching vehicles. See - * http://aip.dev/160 for examples of the filter syntax. - * This field is designed to replace the `required_attributes`, - * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. - * If a non-empty value is specified here, the following fields must be empty: - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attributes_sets`. - * This filter functions as an AND clause with other constraints, - * such as `minimum_capacity` or `vehicle_types`. - * Note that the only queries supported are on vehicle attributes (for - * example, `attributes. = ` or `attributes. = AND - * attributes. = `). The maximum number of restrictions allowed - * in a filter query is 50. - * Also, all attributes are stored as strings, so the only supported - * comparisons against attributes are string comparisons. In order to compare - * against number or boolean values, the values must be explicitly quoted to - * be treated as strings (for example, `attributes. = "10"` or - * `attributes. = "true"`). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @return \Google\Maps\FleetEngine\V1\RequestHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @param \Google\Maps\FleetEngine\V1\RequestHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); - $this->header = $var; - - return $this; - } - - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Must be in the format `providers/{provider}`. - * 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. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The pickup point to search near. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Maps\FleetEngine\V1\TerminalLocation|null - */ - public function getPickupPoint() - { - return $this->pickup_point; - } - - public function hasPickupPoint() - { - return isset($this->pickup_point); - } - - public function clearPickupPoint() - { - unset($this->pickup_point); - } - - /** - * Required. The pickup point to search near. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Maps\FleetEngine\V1\TerminalLocation $var - * @return $this - */ - public function setPickupPoint($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalLocation::class); - $this->pickup_point = $var; - - return $this; - } - - /** - * The customer's intended dropoff location. The field is required if - * `trip_types` contains `TripType.SHARED`. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 5; - * @return \Google\Maps\FleetEngine\V1\TerminalLocation|null - */ - public function getDropoffPoint() - { - return $this->dropoff_point; - } - - public function hasDropoffPoint() - { - return isset($this->dropoff_point); - } - - public function clearDropoffPoint() - { - unset($this->dropoff_point); - } - - /** - * The customer's intended dropoff location. The field is required if - * `trip_types` contains `TripType.SHARED`. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 5; - * @param \Google\Maps\FleetEngine\V1\TerminalLocation $var - * @return $this - */ - public function setDropoffPoint($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalLocation::class); - $this->dropoff_point = $var; - - return $this; - } - - /** - * Required. Defines the vehicle search radius around the pickup point. Only - * vehicles within the search radius will be returned. Value must be between - * 400 and 10000 meters (inclusive). - * - * Generated from protobuf field int32 pickup_radius_meters = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getPickupRadiusMeters() - { - return $this->pickup_radius_meters; - } - - /** - * Required. Defines the vehicle search radius around the pickup point. Only - * vehicles within the search radius will be returned. Value must be between - * 400 and 10000 meters (inclusive). - * - * Generated from protobuf field int32 pickup_radius_meters = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setPickupRadiusMeters($var) - { - GPBUtil::checkInt32($var); - $this->pickup_radius_meters = $var; - - return $this; - } - - /** - * Required. Specifies the maximum number of vehicles to return. The value - * must be between 1 and 50 (inclusive). - * - * Generated from protobuf field int32 count = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getCount() - { - return $this->count; - } - - /** - * Required. Specifies the maximum number of vehicles to return. The value - * must be between 1 and 50 (inclusive). - * - * Generated from protobuf field int32 count = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setCount($var) - { - GPBUtil::checkInt32($var); - $this->count = $var; - - return $this; - } - - /** - * Required. Specifies the number of passengers being considered for a trip. - * The value must be greater than or equal to one. The driver is not - * considered in the capacity value. - * - * Generated from protobuf field int32 minimum_capacity = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMinimumCapacity() - { - return $this->minimum_capacity; - } - - /** - * Required. Specifies the number of passengers being considered for a trip. - * The value must be greater than or equal to one. The driver is not - * considered in the capacity value. - * - * Generated from protobuf field int32 minimum_capacity = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMinimumCapacity($var) - { - GPBUtil::checkInt32($var); - $this->minimum_capacity = $var; - - return $this; - } - - /** - * Required. Represents the type of proposed trip. Must include exactly one - * type. `UNKNOWN_TRIP_TYPE` is not allowed. Restricts the search to only - * those vehicles that can support that trip type. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 9 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTripTypes() - { - return $this->trip_types; - } - - /** - * Required. Represents the type of proposed trip. Must include exactly one - * type. `UNKNOWN_TRIP_TYPE` is not allowed. Restricts the search to only - * those vehicles that can support that trip type. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripType trip_types = 9 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTripTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Maps\FleetEngine\V1\TripType::class); - $this->trip_types = $arr; - - return $this; - } - - /** - * Restricts the search to only those vehicles that have sent location updates - * to Fleet Engine within the specified duration. Stationary vehicles still - * transmitting their locations are not considered stale. If this field is not - * set, the server uses five minutes as the default value. - * - * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 10; - * @return \Google\Protobuf\Duration|null - */ - public function getMaximumStaleness() - { - return $this->maximum_staleness; - } - - public function hasMaximumStaleness() - { - return isset($this->maximum_staleness); - } - - public function clearMaximumStaleness() - { - unset($this->maximum_staleness); - } - - /** - * Restricts the search to only those vehicles that have sent location updates - * to Fleet Engine within the specified duration. Stationary vehicles still - * transmitting their locations are not considered stale. If this field is not - * set, the server uses five minutes as the default value. - * - * Generated from protobuf field .google.protobuf.Duration maximum_staleness = 10; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMaximumStaleness($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->maximum_staleness = $var; - - return $this; - } - - /** - * Required. Restricts the search to vehicles with one of the specified types. - * At least one vehicle type must be specified. VehicleTypes with a category - * of `UNKNOWN` are not allowed. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType vehicle_types = 14 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVehicleTypes() - { - return $this->vehicle_types; - } - - /** - * Required. Restricts the search to vehicles with one of the specified types. - * At least one vehicle type must be specified. VehicleTypes with a category - * of `UNKNOWN` are not allowed. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Vehicle.VehicleType vehicle_types = 14 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Maps\FleetEngine\V1\Vehicle\VehicleType>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVehicleTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\Vehicle\VehicleType::class); - $this->vehicle_types = $arr; - - return $this; - } - - /** - * Callers can form complex logical operations using any combination of the - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attribute_sets` fields. - * `required_attributes` is a list; `required_one_of_attributes` uses a - * message which allows a list of lists. In combination, the two fields allow - * the composition of this expression: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR - * ...) - * AND - * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR - * ...) - * ``` - * Restricts the search to only those vehicles with the specified attributes. - * This field is a conjunction/AND operation. A max of 50 required_attributes - * is allowed. This matches the maximum number of attributes allowed on a - * vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute required_attributes = 12; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequiredAttributes() - { - return $this->required_attributes; - } - - /** - * Callers can form complex logical operations using any combination of the - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attribute_sets` fields. - * `required_attributes` is a list; `required_one_of_attributes` uses a - * message which allows a list of lists. In combination, the two fields allow - * the composition of this expression: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR - * ...) - * AND - * (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR - * ...) - * ``` - * Restricts the search to only those vehicles with the specified attributes. - * This field is a conjunction/AND operation. A max of 50 required_attributes - * is allowed. This matches the maximum number of attributes allowed on a - * vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute required_attributes = 12; - * @param array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequiredAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttribute::class); - $this->required_attributes = $arr; - - return $this; - } - - /** - * Restricts the search to only those vehicles with at least one of - * the specified attributes in each `VehicleAttributeList`. Within each - * list, a vehicle must match at least one of the attributes. This field is an - * inclusive disjunction/OR operation in each `VehicleAttributeList` and a - * conjunction/AND operation across the collection of `VehicleAttributeList`. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attributes = 15; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequiredOneOfAttributes() - { - return $this->required_one_of_attributes; - } - - /** - * Restricts the search to only those vehicles with at least one of - * the specified attributes in each `VehicleAttributeList`. Within each - * list, a vehicle must match at least one of the attributes. This field is an - * inclusive disjunction/OR operation in each `VehicleAttributeList` and a - * conjunction/AND operation across the collection of `VehicleAttributeList`. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attributes = 15; - * @param array<\Google\Maps\FleetEngine\V1\VehicleAttributeList>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequiredOneOfAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttributeList::class); - $this->required_one_of_attributes = $arr; - - return $this; - } - - /** - * `required_one_of_attribute_sets` provides additional functionality. - * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` - * uses a message which allows a list of lists, allowing expressions such as - * this one: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * ( - * (required_one_of_attribute_sets[0][0] AND - * required_one_of_attribute_sets[0][1] AND - * ...) - * OR - * (required_one_of_attribute_sets[1][0] AND - * required_one_of_attribute_sets[1][1] AND - * ...) - * ) - * ``` - * Restricts the search to only those vehicles with all the attributes in a - * `VehicleAttributeList`. Within each list, a - * vehicle must match all of the attributes. This field is a conjunction/AND - * operation in each `VehicleAttributeList` and inclusive disjunction/OR - * operation across the collection of `VehicleAttributeList`. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attribute_sets = 20; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequiredOneOfAttributeSets() - { - return $this->required_one_of_attribute_sets; - } - - /** - * `required_one_of_attribute_sets` provides additional functionality. - * Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` - * uses a message which allows a list of lists, allowing expressions such as - * this one: - * ``` - * (required_attributes[0] AND required_attributes[1] AND ...) - * AND - * ( - * (required_one_of_attribute_sets[0][0] AND - * required_one_of_attribute_sets[0][1] AND - * ...) - * OR - * (required_one_of_attribute_sets[1][0] AND - * required_one_of_attribute_sets[1][1] AND - * ...) - * ) - * ``` - * Restricts the search to only those vehicles with all the attributes in a - * `VehicleAttributeList`. Within each list, a - * vehicle must match all of the attributes. This field is a conjunction/AND - * operation in each `VehicleAttributeList` and inclusive disjunction/OR - * operation across the collection of `VehicleAttributeList`. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttributeList required_one_of_attribute_sets = 20; - * @param array<\Google\Maps\FleetEngine\V1\VehicleAttributeList>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequiredOneOfAttributeSets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttributeList::class); - $this->required_one_of_attribute_sets = $arr; - - return $this; - } - - /** - * Required. Specifies the desired ordering criterion for results. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder order_by = 13 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Required. Specifies the desired ordering criterion for results. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder order_by = 13 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest\VehicleMatchOrder::class); - $this->order_by = $var; - - return $this; - } - - /** - * This indicates if vehicles with a single active trip are eligible for this - * search. This field is only used when `current_trips_present` is - * unspecified. When `current_trips_present` is unspecified and this field - * is `false`, vehicles with assigned trips are excluded from the search - * results. When `current_trips_present` is unspecified and this field is - * `true`, search results can include vehicles with one active trip that has a - * status of `ENROUTE_TO_DROPOFF`. When `current_trips_present` is specified, - * this field cannot be set to true. - * The default value is `false`. - * - * Generated from protobuf field bool include_back_to_back = 18; - * @return bool - */ - public function getIncludeBackToBack() - { - return $this->include_back_to_back; - } - - /** - * This indicates if vehicles with a single active trip are eligible for this - * search. This field is only used when `current_trips_present` is - * unspecified. When `current_trips_present` is unspecified and this field - * is `false`, vehicles with assigned trips are excluded from the search - * results. When `current_trips_present` is unspecified and this field is - * `true`, search results can include vehicles with one active trip that has a - * status of `ENROUTE_TO_DROPOFF`. When `current_trips_present` is specified, - * this field cannot be set to true. - * The default value is `false`. - * - * Generated from protobuf field bool include_back_to_back = 18; - * @param bool $var - * @return $this - */ - public function setIncludeBackToBack($var) - { - GPBUtil::checkBool($var); - $this->include_back_to_back = $var; - - return $this; - } - - /** - * Indicates the trip associated with this `SearchVehicleRequest`. - * - * Generated from protobuf field string trip_id = 19; - * @return string - */ - public function getTripId() - { - return $this->trip_id; - } - - /** - * Indicates the trip associated with this `SearchVehicleRequest`. - * - * Generated from protobuf field string trip_id = 19; - * @param string $var - * @return $this - */ - public function setTripId($var) - { - GPBUtil::checkString($var, True); - $this->trip_id = $var; - - return $this; - } - - /** - * This indicates if vehicles with active trips are eligible for this search. - * This must be set to something other than - * `CURRENT_TRIPS_PRESENT_UNSPECIFIED` if `trip_type` includes `SHARED`. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.CurrentTripsPresent current_trips_present = 21; - * @return int - */ - public function getCurrentTripsPresent() - { - return $this->current_trips_present; - } - - /** - * This indicates if vehicles with active trips are eligible for this search. - * This must be set to something other than - * `CURRENT_TRIPS_PRESENT_UNSPECIFIED` if `trip_type` includes `SHARED`. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.CurrentTripsPresent current_trips_present = 21; - * @param int $var - * @return $this - */ - public function setCurrentTripsPresent($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest\CurrentTripsPresent::class); - $this->current_trips_present = $var; - - return $this; - } - - /** - * Optional. A filter query to apply when searching vehicles. See - * http://aip.dev/160 for examples of the filter syntax. - * This field is designed to replace the `required_attributes`, - * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. - * If a non-empty value is specified here, the following fields must be empty: - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attributes_sets`. - * This filter functions as an AND clause with other constraints, - * such as `minimum_capacity` or `vehicle_types`. - * Note that the only queries supported are on vehicle attributes (for - * example, `attributes. = ` or `attributes. = AND - * attributes. = `). The maximum number of restrictions allowed - * in a filter query is 50. - * Also, all attributes are stored as strings, so the only supported - * comparisons against attributes are string comparisons. In order to compare - * against number or boolean values, the values must be explicitly quoted to - * be treated as strings (for example, `attributes. = "10"` or - * `attributes. = "true"`). - * - * Generated from protobuf field string filter = 22 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. A filter query to apply when searching vehicles. See - * http://aip.dev/160 for examples of the filter syntax. - * This field is designed to replace the `required_attributes`, - * `required_one_of_attributes`, and `required_one_of_attributes_sets` fields. - * If a non-empty value is specified here, the following fields must be empty: - * `required_attributes`, `required_one_of_attributes`, and - * `required_one_of_attributes_sets`. - * This filter functions as an AND clause with other constraints, - * such as `minimum_capacity` or `vehicle_types`. - * Note that the only queries supported are on vehicle attributes (for - * example, `attributes. = ` or `attributes. = AND - * attributes. = `). The maximum number of restrictions allowed - * in a filter query is 50. - * Also, all attributes are stored as strings, so the only supported - * comparisons against attributes are string comparisons. In order to compare - * against number or boolean values, the values must be explicitly quoted to - * be treated as strings (for example, `attributes. = "10"` or - * `attributes. = "true"`). - * - * Generated from protobuf field string filter = 22 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/CurrentTripsPresent.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/CurrentTripsPresent.php deleted file mode 100644 index e9d8ed63eb8d..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/CurrentTripsPresent.php +++ /dev/null @@ -1,68 +0,0 @@ -maps.fleetengine.v1.SearchVehiclesRequest.CurrentTripsPresent - */ -class CurrentTripsPresent -{ - /** - * The availability of vehicles with trips present is governed by the - * `include_back_to_back` field. - * - * Generated from protobuf enum CURRENT_TRIPS_PRESENT_UNSPECIFIED = 0; - */ - const CURRENT_TRIPS_PRESENT_UNSPECIFIED = 0; - /** - * Vehicles without trips can appear in search results. When this value is - * used, `include_back_to_back` cannot be `true`. - * - * Generated from protobuf enum NONE = 1; - */ - const NONE = 1; - /** - * Vehicles with at most 5 current trips and 10 waypoints are included - * in the search results. When this value is used, `include_back_to_back` - * cannot be `true`. - * - * Generated from protobuf enum ANY = 2; - */ - const ANY = 2; - - private static $valueToName = [ - self::CURRENT_TRIPS_PRESENT_UNSPECIFIED => 'CURRENT_TRIPS_PRESENT_UNSPECIFIED', - self::NONE => 'NONE', - self::ANY => 'ANY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CurrentTripsPresent::class, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest_CurrentTripsPresent::class); - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/VehicleMatchOrder.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/VehicleMatchOrder.php deleted file mode 100644 index 5abdd153b401..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesRequest/VehicleMatchOrder.php +++ /dev/null @@ -1,90 +0,0 @@ -maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder - */ -class VehicleMatchOrder -{ - /** - * Default, used for unspecified or unrecognized vehicle matches order. - * - * Generated from protobuf enum UNKNOWN_VEHICLE_MATCH_ORDER = 0; - */ - const UNKNOWN_VEHICLE_MATCH_ORDER = 0; - /** - * Ascending order by vehicle driving time to the pickup point. - * - * Generated from protobuf enum PICKUP_POINT_ETA = 1; - */ - const PICKUP_POINT_ETA = 1; - /** - * Ascending order by vehicle driving distance to the pickup point. - * - * Generated from protobuf enum PICKUP_POINT_DISTANCE = 2; - */ - const PICKUP_POINT_DISTANCE = 2; - /** - * Ascending order by vehicle driving time to the dropoff point. This order - * can only be used if the dropoff point is specified in the request. - * - * Generated from protobuf enum DROPOFF_POINT_ETA = 3; - */ - const DROPOFF_POINT_ETA = 3; - /** - * Ascending order by straight-line distance from the vehicle's last - * reported location to the pickup point. - * - * Generated from protobuf enum PICKUP_POINT_STRAIGHT_DISTANCE = 4; - */ - const PICKUP_POINT_STRAIGHT_DISTANCE = 4; - /** - * Ascending order by the configured match cost. Match cost is defined as a - * weighted calculation between straight-line distance and ETA. Weights are - * set with default values and can be modified per customer. Please contact - * Google support if these weights need to be modified for your project. - * - * Generated from protobuf enum COST = 5; - */ - const COST = 5; - - private static $valueToName = [ - self::UNKNOWN_VEHICLE_MATCH_ORDER => 'UNKNOWN_VEHICLE_MATCH_ORDER', - self::PICKUP_POINT_ETA => 'PICKUP_POINT_ETA', - self::PICKUP_POINT_DISTANCE => 'PICKUP_POINT_DISTANCE', - self::DROPOFF_POINT_ETA => 'DROPOFF_POINT_ETA', - self::PICKUP_POINT_STRAIGHT_DISTANCE => 'PICKUP_POINT_STRAIGHT_DISTANCE', - self::COST => 'COST', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(VehicleMatchOrder::class, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest_VehicleMatchOrder::class); - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesResponse.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesResponse.php deleted file mode 100644 index c521ea8c385e..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SearchVehiclesResponse.php +++ /dev/null @@ -1,71 +0,0 @@ -maps.fleetengine.v1.SearchVehiclesResponse - */ -class SearchVehiclesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of vehicles that match the `SearchVehiclesRequest` criteria, ordered - * according to `SearchVehiclesRequest.order_by` field. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleMatch matches = 1; - */ - private $matches; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Maps\FleetEngine\V1\VehicleMatch>|\Google\Protobuf\Internal\RepeatedField $matches - * List of vehicles that match the `SearchVehiclesRequest` criteria, ordered - * according to `SearchVehiclesRequest.order_by` field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * List of vehicles that match the `SearchVehiclesRequest` criteria, ordered - * according to `SearchVehiclesRequest.order_by` field. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleMatch matches = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMatches() - { - return $this->matches; - } - - /** - * List of vehicles that match the `SearchVehiclesRequest` criteria, ordered - * according to `SearchVehiclesRequest.order_by` field. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleMatch matches = 1; - * @param array<\Google\Maps\FleetEngine\V1\VehicleMatch>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMatches($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleMatch::class); - $this->matches = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval.php deleted file mode 100644 index 53d8e860e1d4..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval.php +++ /dev/null @@ -1,145 +0,0 @@ -maps.fleetengine.v1.SpeedReadingInterval - */ -class SpeedReadingInterval extends \Google\Protobuf\Internal\Message -{ - /** - * The starting index of this interval in the path. - * In JSON, when the index is 0, the field will appear to be unpopulated. - * - * Generated from protobuf field int32 start_polyline_point_index = 1; - */ - protected $start_polyline_point_index = 0; - /** - * The ending index of this interval in the path. - * In JSON, when the index is 0, the field will appear to be unpopulated. - * - * Generated from protobuf field int32 end_polyline_point_index = 2; - */ - protected $end_polyline_point_index = 0; - /** - * Traffic speed in this interval. - * - * Generated from protobuf field .maps.fleetengine.v1.SpeedReadingInterval.Speed speed = 3; - */ - protected $speed = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $start_polyline_point_index - * The starting index of this interval in the path. - * In JSON, when the index is 0, the field will appear to be unpopulated. - * @type int $end_polyline_point_index - * The ending index of this interval in the path. - * In JSON, when the index is 0, the field will appear to be unpopulated. - * @type int $speed - * Traffic speed in this interval. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Traffic::initOnce(); - parent::__construct($data); - } - - /** - * The starting index of this interval in the path. - * In JSON, when the index is 0, the field will appear to be unpopulated. - * - * Generated from protobuf field int32 start_polyline_point_index = 1; - * @return int - */ - public function getStartPolylinePointIndex() - { - return $this->start_polyline_point_index; - } - - /** - * The starting index of this interval in the path. - * In JSON, when the index is 0, the field will appear to be unpopulated. - * - * Generated from protobuf field int32 start_polyline_point_index = 1; - * @param int $var - * @return $this - */ - public function setStartPolylinePointIndex($var) - { - GPBUtil::checkInt32($var); - $this->start_polyline_point_index = $var; - - return $this; - } - - /** - * The ending index of this interval in the path. - * In JSON, when the index is 0, the field will appear to be unpopulated. - * - * Generated from protobuf field int32 end_polyline_point_index = 2; - * @return int - */ - public function getEndPolylinePointIndex() - { - return $this->end_polyline_point_index; - } - - /** - * The ending index of this interval in the path. - * In JSON, when the index is 0, the field will appear to be unpopulated. - * - * Generated from protobuf field int32 end_polyline_point_index = 2; - * @param int $var - * @return $this - */ - public function setEndPolylinePointIndex($var) - { - GPBUtil::checkInt32($var); - $this->end_polyline_point_index = $var; - - return $this; - } - - /** - * Traffic speed in this interval. - * - * Generated from protobuf field .maps.fleetengine.v1.SpeedReadingInterval.Speed speed = 3; - * @return int - */ - public function getSpeed() - { - return $this->speed; - } - - /** - * Traffic speed in this interval. - * - * Generated from protobuf field .maps.fleetengine.v1.SpeedReadingInterval.Speed speed = 3; - * @param int $var - * @return $this - */ - public function setSpeed($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\SpeedReadingInterval\Speed::class); - $this->speed = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval/Speed.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval/Speed.php deleted file mode 100644 index 6291e7ebaf55..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/SpeedReadingInterval/Speed.php +++ /dev/null @@ -1,71 +0,0 @@ -maps.fleetengine.v1.SpeedReadingInterval.Speed - */ -class Speed -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum SPEED_UNSPECIFIED = 0; - */ - const SPEED_UNSPECIFIED = 0; - /** - * Normal speed, no slowdown is detected. - * - * Generated from protobuf enum NORMAL = 1; - */ - const NORMAL = 1; - /** - * Slowdown detected, but no traffic jam formed. - * - * Generated from protobuf enum SLOW = 2; - */ - const SLOW = 2; - /** - * Traffic jam detected. - * - * Generated from protobuf enum TRAFFIC_JAM = 3; - */ - const TRAFFIC_JAM = 3; - - private static $valueToName = [ - self::SPEED_UNSPECIFIED => 'SPEED_UNSPECIFIED', - self::NORMAL => 'NORMAL', - self::SLOW => 'SLOW', - self::TRAFFIC_JAM => 'TRAFFIC_JAM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Speed::class, \Google\Maps\FleetEngine\V1\SpeedReadingInterval_Speed::class); - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/StopLocation.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/StopLocation.php deleted file mode 100644 index 6a2b230a3673..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/StopLocation.php +++ /dev/null @@ -1,172 +0,0 @@ -maps.fleetengine.v1.StopLocation - */ -class StopLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Denotes the actual location. - * - * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $point = null; - /** - * Indicates when the stop happened. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; - */ - protected $timestamp = null; - /** - * Input only. Deprecated. Use the timestamp field. - * - * Generated from protobuf field .google.protobuf.Timestamp stop_time = 3 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; - * @deprecated - */ - protected $stop_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\LatLng $point - * Required. Denotes the actual location. - * @type \Google\Protobuf\Timestamp $timestamp - * Indicates when the stop happened. - * @type \Google\Protobuf\Timestamp $stop_time - * Input only. Deprecated. Use the timestamp field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Trips::initOnce(); - parent::__construct($data); - } - - /** - * Required. Denotes the actual location. - * - * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Type\LatLng|null - */ - public function getPoint() - { - return $this->point; - } - - public function hasPoint() - { - return isset($this->point); - } - - public function clearPoint() - { - unset($this->point); - } - - /** - * Required. Denotes the actual location. - * - * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Type\LatLng $var - * @return $this - */ - public function setPoint($var) - { - GPBUtil::checkMessage($var, \Google\Type\LatLng::class); - $this->point = $var; - - return $this; - } - - /** - * Indicates when the stop happened. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTimestamp() - { - return $this->timestamp; - } - - public function hasTimestamp() - { - return isset($this->timestamp); - } - - public function clearTimestamp() - { - unset($this->timestamp); - } - - /** - * Indicates when the stop happened. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTimestamp($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->timestamp = $var; - - return $this; - } - - /** - * Input only. Deprecated. Use the timestamp field. - * - * Generated from protobuf field .google.protobuf.Timestamp stop_time = 3 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - * @deprecated - */ - public function getStopTime() - { - @trigger_error('stop_time is deprecated.', E_USER_DEPRECATED); - return $this->stop_time; - } - - public function hasStopTime() - { - @trigger_error('stop_time is deprecated.', E_USER_DEPRECATED); - return isset($this->stop_time); - } - - public function clearStopTime() - { - @trigger_error('stop_time is deprecated.', E_USER_DEPRECATED); - unset($this->stop_time); - } - - /** - * Input only. Deprecated. Use the timestamp field. - * - * Generated from protobuf field .google.protobuf.Timestamp stop_time = 3 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - * @deprecated - */ - public function setStopTime($var) - { - @trigger_error('stop_time is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->stop_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalLocation.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalLocation.php deleted file mode 100644 index aa49ef72b229..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalLocation.php +++ /dev/null @@ -1,245 +0,0 @@ -maps.fleetengine.v1.TerminalLocation - */ -class TerminalLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Denotes the location of a trip waypoint. - * - * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $point = null; - /** - * Deprecated: Specify the `point` field instead. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalPointId terminal_point_id = 2 [deprecated = true]; - * @deprecated - */ - protected $terminal_point_id = null; - /** - * Deprecated: Specify the `point` field instead. - * - * Generated from protobuf field string access_point_id = 3 [deprecated = true]; - * @deprecated - */ - protected $access_point_id = ''; - /** - * Deprecated. - * - * Generated from protobuf field string trip_id = 4 [deprecated = true]; - * @deprecated - */ - protected $trip_id = ''; - /** - * Deprecated: `Vehicle.waypoint` will have this data. - * - * Generated from protobuf field .maps.fleetengine.v1.WaypointType terminal_location_type = 5 [deprecated = true]; - * @deprecated - */ - protected $terminal_location_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\LatLng $point - * Required. Denotes the location of a trip waypoint. - * @type \Google\Maps\FleetEngine\V1\TerminalPointId $terminal_point_id - * Deprecated: Specify the `point` field instead. - * @type string $access_point_id - * Deprecated: Specify the `point` field instead. - * @type string $trip_id - * Deprecated. - * @type int $terminal_location_type - * Deprecated: `Vehicle.waypoint` will have this data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Fleetengine::initOnce(); - parent::__construct($data); - } - - /** - * Required. Denotes the location of a trip waypoint. - * - * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Type\LatLng|null - */ - public function getPoint() - { - return $this->point; - } - - public function hasPoint() - { - return isset($this->point); - } - - public function clearPoint() - { - unset($this->point); - } - - /** - * Required. Denotes the location of a trip waypoint. - * - * Generated from protobuf field .google.type.LatLng point = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Type\LatLng $var - * @return $this - */ - public function setPoint($var) - { - GPBUtil::checkMessage($var, \Google\Type\LatLng::class); - $this->point = $var; - - return $this; - } - - /** - * Deprecated: Specify the `point` field instead. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalPointId terminal_point_id = 2 [deprecated = true]; - * @return \Google\Maps\FleetEngine\V1\TerminalPointId|null - * @deprecated - */ - public function getTerminalPointId() - { - @trigger_error('terminal_point_id is deprecated.', E_USER_DEPRECATED); - return $this->terminal_point_id; - } - - public function hasTerminalPointId() - { - @trigger_error('terminal_point_id is deprecated.', E_USER_DEPRECATED); - return isset($this->terminal_point_id); - } - - public function clearTerminalPointId() - { - @trigger_error('terminal_point_id is deprecated.', E_USER_DEPRECATED); - unset($this->terminal_point_id); - } - - /** - * Deprecated: Specify the `point` field instead. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalPointId terminal_point_id = 2 [deprecated = true]; - * @param \Google\Maps\FleetEngine\V1\TerminalPointId $var - * @return $this - * @deprecated - */ - public function setTerminalPointId($var) - { - @trigger_error('terminal_point_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalPointId::class); - $this->terminal_point_id = $var; - - return $this; - } - - /** - * Deprecated: Specify the `point` field instead. - * - * Generated from protobuf field string access_point_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getAccessPointId() - { - @trigger_error('access_point_id is deprecated.', E_USER_DEPRECATED); - return $this->access_point_id; - } - - /** - * Deprecated: Specify the `point` field instead. - * - * Generated from protobuf field string access_point_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setAccessPointId($var) - { - @trigger_error('access_point_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->access_point_id = $var; - - return $this; - } - - /** - * Deprecated. - * - * Generated from protobuf field string trip_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getTripId() - { - @trigger_error('trip_id is deprecated.', E_USER_DEPRECATED); - return $this->trip_id; - } - - /** - * Deprecated. - * - * Generated from protobuf field string trip_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setTripId($var) - { - @trigger_error('trip_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->trip_id = $var; - - return $this; - } - - /** - * Deprecated: `Vehicle.waypoint` will have this data. - * - * Generated from protobuf field .maps.fleetengine.v1.WaypointType terminal_location_type = 5 [deprecated = true]; - * @return int - * @deprecated - */ - public function getTerminalLocationType() - { - @trigger_error('terminal_location_type is deprecated.', E_USER_DEPRECATED); - return $this->terminal_location_type; - } - - /** - * Deprecated: `Vehicle.waypoint` will have this data. - * - * Generated from protobuf field .maps.fleetengine.v1.WaypointType terminal_location_type = 5 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setTerminalLocationType($var) - { - @trigger_error('terminal_location_type is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\WaypointType::class); - $this->terminal_location_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalPointId.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalPointId.php deleted file mode 100644 index dbd1ada8ce1c..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TerminalPointId.php +++ /dev/null @@ -1,159 +0,0 @@ -maps.fleetengine.v1.TerminalPointId - */ -class TerminalPointId extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. - * - * Generated from protobuf field string value = 4 [deprecated = true]; - * @deprecated - */ - protected $value = ''; - protected $Id; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $place_id - * Deprecated. - * @type string $generated_id - * Deprecated. - * @type string $value - * Deprecated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Fleetengine::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. - * - * Generated from protobuf field string place_id = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getPlaceId() - { - @trigger_error('place_id is deprecated.', E_USER_DEPRECATED); - return $this->readOneof(2); - } - - public function hasPlaceId() - { - @trigger_error('place_id is deprecated.', E_USER_DEPRECATED); - return $this->hasOneof(2); - } - - /** - * Deprecated. - * - * Generated from protobuf field string place_id = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setPlaceId($var) - { - @trigger_error('place_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Deprecated. - * - * Generated from protobuf field string generated_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getGeneratedId() - { - @trigger_error('generated_id is deprecated.', E_USER_DEPRECATED); - return $this->readOneof(3); - } - - public function hasGeneratedId() - { - @trigger_error('generated_id is deprecated.', E_USER_DEPRECATED); - return $this->hasOneof(3); - } - - /** - * Deprecated. - * - * Generated from protobuf field string generated_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setGeneratedId($var) - { - @trigger_error('generated_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Deprecated. - * - * Generated from protobuf field string value = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getValue() - { - @trigger_error('value is deprecated.', E_USER_DEPRECATED); - return $this->value; - } - - /** - * Deprecated. - * - * Generated from protobuf field string value = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setValue($var) - { - @trigger_error('value is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * @return string - */ - public function getId() - { - return $this->whichOneof("Id"); - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TrafficPolylineData.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TrafficPolylineData.php deleted file mode 100644 index d40f215739bf..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TrafficPolylineData.php +++ /dev/null @@ -1,81 +0,0 @@ -maps.fleetengine.v1.TrafficPolylineData - */ -class TrafficPolylineData extends \Google\Protobuf\Internal\Message -{ - /** - * A polyline rendering of how fast traffic is for all regions along - * one stretch of a customer ride. - * - * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering traffic_rendering = 1; - */ - protected $traffic_rendering = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering $traffic_rendering - * A polyline rendering of how fast traffic is for all regions along - * one stretch of a customer ride. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); - parent::__construct($data); - } - - /** - * A polyline rendering of how fast traffic is for all regions along - * one stretch of a customer ride. - * - * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering traffic_rendering = 1; - * @return \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering|null - */ - public function getTrafficRendering() - { - return $this->traffic_rendering; - } - - public function hasTrafficRendering() - { - return isset($this->traffic_rendering); - } - - public function clearTrafficRendering() - { - unset($this->traffic_rendering); - } - - /** - * A polyline rendering of how fast traffic is for all regions along - * one stretch of a customer ride. - * - * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering traffic_rendering = 1; - * @param \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering $var - * @return $this - */ - public function setTrafficRendering($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering::class); - $this->traffic_rendering = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Trip.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Trip.php deleted file mode 100644 index 8a5d139fee2e..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Trip.php +++ /dev/null @@ -1,1614 +0,0 @@ -maps.fleetengine.v1.Trip - */ -class Trip extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. In the format "providers/{provider}/trips/{trip}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * ID of the vehicle making this trip. - * - * Generated from protobuf field string vehicle_id = 2; - */ - protected $vehicle_id = ''; - /** - * Current status of the trip. - * - * Generated from protobuf field .maps.fleetengine.v1.TripStatus trip_status = 3; - */ - protected $trip_status = 0; - /** - * The type of the trip. - * - * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 4; - */ - protected $trip_type = 0; - /** - * Location where customer indicates they will be picked up. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 5; - */ - protected $pickup_point = null; - /** - * Input only. The actual location when and where customer was picked up. - * This field is for provider to provide feedback on actual pickup - * information. - * - * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_point = 22 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $actual_pickup_point = null; - /** - * Input only. The actual time and location of the driver arrival at - * the pickup point. - * This field is for provider to provide feedback on actual arrival - * information at the pickup point. - * - * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_arrival_point = 32 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $actual_pickup_arrival_point = null; - /** - * Output only. Either the estimated future time when the rider(s) will be - * picked up, or the actual time when they were picked up. - * - * Generated from protobuf field .google.protobuf.Timestamp pickup_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $pickup_time = null; - /** - * Intermediate stops in order that the trip requests (in addition - * to pickup and dropoff). Initially this will not be supported for shared - * trips. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation intermediate_destinations = 14; - */ - private $intermediate_destinations; - /** - * Indicates the last time the `intermediate_destinations` was modified. - * Your server should cache this value and pass it in `UpdateTripRequest` - * when update `intermediate_destination_index` to ensure the - * `intermediate_destinations` is not changed. - * - * Generated from protobuf field .google.protobuf.Timestamp intermediate_destinations_version = 25; - */ - protected $intermediate_destinations_version = null; - /** - * When `TripStatus` is `ENROUTE_TO_INTERMEDIATE_DESTINATION`, a number - * between [0..N-1] indicating which intermediate destination the vehicle will - * cross next. When `TripStatus` is `ARRIVED_AT_INTERMEDIATE_DESTINATION`, a - * number between [0..N-1] indicating which intermediate destination the - * vehicle is at. The provider sets this value. If there are no - * `intermediate_destinations`, this field is ignored. - * - * Generated from protobuf field int32 intermediate_destination_index = 15; - */ - protected $intermediate_destination_index = 0; - /** - * Input only. The actual time and location of the driver's arrival at - * an intermediate destination. - * This field is for provider to provide feedback on actual arrival - * information at intermediate destinations. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destination_arrival_points = 33 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - private $actual_intermediate_destination_arrival_points; - /** - * Input only. The actual time and location when and where the customer was - * picked up from an intermediate destination. This field is for provider to - * provide feedback on actual pickup information at intermediate destinations. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destinations = 34 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - private $actual_intermediate_destinations; - /** - * Location where customer indicates they will be dropped off. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 7; - */ - protected $dropoff_point = null; - /** - * Input only. The actual time and location when and where customer was - * dropped off. This field is for provider to provide feedback on actual - * dropoff information. - * - * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_dropoff_point = 23 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $actual_dropoff_point = null; - /** - * Output only. Either the estimated future time when the rider(s) will be - * dropped off at the final destination, or the actual time when they were - * dropped off. - * - * Generated from protobuf field .google.protobuf.Timestamp dropoff_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $dropoff_time = null; - /** - * Output only. The full path from the current location to the dropoff point, - * inclusive. This path could include waypoints from other trips. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint remaining_waypoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $remaining_waypoints; - /** - * This field supports manual ordering of the waypoints for the trip. It - * contains all of the remaining waypoints for the assigned vehicle, as well - * as the pickup and drop-off waypoints for this trip. If the trip hasn't been - * assigned to a vehicle, then Fleet Engine ignores this field. For privacy - * reasons, this field is only populated by the server on `UpdateTrip` and - * `CreateTrip` calls, NOT on `GetTrip` calls. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint vehicle_waypoints = 20; - */ - private $vehicle_waypoints; - /** - * Output only. Anticipated route for this trip to the first entry in - * remaining_waypoints. Note that the first waypoint may belong to a different - * trip. - * - * Generated from protobuf field repeated .google.type.LatLng route = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $route; - /** - * Output only. An encoded path to the next waypoint. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. Decoding is not yet supported. - * - * Generated from protobuf field string current_route_segment = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $current_route_segment = ''; - /** - * Output only. Indicates the last time the route was modified. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $current_route_segment_version = null; - /** - * Output only. Indicates the traffic conditions along the - * `current_route_segment` when they're available. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * - * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline current_route_segment_traffic = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $current_route_segment_traffic = null; - /** - * Output only. Indicates the last time the `current_route_segment_traffic` - * was modified. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $current_route_segment_traffic_version = null; - /** - * Output only. The waypoint where `current_route_segment` ends. - * - * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $current_route_segment_end_point = null; - /** - * Output only. The remaining driving distance in the `current_route_segment` - * field. The value is unspecified if the trip is not assigned to a vehicle, - * or the trip is completed or cancelled. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $remaining_distance_meters = null; - /** - * Output only. The ETA to the next waypoint (the first entry in the - * `remaining_waypoints` field). The value is unspecified if the trip is not - * assigned to a vehicle, or the trip is inactive (completed or cancelled). - * - * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $eta_to_first_waypoint = null; - /** - * Output only. The duration from when the Trip data is returned to the time - * in `Trip.eta_to_first_waypoint`. The value is unspecified if the trip is - * not assigned to a vehicle, or the trip is inactive (completed or - * cancelled). - * - * Generated from protobuf field .google.protobuf.Duration remaining_time_to_first_waypoint = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $remaining_time_to_first_waypoint = null; - /** - * Output only. Indicates the last time that `remaining_waypoints` was changed - * (a waypoint was added, removed, or changed). - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $remaining_waypoints_version = null; - /** - * Output only. Indicates the last time the - * `remaining_waypoints.path_to_waypoint` and - * `remaining_waypoints.traffic_to_waypoint` were modified. Your client app - * should cache this value and pass it in `GetTripRequest` to ensure the - * paths and traffic for `remaining_waypoints` are only returned if updated. - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $remaining_waypoints_route_version = null; - /** - * Immutable. Indicates the number of passengers on this trip and does not - * include the driver. A vehicle must have available capacity to be returned - * in a `SearchVehicles` response. - * - * Generated from protobuf field int32 number_of_passengers = 10 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $number_of_passengers = 0; - /** - * Output only. Indicates the last reported location of the vehicle along the - * route. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_location = null; - /** - * Output only. Indicates whether the vehicle's `last_location` can be snapped - * to the current_route_segment. False if `last_location` or - * `current_route_segment` doesn't exist. - * It is computed by Fleet Engine. Any update from clients will be ignored. - * - * Generated from protobuf field bool last_location_snappable = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_location_snappable = false; - /** - * The subset of Trip fields that are populated and how they should be - * interpreted. - * - * Generated from protobuf field .maps.fleetengine.v1.TripView view = 31; - */ - protected $view = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. In the format "providers/{provider}/trips/{trip}" - * @type string $vehicle_id - * ID of the vehicle making this trip. - * @type int $trip_status - * Current status of the trip. - * @type int $trip_type - * The type of the trip. - * @type \Google\Maps\FleetEngine\V1\TerminalLocation $pickup_point - * Location where customer indicates they will be picked up. - * @type \Google\Maps\FleetEngine\V1\StopLocation $actual_pickup_point - * Input only. The actual location when and where customer was picked up. - * This field is for provider to provide feedback on actual pickup - * information. - * @type \Google\Maps\FleetEngine\V1\StopLocation $actual_pickup_arrival_point - * Input only. The actual time and location of the driver arrival at - * the pickup point. - * This field is for provider to provide feedback on actual arrival - * information at the pickup point. - * @type \Google\Protobuf\Timestamp $pickup_time - * Output only. Either the estimated future time when the rider(s) will be - * picked up, or the actual time when they were picked up. - * @type array<\Google\Maps\FleetEngine\V1\TerminalLocation>|\Google\Protobuf\Internal\RepeatedField $intermediate_destinations - * Intermediate stops in order that the trip requests (in addition - * to pickup and dropoff). Initially this will not be supported for shared - * trips. - * @type \Google\Protobuf\Timestamp $intermediate_destinations_version - * Indicates the last time the `intermediate_destinations` was modified. - * Your server should cache this value and pass it in `UpdateTripRequest` - * when update `intermediate_destination_index` to ensure the - * `intermediate_destinations` is not changed. - * @type int $intermediate_destination_index - * When `TripStatus` is `ENROUTE_TO_INTERMEDIATE_DESTINATION`, a number - * between [0..N-1] indicating which intermediate destination the vehicle will - * cross next. When `TripStatus` is `ARRIVED_AT_INTERMEDIATE_DESTINATION`, a - * number between [0..N-1] indicating which intermediate destination the - * vehicle is at. The provider sets this value. If there are no - * `intermediate_destinations`, this field is ignored. - * @type array<\Google\Maps\FleetEngine\V1\StopLocation>|\Google\Protobuf\Internal\RepeatedField $actual_intermediate_destination_arrival_points - * Input only. The actual time and location of the driver's arrival at - * an intermediate destination. - * This field is for provider to provide feedback on actual arrival - * information at intermediate destinations. - * @type array<\Google\Maps\FleetEngine\V1\StopLocation>|\Google\Protobuf\Internal\RepeatedField $actual_intermediate_destinations - * Input only. The actual time and location when and where the customer was - * picked up from an intermediate destination. This field is for provider to - * provide feedback on actual pickup information at intermediate destinations. - * @type \Google\Maps\FleetEngine\V1\TerminalLocation $dropoff_point - * Location where customer indicates they will be dropped off. - * @type \Google\Maps\FleetEngine\V1\StopLocation $actual_dropoff_point - * Input only. The actual time and location when and where customer was - * dropped off. This field is for provider to provide feedback on actual - * dropoff information. - * @type \Google\Protobuf\Timestamp $dropoff_time - * Output only. Either the estimated future time when the rider(s) will be - * dropped off at the final destination, or the actual time when they were - * dropped off. - * @type array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $remaining_waypoints - * Output only. The full path from the current location to the dropoff point, - * inclusive. This path could include waypoints from other trips. - * @type array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $vehicle_waypoints - * This field supports manual ordering of the waypoints for the trip. It - * contains all of the remaining waypoints for the assigned vehicle, as well - * as the pickup and drop-off waypoints for this trip. If the trip hasn't been - * assigned to a vehicle, then Fleet Engine ignores this field. For privacy - * reasons, this field is only populated by the server on `UpdateTrip` and - * `CreateTrip` calls, NOT on `GetTrip` calls. - * @type array<\Google\Type\LatLng>|\Google\Protobuf\Internal\RepeatedField $route - * Output only. Anticipated route for this trip to the first entry in - * remaining_waypoints. Note that the first waypoint may belong to a different - * trip. - * @type string $current_route_segment - * Output only. An encoded path to the next waypoint. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. Decoding is not yet supported. - * @type \Google\Protobuf\Timestamp $current_route_segment_version - * Output only. Indicates the last time the route was modified. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * @type \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline $current_route_segment_traffic - * Output only. Indicates the traffic conditions along the - * `current_route_segment` when they're available. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * @type \Google\Protobuf\Timestamp $current_route_segment_traffic_version - * Output only. Indicates the last time the `current_route_segment_traffic` - * was modified. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * @type \Google\Maps\FleetEngine\V1\TripWaypoint $current_route_segment_end_point - * Output only. The waypoint where `current_route_segment` ends. - * @type \Google\Protobuf\Int32Value $remaining_distance_meters - * Output only. The remaining driving distance in the `current_route_segment` - * field. The value is unspecified if the trip is not assigned to a vehicle, - * or the trip is completed or cancelled. - * @type \Google\Protobuf\Timestamp $eta_to_first_waypoint - * Output only. The ETA to the next waypoint (the first entry in the - * `remaining_waypoints` field). The value is unspecified if the trip is not - * assigned to a vehicle, or the trip is inactive (completed or cancelled). - * @type \Google\Protobuf\Duration $remaining_time_to_first_waypoint - * Output only. The duration from when the Trip data is returned to the time - * in `Trip.eta_to_first_waypoint`. The value is unspecified if the trip is - * not assigned to a vehicle, or the trip is inactive (completed or - * cancelled). - * @type \Google\Protobuf\Timestamp $remaining_waypoints_version - * Output only. Indicates the last time that `remaining_waypoints` was changed - * (a waypoint was added, removed, or changed). - * @type \Google\Protobuf\Timestamp $remaining_waypoints_route_version - * Output only. Indicates the last time the - * `remaining_waypoints.path_to_waypoint` and - * `remaining_waypoints.traffic_to_waypoint` were modified. Your client app - * should cache this value and pass it in `GetTripRequest` to ensure the - * paths and traffic for `remaining_waypoints` are only returned if updated. - * @type int $number_of_passengers - * Immutable. Indicates the number of passengers on this trip and does not - * include the driver. A vehicle must have available capacity to be returned - * in a `SearchVehicles` response. - * @type \Google\Maps\FleetEngine\V1\VehicleLocation $last_location - * Output only. Indicates the last reported location of the vehicle along the - * route. - * @type bool $last_location_snappable - * Output only. Indicates whether the vehicle's `last_location` can be snapped - * to the current_route_segment. False if `last_location` or - * `current_route_segment` doesn't exist. - * It is computed by Fleet Engine. Any update from clients will be ignored. - * @type int $view - * The subset of Trip fields that are populated and how they should be - * interpreted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Trips::initOnce(); - parent::__construct($data); - } - - /** - * Output only. In the format "providers/{provider}/trips/{trip}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. In the format "providers/{provider}/trips/{trip}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * ID of the vehicle making this trip. - * - * Generated from protobuf field string vehicle_id = 2; - * @return string - */ - public function getVehicleId() - { - return $this->vehicle_id; - } - - /** - * ID of the vehicle making this trip. - * - * Generated from protobuf field string vehicle_id = 2; - * @param string $var - * @return $this - */ - public function setVehicleId($var) - { - GPBUtil::checkString($var, True); - $this->vehicle_id = $var; - - return $this; - } - - /** - * Current status of the trip. - * - * Generated from protobuf field .maps.fleetengine.v1.TripStatus trip_status = 3; - * @return int - */ - public function getTripStatus() - { - return $this->trip_status; - } - - /** - * Current status of the trip. - * - * Generated from protobuf field .maps.fleetengine.v1.TripStatus trip_status = 3; - * @param int $var - * @return $this - */ - public function setTripStatus($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\TripStatus::class); - $this->trip_status = $var; - - return $this; - } - - /** - * The type of the trip. - * - * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 4; - * @return int - */ - public function getTripType() - { - return $this->trip_type; - } - - /** - * The type of the trip. - * - * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 4; - * @param int $var - * @return $this - */ - public function setTripType($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\TripType::class); - $this->trip_type = $var; - - return $this; - } - - /** - * Location where customer indicates they will be picked up. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 5; - * @return \Google\Maps\FleetEngine\V1\TerminalLocation|null - */ - public function getPickupPoint() - { - return $this->pickup_point; - } - - public function hasPickupPoint() - { - return isset($this->pickup_point); - } - - public function clearPickupPoint() - { - unset($this->pickup_point); - } - - /** - * Location where customer indicates they will be picked up. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation pickup_point = 5; - * @param \Google\Maps\FleetEngine\V1\TerminalLocation $var - * @return $this - */ - public function setPickupPoint($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalLocation::class); - $this->pickup_point = $var; - - return $this; - } - - /** - * Input only. The actual location when and where customer was picked up. - * This field is for provider to provide feedback on actual pickup - * information. - * - * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_point = 22 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Maps\FleetEngine\V1\StopLocation|null - */ - public function getActualPickupPoint() - { - return $this->actual_pickup_point; - } - - public function hasActualPickupPoint() - { - return isset($this->actual_pickup_point); - } - - public function clearActualPickupPoint() - { - unset($this->actual_pickup_point); - } - - /** - * Input only. The actual location when and where customer was picked up. - * This field is for provider to provide feedback on actual pickup - * information. - * - * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_point = 22 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Maps\FleetEngine\V1\StopLocation $var - * @return $this - */ - public function setActualPickupPoint($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\StopLocation::class); - $this->actual_pickup_point = $var; - - return $this; - } - - /** - * Input only. The actual time and location of the driver arrival at - * the pickup point. - * This field is for provider to provide feedback on actual arrival - * information at the pickup point. - * - * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_arrival_point = 32 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Maps\FleetEngine\V1\StopLocation|null - */ - public function getActualPickupArrivalPoint() - { - return $this->actual_pickup_arrival_point; - } - - public function hasActualPickupArrivalPoint() - { - return isset($this->actual_pickup_arrival_point); - } - - public function clearActualPickupArrivalPoint() - { - unset($this->actual_pickup_arrival_point); - } - - /** - * Input only. The actual time and location of the driver arrival at - * the pickup point. - * This field is for provider to provide feedback on actual arrival - * information at the pickup point. - * - * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_pickup_arrival_point = 32 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Maps\FleetEngine\V1\StopLocation $var - * @return $this - */ - public function setActualPickupArrivalPoint($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\StopLocation::class); - $this->actual_pickup_arrival_point = $var; - - return $this; - } - - /** - * Output only. Either the estimated future time when the rider(s) will be - * picked up, or the actual time when they were picked up. - * - * Generated from protobuf field .google.protobuf.Timestamp pickup_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getPickupTime() - { - return $this->pickup_time; - } - - public function hasPickupTime() - { - return isset($this->pickup_time); - } - - public function clearPickupTime() - { - unset($this->pickup_time); - } - - /** - * Output only. Either the estimated future time when the rider(s) will be - * picked up, or the actual time when they were picked up. - * - * Generated from protobuf field .google.protobuf.Timestamp pickup_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setPickupTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->pickup_time = $var; - - return $this; - } - - /** - * Intermediate stops in order that the trip requests (in addition - * to pickup and dropoff). Initially this will not be supported for shared - * trips. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation intermediate_destinations = 14; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIntermediateDestinations() - { - return $this->intermediate_destinations; - } - - /** - * Intermediate stops in order that the trip requests (in addition - * to pickup and dropoff). Initially this will not be supported for shared - * trips. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation intermediate_destinations = 14; - * @param array<\Google\Maps\FleetEngine\V1\TerminalLocation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIntermediateDestinations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\TerminalLocation::class); - $this->intermediate_destinations = $arr; - - return $this; - } - - /** - * Indicates the last time the `intermediate_destinations` was modified. - * Your server should cache this value and pass it in `UpdateTripRequest` - * when update `intermediate_destination_index` to ensure the - * `intermediate_destinations` is not changed. - * - * Generated from protobuf field .google.protobuf.Timestamp intermediate_destinations_version = 25; - * @return \Google\Protobuf\Timestamp|null - */ - public function getIntermediateDestinationsVersion() - { - return $this->intermediate_destinations_version; - } - - public function hasIntermediateDestinationsVersion() - { - return isset($this->intermediate_destinations_version); - } - - public function clearIntermediateDestinationsVersion() - { - unset($this->intermediate_destinations_version); - } - - /** - * Indicates the last time the `intermediate_destinations` was modified. - * Your server should cache this value and pass it in `UpdateTripRequest` - * when update `intermediate_destination_index` to ensure the - * `intermediate_destinations` is not changed. - * - * Generated from protobuf field .google.protobuf.Timestamp intermediate_destinations_version = 25; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setIntermediateDestinationsVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->intermediate_destinations_version = $var; - - return $this; - } - - /** - * When `TripStatus` is `ENROUTE_TO_INTERMEDIATE_DESTINATION`, a number - * between [0..N-1] indicating which intermediate destination the vehicle will - * cross next. When `TripStatus` is `ARRIVED_AT_INTERMEDIATE_DESTINATION`, a - * number between [0..N-1] indicating which intermediate destination the - * vehicle is at. The provider sets this value. If there are no - * `intermediate_destinations`, this field is ignored. - * - * Generated from protobuf field int32 intermediate_destination_index = 15; - * @return int - */ - public function getIntermediateDestinationIndex() - { - return $this->intermediate_destination_index; - } - - /** - * When `TripStatus` is `ENROUTE_TO_INTERMEDIATE_DESTINATION`, a number - * between [0..N-1] indicating which intermediate destination the vehicle will - * cross next. When `TripStatus` is `ARRIVED_AT_INTERMEDIATE_DESTINATION`, a - * number between [0..N-1] indicating which intermediate destination the - * vehicle is at. The provider sets this value. If there are no - * `intermediate_destinations`, this field is ignored. - * - * Generated from protobuf field int32 intermediate_destination_index = 15; - * @param int $var - * @return $this - */ - public function setIntermediateDestinationIndex($var) - { - GPBUtil::checkInt32($var); - $this->intermediate_destination_index = $var; - - return $this; - } - - /** - * Input only. The actual time and location of the driver's arrival at - * an intermediate destination. - * This field is for provider to provide feedback on actual arrival - * information at intermediate destinations. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destination_arrival_points = 33 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActualIntermediateDestinationArrivalPoints() - { - return $this->actual_intermediate_destination_arrival_points; - } - - /** - * Input only. The actual time and location of the driver's arrival at - * an intermediate destination. - * This field is for provider to provide feedback on actual arrival - * information at intermediate destinations. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destination_arrival_points = 33 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param array<\Google\Maps\FleetEngine\V1\StopLocation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActualIntermediateDestinationArrivalPoints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\StopLocation::class); - $this->actual_intermediate_destination_arrival_points = $arr; - - return $this; - } - - /** - * Input only. The actual time and location when and where the customer was - * picked up from an intermediate destination. This field is for provider to - * provide feedback on actual pickup information at intermediate destinations. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destinations = 34 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActualIntermediateDestinations() - { - return $this->actual_intermediate_destinations; - } - - /** - * Input only. The actual time and location when and where the customer was - * picked up from an intermediate destination. This field is for provider to - * provide feedback on actual pickup information at intermediate destinations. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.StopLocation actual_intermediate_destinations = 34 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param array<\Google\Maps\FleetEngine\V1\StopLocation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActualIntermediateDestinations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\StopLocation::class); - $this->actual_intermediate_destinations = $arr; - - return $this; - } - - /** - * Location where customer indicates they will be dropped off. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 7; - * @return \Google\Maps\FleetEngine\V1\TerminalLocation|null - */ - public function getDropoffPoint() - { - return $this->dropoff_point; - } - - public function hasDropoffPoint() - { - return isset($this->dropoff_point); - } - - public function clearDropoffPoint() - { - unset($this->dropoff_point); - } - - /** - * Location where customer indicates they will be dropped off. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation dropoff_point = 7; - * @param \Google\Maps\FleetEngine\V1\TerminalLocation $var - * @return $this - */ - public function setDropoffPoint($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalLocation::class); - $this->dropoff_point = $var; - - return $this; - } - - /** - * Input only. The actual time and location when and where customer was - * dropped off. This field is for provider to provide feedback on actual - * dropoff information. - * - * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_dropoff_point = 23 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Maps\FleetEngine\V1\StopLocation|null - */ - public function getActualDropoffPoint() - { - return $this->actual_dropoff_point; - } - - public function hasActualDropoffPoint() - { - return isset($this->actual_dropoff_point); - } - - public function clearActualDropoffPoint() - { - unset($this->actual_dropoff_point); - } - - /** - * Input only. The actual time and location when and where customer was - * dropped off. This field is for provider to provide feedback on actual - * dropoff information. - * - * Generated from protobuf field .maps.fleetengine.v1.StopLocation actual_dropoff_point = 23 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Maps\FleetEngine\V1\StopLocation $var - * @return $this - */ - public function setActualDropoffPoint($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\StopLocation::class); - $this->actual_dropoff_point = $var; - - return $this; - } - - /** - * Output only. Either the estimated future time when the rider(s) will be - * dropped off at the final destination, or the actual time when they were - * dropped off. - * - * Generated from protobuf field .google.protobuf.Timestamp dropoff_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDropoffTime() - { - return $this->dropoff_time; - } - - public function hasDropoffTime() - { - return isset($this->dropoff_time); - } - - public function clearDropoffTime() - { - unset($this->dropoff_time); - } - - /** - * Output only. Either the estimated future time when the rider(s) will be - * dropped off at the final destination, or the actual time when they were - * dropped off. - * - * Generated from protobuf field .google.protobuf.Timestamp dropoff_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDropoffTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->dropoff_time = $var; - - return $this; - } - - /** - * Output only. The full path from the current location to the dropoff point, - * inclusive. This path could include waypoints from other trips. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint remaining_waypoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRemainingWaypoints() - { - return $this->remaining_waypoints; - } - - /** - * Output only. The full path from the current location to the dropoff point, - * inclusive. This path could include waypoints from other trips. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint remaining_waypoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRemainingWaypoints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\TripWaypoint::class); - $this->remaining_waypoints = $arr; - - return $this; - } - - /** - * This field supports manual ordering of the waypoints for the trip. It - * contains all of the remaining waypoints for the assigned vehicle, as well - * as the pickup and drop-off waypoints for this trip. If the trip hasn't been - * assigned to a vehicle, then Fleet Engine ignores this field. For privacy - * reasons, this field is only populated by the server on `UpdateTrip` and - * `CreateTrip` calls, NOT on `GetTrip` calls. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint vehicle_waypoints = 20; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVehicleWaypoints() - { - return $this->vehicle_waypoints; - } - - /** - * This field supports manual ordering of the waypoints for the trip. It - * contains all of the remaining waypoints for the assigned vehicle, as well - * as the pickup and drop-off waypoints for this trip. If the trip hasn't been - * assigned to a vehicle, then Fleet Engine ignores this field. For privacy - * reasons, this field is only populated by the server on `UpdateTrip` and - * `CreateTrip` calls, NOT on `GetTrip` calls. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint vehicle_waypoints = 20; - * @param array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVehicleWaypoints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\TripWaypoint::class); - $this->vehicle_waypoints = $arr; - - return $this; - } - - /** - * Output only. Anticipated route for this trip to the first entry in - * remaining_waypoints. Note that the first waypoint may belong to a different - * trip. - * - * Generated from protobuf field repeated .google.type.LatLng route = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRoute() - { - return $this->route; - } - - /** - * Output only. Anticipated route for this trip to the first entry in - * remaining_waypoints. Note that the first waypoint may belong to a different - * trip. - * - * Generated from protobuf field repeated .google.type.LatLng route = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Type\LatLng>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRoute($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Type\LatLng::class); - $this->route = $arr; - - return $this; - } - - /** - * Output only. An encoded path to the next waypoint. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. Decoding is not yet supported. - * - * Generated from protobuf field string current_route_segment = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCurrentRouteSegment() - { - return $this->current_route_segment; - } - - /** - * Output only. An encoded path to the next waypoint. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. Decoding is not yet supported. - * - * Generated from protobuf field string current_route_segment = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCurrentRouteSegment($var) - { - GPBUtil::checkString($var, True); - $this->current_route_segment = $var; - - return $this; - } - - /** - * Output only. Indicates the last time the route was modified. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCurrentRouteSegmentVersion() - { - return $this->current_route_segment_version; - } - - public function hasCurrentRouteSegmentVersion() - { - return isset($this->current_route_segment_version); - } - - public function clearCurrentRouteSegmentVersion() - { - unset($this->current_route_segment_version); - } - - /** - * Output only. Indicates the last time the route was modified. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCurrentRouteSegmentVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->current_route_segment_version = $var; - - return $this; - } - - /** - * Output only. Indicates the traffic conditions along the - * `current_route_segment` when they're available. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * - * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline current_route_segment_traffic = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline|null - */ - public function getCurrentRouteSegmentTraffic() - { - return $this->current_route_segment_traffic; - } - - public function hasCurrentRouteSegmentTraffic() - { - return isset($this->current_route_segment_traffic); - } - - public function clearCurrentRouteSegmentTraffic() - { - unset($this->current_route_segment_traffic); - } - - /** - * Output only. Indicates the traffic conditions along the - * `current_route_segment` when they're available. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * - * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline current_route_segment_traffic = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline $var - * @return $this - */ - public function setCurrentRouteSegmentTraffic($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline::class); - $this->current_route_segment_traffic = $var; - - return $this; - } - - /** - * Output only. Indicates the last time the `current_route_segment_traffic` - * was modified. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCurrentRouteSegmentTrafficVersion() - { - return $this->current_route_segment_traffic_version; - } - - public function hasCurrentRouteSegmentTrafficVersion() - { - return isset($this->current_route_segment_traffic_version); - } - - public function clearCurrentRouteSegmentTrafficVersion() - { - unset($this->current_route_segment_traffic_version); - } - - /** - * Output only. Indicates the last time the `current_route_segment_traffic` - * was modified. - * Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_traffic_version = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCurrentRouteSegmentTrafficVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->current_route_segment_traffic_version = $var; - - return $this; - } - - /** - * Output only. The waypoint where `current_route_segment` ends. - * - * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Maps\FleetEngine\V1\TripWaypoint|null - */ - public function getCurrentRouteSegmentEndPoint() - { - return $this->current_route_segment_end_point; - } - - public function hasCurrentRouteSegmentEndPoint() - { - return isset($this->current_route_segment_end_point); - } - - public function clearCurrentRouteSegmentEndPoint() - { - unset($this->current_route_segment_end_point); - } - - /** - * Output only. The waypoint where `current_route_segment` ends. - * - * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Maps\FleetEngine\V1\TripWaypoint $var - * @return $this - */ - public function setCurrentRouteSegmentEndPoint($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TripWaypoint::class); - $this->current_route_segment_end_point = $var; - - return $this; - } - - /** - * Output only. The remaining driving distance in the `current_route_segment` - * field. The value is unspecified if the trip is not assigned to a vehicle, - * or the trip is completed or cancelled. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Int32Value|null - */ - public function getRemainingDistanceMeters() - { - return $this->remaining_distance_meters; - } - - public function hasRemainingDistanceMeters() - { - return isset($this->remaining_distance_meters); - } - - public function clearRemainingDistanceMeters() - { - unset($this->remaining_distance_meters); - } - - /** - * Returns the unboxed value from getRemainingDistanceMeters() - - * Output only. The remaining driving distance in the `current_route_segment` - * field. The value is unspecified if the trip is not assigned to a vehicle, - * or the trip is completed or cancelled. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|null - */ - public function getRemainingDistanceMetersUnwrapped() - { - return $this->readWrapperValue("remaining_distance_meters"); - } - - /** - * Output only. The remaining driving distance in the `current_route_segment` - * field. The value is unspecified if the trip is not assigned to a vehicle, - * or the trip is completed or cancelled. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setRemainingDistanceMeters($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->remaining_distance_meters = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * Output only. The remaining driving distance in the `current_route_segment` - * field. The value is unspecified if the trip is not assigned to a vehicle, - * or the trip is completed or cancelled. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|null $var - * @return $this - */ - public function setRemainingDistanceMetersUnwrapped($var) - { - $this->writeWrapperValue("remaining_distance_meters", $var); - return $this;} - - /** - * Output only. The ETA to the next waypoint (the first entry in the - * `remaining_waypoints` field). The value is unspecified if the trip is not - * assigned to a vehicle, or the trip is inactive (completed or cancelled). - * - * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEtaToFirstWaypoint() - { - return $this->eta_to_first_waypoint; - } - - public function hasEtaToFirstWaypoint() - { - return isset($this->eta_to_first_waypoint); - } - - public function clearEtaToFirstWaypoint() - { - unset($this->eta_to_first_waypoint); - } - - /** - * Output only. The ETA to the next waypoint (the first entry in the - * `remaining_waypoints` field). The value is unspecified if the trip is not - * assigned to a vehicle, or the trip is inactive (completed or cancelled). - * - * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEtaToFirstWaypoint($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->eta_to_first_waypoint = $var; - - return $this; - } - - /** - * Output only. The duration from when the Trip data is returned to the time - * in `Trip.eta_to_first_waypoint`. The value is unspecified if the trip is - * not assigned to a vehicle, or the trip is inactive (completed or - * cancelled). - * - * Generated from protobuf field .google.protobuf.Duration remaining_time_to_first_waypoint = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Duration|null - */ - public function getRemainingTimeToFirstWaypoint() - { - return $this->remaining_time_to_first_waypoint; - } - - public function hasRemainingTimeToFirstWaypoint() - { - return isset($this->remaining_time_to_first_waypoint); - } - - public function clearRemainingTimeToFirstWaypoint() - { - unset($this->remaining_time_to_first_waypoint); - } - - /** - * Output only. The duration from when the Trip data is returned to the time - * in `Trip.eta_to_first_waypoint`. The value is unspecified if the trip is - * not assigned to a vehicle, or the trip is inactive (completed or - * cancelled). - * - * Generated from protobuf field .google.protobuf.Duration remaining_time_to_first_waypoint = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setRemainingTimeToFirstWaypoint($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->remaining_time_to_first_waypoint = $var; - - return $this; - } - - /** - * Output only. Indicates the last time that `remaining_waypoints` was changed - * (a waypoint was added, removed, or changed). - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRemainingWaypointsVersion() - { - return $this->remaining_waypoints_version; - } - - public function hasRemainingWaypointsVersion() - { - return isset($this->remaining_waypoints_version); - } - - public function clearRemainingWaypointsVersion() - { - unset($this->remaining_waypoints_version); - } - - /** - * Output only. Indicates the last time that `remaining_waypoints` was changed - * (a waypoint was added, removed, or changed). - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRemainingWaypointsVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->remaining_waypoints_version = $var; - - return $this; - } - - /** - * Output only. Indicates the last time the - * `remaining_waypoints.path_to_waypoint` and - * `remaining_waypoints.traffic_to_waypoint` were modified. Your client app - * should cache this value and pass it in `GetTripRequest` to ensure the - * paths and traffic for `remaining_waypoints` are only returned if updated. - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRemainingWaypointsRouteVersion() - { - return $this->remaining_waypoints_route_version; - } - - public function hasRemainingWaypointsRouteVersion() - { - return isset($this->remaining_waypoints_route_version); - } - - public function clearRemainingWaypointsRouteVersion() - { - unset($this->remaining_waypoints_route_version); - } - - /** - * Output only. Indicates the last time the - * `remaining_waypoints.path_to_waypoint` and - * `remaining_waypoints.traffic_to_waypoint` were modified. Your client app - * should cache this value and pass it in `GetTripRequest` to ensure the - * paths and traffic for `remaining_waypoints` are only returned if updated. - * - * Generated from protobuf field .google.protobuf.Timestamp remaining_waypoints_route_version = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRemainingWaypointsRouteVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->remaining_waypoints_route_version = $var; - - return $this; - } - - /** - * Immutable. Indicates the number of passengers on this trip and does not - * include the driver. A vehicle must have available capacity to be returned - * in a `SearchVehicles` response. - * - * Generated from protobuf field int32 number_of_passengers = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getNumberOfPassengers() - { - return $this->number_of_passengers; - } - - /** - * Immutable. Indicates the number of passengers on this trip and does not - * include the driver. A vehicle must have available capacity to be returned - * in a `SearchVehicles` response. - * - * Generated from protobuf field int32 number_of_passengers = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setNumberOfPassengers($var) - { - GPBUtil::checkInt32($var); - $this->number_of_passengers = $var; - - return $this; - } - - /** - * Output only. Indicates the last reported location of the vehicle along the - * route. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Maps\FleetEngine\V1\VehicleLocation|null - */ - public function getLastLocation() - { - return $this->last_location; - } - - public function hasLastLocation() - { - return isset($this->last_location); - } - - public function clearLastLocation() - { - unset($this->last_location); - } - - /** - * Output only. Indicates the last reported location of the vehicle along the - * route. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Maps\FleetEngine\V1\VehicleLocation $var - * @return $this - */ - public function setLastLocation($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\VehicleLocation::class); - $this->last_location = $var; - - return $this; - } - - /** - * Output only. Indicates whether the vehicle's `last_location` can be snapped - * to the current_route_segment. False if `last_location` or - * `current_route_segment` doesn't exist. - * It is computed by Fleet Engine. Any update from clients will be ignored. - * - * Generated from protobuf field bool last_location_snappable = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getLastLocationSnappable() - { - return $this->last_location_snappable; - } - - /** - * Output only. Indicates whether the vehicle's `last_location` can be snapped - * to the current_route_segment. False if `last_location` or - * `current_route_segment` doesn't exist. - * It is computed by Fleet Engine. Any update from clients will be ignored. - * - * Generated from protobuf field bool last_location_snappable = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setLastLocationSnappable($var) - { - GPBUtil::checkBool($var); - $this->last_location_snappable = $var; - - return $this; - } - - /** - * The subset of Trip fields that are populated and how they should be - * interpreted. - * - * Generated from protobuf field .maps.fleetengine.v1.TripView view = 31; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * The subset of Trip fields that are populated and how they should be - * interpreted. - * - * Generated from protobuf field .maps.fleetengine.v1.TripView view = 31; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\TripView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripStatus.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripStatus.php deleted file mode 100644 index 7c6eea573533..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripStatus.php +++ /dev/null @@ -1,111 +0,0 @@ -maps.fleetengine.v1.TripStatus - */ -class TripStatus -{ - /** - * Default, used for unspecified or unrecognized trip status. - * - * Generated from protobuf enum UNKNOWN_TRIP_STATUS = 0; - */ - const UNKNOWN_TRIP_STATUS = 0; - /** - * Newly created trip. - * - * Generated from protobuf enum NEW = 1; - */ - const PBNEW = 1; - /** - * The driver is on their way to the pickup point. - * - * Generated from protobuf enum ENROUTE_TO_PICKUP = 2; - */ - const ENROUTE_TO_PICKUP = 2; - /** - * The driver has arrived at the pickup point. - * - * Generated from protobuf enum ARRIVED_AT_PICKUP = 3; - */ - const ARRIVED_AT_PICKUP = 3; - /** - * The driver has arrived at an intermediate destination and is waiting for - * the rider. - * - * Generated from protobuf enum ARRIVED_AT_INTERMEDIATE_DESTINATION = 7; - */ - const ARRIVED_AT_INTERMEDIATE_DESTINATION = 7; - /** - * The driver is on their way to an intermediate destination - * (not the dropoff point). - * - * Generated from protobuf enum ENROUTE_TO_INTERMEDIATE_DESTINATION = 8; - */ - const ENROUTE_TO_INTERMEDIATE_DESTINATION = 8; - /** - * The driver has picked up the rider and is on their way to the - * next destination. - * - * Generated from protobuf enum ENROUTE_TO_DROPOFF = 4; - */ - const ENROUTE_TO_DROPOFF = 4; - /** - * The rider has been dropped off and the trip is complete. - * - * Generated from protobuf enum COMPLETE = 5; - */ - const COMPLETE = 5; - /** - * The trip was canceled prior to pickup by the driver, rider, or - * rideshare provider. - * - * Generated from protobuf enum CANCELED = 6; - */ - const CANCELED = 6; - - private static $valueToName = [ - self::UNKNOWN_TRIP_STATUS => 'UNKNOWN_TRIP_STATUS', - self::PBNEW => 'NEW', - self::ENROUTE_TO_PICKUP => 'ENROUTE_TO_PICKUP', - self::ARRIVED_AT_PICKUP => 'ARRIVED_AT_PICKUP', - self::ARRIVED_AT_INTERMEDIATE_DESTINATION => 'ARRIVED_AT_INTERMEDIATE_DESTINATION', - self::ENROUTE_TO_INTERMEDIATE_DESTINATION => 'ENROUTE_TO_INTERMEDIATE_DESTINATION', - self::ENROUTE_TO_DROPOFF => 'ENROUTE_TO_DROPOFF', - self::COMPLETE => 'COMPLETE', - self::CANCELED => 'CANCELED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripType.php deleted file mode 100644 index 94d7f9ab6998..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripType.php +++ /dev/null @@ -1,61 +0,0 @@ -maps.fleetengine.v1.TripType - */ -class TripType -{ - /** - * Default, used for unspecified or unrecognized trip types. - * - * Generated from protobuf enum UNKNOWN_TRIP_TYPE = 0; - */ - const UNKNOWN_TRIP_TYPE = 0; - /** - * The trip may share a vehicle with other trips. - * - * Generated from protobuf enum SHARED = 1; - */ - const SHARED = 1; - /** - * The trip is exclusive to a vehicle. - * - * Generated from protobuf enum EXCLUSIVE = 2; - */ - const EXCLUSIVE = 2; - - private static $valueToName = [ - self::UNKNOWN_TRIP_TYPE => 'UNKNOWN_TRIP_TYPE', - self::SHARED => 'SHARED', - self::EXCLUSIVE => 'EXCLUSIVE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripView.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripView.php deleted file mode 100644 index b341430b2420..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripView.php +++ /dev/null @@ -1,67 +0,0 @@ -maps.fleetengine.v1.TripView - */ -class TripView -{ - /** - * The default value. For backwards-compatibility, the API will default to an - * SDK view. To ensure stability and support, customers are - * advised to select a `TripView` other than `SDK`. - * - * Generated from protobuf enum TRIP_VIEW_UNSPECIFIED = 0; - */ - const TRIP_VIEW_UNSPECIFIED = 0; - /** - * Includes fields that may not be interpretable or supportable using - * publicly available libraries. - * - * Generated from protobuf enum SDK = 1; - */ - const SDK = 1; - /** - * Trip fields are populated for the Journey Sharing use case. This view is - * intended for server-to-server communications. - * - * Generated from protobuf enum JOURNEY_SHARING_V1S = 2; - */ - const JOURNEY_SHARING_V1S = 2; - - private static $valueToName = [ - self::TRIP_VIEW_UNSPECIFIED => 'TRIP_VIEW_UNSPECIFIED', - self::SDK => 'SDK', - self::JOURNEY_SHARING_V1S => 'JOURNEY_SHARING_V1S', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripWaypoint.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripWaypoint.php deleted file mode 100644 index fd7cfea0163e..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/TripWaypoint.php +++ /dev/null @@ -1,451 +0,0 @@ -maps.fleetengine.v1.TripWaypoint - */ -class TripWaypoint extends \Google\Protobuf\Internal\Message -{ - /** - * The location of this waypoint. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation location = 1; - */ - protected $location = null; - /** - * The trip associated with this waypoint. - * - * Generated from protobuf field string trip_id = 2; - */ - protected $trip_id = ''; - /** - * The role this waypoint plays in this trip, such as pickup or dropoff. - * - * Generated from protobuf field .maps.fleetengine.v1.WaypointType waypoint_type = 3; - */ - protected $waypoint_type = 0; - /** - * The path from the previous waypoint to the current waypoint. Undefined for - * the first waypoint in a list. This field is only populated when requested. - * - * Generated from protobuf field repeated .google.type.LatLng path_to_waypoint = 4; - */ - private $path_to_waypoint; - /** - * The encoded path from the previous waypoint to the current waypoint. - *

Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. Decoding is not yet supported. - * - * Generated from protobuf field string encoded_path_to_waypoint = 5; - */ - protected $encoded_path_to_waypoint = ''; - /** - * The traffic conditions along the path to this waypoint. Note that traffic - * is only available for Google Map Platform Rides and Deliveries Solution - * customers. - * - * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline traffic_to_waypoint = 10; - */ - protected $traffic_to_waypoint = null; - /** - * The path distance from the previous waypoint to the current waypoint. - * Undefined for the first waypoint in a list. - * - * Generated from protobuf field .google.protobuf.Int32Value distance_meters = 6; - */ - protected $distance_meters = null; - /** - * The estimated time of arrival at this waypoint. Undefined for the first - * waypoint in a list. - * - * Generated from protobuf field .google.protobuf.Timestamp eta = 7; - */ - protected $eta = null; - /** - * The travel time from previous waypoint to this point. Undefined for the - * first waypoint in a list. - * - * Generated from protobuf field .google.protobuf.Duration duration = 8; - */ - protected $duration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\TerminalLocation $location - * The location of this waypoint. - * @type string $trip_id - * The trip associated with this waypoint. - * @type int $waypoint_type - * The role this waypoint plays in this trip, such as pickup or dropoff. - * @type array<\Google\Type\LatLng>|\Google\Protobuf\Internal\RepeatedField $path_to_waypoint - * The path from the previous waypoint to the current waypoint. Undefined for - * the first waypoint in a list. This field is only populated when requested. - * @type string $encoded_path_to_waypoint - * The encoded path from the previous waypoint to the current waypoint. - *

Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. Decoding is not yet supported. - * @type \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline $traffic_to_waypoint - * The traffic conditions along the path to this waypoint. Note that traffic - * is only available for Google Map Platform Rides and Deliveries Solution - * customers. - * @type \Google\Protobuf\Int32Value $distance_meters - * The path distance from the previous waypoint to the current waypoint. - * Undefined for the first waypoint in a list. - * @type \Google\Protobuf\Timestamp $eta - * The estimated time of arrival at this waypoint. Undefined for the first - * waypoint in a list. - * @type \Google\Protobuf\Duration $duration - * The travel time from previous waypoint to this point. Undefined for the - * first waypoint in a list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Fleetengine::initOnce(); - parent::__construct($data); - } - - /** - * The location of this waypoint. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation location = 1; - * @return \Google\Maps\FleetEngine\V1\TerminalLocation|null - */ - public function getLocation() - { - return $this->location; - } - - public function hasLocation() - { - return isset($this->location); - } - - public function clearLocation() - { - unset($this->location); - } - - /** - * The location of this waypoint. - * - * Generated from protobuf field .maps.fleetengine.v1.TerminalLocation location = 1; - * @param \Google\Maps\FleetEngine\V1\TerminalLocation $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TerminalLocation::class); - $this->location = $var; - - return $this; - } - - /** - * The trip associated with this waypoint. - * - * Generated from protobuf field string trip_id = 2; - * @return string - */ - public function getTripId() - { - return $this->trip_id; - } - - /** - * The trip associated with this waypoint. - * - * Generated from protobuf field string trip_id = 2; - * @param string $var - * @return $this - */ - public function setTripId($var) - { - GPBUtil::checkString($var, True); - $this->trip_id = $var; - - return $this; - } - - /** - * The role this waypoint plays in this trip, such as pickup or dropoff. - * - * Generated from protobuf field .maps.fleetengine.v1.WaypointType waypoint_type = 3; - * @return int - */ - public function getWaypointType() - { - return $this->waypoint_type; - } - - /** - * The role this waypoint plays in this trip, such as pickup or dropoff. - * - * Generated from protobuf field .maps.fleetengine.v1.WaypointType waypoint_type = 3; - * @param int $var - * @return $this - */ - public function setWaypointType($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\WaypointType::class); - $this->waypoint_type = $var; - - return $this; - } - - /** - * The path from the previous waypoint to the current waypoint. Undefined for - * the first waypoint in a list. This field is only populated when requested. - * - * Generated from protobuf field repeated .google.type.LatLng path_to_waypoint = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPathToWaypoint() - { - return $this->path_to_waypoint; - } - - /** - * The path from the previous waypoint to the current waypoint. Undefined for - * the first waypoint in a list. This field is only populated when requested. - * - * Generated from protobuf field repeated .google.type.LatLng path_to_waypoint = 4; - * @param array<\Google\Type\LatLng>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPathToWaypoint($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Type\LatLng::class); - $this->path_to_waypoint = $arr; - - return $this; - } - - /** - * The encoded path from the previous waypoint to the current waypoint. - *

Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. Decoding is not yet supported. - * - * Generated from protobuf field string encoded_path_to_waypoint = 5; - * @return string - */ - public function getEncodedPathToWaypoint() - { - return $this->encoded_path_to_waypoint; - } - - /** - * The encoded path from the previous waypoint to the current waypoint. - *

Note: This field is intended only for use by the Driver SDK and Consumer - * SDK. Decoding is not yet supported. - * - * Generated from protobuf field string encoded_path_to_waypoint = 5; - * @param string $var - * @return $this - */ - public function setEncodedPathToWaypoint($var) - { - GPBUtil::checkString($var, True); - $this->encoded_path_to_waypoint = $var; - - return $this; - } - - /** - * The traffic conditions along the path to this waypoint. Note that traffic - * is only available for Google Map Platform Rides and Deliveries Solution - * customers. - * - * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline traffic_to_waypoint = 10; - * @return \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline|null - */ - public function getTrafficToWaypoint() - { - return $this->traffic_to_waypoint; - } - - public function hasTrafficToWaypoint() - { - return isset($this->traffic_to_waypoint); - } - - public function clearTrafficToWaypoint() - { - unset($this->traffic_to_waypoint); - } - - /** - * The traffic conditions along the path to this waypoint. Note that traffic - * is only available for Google Map Platform Rides and Deliveries Solution - * customers. - * - * Generated from protobuf field .maps.fleetengine.v1.ConsumableTrafficPolyline traffic_to_waypoint = 10; - * @param \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline $var - * @return $this - */ - public function setTrafficToWaypoint($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\ConsumableTrafficPolyline::class); - $this->traffic_to_waypoint = $var; - - return $this; - } - - /** - * The path distance from the previous waypoint to the current waypoint. - * Undefined for the first waypoint in a list. - * - * Generated from protobuf field .google.protobuf.Int32Value distance_meters = 6; - * @return \Google\Protobuf\Int32Value|null - */ - public function getDistanceMeters() - { - return $this->distance_meters; - } - - public function hasDistanceMeters() - { - return isset($this->distance_meters); - } - - public function clearDistanceMeters() - { - unset($this->distance_meters); - } - - /** - * Returns the unboxed value from getDistanceMeters() - - * The path distance from the previous waypoint to the current waypoint. - * Undefined for the first waypoint in a list. - * - * Generated from protobuf field .google.protobuf.Int32Value distance_meters = 6; - * @return int|null - */ - public function getDistanceMetersUnwrapped() - { - return $this->readWrapperValue("distance_meters"); - } - - /** - * The path distance from the previous waypoint to the current waypoint. - * Undefined for the first waypoint in a list. - * - * Generated from protobuf field .google.protobuf.Int32Value distance_meters = 6; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setDistanceMeters($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->distance_meters = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * The path distance from the previous waypoint to the current waypoint. - * Undefined for the first waypoint in a list. - * - * Generated from protobuf field .google.protobuf.Int32Value distance_meters = 6; - * @param int|null $var - * @return $this - */ - public function setDistanceMetersUnwrapped($var) - { - $this->writeWrapperValue("distance_meters", $var); - return $this;} - - /** - * The estimated time of arrival at this waypoint. Undefined for the first - * waypoint in a list. - * - * Generated from protobuf field .google.protobuf.Timestamp eta = 7; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEta() - { - return $this->eta; - } - - public function hasEta() - { - return isset($this->eta); - } - - public function clearEta() - { - unset($this->eta); - } - - /** - * The estimated time of arrival at this waypoint. Undefined for the first - * waypoint in a list. - * - * Generated from protobuf field .google.protobuf.Timestamp eta = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEta($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->eta = $var; - - return $this; - } - - /** - * The travel time from previous waypoint to this point. Undefined for the - * first waypoint in a list. - * - * Generated from protobuf field .google.protobuf.Duration duration = 8; - * @return \Google\Protobuf\Duration|null - */ - public function getDuration() - { - return $this->duration; - } - - public function hasDuration() - { - return isset($this->duration); - } - - public function clearDuration() - { - unset($this->duration); - } - - /** - * The travel time from previous waypoint to this point. Undefined for the - * first waypoint in a list. - * - * Generated from protobuf field .google.protobuf.Duration duration = 8; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->duration = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateTripRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateTripRequest.php deleted file mode 100644 index 309be11621d8..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateTripRequest.php +++ /dev/null @@ -1,355 +0,0 @@ -maps.fleetengine.v1.UpdateTripRequest - */ -class UpdateTripRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - */ - protected $header = null; - /** - * Required. Must be in the format - * `providers/{provider}/trips/{trip}`. The provider must - * be the Project ID (for example, `sample-consumer-project`) of the Google - * Cloud Project of which the service account making this call is a member. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. The Trip associated with the update. - * The following fields are maintained by the Fleet Engine. Do not update - * them using Trip.update. - * * `current_route_segment` - * * `current_route_segment_end_point` - * * `current_route_segment_traffic` - * * `current_route_segment_traffic_version` - * * `current_route_segment_version` - * * `dropoff_time` - * * `eta_to_next_waypoint` - * * `intermediate_destinations_version` - * * `last_location` - * * `name` - * * `number_of_passengers` - * * `pickup_time` - * * `remaining_distance_meters` - * * `remaining_time_to_first_waypoint` - * * `remaining_waypoints` - * * `remaining_waypoints_version` - * * `route` - * When you update the `Trip.vehicle_id` for a shared trip, you must supply - * the list of `Trip.vehicle_waypoints` to specify the order of the remaining - * waypoints, otherwise the order will be undetermined. - * When you specify `Trip.vehicle_waypoints`, the list must contain all - * the remaining waypoints of the vehicle's trips, with no extra waypoints. - * You must order these waypoints such that for a given trip, the pickup - * point is before intermediate destinations, and all intermediate - * destinations come before the drop-off point. An `EXCLUSIVE` trip's - * waypoints must not interleave with any other trips. - * The `trip_id`, `waypoint_type` and `location` fields are used, and all - * other TripWaypoint fields in `vehicle_waypoints` are ignored. - * To avoid a race condition for trips with multiple destinations, you - * should provide `Trip.intermediate_destinations_version` when updating - * the trip status to `ENROUTE_TO_INTERMEDIATE_DESTINATION`. The - * `Trip.intermediate_destinations_version` passed must be consistent with - * Fleet Engine's version. If it isn't, the request fails. - * - * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $trip = null; - /** - * Required. The field mask indicating which fields in Trip to update. - * The `update_mask` must contain at least one field. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\RequestHeader $header - * The standard Fleet Engine request header. - * @type string $name - * Required. Must be in the format - * `providers/{provider}/trips/{trip}`. The provider must - * be the Project ID (for example, `sample-consumer-project`) of the Google - * Cloud Project of which the service account making this call is a member. - * @type \Google\Maps\FleetEngine\V1\Trip $trip - * Required. The Trip associated with the update. - * The following fields are maintained by the Fleet Engine. Do not update - * them using Trip.update. - * * `current_route_segment` - * * `current_route_segment_end_point` - * * `current_route_segment_traffic` - * * `current_route_segment_traffic_version` - * * `current_route_segment_version` - * * `dropoff_time` - * * `eta_to_next_waypoint` - * * `intermediate_destinations_version` - * * `last_location` - * * `name` - * * `number_of_passengers` - * * `pickup_time` - * * `remaining_distance_meters` - * * `remaining_time_to_first_waypoint` - * * `remaining_waypoints` - * * `remaining_waypoints_version` - * * `route` - * When you update the `Trip.vehicle_id` for a shared trip, you must supply - * the list of `Trip.vehicle_waypoints` to specify the order of the remaining - * waypoints, otherwise the order will be undetermined. - * When you specify `Trip.vehicle_waypoints`, the list must contain all - * the remaining waypoints of the vehicle's trips, with no extra waypoints. - * You must order these waypoints such that for a given trip, the pickup - * point is before intermediate destinations, and all intermediate - * destinations come before the drop-off point. An `EXCLUSIVE` trip's - * waypoints must not interleave with any other trips. - * The `trip_id`, `waypoint_type` and `location` fields are used, and all - * other TripWaypoint fields in `vehicle_waypoints` are ignored. - * To avoid a race condition for trips with multiple destinations, you - * should provide `Trip.intermediate_destinations_version` when updating - * the trip status to `ENROUTE_TO_INTERMEDIATE_DESTINATION`. The - * `Trip.intermediate_destinations_version` passed must be consistent with - * Fleet Engine's version. If it isn't, the request fails. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The field mask indicating which fields in Trip to update. - * The `update_mask` must contain at least one field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\TripApi::initOnce(); - parent::__construct($data); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @return \Google\Maps\FleetEngine\V1\RequestHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @param \Google\Maps\FleetEngine\V1\RequestHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); - $this->header = $var; - - return $this; - } - - /** - * Required. Must be in the format - * `providers/{provider}/trips/{trip}`. The provider must - * be the Project ID (for example, `sample-consumer-project`) of the Google - * Cloud Project of which the service account making this call is a member. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Must be in the format - * `providers/{provider}/trips/{trip}`. The provider must - * be the Project ID (for example, `sample-consumer-project`) of the Google - * Cloud Project of which the service account making this call is a member. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The Trip associated with the update. - * The following fields are maintained by the Fleet Engine. Do not update - * them using Trip.update. - * * `current_route_segment` - * * `current_route_segment_end_point` - * * `current_route_segment_traffic` - * * `current_route_segment_traffic_version` - * * `current_route_segment_version` - * * `dropoff_time` - * * `eta_to_next_waypoint` - * * `intermediate_destinations_version` - * * `last_location` - * * `name` - * * `number_of_passengers` - * * `pickup_time` - * * `remaining_distance_meters` - * * `remaining_time_to_first_waypoint` - * * `remaining_waypoints` - * * `remaining_waypoints_version` - * * `route` - * When you update the `Trip.vehicle_id` for a shared trip, you must supply - * the list of `Trip.vehicle_waypoints` to specify the order of the remaining - * waypoints, otherwise the order will be undetermined. - * When you specify `Trip.vehicle_waypoints`, the list must contain all - * the remaining waypoints of the vehicle's trips, with no extra waypoints. - * You must order these waypoints such that for a given trip, the pickup - * point is before intermediate destinations, and all intermediate - * destinations come before the drop-off point. An `EXCLUSIVE` trip's - * waypoints must not interleave with any other trips. - * The `trip_id`, `waypoint_type` and `location` fields are used, and all - * other TripWaypoint fields in `vehicle_waypoints` are ignored. - * To avoid a race condition for trips with multiple destinations, you - * should provide `Trip.intermediate_destinations_version` when updating - * the trip status to `ENROUTE_TO_INTERMEDIATE_DESTINATION`. The - * `Trip.intermediate_destinations_version` passed must be consistent with - * Fleet Engine's version. If it isn't, the request fails. - * - * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Maps\FleetEngine\V1\Trip|null - */ - public function getTrip() - { - return $this->trip; - } - - public function hasTrip() - { - return isset($this->trip); - } - - public function clearTrip() - { - unset($this->trip); - } - - /** - * Required. The Trip associated with the update. - * The following fields are maintained by the Fleet Engine. Do not update - * them using Trip.update. - * * `current_route_segment` - * * `current_route_segment_end_point` - * * `current_route_segment_traffic` - * * `current_route_segment_traffic_version` - * * `current_route_segment_version` - * * `dropoff_time` - * * `eta_to_next_waypoint` - * * `intermediate_destinations_version` - * * `last_location` - * * `name` - * * `number_of_passengers` - * * `pickup_time` - * * `remaining_distance_meters` - * * `remaining_time_to_first_waypoint` - * * `remaining_waypoints` - * * `remaining_waypoints_version` - * * `route` - * When you update the `Trip.vehicle_id` for a shared trip, you must supply - * the list of `Trip.vehicle_waypoints` to specify the order of the remaining - * waypoints, otherwise the order will be undetermined. - * When you specify `Trip.vehicle_waypoints`, the list must contain all - * the remaining waypoints of the vehicle's trips, with no extra waypoints. - * You must order these waypoints such that for a given trip, the pickup - * point is before intermediate destinations, and all intermediate - * destinations come before the drop-off point. An `EXCLUSIVE` trip's - * waypoints must not interleave with any other trips. - * The `trip_id`, `waypoint_type` and `location` fields are used, and all - * other TripWaypoint fields in `vehicle_waypoints` are ignored. - * To avoid a race condition for trips with multiple destinations, you - * should provide `Trip.intermediate_destinations_version` when updating - * the trip status to `ENROUTE_TO_INTERMEDIATE_DESTINATION`. The - * `Trip.intermediate_destinations_version` passed must be consistent with - * Fleet Engine's version. If it isn't, the request fails. - * - * Generated from protobuf field .maps.fleetengine.v1.Trip trip = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Maps\FleetEngine\V1\Trip $var - * @return $this - */ - public function setTrip($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Trip::class); - $this->trip = $var; - - return $this; - } - - /** - * Required. The field mask indicating which fields in Trip to update. - * The `update_mask` must contain at least one field. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The field mask indicating which fields in Trip to update. - * The `update_mask` must contain at least one field. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesRequest.php deleted file mode 100644 index 30be79f52ba3..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesRequest.php +++ /dev/null @@ -1,161 +0,0 @@ -maps.fleetengine.v1.UpdateVehicleAttributesRequest - */ -class UpdateVehicleAttributesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - */ - protected $header = null; - /** - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. The vehicle attributes to update. Unmentioned attributes are not - * altered or removed. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private $attributes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\RequestHeader $header - * The standard Fleet Engine request header. - * @type string $name - * 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. - * @type array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $attributes - * Required. The vehicle attributes to update. Unmentioned attributes are not - * altered or removed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @return \Google\Maps\FleetEngine\V1\RequestHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @param \Google\Maps\FleetEngine\V1\RequestHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); - $this->header = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The vehicle attributes to update. Unmentioned attributes are not - * altered or removed. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * Required. The vehicle attributes to update. Unmentioned attributes are not - * altered or removed. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttribute::class); - $this->attributes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesResponse.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesResponse.php deleted file mode 100644 index ba1eb389f4f9..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleAttributesResponse.php +++ /dev/null @@ -1,71 +0,0 @@ -maps.fleetengine.v1.UpdateVehicleAttributesResponse - */ -class UpdateVehicleAttributesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The updated full list of vehicle attributes, including new, - * altered, and untouched attributes. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $attributes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $attributes - * Required. The updated full list of vehicle attributes, including new, - * altered, and untouched attributes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. The updated full list of vehicle attributes, including new, - * altered, and untouched attributes. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * Required. The updated full list of vehicle attributes, including new, - * altered, and untouched attributes. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttribute::class); - $this->attributes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleRequest.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleRequest.php deleted file mode 100644 index 3aded0e174b6..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/UpdateVehicleRequest.php +++ /dev/null @@ -1,267 +0,0 @@ -maps.fleetengine.v1.UpdateVehicleRequest - */ -class UpdateVehicleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - */ - protected $header = null; - /** - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. The `Vehicle` entity values to apply. When updating a `Vehicle`, - * the following fields may not be updated as they are managed by the - * server. - * * `available_capacity` - * * `current_route_segment_version` - * * `current_trips` - * * `name` - * * `waypoints_version` - * If the `attributes` field is updated, **all** the vehicle's attributes are - * replaced with the attributes provided in the request. If you want to update - * only some attributes, see the `UpdateVehicleAttributes` method. - * Likewise, the `waypoints` field can be updated, but must contain all the - * waypoints currently on the vehicle, and no other waypoints. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $vehicle = null; - /** - * Required. A field mask indicating which fields of the `Vehicle` to update. - * At least one field name must be provided. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\RequestHeader $header - * The standard Fleet Engine request header. - * @type string $name - * 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. - * @type \Google\Maps\FleetEngine\V1\Vehicle $vehicle - * Required. The `Vehicle` entity values to apply. When updating a `Vehicle`, - * the following fields may not be updated as they are managed by the - * server. - * * `available_capacity` - * * `current_route_segment_version` - * * `current_trips` - * * `name` - * * `waypoints_version` - * If the `attributes` field is updated, **all** the vehicle's attributes are - * replaced with the attributes provided in the request. If you want to update - * only some attributes, see the `UpdateVehicleAttributes` method. - * Likewise, the `waypoints` field can be updated, but must contain all the - * waypoints currently on the vehicle, and no other waypoints. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. A field mask indicating which fields of the `Vehicle` to update. - * At least one field name must be provided. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @return \Google\Maps\FleetEngine\V1\RequestHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The standard Fleet Engine request header. - * - * Generated from protobuf field .maps.fleetengine.v1.RequestHeader header = 1; - * @param \Google\Maps\FleetEngine\V1\RequestHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\RequestHeader::class); - $this->header = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * 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. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The `Vehicle` entity values to apply. When updating a `Vehicle`, - * the following fields may not be updated as they are managed by the - * server. - * * `available_capacity` - * * `current_route_segment_version` - * * `current_trips` - * * `name` - * * `waypoints_version` - * If the `attributes` field is updated, **all** the vehicle's attributes are - * replaced with the attributes provided in the request. If you want to update - * only some attributes, see the `UpdateVehicleAttributes` method. - * Likewise, the `waypoints` field can be updated, but must contain all the - * waypoints currently on the vehicle, and no other waypoints. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Maps\FleetEngine\V1\Vehicle|null - */ - public function getVehicle() - { - return $this->vehicle; - } - - public function hasVehicle() - { - return isset($this->vehicle); - } - - public function clearVehicle() - { - unset($this->vehicle); - } - - /** - * Required. The `Vehicle` entity values to apply. When updating a `Vehicle`, - * the following fields may not be updated as they are managed by the - * server. - * * `available_capacity` - * * `current_route_segment_version` - * * `current_trips` - * * `name` - * * `waypoints_version` - * If the `attributes` field is updated, **all** the vehicle's attributes are - * replaced with the attributes provided in the request. If you want to update - * only some attributes, see the `UpdateVehicleAttributes` method. - * Likewise, the `waypoints` field can be updated, but must contain all the - * waypoints currently on the vehicle, and no other waypoints. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Maps\FleetEngine\V1\Vehicle $var - * @return $this - */ - public function setVehicle($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Vehicle::class); - $this->vehicle = $var; - - return $this; - } - - /** - * Required. A field mask indicating which fields of the `Vehicle` to update. - * At least one field name must be provided. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. A field mask indicating which fields of the `Vehicle` to update. - * At least one field name must be provided. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle.php deleted file mode 100644 index cef7be90d471..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle.php +++ /dev/null @@ -1,1108 +0,0 @@ -maps.fleetengine.v1.Vehicle - */ -class Vehicle extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The unique name for this vehicle. - * The format is `providers/{provider}/vehicles/{vehicle}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * The vehicle state. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 2; - */ - protected $vehicle_state = 0; - /** - * Trip types supported by this vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripType supported_trip_types = 3; - */ - private $supported_trip_types; - /** - * Output only. List of `trip_id`'s for trips currently assigned to this - * vehicle. - * - * Generated from protobuf field repeated string current_trips = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $current_trips; - /** - * Last reported location of the vehicle. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 5; - */ - protected $last_location = null; - /** - * The total numbers of riders this vehicle can carry. The driver is not - * considered in this value. This value must be greater than or equal to one. - * - * Generated from protobuf field int32 maximum_capacity = 6; - */ - protected $maximum_capacity = 0; - /** - * List of vehicle attributes. A vehicle can have at most 100 - * attributes, and each attribute must have a unique key. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 8; - */ - private $attributes; - /** - * Required. The type of this vehicle. Can be used to filter vehicles in - * `SearchVehicles` results. Also influences ETA and route calculations. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType vehicle_type = 9 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $vehicle_type = null; - /** - * License plate information for the vehicle. - * - * Generated from protobuf field .maps.fleetengine.v1.LicensePlate license_plate = 10; - */ - protected $license_plate = null; - /** - * Deprecated: Use `Vehicle.waypoints` instead. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation route = 12 [deprecated = true]; - * @deprecated - */ - private $route; - /** - * The polyline specifying the route the driver app intends to take to - * the next waypoint. This list is also returned in - * `Trip.current_route_segment` for all active trips assigned to the vehicle. - * Note: This field is intended only for use by the Driver SDK. Decoding is - * not yet supported. - * - * Generated from protobuf field string current_route_segment = 20; - */ - protected $current_route_segment = ''; - /** - * Input only. Fleet Engine uses this information to improve journey sharing. - * Note: This field is intended only for use by the Driver SDK. - * - * Generated from protobuf field .maps.fleetengine.v1.TrafficPolylineData current_route_segment_traffic = 28 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $current_route_segment_traffic = null; - /** - * Output only. Time when `current_route_segment` was set. It can be stored by - * the client and passed in future `GetVehicle` requests to prevent returning - * routes that haven't changed. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $current_route_segment_version = null; - /** - * The waypoint where `current_route_segment` ends. This can be supplied by - * drivers on `UpdateVehicle` calls either as a full trip waypoint, a waypoint - * `LatLng`, or as the last `LatLng` of the `current_route_segment`. Fleet - * Engine will then do its best to interpolate to an actual waypoint if it is - * not fully specified. This field is ignored in `UpdateVehicle` calls unless - * `current_route_segment` is also specified. - * - * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24; - */ - protected $current_route_segment_end_point = null; - /** - * The remaining driving distance for the `current_route_segment`. - * This value is also returned in `Trip.remaining_distance_meters` for all - * active trips assigned to the vehicle. The value is unspecified if the - * `current_route_segment` field is empty. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 18; - */ - protected $remaining_distance_meters = null; - /** - * The ETA to the first entry in the `waypoints` field. The value is - * unspecified if the `waypoints` field is empty or the - * `Vehicle.current_route_segment` field is empty. - * When updating a vehicle, `remaining_time_seconds` takes precedence over - * `eta_to_first_waypoint` in the same request. - * - * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 19; - */ - protected $eta_to_first_waypoint = null; - /** - * Input only. The remaining driving time for the `current_route_segment`. The - * value is unspecified if the `waypoints` field is empty or the - * `Vehicle.current_route_segment` field is empty. This value should match - * `eta_to_first_waypoint` - `current_time` if all parties are using the same - * clock. - * When updating a vehicle, `remaining_time_seconds` takes precedence over - * `eta_to_first_waypoint` in the same request. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_time_seconds = 25 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $remaining_time_seconds = null; - /** - * The remaining waypoints assigned to this Vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint waypoints = 22; - */ - private $waypoints; - /** - * Output only. Last time the `waypoints` field was updated. Clients should - * cache this value and pass it in `GetVehicleRequest` to ensure the - * `waypoints` field is only returned if it is updated. - * - * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $waypoints_version = null; - /** - * Indicates if the driver accepts back-to-back trips. If `true`, - * `SearchVehicles` may include the vehicle even if it is currently assigned - * to a trip. The default value is `false`. - * - * Generated from protobuf field bool back_to_back_enabled = 23; - */ - protected $back_to_back_enabled = false; - /** - * The vehicle's navigation status. - * - * Generated from protobuf field .maps.fleetengine.v1.NavigationStatus navigation_status = 26; - */ - protected $navigation_status = 0; - /** - * Input only. Information about settings in the mobile device being used by - * the driver. - * - * Generated from protobuf field .maps.fleetengine.v1.DeviceSettings device_settings = 27 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $device_settings = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The unique name for this vehicle. - * The format is `providers/{provider}/vehicles/{vehicle}`. - * @type int $vehicle_state - * The vehicle state. - * @type array|\Google\Protobuf\Internal\RepeatedField $supported_trip_types - * Trip types supported by this vehicle. - * @type array|\Google\Protobuf\Internal\RepeatedField $current_trips - * Output only. List of `trip_id`'s for trips currently assigned to this - * vehicle. - * @type \Google\Maps\FleetEngine\V1\VehicleLocation $last_location - * Last reported location of the vehicle. - * @type int $maximum_capacity - * The total numbers of riders this vehicle can carry. The driver is not - * considered in this value. This value must be greater than or equal to one. - * @type array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $attributes - * List of vehicle attributes. A vehicle can have at most 100 - * attributes, and each attribute must have a unique key. - * @type \Google\Maps\FleetEngine\V1\Vehicle\VehicleType $vehicle_type - * Required. The type of this vehicle. Can be used to filter vehicles in - * `SearchVehicles` results. Also influences ETA and route calculations. - * @type \Google\Maps\FleetEngine\V1\LicensePlate $license_plate - * License plate information for the vehicle. - * @type array<\Google\Maps\FleetEngine\V1\TerminalLocation>|\Google\Protobuf\Internal\RepeatedField $route - * Deprecated: Use `Vehicle.waypoints` instead. - * @type string $current_route_segment - * The polyline specifying the route the driver app intends to take to - * the next waypoint. This list is also returned in - * `Trip.current_route_segment` for all active trips assigned to the vehicle. - * Note: This field is intended only for use by the Driver SDK. Decoding is - * not yet supported. - * @type \Google\Maps\FleetEngine\V1\TrafficPolylineData $current_route_segment_traffic - * Input only. Fleet Engine uses this information to improve journey sharing. - * Note: This field is intended only for use by the Driver SDK. - * @type \Google\Protobuf\Timestamp $current_route_segment_version - * Output only. Time when `current_route_segment` was set. It can be stored by - * the client and passed in future `GetVehicle` requests to prevent returning - * routes that haven't changed. - * @type \Google\Maps\FleetEngine\V1\TripWaypoint $current_route_segment_end_point - * The waypoint where `current_route_segment` ends. This can be supplied by - * drivers on `UpdateVehicle` calls either as a full trip waypoint, a waypoint - * `LatLng`, or as the last `LatLng` of the `current_route_segment`. Fleet - * Engine will then do its best to interpolate to an actual waypoint if it is - * not fully specified. This field is ignored in `UpdateVehicle` calls unless - * `current_route_segment` is also specified. - * @type \Google\Protobuf\Int32Value $remaining_distance_meters - * The remaining driving distance for the `current_route_segment`. - * This value is also returned in `Trip.remaining_distance_meters` for all - * active trips assigned to the vehicle. The value is unspecified if the - * `current_route_segment` field is empty. - * @type \Google\Protobuf\Timestamp $eta_to_first_waypoint - * The ETA to the first entry in the `waypoints` field. The value is - * unspecified if the `waypoints` field is empty or the - * `Vehicle.current_route_segment` field is empty. - * When updating a vehicle, `remaining_time_seconds` takes precedence over - * `eta_to_first_waypoint` in the same request. - * @type \Google\Protobuf\Int32Value $remaining_time_seconds - * Input only. The remaining driving time for the `current_route_segment`. The - * value is unspecified if the `waypoints` field is empty or the - * `Vehicle.current_route_segment` field is empty. This value should match - * `eta_to_first_waypoint` - `current_time` if all parties are using the same - * clock. - * When updating a vehicle, `remaining_time_seconds` takes precedence over - * `eta_to_first_waypoint` in the same request. - * @type array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $waypoints - * The remaining waypoints assigned to this Vehicle. - * @type \Google\Protobuf\Timestamp $waypoints_version - * Output only. Last time the `waypoints` field was updated. Clients should - * cache this value and pass it in `GetVehicleRequest` to ensure the - * `waypoints` field is only returned if it is updated. - * @type bool $back_to_back_enabled - * Indicates if the driver accepts back-to-back trips. If `true`, - * `SearchVehicles` may include the vehicle even if it is currently assigned - * to a trip. The default value is `false`. - * @type int $navigation_status - * The vehicle's navigation status. - * @type \Google\Maps\FleetEngine\V1\DeviceSettings $device_settings - * Input only. Information about settings in the mobile device being used by - * the driver. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The unique name for this vehicle. - * The format is `providers/{provider}/vehicles/{vehicle}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The unique name for this vehicle. - * The format is `providers/{provider}/vehicles/{vehicle}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The vehicle state. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 2; - * @return int - */ - public function getVehicleState() - { - return $this->vehicle_state; - } - - /** - * The vehicle state. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleState vehicle_state = 2; - * @param int $var - * @return $this - */ - public function setVehicleState($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\VehicleState::class); - $this->vehicle_state = $var; - - return $this; - } - - /** - * Trip types supported by this vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripType supported_trip_types = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSupportedTripTypes() - { - return $this->supported_trip_types; - } - - /** - * Trip types supported by this vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripType supported_trip_types = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSupportedTripTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Maps\FleetEngine\V1\TripType::class); - $this->supported_trip_types = $arr; - - return $this; - } - - /** - * Output only. List of `trip_id`'s for trips currently assigned to this - * vehicle. - * - * Generated from protobuf field repeated string current_trips = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCurrentTrips() - { - return $this->current_trips; - } - - /** - * Output only. List of `trip_id`'s for trips currently assigned to this - * vehicle. - * - * Generated from protobuf field repeated string current_trips = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCurrentTrips($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->current_trips = $arr; - - return $this; - } - - /** - * Last reported location of the vehicle. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 5; - * @return \Google\Maps\FleetEngine\V1\VehicleLocation|null - */ - public function getLastLocation() - { - return $this->last_location; - } - - public function hasLastLocation() - { - return isset($this->last_location); - } - - public function clearLastLocation() - { - unset($this->last_location); - } - - /** - * Last reported location of the vehicle. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 5; - * @param \Google\Maps\FleetEngine\V1\VehicleLocation $var - * @return $this - */ - public function setLastLocation($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\VehicleLocation::class); - $this->last_location = $var; - - return $this; - } - - /** - * The total numbers of riders this vehicle can carry. The driver is not - * considered in this value. This value must be greater than or equal to one. - * - * Generated from protobuf field int32 maximum_capacity = 6; - * @return int - */ - public function getMaximumCapacity() - { - return $this->maximum_capacity; - } - - /** - * The total numbers of riders this vehicle can carry. The driver is not - * considered in this value. This value must be greater than or equal to one. - * - * Generated from protobuf field int32 maximum_capacity = 6; - * @param int $var - * @return $this - */ - public function setMaximumCapacity($var) - { - GPBUtil::checkInt32($var); - $this->maximum_capacity = $var; - - return $this; - } - - /** - * List of vehicle attributes. A vehicle can have at most 100 - * attributes, and each attribute must have a unique key. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * List of vehicle attributes. A vehicle can have at most 100 - * attributes, and each attribute must have a unique key. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 8; - * @param array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttribute::class); - $this->attributes = $arr; - - return $this; - } - - /** - * Required. The type of this vehicle. Can be used to filter vehicles in - * `SearchVehicles` results. Also influences ETA and route calculations. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType vehicle_type = 9 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Maps\FleetEngine\V1\Vehicle\VehicleType|null - */ - public function getVehicleType() - { - return $this->vehicle_type; - } - - public function hasVehicleType() - { - return isset($this->vehicle_type); - } - - public function clearVehicleType() - { - unset($this->vehicle_type); - } - - /** - * Required. The type of this vehicle. Can be used to filter vehicles in - * `SearchVehicles` results. Also influences ETA and route calculations. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType vehicle_type = 9 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Maps\FleetEngine\V1\Vehicle\VehicleType $var - * @return $this - */ - public function setVehicleType($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Vehicle\VehicleType::class); - $this->vehicle_type = $var; - - return $this; - } - - /** - * License plate information for the vehicle. - * - * Generated from protobuf field .maps.fleetengine.v1.LicensePlate license_plate = 10; - * @return \Google\Maps\FleetEngine\V1\LicensePlate|null - */ - public function getLicensePlate() - { - return $this->license_plate; - } - - public function hasLicensePlate() - { - return isset($this->license_plate); - } - - public function clearLicensePlate() - { - unset($this->license_plate); - } - - /** - * License plate information for the vehicle. - * - * Generated from protobuf field .maps.fleetengine.v1.LicensePlate license_plate = 10; - * @param \Google\Maps\FleetEngine\V1\LicensePlate $var - * @return $this - */ - public function setLicensePlate($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\LicensePlate::class); - $this->license_plate = $var; - - return $this; - } - - /** - * Deprecated: Use `Vehicle.waypoints` instead. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation route = 12 [deprecated = true]; - * @return \Google\Protobuf\Internal\RepeatedField - * @deprecated - */ - public function getRoute() - { - @trigger_error('route is deprecated.', E_USER_DEPRECATED); - return $this->route; - } - - /** - * Deprecated: Use `Vehicle.waypoints` instead. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TerminalLocation route = 12 [deprecated = true]; - * @param array<\Google\Maps\FleetEngine\V1\TerminalLocation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - * @deprecated - */ - public function setRoute($var) - { - @trigger_error('route is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\TerminalLocation::class); - $this->route = $arr; - - return $this; - } - - /** - * The polyline specifying the route the driver app intends to take to - * the next waypoint. This list is also returned in - * `Trip.current_route_segment` for all active trips assigned to the vehicle. - * Note: This field is intended only for use by the Driver SDK. Decoding is - * not yet supported. - * - * Generated from protobuf field string current_route_segment = 20; - * @return string - */ - public function getCurrentRouteSegment() - { - return $this->current_route_segment; - } - - /** - * The polyline specifying the route the driver app intends to take to - * the next waypoint. This list is also returned in - * `Trip.current_route_segment` for all active trips assigned to the vehicle. - * Note: This field is intended only for use by the Driver SDK. Decoding is - * not yet supported. - * - * Generated from protobuf field string current_route_segment = 20; - * @param string $var - * @return $this - */ - public function setCurrentRouteSegment($var) - { - GPBUtil::checkString($var, True); - $this->current_route_segment = $var; - - return $this; - } - - /** - * Input only. Fleet Engine uses this information to improve journey sharing. - * Note: This field is intended only for use by the Driver SDK. - * - * Generated from protobuf field .maps.fleetengine.v1.TrafficPolylineData current_route_segment_traffic = 28 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Maps\FleetEngine\V1\TrafficPolylineData|null - */ - public function getCurrentRouteSegmentTraffic() - { - return $this->current_route_segment_traffic; - } - - public function hasCurrentRouteSegmentTraffic() - { - return isset($this->current_route_segment_traffic); - } - - public function clearCurrentRouteSegmentTraffic() - { - unset($this->current_route_segment_traffic); - } - - /** - * Input only. Fleet Engine uses this information to improve journey sharing. - * Note: This field is intended only for use by the Driver SDK. - * - * Generated from protobuf field .maps.fleetengine.v1.TrafficPolylineData current_route_segment_traffic = 28 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Maps\FleetEngine\V1\TrafficPolylineData $var - * @return $this - */ - public function setCurrentRouteSegmentTraffic($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TrafficPolylineData::class); - $this->current_route_segment_traffic = $var; - - return $this; - } - - /** - * Output only. Time when `current_route_segment` was set. It can be stored by - * the client and passed in future `GetVehicle` requests to prevent returning - * routes that haven't changed. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCurrentRouteSegmentVersion() - { - return $this->current_route_segment_version; - } - - public function hasCurrentRouteSegmentVersion() - { - return isset($this->current_route_segment_version); - } - - public function clearCurrentRouteSegmentVersion() - { - unset($this->current_route_segment_version); - } - - /** - * Output only. Time when `current_route_segment` was set. It can be stored by - * the client and passed in future `GetVehicle` requests to prevent returning - * routes that haven't changed. - * - * Generated from protobuf field .google.protobuf.Timestamp current_route_segment_version = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCurrentRouteSegmentVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->current_route_segment_version = $var; - - return $this; - } - - /** - * The waypoint where `current_route_segment` ends. This can be supplied by - * drivers on `UpdateVehicle` calls either as a full trip waypoint, a waypoint - * `LatLng`, or as the last `LatLng` of the `current_route_segment`. Fleet - * Engine will then do its best to interpolate to an actual waypoint if it is - * not fully specified. This field is ignored in `UpdateVehicle` calls unless - * `current_route_segment` is also specified. - * - * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24; - * @return \Google\Maps\FleetEngine\V1\TripWaypoint|null - */ - public function getCurrentRouteSegmentEndPoint() - { - return $this->current_route_segment_end_point; - } - - public function hasCurrentRouteSegmentEndPoint() - { - return isset($this->current_route_segment_end_point); - } - - public function clearCurrentRouteSegmentEndPoint() - { - unset($this->current_route_segment_end_point); - } - - /** - * The waypoint where `current_route_segment` ends. This can be supplied by - * drivers on `UpdateVehicle` calls either as a full trip waypoint, a waypoint - * `LatLng`, or as the last `LatLng` of the `current_route_segment`. Fleet - * Engine will then do its best to interpolate to an actual waypoint if it is - * not fully specified. This field is ignored in `UpdateVehicle` calls unless - * `current_route_segment` is also specified. - * - * Generated from protobuf field .maps.fleetengine.v1.TripWaypoint current_route_segment_end_point = 24; - * @param \Google\Maps\FleetEngine\V1\TripWaypoint $var - * @return $this - */ - public function setCurrentRouteSegmentEndPoint($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\TripWaypoint::class); - $this->current_route_segment_end_point = $var; - - return $this; - } - - /** - * The remaining driving distance for the `current_route_segment`. - * This value is also returned in `Trip.remaining_distance_meters` for all - * active trips assigned to the vehicle. The value is unspecified if the - * `current_route_segment` field is empty. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 18; - * @return \Google\Protobuf\Int32Value|null - */ - public function getRemainingDistanceMeters() - { - return $this->remaining_distance_meters; - } - - public function hasRemainingDistanceMeters() - { - return isset($this->remaining_distance_meters); - } - - public function clearRemainingDistanceMeters() - { - unset($this->remaining_distance_meters); - } - - /** - * Returns the unboxed value from getRemainingDistanceMeters() - - * The remaining driving distance for the `current_route_segment`. - * This value is also returned in `Trip.remaining_distance_meters` for all - * active trips assigned to the vehicle. The value is unspecified if the - * `current_route_segment` field is empty. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 18; - * @return int|null - */ - public function getRemainingDistanceMetersUnwrapped() - { - return $this->readWrapperValue("remaining_distance_meters"); - } - - /** - * The remaining driving distance for the `current_route_segment`. - * This value is also returned in `Trip.remaining_distance_meters` for all - * active trips assigned to the vehicle. The value is unspecified if the - * `current_route_segment` field is empty. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 18; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setRemainingDistanceMeters($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->remaining_distance_meters = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * The remaining driving distance for the `current_route_segment`. - * This value is also returned in `Trip.remaining_distance_meters` for all - * active trips assigned to the vehicle. The value is unspecified if the - * `current_route_segment` field is empty. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_distance_meters = 18; - * @param int|null $var - * @return $this - */ - public function setRemainingDistanceMetersUnwrapped($var) - { - $this->writeWrapperValue("remaining_distance_meters", $var); - return $this;} - - /** - * The ETA to the first entry in the `waypoints` field. The value is - * unspecified if the `waypoints` field is empty or the - * `Vehicle.current_route_segment` field is empty. - * When updating a vehicle, `remaining_time_seconds` takes precedence over - * `eta_to_first_waypoint` in the same request. - * - * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 19; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEtaToFirstWaypoint() - { - return $this->eta_to_first_waypoint; - } - - public function hasEtaToFirstWaypoint() - { - return isset($this->eta_to_first_waypoint); - } - - public function clearEtaToFirstWaypoint() - { - unset($this->eta_to_first_waypoint); - } - - /** - * The ETA to the first entry in the `waypoints` field. The value is - * unspecified if the `waypoints` field is empty or the - * `Vehicle.current_route_segment` field is empty. - * When updating a vehicle, `remaining_time_seconds` takes precedence over - * `eta_to_first_waypoint` in the same request. - * - * Generated from protobuf field .google.protobuf.Timestamp eta_to_first_waypoint = 19; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEtaToFirstWaypoint($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->eta_to_first_waypoint = $var; - - return $this; - } - - /** - * Input only. The remaining driving time for the `current_route_segment`. The - * value is unspecified if the `waypoints` field is empty or the - * `Vehicle.current_route_segment` field is empty. This value should match - * `eta_to_first_waypoint` - `current_time` if all parties are using the same - * clock. - * When updating a vehicle, `remaining_time_seconds` takes precedence over - * `eta_to_first_waypoint` in the same request. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_time_seconds = 25 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Protobuf\Int32Value|null - */ - public function getRemainingTimeSeconds() - { - return $this->remaining_time_seconds; - } - - public function hasRemainingTimeSeconds() - { - return isset($this->remaining_time_seconds); - } - - public function clearRemainingTimeSeconds() - { - unset($this->remaining_time_seconds); - } - - /** - * Returns the unboxed value from getRemainingTimeSeconds() - - * Input only. The remaining driving time for the `current_route_segment`. The - * value is unspecified if the `waypoints` field is empty or the - * `Vehicle.current_route_segment` field is empty. This value should match - * `eta_to_first_waypoint` - `current_time` if all parties are using the same - * clock. - * When updating a vehicle, `remaining_time_seconds` takes precedence over - * `eta_to_first_waypoint` in the same request. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_time_seconds = 25 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return int|null - */ - public function getRemainingTimeSecondsUnwrapped() - { - return $this->readWrapperValue("remaining_time_seconds"); - } - - /** - * Input only. The remaining driving time for the `current_route_segment`. The - * value is unspecified if the `waypoints` field is empty or the - * `Vehicle.current_route_segment` field is empty. This value should match - * `eta_to_first_waypoint` - `current_time` if all parties are using the same - * clock. - * When updating a vehicle, `remaining_time_seconds` takes precedence over - * `eta_to_first_waypoint` in the same request. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_time_seconds = 25 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setRemainingTimeSeconds($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->remaining_time_seconds = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * Input only. The remaining driving time for the `current_route_segment`. The - * value is unspecified if the `waypoints` field is empty or the - * `Vehicle.current_route_segment` field is empty. This value should match - * `eta_to_first_waypoint` - `current_time` if all parties are using the same - * clock. - * When updating a vehicle, `remaining_time_seconds` takes precedence over - * `eta_to_first_waypoint` in the same request. - * - * Generated from protobuf field .google.protobuf.Int32Value remaining_time_seconds = 25 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param int|null $var - * @return $this - */ - public function setRemainingTimeSecondsUnwrapped($var) - { - $this->writeWrapperValue("remaining_time_seconds", $var); - return $this;} - - /** - * The remaining waypoints assigned to this Vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint waypoints = 22; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getWaypoints() - { - return $this->waypoints; - } - - /** - * The remaining waypoints assigned to this Vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.TripWaypoint waypoints = 22; - * @param array<\Google\Maps\FleetEngine\V1\TripWaypoint>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setWaypoints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\TripWaypoint::class); - $this->waypoints = $arr; - - return $this; - } - - /** - * Output only. Last time the `waypoints` field was updated. Clients should - * cache this value and pass it in `GetVehicleRequest` to ensure the - * `waypoints` field is only returned if it is updated. - * - * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getWaypointsVersion() - { - return $this->waypoints_version; - } - - public function hasWaypointsVersion() - { - return isset($this->waypoints_version); - } - - public function clearWaypointsVersion() - { - unset($this->waypoints_version); - } - - /** - * Output only. Last time the `waypoints` field was updated. Clients should - * cache this value and pass it in `GetVehicleRequest` to ensure the - * `waypoints` field is only returned if it is updated. - * - * Generated from protobuf field .google.protobuf.Timestamp waypoints_version = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setWaypointsVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->waypoints_version = $var; - - return $this; - } - - /** - * Indicates if the driver accepts back-to-back trips. If `true`, - * `SearchVehicles` may include the vehicle even if it is currently assigned - * to a trip. The default value is `false`. - * - * Generated from protobuf field bool back_to_back_enabled = 23; - * @return bool - */ - public function getBackToBackEnabled() - { - return $this->back_to_back_enabled; - } - - /** - * Indicates if the driver accepts back-to-back trips. If `true`, - * `SearchVehicles` may include the vehicle even if it is currently assigned - * to a trip. The default value is `false`. - * - * Generated from protobuf field bool back_to_back_enabled = 23; - * @param bool $var - * @return $this - */ - public function setBackToBackEnabled($var) - { - GPBUtil::checkBool($var); - $this->back_to_back_enabled = $var; - - return $this; - } - - /** - * The vehicle's navigation status. - * - * Generated from protobuf field .maps.fleetengine.v1.NavigationStatus navigation_status = 26; - * @return int - */ - public function getNavigationStatus() - { - return $this->navigation_status; - } - - /** - * The vehicle's navigation status. - * - * Generated from protobuf field .maps.fleetengine.v1.NavigationStatus navigation_status = 26; - * @param int $var - * @return $this - */ - public function setNavigationStatus($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\NavigationStatus::class); - $this->navigation_status = $var; - - return $this; - } - - /** - * Input only. Information about settings in the mobile device being used by - * the driver. - * - * Generated from protobuf field .maps.fleetengine.v1.DeviceSettings device_settings = 27 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Maps\FleetEngine\V1\DeviceSettings|null - */ - public function getDeviceSettings() - { - return $this->device_settings; - } - - public function hasDeviceSettings() - { - return isset($this->device_settings); - } - - public function clearDeviceSettings() - { - unset($this->device_settings); - } - - /** - * Input only. Information about settings in the mobile device being used by - * the driver. - * - * Generated from protobuf field .maps.fleetengine.v1.DeviceSettings device_settings = 27 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Maps\FleetEngine\V1\DeviceSettings $var - * @return $this - */ - public function setDeviceSettings($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\DeviceSettings::class); - $this->device_settings = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType.php deleted file mode 100644 index 2b1dfb175e0d..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType.php +++ /dev/null @@ -1,70 +0,0 @@ -maps.fleetengine.v1.Vehicle.VehicleType - */ -class VehicleType extends \Google\Protobuf\Internal\Message -{ - /** - * Vehicle type category - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType.Category category = 1; - */ - protected $category = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $category - * Vehicle type category - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); - parent::__construct($data); - } - - /** - * Vehicle type category - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType.Category category = 1; - * @return int - */ - public function getCategory() - { - return $this->category; - } - - /** - * Vehicle type category - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle.VehicleType.Category category = 1; - * @param int $var - * @return $this - */ - public function setCategory($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\Vehicle\VehicleType\Category::class); - $this->category = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(VehicleType::class, \Google\Maps\FleetEngine\V1\Vehicle_VehicleType::class); - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType/Category.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType/Category.php deleted file mode 100644 index 8133764e8bc8..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Vehicle/VehicleType/Category.php +++ /dev/null @@ -1,93 +0,0 @@ -maps.fleetengine.v1.Vehicle.VehicleType.Category - */ -class Category -{ - /** - * Default, used for unspecified or unrecognized vehicle categories. - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * An automobile. - * - * Generated from protobuf enum AUTO = 1; - */ - const AUTO = 1; - /** - * Any vehicle that acts as a taxi (typically licensed or regulated). - * - * Generated from protobuf enum TAXI = 2; - */ - const TAXI = 2; - /** - * Generally, a vehicle with a large storage capacity. - * - * Generated from protobuf enum TRUCK = 3; - */ - const TRUCK = 3; - /** - * A motorcycle, moped, or other two-wheeled vehicle - * - * Generated from protobuf enum TWO_WHEELER = 4; - */ - const TWO_WHEELER = 4; - /** - * Human-powered transport. - * - * Generated from protobuf enum BICYCLE = 5; - */ - const BICYCLE = 5; - /** - * A human transporter, typically walking or running, traveling along - * pedestrian pathways. - * - * Generated from protobuf enum PEDESTRIAN = 6; - */ - const PEDESTRIAN = 6; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::AUTO => 'AUTO', - self::TAXI => 'TAXI', - self::TRUCK => 'TRUCK', - self::TWO_WHEELER => 'TWO_WHEELER', - self::BICYCLE => 'BICYCLE', - self::PEDESTRIAN => 'PEDESTRIAN', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Category::class, \Google\Maps\FleetEngine\V1\Vehicle_VehicleType_Category::class); - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttribute.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttribute.php deleted file mode 100644 index 33dc410a64bc..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttribute.php +++ /dev/null @@ -1,225 +0,0 @@ -maps.fleetengine.v1.VehicleAttribute - */ -class VehicleAttribute extends \Google\Protobuf\Internal\Message -{ - /** - * The attribute's key. Keys may not contain the colon character (:). - * - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - /** - * The attribute's value. - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - protected $vehicle_attribute_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * The attribute's key. Keys may not contain the colon character (:). - * @type string $value - * The attribute's value. - * @type string $string_value - * String typed attribute value. - * Note: This is identical to the `value` field which will eventually be - * deprecated. For create or update methods, either field can be used, but - * it's strongly recommended to use `string_value`. If both `string_value` - * and `value` are set, they must be identical or an error will be thrown. - * Both fields are populated in responses. - * @type bool $bool_value - * Boolean typed attribute value. - * @type float $number_value - * Double typed attribute value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Fleetengine::initOnce(); - parent::__construct($data); - } - - /** - * The attribute's key. Keys may not contain the colon character (:). - * - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * The attribute's key. Keys may not contain the colon character (:). - * - * Generated from protobuf field string key = 1; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * The attribute's value. - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The attribute's value. - * - * Generated from protobuf field string value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * String typed attribute value. - * Note: This is identical to the `value` field which will eventually be - * deprecated. For create or update methods, either field can be used, but - * it's strongly recommended to use `string_value`. If both `string_value` - * and `value` are set, they must be identical or an error will be thrown. - * Both fields are populated in responses. - * - * Generated from protobuf field string string_value = 3; - * @return string - */ - public function getStringValue() - { - return $this->readOneof(3); - } - - public function hasStringValue() - { - return $this->hasOneof(3); - } - - /** - * String typed attribute value. - * Note: This is identical to the `value` field which will eventually be - * deprecated. For create or update methods, either field can be used, but - * it's strongly recommended to use `string_value`. If both `string_value` - * and `value` are set, they must be identical or an error will be thrown. - * Both fields are populated in responses. - * - * Generated from protobuf field string string_value = 3; - * @param string $var - * @return $this - */ - public function setStringValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Boolean typed attribute value. - * - * Generated from protobuf field bool bool_value = 4; - * @return bool - */ - public function getBoolValue() - { - return $this->readOneof(4); - } - - public function hasBoolValue() - { - return $this->hasOneof(4); - } - - /** - * Boolean typed attribute value. - * - * Generated from protobuf field bool bool_value = 4; - * @param bool $var - * @return $this - */ - public function setBoolValue($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Double typed attribute value. - * - * Generated from protobuf field double number_value = 5; - * @return float - */ - public function getNumberValue() - { - return $this->readOneof(5); - } - - public function hasNumberValue() - { - return $this->hasOneof(5); - } - - /** - * Double typed attribute value. - * - * Generated from protobuf field double number_value = 5; - * @param float $var - * @return $this - */ - public function setNumberValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getVehicleAttributeValue() - { - return $this->whichOneof("vehicle_attribute_value"); - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttributeList.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttributeList.php deleted file mode 100644 index 99d5f9de749e..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleAttributeList.php +++ /dev/null @@ -1,67 +0,0 @@ -maps.fleetengine.v1.VehicleAttributeList - */ -class VehicleAttributeList extends \Google\Protobuf\Internal\Message -{ - /** - * A list of attributes in this collection. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1; - */ - private $attributes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $attributes - * A list of attributes in this collection. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * A list of attributes in this collection. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * A list of attributes in this collection. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleAttribute attributes = 1; - * @param array<\Google\Maps\FleetEngine\V1\VehicleAttribute>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleAttribute::class); - $this->attributes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleLocation.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleLocation.php deleted file mode 100644 index a4efa0721e4a..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleLocation.php +++ /dev/null @@ -1,1789 +0,0 @@ -maps.fleetengine.v1.VehicleLocation - */ -class VehicleLocation extends \Google\Protobuf\Internal\Message -{ - /** - * The location of the vehicle. - * When it is sent to Fleet Engine, the vehicle's location is a GPS location. - * When you receive it in a response, the vehicle's location can be either a - * GPS location, a supplemental location, or some other estimated location. - * The source is specified in `location_sensor`. - * - * Generated from protobuf field .google.type.LatLng location = 1; - */ - protected $location = null; - /** - * Deprecated: Use `latlng_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; - * @deprecated - */ - protected $horizontal_accuracy = null; - /** - * Accuracy of `location` in meters as a radius. - * - * Generated from protobuf field .google.protobuf.DoubleValue latlng_accuracy = 22; - */ - protected $latlng_accuracy = null; - /** - * Direction the vehicle is moving in degrees. 0 represents North. - * The valid range is [0,360). - * - * Generated from protobuf field .google.protobuf.Int32Value heading = 2; - */ - protected $heading = null; - /** - * Deprecated: Use `heading_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; - * @deprecated - */ - protected $bearing_accuracy = null; - /** - * Accuracy of `heading` in degrees. - * - * Generated from protobuf field .google.protobuf.DoubleValue heading_accuracy = 23; - */ - protected $heading_accuracy = null; - /** - * Altitude in meters above WGS84. - * - * Generated from protobuf field .google.protobuf.DoubleValue altitude = 5; - */ - protected $altitude = null; - /** - * Deprecated: Use `altitude_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; - * @deprecated - */ - protected $vertical_accuracy = null; - /** - * Accuracy of `altitude` in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue altitude_accuracy = 24; - */ - protected $altitude_accuracy = null; - /** - * Speed of the vehicle in kilometers per hour. - * Deprecated: Use `speed` instead. - * - * Generated from protobuf field .google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; - * @deprecated - */ - protected $speed_kmph = null; - /** - * Speed of the vehicle in meters/second - * - * Generated from protobuf field .google.protobuf.DoubleValue speed = 6; - */ - protected $speed = null; - /** - * Accuracy of `speed` in meters/second. - * - * Generated from protobuf field .google.protobuf.DoubleValue speed_accuracy = 7; - */ - protected $speed_accuracy = null; - /** - * The time when `location` was reported by the sensor according to the - * sensor's clock. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; - */ - protected $update_time = null; - /** - * Output only. The time when the server received the location information. - * - * Generated from protobuf field .google.protobuf.Timestamp server_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $server_time = null; - /** - * Provider of location data (for example, `GPS`). - * - * Generated from protobuf field .maps.fleetengine.v1.LocationSensor location_sensor = 11; - */ - protected $location_sensor = 0; - /** - * Whether `location` is snapped to a road. - * - * Generated from protobuf field .google.protobuf.BoolValue is_road_snapped = 27; - */ - protected $is_road_snapped = null; - /** - * Input only. Indicates whether the GPS sensor is enabled on the mobile - * device. - * - * Generated from protobuf field .google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $is_gps_sensor_enabled = null; - /** - * Input only. Time (in seconds) since this location was first sent to the - * server. This will be zero for the first update. If the time is unknown (for - * example, when the app restarts), this value resets to zero. - * - * Generated from protobuf field .google.protobuf.Int32Value time_since_update = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $time_since_update = null; - /** - * Input only. Deprecated: Other signals are now used to determine if a - * location is stale. - * - * Generated from protobuf field .google.protobuf.Int32Value num_stale_updates = 15 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; - * @deprecated - */ - protected $num_stale_updates = null; - /** - * Raw vehicle location (unprocessed by road-snapper). - * - * Generated from protobuf field .google.type.LatLng raw_location = 16; - */ - protected $raw_location = null; - /** - * Timestamp associated with the raw location. - * - * Generated from protobuf field .google.protobuf.Timestamp raw_location_time = 17; - */ - protected $raw_location_time = null; - /** - * Source of the raw location. Defaults to `GPS`. - * - * Generated from protobuf field .maps.fleetengine.v1.LocationSensor raw_location_sensor = 28; - */ - protected $raw_location_sensor = 0; - /** - * Accuracy of `raw_location` as a radius, in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue raw_location_accuracy = 25; - */ - protected $raw_location_accuracy = null; - /** - * Supplemental location provided by the integrating app. - * - * Generated from protobuf field .google.type.LatLng supplemental_location = 18; - */ - protected $supplemental_location = null; - /** - * Timestamp associated with the supplemental location. - * - * Generated from protobuf field .google.protobuf.Timestamp supplemental_location_time = 19; - */ - protected $supplemental_location_time = null; - /** - * Source of the supplemental location. Defaults to - * `CUSTOMER_SUPPLIED_LOCATION`. - * - * Generated from protobuf field .maps.fleetengine.v1.LocationSensor supplemental_location_sensor = 20; - */ - protected $supplemental_location_sensor = 0; - /** - * Accuracy of `supplemental_location` as a radius, in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue supplemental_location_accuracy = 21; - */ - protected $supplemental_location_accuracy = null; - /** - * Deprecated: Use `is_road_snapped` instead. - * - * Generated from protobuf field bool road_snapped = 26 [deprecated = true]; - * @deprecated - */ - protected $road_snapped = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\LatLng $location - * The location of the vehicle. - * When it is sent to Fleet Engine, the vehicle's location is a GPS location. - * When you receive it in a response, the vehicle's location can be either a - * GPS location, a supplemental location, or some other estimated location. - * The source is specified in `location_sensor`. - * @type \Google\Protobuf\DoubleValue $horizontal_accuracy - * Deprecated: Use `latlng_accuracy` instead. - * @type \Google\Protobuf\DoubleValue $latlng_accuracy - * Accuracy of `location` in meters as a radius. - * @type \Google\Protobuf\Int32Value $heading - * Direction the vehicle is moving in degrees. 0 represents North. - * The valid range is [0,360). - * @type \Google\Protobuf\DoubleValue $bearing_accuracy - * Deprecated: Use `heading_accuracy` instead. - * @type \Google\Protobuf\DoubleValue $heading_accuracy - * Accuracy of `heading` in degrees. - * @type \Google\Protobuf\DoubleValue $altitude - * Altitude in meters above WGS84. - * @type \Google\Protobuf\DoubleValue $vertical_accuracy - * Deprecated: Use `altitude_accuracy` instead. - * @type \Google\Protobuf\DoubleValue $altitude_accuracy - * Accuracy of `altitude` in meters. - * @type \Google\Protobuf\Int32Value $speed_kmph - * Speed of the vehicle in kilometers per hour. - * Deprecated: Use `speed` instead. - * @type \Google\Protobuf\DoubleValue $speed - * Speed of the vehicle in meters/second - * @type \Google\Protobuf\DoubleValue $speed_accuracy - * Accuracy of `speed` in meters/second. - * @type \Google\Protobuf\Timestamp $update_time - * The time when `location` was reported by the sensor according to the - * sensor's clock. - * @type \Google\Protobuf\Timestamp $server_time - * Output only. The time when the server received the location information. - * @type int $location_sensor - * Provider of location data (for example, `GPS`). - * @type \Google\Protobuf\BoolValue $is_road_snapped - * Whether `location` is snapped to a road. - * @type \Google\Protobuf\BoolValue $is_gps_sensor_enabled - * Input only. Indicates whether the GPS sensor is enabled on the mobile - * device. - * @type \Google\Protobuf\Int32Value $time_since_update - * Input only. Time (in seconds) since this location was first sent to the - * server. This will be zero for the first update. If the time is unknown (for - * example, when the app restarts), this value resets to zero. - * @type \Google\Protobuf\Int32Value $num_stale_updates - * Input only. Deprecated: Other signals are now used to determine if a - * location is stale. - * @type \Google\Type\LatLng $raw_location - * Raw vehicle location (unprocessed by road-snapper). - * @type \Google\Protobuf\Timestamp $raw_location_time - * Timestamp associated with the raw location. - * @type int $raw_location_sensor - * Source of the raw location. Defaults to `GPS`. - * @type \Google\Protobuf\DoubleValue $raw_location_accuracy - * Accuracy of `raw_location` as a radius, in meters. - * @type \Google\Type\LatLng $supplemental_location - * Supplemental location provided by the integrating app. - * @type \Google\Protobuf\Timestamp $supplemental_location_time - * Timestamp associated with the supplemental location. - * @type int $supplemental_location_sensor - * Source of the supplemental location. Defaults to - * `CUSTOMER_SUPPLIED_LOCATION`. - * @type \Google\Protobuf\DoubleValue $supplemental_location_accuracy - * Accuracy of `supplemental_location` as a radius, in meters. - * @type bool $road_snapped - * Deprecated: Use `is_road_snapped` instead. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Fleetengine::initOnce(); - parent::__construct($data); - } - - /** - * The location of the vehicle. - * When it is sent to Fleet Engine, the vehicle's location is a GPS location. - * When you receive it in a response, the vehicle's location can be either a - * GPS location, a supplemental location, or some other estimated location. - * The source is specified in `location_sensor`. - * - * Generated from protobuf field .google.type.LatLng location = 1; - * @return \Google\Type\LatLng|null - */ - public function getLocation() - { - return $this->location; - } - - public function hasLocation() - { - return isset($this->location); - } - - public function clearLocation() - { - unset($this->location); - } - - /** - * The location of the vehicle. - * When it is sent to Fleet Engine, the vehicle's location is a GPS location. - * When you receive it in a response, the vehicle's location can be either a - * GPS location, a supplemental location, or some other estimated location. - * The source is specified in `location_sensor`. - * - * Generated from protobuf field .google.type.LatLng location = 1; - * @param \Google\Type\LatLng $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkMessage($var, \Google\Type\LatLng::class); - $this->location = $var; - - return $this; - } - - /** - * Deprecated: Use `latlng_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; - * @return \Google\Protobuf\DoubleValue|null - * @deprecated - */ - public function getHorizontalAccuracy() - { - @trigger_error('horizontal_accuracy is deprecated.', E_USER_DEPRECATED); - return $this->horizontal_accuracy; - } - - public function hasHorizontalAccuracy() - { - @trigger_error('horizontal_accuracy is deprecated.', E_USER_DEPRECATED); - return isset($this->horizontal_accuracy); - } - - public function clearHorizontalAccuracy() - { - @trigger_error('horizontal_accuracy is deprecated.', E_USER_DEPRECATED); - unset($this->horizontal_accuracy); - } - - /** - * Returns the unboxed value from getHorizontalAccuracy() - - * Deprecated: Use `latlng_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; - * @return float|null - */ - public function getHorizontalAccuracyUnwrapped() - { - @trigger_error('horizontal_accuracy is deprecated.', E_USER_DEPRECATED); - return $this->readWrapperValue("horizontal_accuracy"); - } - - /** - * Deprecated: Use `latlng_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - * @deprecated - */ - public function setHorizontalAccuracy($var) - { - @trigger_error('horizontal_accuracy is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->horizontal_accuracy = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Deprecated: Use `latlng_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; - * @param float|null $var - * @return $this - */ - public function setHorizontalAccuracyUnwrapped($var) - { - $this->writeWrapperValue("horizontal_accuracy", $var); - return $this;} - - /** - * Accuracy of `location` in meters as a radius. - * - * Generated from protobuf field .google.protobuf.DoubleValue latlng_accuracy = 22; - * @return \Google\Protobuf\DoubleValue|null - */ - public function getLatlngAccuracy() - { - return $this->latlng_accuracy; - } - - public function hasLatlngAccuracy() - { - return isset($this->latlng_accuracy); - } - - public function clearLatlngAccuracy() - { - unset($this->latlng_accuracy); - } - - /** - * Returns the unboxed value from getLatlngAccuracy() - - * Accuracy of `location` in meters as a radius. - * - * Generated from protobuf field .google.protobuf.DoubleValue latlng_accuracy = 22; - * @return float|null - */ - public function getLatlngAccuracyUnwrapped() - { - return $this->readWrapperValue("latlng_accuracy"); - } - - /** - * Accuracy of `location` in meters as a radius. - * - * Generated from protobuf field .google.protobuf.DoubleValue latlng_accuracy = 22; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - */ - public function setLatlngAccuracy($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->latlng_accuracy = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Accuracy of `location` in meters as a radius. - * - * Generated from protobuf field .google.protobuf.DoubleValue latlng_accuracy = 22; - * @param float|null $var - * @return $this - */ - public function setLatlngAccuracyUnwrapped($var) - { - $this->writeWrapperValue("latlng_accuracy", $var); - return $this;} - - /** - * Direction the vehicle is moving in degrees. 0 represents North. - * The valid range is [0,360). - * - * Generated from protobuf field .google.protobuf.Int32Value heading = 2; - * @return \Google\Protobuf\Int32Value|null - */ - public function getHeading() - { - return $this->heading; - } - - public function hasHeading() - { - return isset($this->heading); - } - - public function clearHeading() - { - unset($this->heading); - } - - /** - * Returns the unboxed value from getHeading() - - * Direction the vehicle is moving in degrees. 0 represents North. - * The valid range is [0,360). - * - * Generated from protobuf field .google.protobuf.Int32Value heading = 2; - * @return int|null - */ - public function getHeadingUnwrapped() - { - return $this->readWrapperValue("heading"); - } - - /** - * Direction the vehicle is moving in degrees. 0 represents North. - * The valid range is [0,360). - * - * Generated from protobuf field .google.protobuf.Int32Value heading = 2; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setHeading($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->heading = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * Direction the vehicle is moving in degrees. 0 represents North. - * The valid range is [0,360). - * - * Generated from protobuf field .google.protobuf.Int32Value heading = 2; - * @param int|null $var - * @return $this - */ - public function setHeadingUnwrapped($var) - { - $this->writeWrapperValue("heading", $var); - return $this;} - - /** - * Deprecated: Use `heading_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; - * @return \Google\Protobuf\DoubleValue|null - * @deprecated - */ - public function getBearingAccuracy() - { - @trigger_error('bearing_accuracy is deprecated.', E_USER_DEPRECATED); - return $this->bearing_accuracy; - } - - public function hasBearingAccuracy() - { - @trigger_error('bearing_accuracy is deprecated.', E_USER_DEPRECATED); - return isset($this->bearing_accuracy); - } - - public function clearBearingAccuracy() - { - @trigger_error('bearing_accuracy is deprecated.', E_USER_DEPRECATED); - unset($this->bearing_accuracy); - } - - /** - * Returns the unboxed value from getBearingAccuracy() - - * Deprecated: Use `heading_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; - * @return float|null - */ - public function getBearingAccuracyUnwrapped() - { - @trigger_error('bearing_accuracy is deprecated.', E_USER_DEPRECATED); - return $this->readWrapperValue("bearing_accuracy"); - } - - /** - * Deprecated: Use `heading_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - * @deprecated - */ - public function setBearingAccuracy($var) - { - @trigger_error('bearing_accuracy is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->bearing_accuracy = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Deprecated: Use `heading_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; - * @param float|null $var - * @return $this - */ - public function setBearingAccuracyUnwrapped($var) - { - $this->writeWrapperValue("bearing_accuracy", $var); - return $this;} - - /** - * Accuracy of `heading` in degrees. - * - * Generated from protobuf field .google.protobuf.DoubleValue heading_accuracy = 23; - * @return \Google\Protobuf\DoubleValue|null - */ - public function getHeadingAccuracy() - { - return $this->heading_accuracy; - } - - public function hasHeadingAccuracy() - { - return isset($this->heading_accuracy); - } - - public function clearHeadingAccuracy() - { - unset($this->heading_accuracy); - } - - /** - * Returns the unboxed value from getHeadingAccuracy() - - * Accuracy of `heading` in degrees. - * - * Generated from protobuf field .google.protobuf.DoubleValue heading_accuracy = 23; - * @return float|null - */ - public function getHeadingAccuracyUnwrapped() - { - return $this->readWrapperValue("heading_accuracy"); - } - - /** - * Accuracy of `heading` in degrees. - * - * Generated from protobuf field .google.protobuf.DoubleValue heading_accuracy = 23; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - */ - public function setHeadingAccuracy($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->heading_accuracy = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Accuracy of `heading` in degrees. - * - * Generated from protobuf field .google.protobuf.DoubleValue heading_accuracy = 23; - * @param float|null $var - * @return $this - */ - public function setHeadingAccuracyUnwrapped($var) - { - $this->writeWrapperValue("heading_accuracy", $var); - return $this;} - - /** - * Altitude in meters above WGS84. - * - * Generated from protobuf field .google.protobuf.DoubleValue altitude = 5; - * @return \Google\Protobuf\DoubleValue|null - */ - public function getAltitude() - { - return $this->altitude; - } - - public function hasAltitude() - { - return isset($this->altitude); - } - - public function clearAltitude() - { - unset($this->altitude); - } - - /** - * Returns the unboxed value from getAltitude() - - * Altitude in meters above WGS84. - * - * Generated from protobuf field .google.protobuf.DoubleValue altitude = 5; - * @return float|null - */ - public function getAltitudeUnwrapped() - { - return $this->readWrapperValue("altitude"); - } - - /** - * Altitude in meters above WGS84. - * - * Generated from protobuf field .google.protobuf.DoubleValue altitude = 5; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - */ - public function setAltitude($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->altitude = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Altitude in meters above WGS84. - * - * Generated from protobuf field .google.protobuf.DoubleValue altitude = 5; - * @param float|null $var - * @return $this - */ - public function setAltitudeUnwrapped($var) - { - $this->writeWrapperValue("altitude", $var); - return $this;} - - /** - * Deprecated: Use `altitude_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; - * @return \Google\Protobuf\DoubleValue|null - * @deprecated - */ - public function getVerticalAccuracy() - { - @trigger_error('vertical_accuracy is deprecated.', E_USER_DEPRECATED); - return $this->vertical_accuracy; - } - - public function hasVerticalAccuracy() - { - @trigger_error('vertical_accuracy is deprecated.', E_USER_DEPRECATED); - return isset($this->vertical_accuracy); - } - - public function clearVerticalAccuracy() - { - @trigger_error('vertical_accuracy is deprecated.', E_USER_DEPRECATED); - unset($this->vertical_accuracy); - } - - /** - * Returns the unboxed value from getVerticalAccuracy() - - * Deprecated: Use `altitude_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; - * @return float|null - */ - public function getVerticalAccuracyUnwrapped() - { - @trigger_error('vertical_accuracy is deprecated.', E_USER_DEPRECATED); - return $this->readWrapperValue("vertical_accuracy"); - } - - /** - * Deprecated: Use `altitude_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - * @deprecated - */ - public function setVerticalAccuracy($var) - { - @trigger_error('vertical_accuracy is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->vertical_accuracy = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Deprecated: Use `altitude_accuracy` instead. - * - * Generated from protobuf field .google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; - * @param float|null $var - * @return $this - */ - public function setVerticalAccuracyUnwrapped($var) - { - $this->writeWrapperValue("vertical_accuracy", $var); - return $this;} - - /** - * Accuracy of `altitude` in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue altitude_accuracy = 24; - * @return \Google\Protobuf\DoubleValue|null - */ - public function getAltitudeAccuracy() - { - return $this->altitude_accuracy; - } - - public function hasAltitudeAccuracy() - { - return isset($this->altitude_accuracy); - } - - public function clearAltitudeAccuracy() - { - unset($this->altitude_accuracy); - } - - /** - * Returns the unboxed value from getAltitudeAccuracy() - - * Accuracy of `altitude` in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue altitude_accuracy = 24; - * @return float|null - */ - public function getAltitudeAccuracyUnwrapped() - { - return $this->readWrapperValue("altitude_accuracy"); - } - - /** - * Accuracy of `altitude` in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue altitude_accuracy = 24; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - */ - public function setAltitudeAccuracy($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->altitude_accuracy = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Accuracy of `altitude` in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue altitude_accuracy = 24; - * @param float|null $var - * @return $this - */ - public function setAltitudeAccuracyUnwrapped($var) - { - $this->writeWrapperValue("altitude_accuracy", $var); - return $this;} - - /** - * Speed of the vehicle in kilometers per hour. - * Deprecated: Use `speed` instead. - * - * Generated from protobuf field .google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; - * @return \Google\Protobuf\Int32Value|null - * @deprecated - */ - public function getSpeedKmph() - { - @trigger_error('speed_kmph is deprecated.', E_USER_DEPRECATED); - return $this->speed_kmph; - } - - public function hasSpeedKmph() - { - @trigger_error('speed_kmph is deprecated.', E_USER_DEPRECATED); - return isset($this->speed_kmph); - } - - public function clearSpeedKmph() - { - @trigger_error('speed_kmph is deprecated.', E_USER_DEPRECATED); - unset($this->speed_kmph); - } - - /** - * Returns the unboxed value from getSpeedKmph() - - * Speed of the vehicle in kilometers per hour. - * Deprecated: Use `speed` instead. - * - * Generated from protobuf field .google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; - * @return int|null - */ - public function getSpeedKmphUnwrapped() - { - @trigger_error('speed_kmph is deprecated.', E_USER_DEPRECATED); - return $this->readWrapperValue("speed_kmph"); - } - - /** - * Speed of the vehicle in kilometers per hour. - * Deprecated: Use `speed` instead. - * - * Generated from protobuf field .google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; - * @param \Google\Protobuf\Int32Value $var - * @return $this - * @deprecated - */ - public function setSpeedKmph($var) - { - @trigger_error('speed_kmph is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->speed_kmph = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * Speed of the vehicle in kilometers per hour. - * Deprecated: Use `speed` instead. - * - * Generated from protobuf field .google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; - * @param int|null $var - * @return $this - */ - public function setSpeedKmphUnwrapped($var) - { - $this->writeWrapperValue("speed_kmph", $var); - return $this;} - - /** - * Speed of the vehicle in meters/second - * - * Generated from protobuf field .google.protobuf.DoubleValue speed = 6; - * @return \Google\Protobuf\DoubleValue|null - */ - public function getSpeed() - { - return $this->speed; - } - - public function hasSpeed() - { - return isset($this->speed); - } - - public function clearSpeed() - { - unset($this->speed); - } - - /** - * Returns the unboxed value from getSpeed() - - * Speed of the vehicle in meters/second - * - * Generated from protobuf field .google.protobuf.DoubleValue speed = 6; - * @return float|null - */ - public function getSpeedUnwrapped() - { - return $this->readWrapperValue("speed"); - } - - /** - * Speed of the vehicle in meters/second - * - * Generated from protobuf field .google.protobuf.DoubleValue speed = 6; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - */ - public function setSpeed($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->speed = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Speed of the vehicle in meters/second - * - * Generated from protobuf field .google.protobuf.DoubleValue speed = 6; - * @param float|null $var - * @return $this - */ - public function setSpeedUnwrapped($var) - { - $this->writeWrapperValue("speed", $var); - return $this;} - - /** - * Accuracy of `speed` in meters/second. - * - * Generated from protobuf field .google.protobuf.DoubleValue speed_accuracy = 7; - * @return \Google\Protobuf\DoubleValue|null - */ - public function getSpeedAccuracy() - { - return $this->speed_accuracy; - } - - public function hasSpeedAccuracy() - { - return isset($this->speed_accuracy); - } - - public function clearSpeedAccuracy() - { - unset($this->speed_accuracy); - } - - /** - * Returns the unboxed value from getSpeedAccuracy() - - * Accuracy of `speed` in meters/second. - * - * Generated from protobuf field .google.protobuf.DoubleValue speed_accuracy = 7; - * @return float|null - */ - public function getSpeedAccuracyUnwrapped() - { - return $this->readWrapperValue("speed_accuracy"); - } - - /** - * Accuracy of `speed` in meters/second. - * - * Generated from protobuf field .google.protobuf.DoubleValue speed_accuracy = 7; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - */ - public function setSpeedAccuracy($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->speed_accuracy = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Accuracy of `speed` in meters/second. - * - * Generated from protobuf field .google.protobuf.DoubleValue speed_accuracy = 7; - * @param float|null $var - * @return $this - */ - public function setSpeedAccuracyUnwrapped($var) - { - $this->writeWrapperValue("speed_accuracy", $var); - return $this;} - - /** - * The time when `location` was reported by the sensor according to the - * sensor's clock. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * The time when `location` was reported by the sensor according to the - * sensor's clock. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. The time when the server received the location information. - * - * Generated from protobuf field .google.protobuf.Timestamp server_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getServerTime() - { - return $this->server_time; - } - - public function hasServerTime() - { - return isset($this->server_time); - } - - public function clearServerTime() - { - unset($this->server_time); - } - - /** - * Output only. The time when the server received the location information. - * - * Generated from protobuf field .google.protobuf.Timestamp server_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setServerTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->server_time = $var; - - return $this; - } - - /** - * Provider of location data (for example, `GPS`). - * - * Generated from protobuf field .maps.fleetengine.v1.LocationSensor location_sensor = 11; - * @return int - */ - public function getLocationSensor() - { - return $this->location_sensor; - } - - /** - * Provider of location data (for example, `GPS`). - * - * Generated from protobuf field .maps.fleetengine.v1.LocationSensor location_sensor = 11; - * @param int $var - * @return $this - */ - public function setLocationSensor($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\LocationSensor::class); - $this->location_sensor = $var; - - return $this; - } - - /** - * Whether `location` is snapped to a road. - * - * Generated from protobuf field .google.protobuf.BoolValue is_road_snapped = 27; - * @return \Google\Protobuf\BoolValue|null - */ - public function getIsRoadSnapped() - { - return $this->is_road_snapped; - } - - public function hasIsRoadSnapped() - { - return isset($this->is_road_snapped); - } - - public function clearIsRoadSnapped() - { - unset($this->is_road_snapped); - } - - /** - * Returns the unboxed value from getIsRoadSnapped() - - * Whether `location` is snapped to a road. - * - * Generated from protobuf field .google.protobuf.BoolValue is_road_snapped = 27; - * @return bool|null - */ - public function getIsRoadSnappedUnwrapped() - { - return $this->readWrapperValue("is_road_snapped"); - } - - /** - * Whether `location` is snapped to a road. - * - * Generated from protobuf field .google.protobuf.BoolValue is_road_snapped = 27; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setIsRoadSnapped($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->is_road_snapped = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Whether `location` is snapped to a road. - * - * Generated from protobuf field .google.protobuf.BoolValue is_road_snapped = 27; - * @param bool|null $var - * @return $this - */ - public function setIsRoadSnappedUnwrapped($var) - { - $this->writeWrapperValue("is_road_snapped", $var); - return $this;} - - /** - * Input only. Indicates whether the GPS sensor is enabled on the mobile - * device. - * - * Generated from protobuf field .google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Protobuf\BoolValue|null - */ - public function getIsGpsSensorEnabled() - { - return $this->is_gps_sensor_enabled; - } - - public function hasIsGpsSensorEnabled() - { - return isset($this->is_gps_sensor_enabled); - } - - public function clearIsGpsSensorEnabled() - { - unset($this->is_gps_sensor_enabled); - } - - /** - * Returns the unboxed value from getIsGpsSensorEnabled() - - * Input only. Indicates whether the GPS sensor is enabled on the mobile - * device. - * - * Generated from protobuf field .google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return bool|null - */ - public function getIsGpsSensorEnabledUnwrapped() - { - return $this->readWrapperValue("is_gps_sensor_enabled"); - } - - /** - * Input only. Indicates whether the GPS sensor is enabled on the mobile - * device. - * - * Generated from protobuf field .google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setIsGpsSensorEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->is_gps_sensor_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Input only. Indicates whether the GPS sensor is enabled on the mobile - * device. - * - * Generated from protobuf field .google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param bool|null $var - * @return $this - */ - public function setIsGpsSensorEnabledUnwrapped($var) - { - $this->writeWrapperValue("is_gps_sensor_enabled", $var); - return $this;} - - /** - * Input only. Time (in seconds) since this location was first sent to the - * server. This will be zero for the first update. If the time is unknown (for - * example, when the app restarts), this value resets to zero. - * - * Generated from protobuf field .google.protobuf.Int32Value time_since_update = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Protobuf\Int32Value|null - */ - public function getTimeSinceUpdate() - { - return $this->time_since_update; - } - - public function hasTimeSinceUpdate() - { - return isset($this->time_since_update); - } - - public function clearTimeSinceUpdate() - { - unset($this->time_since_update); - } - - /** - * Returns the unboxed value from getTimeSinceUpdate() - - * Input only. Time (in seconds) since this location was first sent to the - * server. This will be zero for the first update. If the time is unknown (for - * example, when the app restarts), this value resets to zero. - * - * Generated from protobuf field .google.protobuf.Int32Value time_since_update = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return int|null - */ - public function getTimeSinceUpdateUnwrapped() - { - return $this->readWrapperValue("time_since_update"); - } - - /** - * Input only. Time (in seconds) since this location was first sent to the - * server. This will be zero for the first update. If the time is unknown (for - * example, when the app restarts), this value resets to zero. - * - * Generated from protobuf field .google.protobuf.Int32Value time_since_update = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setTimeSinceUpdate($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->time_since_update = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * Input only. Time (in seconds) since this location was first sent to the - * server. This will be zero for the first update. If the time is unknown (for - * example, when the app restarts), this value resets to zero. - * - * Generated from protobuf field .google.protobuf.Int32Value time_since_update = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param int|null $var - * @return $this - */ - public function setTimeSinceUpdateUnwrapped($var) - { - $this->writeWrapperValue("time_since_update", $var); - return $this;} - - /** - * Input only. Deprecated: Other signals are now used to determine if a - * location is stale. - * - * Generated from protobuf field .google.protobuf.Int32Value num_stale_updates = 15 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Protobuf\Int32Value|null - * @deprecated - */ - public function getNumStaleUpdates() - { - @trigger_error('num_stale_updates is deprecated.', E_USER_DEPRECATED); - return $this->num_stale_updates; - } - - public function hasNumStaleUpdates() - { - @trigger_error('num_stale_updates is deprecated.', E_USER_DEPRECATED); - return isset($this->num_stale_updates); - } - - public function clearNumStaleUpdates() - { - @trigger_error('num_stale_updates is deprecated.', E_USER_DEPRECATED); - unset($this->num_stale_updates); - } - - /** - * Returns the unboxed value from getNumStaleUpdates() - - * Input only. Deprecated: Other signals are now used to determine if a - * location is stale. - * - * Generated from protobuf field .google.protobuf.Int32Value num_stale_updates = 15 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; - * @return int|null - */ - public function getNumStaleUpdatesUnwrapped() - { - @trigger_error('num_stale_updates is deprecated.', E_USER_DEPRECATED); - return $this->readWrapperValue("num_stale_updates"); - } - - /** - * Input only. Deprecated: Other signals are now used to determine if a - * location is stale. - * - * Generated from protobuf field .google.protobuf.Int32Value num_stale_updates = 15 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Protobuf\Int32Value $var - * @return $this - * @deprecated - */ - public function setNumStaleUpdates($var) - { - @trigger_error('num_stale_updates is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->num_stale_updates = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * Input only. Deprecated: Other signals are now used to determine if a - * location is stale. - * - * Generated from protobuf field .google.protobuf.Int32Value num_stale_updates = 15 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; - * @param int|null $var - * @return $this - */ - public function setNumStaleUpdatesUnwrapped($var) - { - $this->writeWrapperValue("num_stale_updates", $var); - return $this;} - - /** - * Raw vehicle location (unprocessed by road-snapper). - * - * Generated from protobuf field .google.type.LatLng raw_location = 16; - * @return \Google\Type\LatLng|null - */ - public function getRawLocation() - { - return $this->raw_location; - } - - public function hasRawLocation() - { - return isset($this->raw_location); - } - - public function clearRawLocation() - { - unset($this->raw_location); - } - - /** - * Raw vehicle location (unprocessed by road-snapper). - * - * Generated from protobuf field .google.type.LatLng raw_location = 16; - * @param \Google\Type\LatLng $var - * @return $this - */ - public function setRawLocation($var) - { - GPBUtil::checkMessage($var, \Google\Type\LatLng::class); - $this->raw_location = $var; - - return $this; - } - - /** - * Timestamp associated with the raw location. - * - * Generated from protobuf field .google.protobuf.Timestamp raw_location_time = 17; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRawLocationTime() - { - return $this->raw_location_time; - } - - public function hasRawLocationTime() - { - return isset($this->raw_location_time); - } - - public function clearRawLocationTime() - { - unset($this->raw_location_time); - } - - /** - * Timestamp associated with the raw location. - * - * Generated from protobuf field .google.protobuf.Timestamp raw_location_time = 17; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRawLocationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->raw_location_time = $var; - - return $this; - } - - /** - * Source of the raw location. Defaults to `GPS`. - * - * Generated from protobuf field .maps.fleetengine.v1.LocationSensor raw_location_sensor = 28; - * @return int - */ - public function getRawLocationSensor() - { - return $this->raw_location_sensor; - } - - /** - * Source of the raw location. Defaults to `GPS`. - * - * Generated from protobuf field .maps.fleetengine.v1.LocationSensor raw_location_sensor = 28; - * @param int $var - * @return $this - */ - public function setRawLocationSensor($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\LocationSensor::class); - $this->raw_location_sensor = $var; - - return $this; - } - - /** - * Accuracy of `raw_location` as a radius, in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue raw_location_accuracy = 25; - * @return \Google\Protobuf\DoubleValue|null - */ - public function getRawLocationAccuracy() - { - return $this->raw_location_accuracy; - } - - public function hasRawLocationAccuracy() - { - return isset($this->raw_location_accuracy); - } - - public function clearRawLocationAccuracy() - { - unset($this->raw_location_accuracy); - } - - /** - * Returns the unboxed value from getRawLocationAccuracy() - - * Accuracy of `raw_location` as a radius, in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue raw_location_accuracy = 25; - * @return float|null - */ - public function getRawLocationAccuracyUnwrapped() - { - return $this->readWrapperValue("raw_location_accuracy"); - } - - /** - * Accuracy of `raw_location` as a radius, in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue raw_location_accuracy = 25; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - */ - public function setRawLocationAccuracy($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->raw_location_accuracy = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Accuracy of `raw_location` as a radius, in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue raw_location_accuracy = 25; - * @param float|null $var - * @return $this - */ - public function setRawLocationAccuracyUnwrapped($var) - { - $this->writeWrapperValue("raw_location_accuracy", $var); - return $this;} - - /** - * Supplemental location provided by the integrating app. - * - * Generated from protobuf field .google.type.LatLng supplemental_location = 18; - * @return \Google\Type\LatLng|null - */ - public function getSupplementalLocation() - { - return $this->supplemental_location; - } - - public function hasSupplementalLocation() - { - return isset($this->supplemental_location); - } - - public function clearSupplementalLocation() - { - unset($this->supplemental_location); - } - - /** - * Supplemental location provided by the integrating app. - * - * Generated from protobuf field .google.type.LatLng supplemental_location = 18; - * @param \Google\Type\LatLng $var - * @return $this - */ - public function setSupplementalLocation($var) - { - GPBUtil::checkMessage($var, \Google\Type\LatLng::class); - $this->supplemental_location = $var; - - return $this; - } - - /** - * Timestamp associated with the supplemental location. - * - * Generated from protobuf field .google.protobuf.Timestamp supplemental_location_time = 19; - * @return \Google\Protobuf\Timestamp|null - */ - public function getSupplementalLocationTime() - { - return $this->supplemental_location_time; - } - - public function hasSupplementalLocationTime() - { - return isset($this->supplemental_location_time); - } - - public function clearSupplementalLocationTime() - { - unset($this->supplemental_location_time); - } - - /** - * Timestamp associated with the supplemental location. - * - * Generated from protobuf field .google.protobuf.Timestamp supplemental_location_time = 19; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setSupplementalLocationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->supplemental_location_time = $var; - - return $this; - } - - /** - * Source of the supplemental location. Defaults to - * `CUSTOMER_SUPPLIED_LOCATION`. - * - * Generated from protobuf field .maps.fleetengine.v1.LocationSensor supplemental_location_sensor = 20; - * @return int - */ - public function getSupplementalLocationSensor() - { - return $this->supplemental_location_sensor; - } - - /** - * Source of the supplemental location. Defaults to - * `CUSTOMER_SUPPLIED_LOCATION`. - * - * Generated from protobuf field .maps.fleetengine.v1.LocationSensor supplemental_location_sensor = 20; - * @param int $var - * @return $this - */ - public function setSupplementalLocationSensor($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\LocationSensor::class); - $this->supplemental_location_sensor = $var; - - return $this; - } - - /** - * Accuracy of `supplemental_location` as a radius, in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue supplemental_location_accuracy = 21; - * @return \Google\Protobuf\DoubleValue|null - */ - public function getSupplementalLocationAccuracy() - { - return $this->supplemental_location_accuracy; - } - - public function hasSupplementalLocationAccuracy() - { - return isset($this->supplemental_location_accuracy); - } - - public function clearSupplementalLocationAccuracy() - { - unset($this->supplemental_location_accuracy); - } - - /** - * Returns the unboxed value from getSupplementalLocationAccuracy() - - * Accuracy of `supplemental_location` as a radius, in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue supplemental_location_accuracy = 21; - * @return float|null - */ - public function getSupplementalLocationAccuracyUnwrapped() - { - return $this->readWrapperValue("supplemental_location_accuracy"); - } - - /** - * Accuracy of `supplemental_location` as a radius, in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue supplemental_location_accuracy = 21; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - */ - public function setSupplementalLocationAccuracy($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->supplemental_location_accuracy = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Accuracy of `supplemental_location` as a radius, in meters. - * - * Generated from protobuf field .google.protobuf.DoubleValue supplemental_location_accuracy = 21; - * @param float|null $var - * @return $this - */ - public function setSupplementalLocationAccuracyUnwrapped($var) - { - $this->writeWrapperValue("supplemental_location_accuracy", $var); - return $this;} - - /** - * Deprecated: Use `is_road_snapped` instead. - * - * Generated from protobuf field bool road_snapped = 26 [deprecated = true]; - * @return bool - * @deprecated - */ - public function getRoadSnapped() - { - @trigger_error('road_snapped is deprecated.', E_USER_DEPRECATED); - return $this->road_snapped; - } - - /** - * Deprecated: Use `is_road_snapped` instead. - * - * Generated from protobuf field bool road_snapped = 26 [deprecated = true]; - * @param bool $var - * @return $this - * @deprecated - */ - public function setRoadSnapped($var) - { - @trigger_error('road_snapped is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkBool($var); - $this->road_snapped = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch.php deleted file mode 100644 index 70cfc1b7f9f8..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch.php +++ /dev/null @@ -1,693 +0,0 @@ -maps.fleetengine.v1.VehicleMatch - */ -class VehicleMatch extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A vehicle that matches the request. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $vehicle = null; - /** - * The vehicle's driving ETA to the pickup point specified in the - * request. An empty value indicates a failure in calculating ETA for the - * vehicle. If `SearchVehiclesRequest.include_back_to_back` was `true` and - * this vehicle has an active trip, `vehicle_pickup_eta` includes the time - * required to complete the current active trip. - * - * Generated from protobuf field .google.protobuf.Timestamp vehicle_pickup_eta = 2; - */ - protected $vehicle_pickup_eta = null; - /** - * The distance from the Vehicle's current location to the pickup point - * specified in the request, including any intermediate pickup or dropoff - * points for existing trips. This distance comprises the calculated driving - * (route) distance, plus the straight line distance between the navigation - * end point and the requested pickup point. (The distance between the - * navigation end point and the requested pickup point is typically small.) An - * empty value indicates an error in calculating the distance. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_distance_meters = 3; - */ - protected $vehicle_pickup_distance_meters = null; - /** - * Required. The straight-line distance between the vehicle and the pickup - * point specified in the request. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_straight_line_distance_meters = 11 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $vehicle_pickup_straight_line_distance_meters = null; - /** - * The complete vehicle's driving ETA to the drop off point specified in the - * request. The ETA includes stopping at any waypoints before the - * `dropoff_point` specified in the request. The value will only be populated - * when a drop off point is specified in the request. An empty value indicates - * an error calculating the ETA. - * - * Generated from protobuf field .google.protobuf.Timestamp vehicle_dropoff_eta = 4; - */ - protected $vehicle_dropoff_eta = null; - /** - * The vehicle's driving distance (in meters) from the pickup point - * to the drop off point specified in the request. The distance is only - * between the two points and does not include the vehicle location or any - * other points that must be visited before the vehicle visits either the - * pickup point or dropoff point. The value will only be populated when a - * `dropoff_point` is specified in the request. An empty value indicates - * a failure in calculating the distance from the pickup to - * drop off point specified in the request. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_to_dropoff_distance_meters = 5; - */ - protected $vehicle_pickup_to_dropoff_distance_meters = null; - /** - * Required. The trip type of the request that was used to calculate the ETA - * to the pickup point. - * - * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $trip_type = 0; - /** - * The ordered list of waypoints used to calculate the ETA. The list - * includes vehicle location, the pickup points of active - * trips for the vehicle, and the pickup points provided in the - * request. An empty list indicates a failure in calculating ETA for the - * vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Waypoint vehicle_trips_waypoints = 7; - */ - private $vehicle_trips_waypoints; - /** - * Type of the vehicle match. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleMatch.VehicleMatchType vehicle_match_type = 8; - */ - protected $vehicle_match_type = 0; - /** - * The order requested for sorting vehicle matches. Equivalent to - * `ordered_by`. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; - */ - protected $requested_ordered_by = 0; - /** - * The order requested for sorting vehicle matches. Equivalent to - * `requested_ordered_by`. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; - */ - protected $ordered_by = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Maps\FleetEngine\V1\Vehicle $vehicle - * Required. A vehicle that matches the request. - * @type \Google\Protobuf\Timestamp $vehicle_pickup_eta - * The vehicle's driving ETA to the pickup point specified in the - * request. An empty value indicates a failure in calculating ETA for the - * vehicle. If `SearchVehiclesRequest.include_back_to_back` was `true` and - * this vehicle has an active trip, `vehicle_pickup_eta` includes the time - * required to complete the current active trip. - * @type \Google\Protobuf\Int32Value $vehicle_pickup_distance_meters - * The distance from the Vehicle's current location to the pickup point - * specified in the request, including any intermediate pickup or dropoff - * points for existing trips. This distance comprises the calculated driving - * (route) distance, plus the straight line distance between the navigation - * end point and the requested pickup point. (The distance between the - * navigation end point and the requested pickup point is typically small.) An - * empty value indicates an error in calculating the distance. - * @type \Google\Protobuf\Int32Value $vehicle_pickup_straight_line_distance_meters - * Required. The straight-line distance between the vehicle and the pickup - * point specified in the request. - * @type \Google\Protobuf\Timestamp $vehicle_dropoff_eta - * The complete vehicle's driving ETA to the drop off point specified in the - * request. The ETA includes stopping at any waypoints before the - * `dropoff_point` specified in the request. The value will only be populated - * when a drop off point is specified in the request. An empty value indicates - * an error calculating the ETA. - * @type \Google\Protobuf\Int32Value $vehicle_pickup_to_dropoff_distance_meters - * The vehicle's driving distance (in meters) from the pickup point - * to the drop off point specified in the request. The distance is only - * between the two points and does not include the vehicle location or any - * other points that must be visited before the vehicle visits either the - * pickup point or dropoff point. The value will only be populated when a - * `dropoff_point` is specified in the request. An empty value indicates - * a failure in calculating the distance from the pickup to - * drop off point specified in the request. - * @type int $trip_type - * Required. The trip type of the request that was used to calculate the ETA - * to the pickup point. - * @type array<\Google\Maps\FleetEngine\V1\Waypoint>|\Google\Protobuf\Internal\RepeatedField $vehicle_trips_waypoints - * The ordered list of waypoints used to calculate the ETA. The list - * includes vehicle location, the pickup points of active - * trips for the vehicle, and the pickup points provided in the - * request. An empty list indicates a failure in calculating ETA for the - * vehicle. - * @type int $vehicle_match_type - * Type of the vehicle match. - * @type int $requested_ordered_by - * The order requested for sorting vehicle matches. Equivalent to - * `ordered_by`. - * @type int $ordered_by - * The order requested for sorting vehicle matches. Equivalent to - * `requested_ordered_by`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. A vehicle that matches the request. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Maps\FleetEngine\V1\Vehicle|null - */ - public function getVehicle() - { - return $this->vehicle; - } - - public function hasVehicle() - { - return isset($this->vehicle); - } - - public function clearVehicle() - { - unset($this->vehicle); - } - - /** - * Required. A vehicle that matches the request. - * - * Generated from protobuf field .maps.fleetengine.v1.Vehicle vehicle = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Maps\FleetEngine\V1\Vehicle $var - * @return $this - */ - public function setVehicle($var) - { - GPBUtil::checkMessage($var, \Google\Maps\FleetEngine\V1\Vehicle::class); - $this->vehicle = $var; - - return $this; - } - - /** - * The vehicle's driving ETA to the pickup point specified in the - * request. An empty value indicates a failure in calculating ETA for the - * vehicle. If `SearchVehiclesRequest.include_back_to_back` was `true` and - * this vehicle has an active trip, `vehicle_pickup_eta` includes the time - * required to complete the current active trip. - * - * Generated from protobuf field .google.protobuf.Timestamp vehicle_pickup_eta = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getVehiclePickupEta() - { - return $this->vehicle_pickup_eta; - } - - public function hasVehiclePickupEta() - { - return isset($this->vehicle_pickup_eta); - } - - public function clearVehiclePickupEta() - { - unset($this->vehicle_pickup_eta); - } - - /** - * The vehicle's driving ETA to the pickup point specified in the - * request. An empty value indicates a failure in calculating ETA for the - * vehicle. If `SearchVehiclesRequest.include_back_to_back` was `true` and - * this vehicle has an active trip, `vehicle_pickup_eta` includes the time - * required to complete the current active trip. - * - * Generated from protobuf field .google.protobuf.Timestamp vehicle_pickup_eta = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setVehiclePickupEta($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->vehicle_pickup_eta = $var; - - return $this; - } - - /** - * The distance from the Vehicle's current location to the pickup point - * specified in the request, including any intermediate pickup or dropoff - * points for existing trips. This distance comprises the calculated driving - * (route) distance, plus the straight line distance between the navigation - * end point and the requested pickup point. (The distance between the - * navigation end point and the requested pickup point is typically small.) An - * empty value indicates an error in calculating the distance. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_distance_meters = 3; - * @return \Google\Protobuf\Int32Value|null - */ - public function getVehiclePickupDistanceMeters() - { - return $this->vehicle_pickup_distance_meters; - } - - public function hasVehiclePickupDistanceMeters() - { - return isset($this->vehicle_pickup_distance_meters); - } - - public function clearVehiclePickupDistanceMeters() - { - unset($this->vehicle_pickup_distance_meters); - } - - /** - * Returns the unboxed value from getVehiclePickupDistanceMeters() - - * The distance from the Vehicle's current location to the pickup point - * specified in the request, including any intermediate pickup or dropoff - * points for existing trips. This distance comprises the calculated driving - * (route) distance, plus the straight line distance between the navigation - * end point and the requested pickup point. (The distance between the - * navigation end point and the requested pickup point is typically small.) An - * empty value indicates an error in calculating the distance. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_distance_meters = 3; - * @return int|null - */ - public function getVehiclePickupDistanceMetersUnwrapped() - { - return $this->readWrapperValue("vehicle_pickup_distance_meters"); - } - - /** - * The distance from the Vehicle's current location to the pickup point - * specified in the request, including any intermediate pickup or dropoff - * points for existing trips. This distance comprises the calculated driving - * (route) distance, plus the straight line distance between the navigation - * end point and the requested pickup point. (The distance between the - * navigation end point and the requested pickup point is typically small.) An - * empty value indicates an error in calculating the distance. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_distance_meters = 3; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setVehiclePickupDistanceMeters($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->vehicle_pickup_distance_meters = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * The distance from the Vehicle's current location to the pickup point - * specified in the request, including any intermediate pickup or dropoff - * points for existing trips. This distance comprises the calculated driving - * (route) distance, plus the straight line distance between the navigation - * end point and the requested pickup point. (The distance between the - * navigation end point and the requested pickup point is typically small.) An - * empty value indicates an error in calculating the distance. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_distance_meters = 3; - * @param int|null $var - * @return $this - */ - public function setVehiclePickupDistanceMetersUnwrapped($var) - { - $this->writeWrapperValue("vehicle_pickup_distance_meters", $var); - return $this;} - - /** - * Required. The straight-line distance between the vehicle and the pickup - * point specified in the request. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_straight_line_distance_meters = 11 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Int32Value|null - */ - public function getVehiclePickupStraightLineDistanceMeters() - { - return $this->vehicle_pickup_straight_line_distance_meters; - } - - public function hasVehiclePickupStraightLineDistanceMeters() - { - return isset($this->vehicle_pickup_straight_line_distance_meters); - } - - public function clearVehiclePickupStraightLineDistanceMeters() - { - unset($this->vehicle_pickup_straight_line_distance_meters); - } - - /** - * Returns the unboxed value from getVehiclePickupStraightLineDistanceMeters() - - * Required. The straight-line distance between the vehicle and the pickup - * point specified in the request. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_straight_line_distance_meters = 11 [(.google.api.field_behavior) = REQUIRED]; - * @return int|null - */ - public function getVehiclePickupStraightLineDistanceMetersUnwrapped() - { - return $this->readWrapperValue("vehicle_pickup_straight_line_distance_meters"); - } - - /** - * Required. The straight-line distance between the vehicle and the pickup - * point specified in the request. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_straight_line_distance_meters = 11 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setVehiclePickupStraightLineDistanceMeters($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->vehicle_pickup_straight_line_distance_meters = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * Required. The straight-line distance between the vehicle and the pickup - * point specified in the request. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_straight_line_distance_meters = 11 [(.google.api.field_behavior) = REQUIRED]; - * @param int|null $var - * @return $this - */ - public function setVehiclePickupStraightLineDistanceMetersUnwrapped($var) - { - $this->writeWrapperValue("vehicle_pickup_straight_line_distance_meters", $var); - return $this;} - - /** - * The complete vehicle's driving ETA to the drop off point specified in the - * request. The ETA includes stopping at any waypoints before the - * `dropoff_point` specified in the request. The value will only be populated - * when a drop off point is specified in the request. An empty value indicates - * an error calculating the ETA. - * - * Generated from protobuf field .google.protobuf.Timestamp vehicle_dropoff_eta = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getVehicleDropoffEta() - { - return $this->vehicle_dropoff_eta; - } - - public function hasVehicleDropoffEta() - { - return isset($this->vehicle_dropoff_eta); - } - - public function clearVehicleDropoffEta() - { - unset($this->vehicle_dropoff_eta); - } - - /** - * The complete vehicle's driving ETA to the drop off point specified in the - * request. The ETA includes stopping at any waypoints before the - * `dropoff_point` specified in the request. The value will only be populated - * when a drop off point is specified in the request. An empty value indicates - * an error calculating the ETA. - * - * Generated from protobuf field .google.protobuf.Timestamp vehicle_dropoff_eta = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setVehicleDropoffEta($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->vehicle_dropoff_eta = $var; - - return $this; - } - - /** - * The vehicle's driving distance (in meters) from the pickup point - * to the drop off point specified in the request. The distance is only - * between the two points and does not include the vehicle location or any - * other points that must be visited before the vehicle visits either the - * pickup point or dropoff point. The value will only be populated when a - * `dropoff_point` is specified in the request. An empty value indicates - * a failure in calculating the distance from the pickup to - * drop off point specified in the request. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_to_dropoff_distance_meters = 5; - * @return \Google\Protobuf\Int32Value|null - */ - public function getVehiclePickupToDropoffDistanceMeters() - { - return $this->vehicle_pickup_to_dropoff_distance_meters; - } - - public function hasVehiclePickupToDropoffDistanceMeters() - { - return isset($this->vehicle_pickup_to_dropoff_distance_meters); - } - - public function clearVehiclePickupToDropoffDistanceMeters() - { - unset($this->vehicle_pickup_to_dropoff_distance_meters); - } - - /** - * Returns the unboxed value from getVehiclePickupToDropoffDistanceMeters() - - * The vehicle's driving distance (in meters) from the pickup point - * to the drop off point specified in the request. The distance is only - * between the two points and does not include the vehicle location or any - * other points that must be visited before the vehicle visits either the - * pickup point or dropoff point. The value will only be populated when a - * `dropoff_point` is specified in the request. An empty value indicates - * a failure in calculating the distance from the pickup to - * drop off point specified in the request. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_to_dropoff_distance_meters = 5; - * @return int|null - */ - public function getVehiclePickupToDropoffDistanceMetersUnwrapped() - { - return $this->readWrapperValue("vehicle_pickup_to_dropoff_distance_meters"); - } - - /** - * The vehicle's driving distance (in meters) from the pickup point - * to the drop off point specified in the request. The distance is only - * between the two points and does not include the vehicle location or any - * other points that must be visited before the vehicle visits either the - * pickup point or dropoff point. The value will only be populated when a - * `dropoff_point` is specified in the request. An empty value indicates - * a failure in calculating the distance from the pickup to - * drop off point specified in the request. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_to_dropoff_distance_meters = 5; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setVehiclePickupToDropoffDistanceMeters($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->vehicle_pickup_to_dropoff_distance_meters = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * The vehicle's driving distance (in meters) from the pickup point - * to the drop off point specified in the request. The distance is only - * between the two points and does not include the vehicle location or any - * other points that must be visited before the vehicle visits either the - * pickup point or dropoff point. The value will only be populated when a - * `dropoff_point` is specified in the request. An empty value indicates - * a failure in calculating the distance from the pickup to - * drop off point specified in the request. - * - * Generated from protobuf field .google.protobuf.Int32Value vehicle_pickup_to_dropoff_distance_meters = 5; - * @param int|null $var - * @return $this - */ - public function setVehiclePickupToDropoffDistanceMetersUnwrapped($var) - { - $this->writeWrapperValue("vehicle_pickup_to_dropoff_distance_meters", $var); - return $this;} - - /** - * Required. The trip type of the request that was used to calculate the ETA - * to the pickup point. - * - * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getTripType() - { - return $this->trip_type; - } - - /** - * Required. The trip type of the request that was used to calculate the ETA - * to the pickup point. - * - * Generated from protobuf field .maps.fleetengine.v1.TripType trip_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setTripType($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\TripType::class); - $this->trip_type = $var; - - return $this; - } - - /** - * The ordered list of waypoints used to calculate the ETA. The list - * includes vehicle location, the pickup points of active - * trips for the vehicle, and the pickup points provided in the - * request. An empty list indicates a failure in calculating ETA for the - * vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Waypoint vehicle_trips_waypoints = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVehicleTripsWaypoints() - { - return $this->vehicle_trips_waypoints; - } - - /** - * The ordered list of waypoints used to calculate the ETA. The list - * includes vehicle location, the pickup points of active - * trips for the vehicle, and the pickup points provided in the - * request. An empty list indicates a failure in calculating ETA for the - * vehicle. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.Waypoint vehicle_trips_waypoints = 7; - * @param array<\Google\Maps\FleetEngine\V1\Waypoint>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVehicleTripsWaypoints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\Waypoint::class); - $this->vehicle_trips_waypoints = $arr; - - return $this; - } - - /** - * Type of the vehicle match. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleMatch.VehicleMatchType vehicle_match_type = 8; - * @return int - */ - public function getVehicleMatchType() - { - return $this->vehicle_match_type; - } - - /** - * Type of the vehicle match. - * - * Generated from protobuf field .maps.fleetengine.v1.VehicleMatch.VehicleMatchType vehicle_match_type = 8; - * @param int $var - * @return $this - */ - public function setVehicleMatchType($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\VehicleMatch\VehicleMatchType::class); - $this->vehicle_match_type = $var; - - return $this; - } - - /** - * The order requested for sorting vehicle matches. Equivalent to - * `ordered_by`. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; - * @return int - */ - public function getRequestedOrderedBy() - { - return $this->requested_ordered_by; - } - - /** - * The order requested for sorting vehicle matches. Equivalent to - * `ordered_by`. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; - * @param int $var - * @return $this - */ - public function setRequestedOrderedBy($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest\VehicleMatchOrder::class); - $this->requested_ordered_by = $var; - - return $this; - } - - /** - * The order requested for sorting vehicle matches. Equivalent to - * `requested_ordered_by`. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; - * @return int - */ - public function getOrderedBy() - { - return $this->ordered_by; - } - - /** - * The order requested for sorting vehicle matches. Equivalent to - * `requested_ordered_by`. - * - * Generated from protobuf field .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; - * @param int $var - * @return $this - */ - public function setOrderedBy($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\SearchVehiclesRequest\VehicleMatchOrder::class); - $this->ordered_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch/VehicleMatchType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch/VehicleMatchType.php deleted file mode 100644 index e578da5397d6..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleMatch/VehicleMatchType.php +++ /dev/null @@ -1,83 +0,0 @@ -maps.fleetengine.v1.VehicleMatch.VehicleMatchType - */ -class VehicleMatchType -{ - /** - * Unknown vehicle match type - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * The vehicle currently has no trip assigned to it and can proceed to the - * pickup point. - * - * Generated from protobuf enum EXCLUSIVE = 1; - */ - const EXCLUSIVE = 1; - /** - * The vehicle is currently assigned to a trip, but can proceed to the - * pickup point after completing the in-progress trip. ETA and distance - * calculations take the existing trip into account. - * - * Generated from protobuf enum BACK_TO_BACK = 2; - */ - const BACK_TO_BACK = 2; - /** - * The vehicle has sufficient capacity for a shared ride. - * - * Generated from protobuf enum CARPOOL = 3; - */ - const CARPOOL = 3; - /** - * The vehicle will finish its current, active trip before proceeding to the - * pickup point. ETA and distance calculations take the existing trip into - * account. - * - * Generated from protobuf enum CARPOOL_BACK_TO_BACK = 4; - */ - const CARPOOL_BACK_TO_BACK = 4; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::EXCLUSIVE => 'EXCLUSIVE', - self::BACK_TO_BACK => 'BACK_TO_BACK', - self::CARPOOL => 'CARPOOL', - self::CARPOOL_BACK_TO_BACK => 'CARPOOL_BACK_TO_BACK', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(VehicleMatchType::class, \Google\Maps\FleetEngine\V1\VehicleMatch_VehicleMatchType::class); - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleState.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleState.php deleted file mode 100644 index b2964c65ab9f..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VehicleState.php +++ /dev/null @@ -1,62 +0,0 @@ -maps.fleetengine.v1.VehicleState - */ -class VehicleState -{ - /** - * Default, used for unspecified or unrecognized vehicle states. - * - * Generated from protobuf enum UNKNOWN_VEHICLE_STATE = 0; - */ - const UNKNOWN_VEHICLE_STATE = 0; - /** - * The vehicle is not accepting new trips. Note: the vehicle may continue to - * operate in this state while completing a trip assigned to it. - * - * Generated from protobuf enum OFFLINE = 1; - */ - const OFFLINE = 1; - /** - * The vehicle is accepting new trips. - * - * Generated from protobuf enum ONLINE = 2; - */ - const ONLINE = 2; - - private static $valueToName = [ - self::UNKNOWN_VEHICLE_STATE => 'UNKNOWN_VEHICLE_STATE', - self::OFFLINE => 'OFFLINE', - self::ONLINE => 'ONLINE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering.php deleted file mode 100644 index ccaba2879f9f..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering.php +++ /dev/null @@ -1,84 +0,0 @@ -maps.fleetengine.v1.VisualTrafficReportPolylineRendering - */ -class VisualTrafficReportPolylineRendering extends \Google\Protobuf\Internal\Message -{ - /** - * 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. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch road_stretch = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $road_stretch; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering\RoadStretch>|\Google\Protobuf\Internal\RepeatedField $road_stretch - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); - parent::__construct($data); - } - - /** - * 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. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch road_stretch = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRoadStretch() - { - return $this->road_stretch; - } - - /** - * 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. - * - * Generated from protobuf field repeated .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch road_stretch = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering\RoadStretch>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRoadStretch($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering\RoadStretch::class); - $this->road_stretch = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch.php deleted file mode 100644 index c0504a6c4426..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch.php +++ /dev/null @@ -1,142 +0,0 @@ -maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch - */ -class RoadStretch extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The style to apply. - * - * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch.Style style = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $style = 0; - /** - * Required. The style should be applied between `[offset_meters, - * offset_meters + length_meters)`. - * - * Generated from protobuf field int32 offset_meters = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $offset_meters = 0; - /** - * Required. The length of the path where to apply the style. - * - * Generated from protobuf field int32 length_meters = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $length_meters = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $style - * Required. The style to apply. - * @type int $offset_meters - * Required. The style should be applied between `[offset_meters, - * offset_meters + length_meters)`. - * @type int $length_meters - * Required. The length of the path where to apply the style. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce(); - parent::__construct($data); - } - - /** - * Required. The style to apply. - * - * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch.Style style = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getStyle() - { - return $this->style; - } - - /** - * Required. The style to apply. - * - * Generated from protobuf field .maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch.Style style = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setStyle($var) - { - GPBUtil::checkEnum($var, \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering\RoadStretch\Style::class); - $this->style = $var; - - return $this; - } - - /** - * Required. The style should be applied between `[offset_meters, - * offset_meters + length_meters)`. - * - * Generated from protobuf field int32 offset_meters = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getOffsetMeters() - { - return $this->offset_meters; - } - - /** - * Required. The style should be applied between `[offset_meters, - * offset_meters + length_meters)`. - * - * Generated from protobuf field int32 offset_meters = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setOffsetMeters($var) - { - GPBUtil::checkInt32($var); - $this->offset_meters = $var; - - return $this; - } - - /** - * Required. The length of the path where to apply the style. - * - * Generated from protobuf field int32 length_meters = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getLengthMeters() - { - return $this->length_meters; - } - - /** - * Required. The length of the path where to apply the style. - * - * Generated from protobuf field int32 length_meters = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setLengthMeters($var) - { - GPBUtil::checkInt32($var); - $this->length_meters = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RoadStretch::class, \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering_RoadStretch::class); - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch/Style.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch/Style.php deleted file mode 100644 index a712c06ecdce..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/VisualTrafficReportPolylineRendering/RoadStretch/Style.php +++ /dev/null @@ -1,64 +0,0 @@ -maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch.Style - */ -class Style -{ - /** - * No style selected. - * - * Generated from protobuf enum STYLE_UNSPECIFIED = 0; - */ - const STYLE_UNSPECIFIED = 0; - /** - * Traffic is slowing down. - * - * Generated from protobuf enum SLOWER_TRAFFIC = 1; - */ - const SLOWER_TRAFFIC = 1; - /** - * There is a traffic jam. - * - * Generated from protobuf enum TRAFFIC_JAM = 2; - */ - const TRAFFIC_JAM = 2; - - private static $valueToName = [ - self::STYLE_UNSPECIFIED => 'STYLE_UNSPECIFIED', - self::SLOWER_TRAFFIC => 'SLOWER_TRAFFIC', - self::TRAFFIC_JAM => 'TRAFFIC_JAM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Style::class, \Google\Maps\FleetEngine\V1\VisualTrafficReportPolylineRendering_RoadStretch_Style::class); - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Waypoint.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Waypoint.php deleted file mode 100644 index 06827e4e93bc..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/Waypoint.php +++ /dev/null @@ -1,123 +0,0 @@ -maps.fleetengine.v1.Waypoint - */ -class Waypoint extends \Google\Protobuf\Internal\Message -{ - /** - * The location of this waypoint. - * - * Generated from protobuf field .google.type.LatLng lat_lng = 1; - */ - protected $lat_lng = null; - /** - * The estimated time that the vehicle will arrive at this waypoint. - * - * Generated from protobuf field .google.protobuf.Timestamp eta = 2; - */ - protected $eta = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\LatLng $lat_lng - * The location of this waypoint. - * @type \Google\Protobuf\Timestamp $eta - * The estimated time that the vehicle will arrive at this waypoint. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Maps\Fleetengine\V1\VehicleApi::initOnce(); - parent::__construct($data); - } - - /** - * The location of this waypoint. - * - * Generated from protobuf field .google.type.LatLng lat_lng = 1; - * @return \Google\Type\LatLng|null - */ - public function getLatLng() - { - return $this->lat_lng; - } - - public function hasLatLng() - { - return isset($this->lat_lng); - } - - public function clearLatLng() - { - unset($this->lat_lng); - } - - /** - * The location of this waypoint. - * - * Generated from protobuf field .google.type.LatLng lat_lng = 1; - * @param \Google\Type\LatLng $var - * @return $this - */ - public function setLatLng($var) - { - GPBUtil::checkMessage($var, \Google\Type\LatLng::class); - $this->lat_lng = $var; - - return $this; - } - - /** - * The estimated time that the vehicle will arrive at this waypoint. - * - * Generated from protobuf field .google.protobuf.Timestamp eta = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEta() - { - return $this->eta; - } - - public function hasEta() - { - return isset($this->eta); - } - - public function clearEta() - { - unset($this->eta); - } - - /** - * The estimated time that the vehicle will arrive at this waypoint. - * - * Generated from protobuf field .google.protobuf.Timestamp eta = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEta($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->eta = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/WaypointType.php b/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/WaypointType.php deleted file mode 100644 index 7e3a3120d30b..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/proto/src/Google/Maps/FleetEngine/V1/WaypointType.php +++ /dev/null @@ -1,68 +0,0 @@ -maps.fleetengine.v1.WaypointType - */ -class WaypointType -{ - /** - * Unknown or unspecified waypoint type. - * - * Generated from protobuf enum UNKNOWN_WAYPOINT_TYPE = 0; - */ - const UNKNOWN_WAYPOINT_TYPE = 0; - /** - * Waypoints for picking up riders or items. - * - * Generated from protobuf enum PICKUP_WAYPOINT_TYPE = 1; - */ - const PICKUP_WAYPOINT_TYPE = 1; - /** - * Waypoints for dropping off riders or items. - * - * Generated from protobuf enum DROP_OFF_WAYPOINT_TYPE = 2; - */ - const DROP_OFF_WAYPOINT_TYPE = 2; - /** - * Waypoints for intermediate destinations in a multi-destination trip. - * - * Generated from protobuf enum INTERMEDIATE_DESTINATION_WAYPOINT_TYPE = 3; - */ - const INTERMEDIATE_DESTINATION_WAYPOINT_TYPE = 3; - - private static $valueToName = [ - self::UNKNOWN_WAYPOINT_TYPE => 'UNKNOWN_WAYPOINT_TYPE', - self::PICKUP_WAYPOINT_TYPE => 'PICKUP_WAYPOINT_TYPE', - self::DROP_OFF_WAYPOINT_TYPE => 'DROP_OFF_WAYPOINT_TYPE', - self::INTERMEDIATE_DESTINATION_WAYPOINT_TYPE => 'INTERMEDIATE_DESTINATION_WAYPOINT_TYPE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/create_trip.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/create_trip.php deleted file mode 100644 index f5eeb732199a..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/create_trip.php +++ /dev/null @@ -1,87 +0,0 @@ -setParent($formattedParent) - ->setTripId($tripId) - ->setTrip($trip); - - // Call the API and handle any network failures. - try { - /** @var Trip $response */ - $response = $tripServiceClient->createTrip($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = TripServiceClient::tripName('[PROVIDER]', '[TRIP]'); - $tripId = '[TRIP_ID]'; - - create_trip_sample($formattedParent, $tripId); -} -// [END fleetengine_v1_generated_TripService_CreateTrip_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/get_trip.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/get_trip.php deleted file mode 100644 index 8a9dc4e2c9ff..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/get_trip.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Trip $response */ - $response = $tripServiceClient->getTrip($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = TripServiceClient::tripName('[PROVIDER]', '[TRIP]'); - - get_trip_sample($formattedName); -} -// [END fleetengine_v1_generated_TripService_GetTrip_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/report_billable_trip.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/report_billable_trip.php deleted file mode 100644 index 1a87dbda4869..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/report_billable_trip.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($name) - ->setCountryCode($countryCode); - - // Call the API and handle any network failures. - try { - $tripServiceClient->reportBillableTrip($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $name = '[NAME]'; - $countryCode = '[COUNTRY_CODE]'; - - report_billable_trip_sample($name, $countryCode); -} -// [END fleetengine_v1_generated_TripService_ReportBillableTrip_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/search_trips.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/search_trips.php deleted file mode 100644 index 726d56e085b1..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/search_trips.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($parent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $tripServiceClient->searchTrips($request); - - /** @var Trip $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $parent = '[PARENT]'; - - search_trips_sample($parent); -} -// [END fleetengine_v1_generated_TripService_SearchTrips_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/update_trip.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/update_trip.php deleted file mode 100644 index 82e653ec835f..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/TripServiceClient/update_trip.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($name) - ->setTrip($trip) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Trip $response */ - $response = $tripServiceClient->updateTrip($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $name = '[NAME]'; - - update_trip_sample($name); -} -// [END fleetengine_v1_generated_TripService_UpdateTrip_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/create_vehicle.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/create_vehicle.php deleted file mode 100644 index ef62555f9cc2..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/create_vehicle.php +++ /dev/null @@ -1,116 +0,0 @@ -setVehicleType($vehicleVehicleType); - $request = (new CreateVehicleRequest()) - ->setParent($parent) - ->setVehicleId($vehicleId) - ->setVehicle($vehicle); - - // Call the API and handle any network failures. - try { - /** @var Vehicle $response */ - $response = $vehicleServiceClient->createVehicle($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $parent = '[PARENT]'; - $vehicleId = '[VEHICLE_ID]'; - - create_vehicle_sample($parent, $vehicleId); -} -// [END fleetengine_v1_generated_VehicleService_CreateVehicle_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/get_vehicle.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/get_vehicle.php deleted file mode 100644 index 7e0840142f46..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/get_vehicle.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Vehicle $response */ - $response = $vehicleServiceClient->getVehicle($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = VehicleServiceClient::vehicleName('[PROVIDER]', '[VEHICLE]'); - - get_vehicle_sample($formattedName); -} -// [END fleetengine_v1_generated_VehicleService_GetVehicle_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/list_vehicles.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/list_vehicles.php deleted file mode 100644 index 0d0629cd08e6..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/list_vehicles.php +++ /dev/null @@ -1,85 +0,0 @@ -setParent($parent) - ->setVehicleTypeCategories($vehicleTypeCategories); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $vehicleServiceClient->listVehicles($request); - - /** @var Vehicle $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $parent = '[PARENT]'; - $vehicleTypeCategoriesElement = Category::UNKNOWN; - - list_vehicles_sample($parent, $vehicleTypeCategoriesElement); -} -// [END fleetengine_v1_generated_VehicleService_ListVehicles_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/search_vehicles.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/search_vehicles.php deleted file mode 100644 index 0671afa2ba59..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/search_vehicles.php +++ /dev/null @@ -1,120 +0,0 @@ -setPoint($pickupPointPoint); - $tripTypes = [$tripTypesElement,]; - $vehicleTypes = [new VehicleType()]; - $request = (new SearchVehiclesRequest()) - ->setParent($parent) - ->setPickupPoint($pickupPoint) - ->setPickupRadiusMeters($pickupRadiusMeters) - ->setCount($count) - ->setMinimumCapacity($minimumCapacity) - ->setTripTypes($tripTypes) - ->setVehicleTypes($vehicleTypes) - ->setOrderBy($orderBy); - - // Call the API and handle any network failures. - try { - /** @var SearchVehiclesResponse $response */ - $response = $vehicleServiceClient->searchVehicles($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $parent = '[PARENT]'; - $pickupRadiusMeters = 0; - $count = 0; - $minimumCapacity = 0; - $tripTypesElement = TripType::UNKNOWN_TRIP_TYPE; - $orderBy = VehicleMatchOrder::UNKNOWN_VEHICLE_MATCH_ORDER; - - search_vehicles_sample( - $parent, - $pickupRadiusMeters, - $count, - $minimumCapacity, - $tripTypesElement, - $orderBy - ); -} -// [END fleetengine_v1_generated_VehicleService_SearchVehicles_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle.php deleted file mode 100644 index 740fb26c6caa..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle.php +++ /dev/null @@ -1,98 +0,0 @@ -setVehicleType($vehicleVehicleType); - $updateMask = new FieldMask(); - $request = (new UpdateVehicleRequest()) - ->setName($name) - ->setVehicle($vehicle) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Vehicle $response */ - $response = $vehicleServiceClient->updateVehicle($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $name = '[NAME]'; - - update_vehicle_sample($name); -} -// [END fleetengine_v1_generated_VehicleService_UpdateVehicle_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle_attributes.php b/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle_attributes.php deleted file mode 100644 index 9c8ed7a0c76a..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/samples/V1/VehicleServiceClient/update_vehicle_attributes.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($name) - ->setAttributes($attributes); - - // Call the API and handle any network failures. - try { - /** @var UpdateVehicleAttributesResponse $response */ - $response = $vehicleServiceClient->updateVehicleAttributes($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $name = '[NAME]'; - - update_vehicle_attributes_sample($name); -} -// [END fleetengine_v1_generated_VehicleService_UpdateVehicleAttributes_sync] diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/TripServiceClient.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/TripServiceClient.php deleted file mode 100644 index a34a05c1d4f7..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/TripServiceClient.php +++ /dev/null @@ -1,352 +0,0 @@ - createTripAsync(CreateTripRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTripAsync(GetTripRequest $request, array $optionalArgs = []) - * @method PromiseInterface reportBillableTripAsync(ReportBillableTripRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchTripsAsync(SearchTripsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateTripAsync(UpdateTripRequest $request, array $optionalArgs = []) - */ -final class TripServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'maps.fleetengine.v1.TripService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'fleetengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'fleetengine.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/trip_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/trip_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/trip_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/trip_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a trip - * resource. - * - * @param string $provider - * @param string $trip - * - * @return string The formatted trip resource. - */ - public static function tripName(string $provider, string $trip): string - { - return self::getPathTemplate('trip')->render([ - 'provider' => $provider, - 'trip' => $trip, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - trip: providers/{provider}/trips/{trip} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'fleetengine.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates a trip in the Fleet Engine and returns the new trip. - * - * The async variant is {@see TripServiceClient::createTripAsync()} . - * - * @example samples/V1/TripServiceClient/create_trip.php - * - * @param CreateTripRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Trip - * - * @throws ApiException Thrown if the API call fails. - */ - public function createTrip(CreateTripRequest $request, array $callOptions = []): Trip - { - return $this->startApiCall('CreateTrip', $request, $callOptions)->wait(); - } - - /** - * Get information about a single trip. - * - * The async variant is {@see TripServiceClient::getTripAsync()} . - * - * @example samples/V1/TripServiceClient/get_trip.php - * - * @param GetTripRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Trip - * - * @throws ApiException Thrown if the API call fails. - */ - public function getTrip(GetTripRequest $request, array $callOptions = []): Trip - { - return $this->startApiCall('GetTrip', $request, $callOptions)->wait(); - } - - /** - * Report billable trip usage. - * - * The async variant is {@see TripServiceClient::reportBillableTripAsync()} . - * - * @example samples/V1/TripServiceClient/report_billable_trip.php - * - * @param ReportBillableTripRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function reportBillableTrip(ReportBillableTripRequest $request, array $callOptions = []): void - { - $this->startApiCall('ReportBillableTrip', $request, $callOptions)->wait(); - } - - /** - * Get all the trips for a specific vehicle. - * - * The async variant is {@see TripServiceClient::searchTripsAsync()} . - * - * @example samples/V1/TripServiceClient/search_trips.php - * - * @param SearchTripsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function searchTrips(SearchTripsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('SearchTrips', $request, $callOptions); - } - - /** - * Updates trip data. - * - * The async variant is {@see TripServiceClient::updateTripAsync()} . - * - * @example samples/V1/TripServiceClient/update_trip.php - * - * @param UpdateTripRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Trip - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateTrip(UpdateTripRequest $request, array $callOptions = []): Trip - { - return $this->startApiCall('UpdateTrip', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/VehicleServiceClient.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/VehicleServiceClient.php deleted file mode 100644 index 489a745dfee5..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/src/V1/Client/VehicleServiceClient.php +++ /dev/null @@ -1,434 +0,0 @@ - createVehicleAsync(CreateVehicleRequest $request, array $optionalArgs = []) - * @method PromiseInterface getVehicleAsync(GetVehicleRequest $request, array $optionalArgs = []) - * @method PromiseInterface listVehiclesAsync(ListVehiclesRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchVehiclesAsync(SearchVehiclesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateVehicleAsync(UpdateVehicleRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateVehicleAttributesAsync(UpdateVehicleAttributesRequest $request, array $optionalArgs = []) - */ -final class VehicleServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'maps.fleetengine.v1.VehicleService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'fleetengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'fleetengine.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/vehicle_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/vehicle_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/vehicle_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/vehicle_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a vehicle - * resource. - * - * @param string $provider - * @param string $vehicle - * - * @return string The formatted vehicle resource. - */ - public static function vehicleName(string $provider, string $vehicle): string - { - return self::getPathTemplate('vehicle')->render([ - 'provider' => $provider, - 'vehicle' => $vehicle, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - vehicle: providers/{provider}/vehicles/{vehicle} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'fleetengine.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Instantiates a new vehicle associated with an on-demand rideshare or - * deliveries provider. Each `Vehicle` must have a unique vehicle ID. - * - * The following `Vehicle` fields are required when creating a `Vehicle`: - * - * * `vehicleState` - * * `supportedTripTypes` - * * `maximumCapacity` - * * `vehicleType` - * - * The following `Vehicle` fields are ignored when creating a `Vehicle`: - * - * * `name` - * * `currentTrips` - * * `availableCapacity` - * * `current_route_segment` - * * `current_route_segment_end_point` - * * `current_route_segment_version` - * * `current_route_segment_traffic` - * * `route` - * * `waypoints` - * * `waypoints_version` - * * `remaining_distance_meters` - * * `remaining_time_seconds` - * * `eta_to_next_waypoint` - * * `navigation_status` - * - * All other fields are optional and used if provided. - * - * The async variant is {@see VehicleServiceClient::createVehicleAsync()} . - * - * @example samples/V1/VehicleServiceClient/create_vehicle.php - * - * @param CreateVehicleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Vehicle - * - * @throws ApiException Thrown if the API call fails. - */ - public function createVehicle(CreateVehicleRequest $request, array $callOptions = []): Vehicle - { - return $this->startApiCall('CreateVehicle', $request, $callOptions)->wait(); - } - - /** - * Returns a vehicle from the Fleet Engine. - * - * The async variant is {@see VehicleServiceClient::getVehicleAsync()} . - * - * @example samples/V1/VehicleServiceClient/get_vehicle.php - * - * @param GetVehicleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Vehicle - * - * @throws ApiException Thrown if the API call fails. - */ - public function getVehicle(GetVehicleRequest $request, array $callOptions = []): Vehicle - { - return $this->startApiCall('GetVehicle', $request, $callOptions)->wait(); - } - - /** - * Returns a paginated list of vehicles associated with - * a provider that match the request options. - * - * The async variant is {@see VehicleServiceClient::listVehiclesAsync()} . - * - * @example samples/V1/VehicleServiceClient/list_vehicles.php - * - * @param ListVehiclesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listVehicles(ListVehiclesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListVehicles', $request, $callOptions); - } - - /** - * Returns a list of vehicles that match the request options. - * - * The async variant is {@see VehicleServiceClient::searchVehiclesAsync()} . - * - * @example samples/V1/VehicleServiceClient/search_vehicles.php - * - * @param SearchVehiclesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SearchVehiclesResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function searchVehicles(SearchVehiclesRequest $request, array $callOptions = []): SearchVehiclesResponse - { - return $this->startApiCall('SearchVehicles', $request, $callOptions)->wait(); - } - - /** - * Writes updated vehicle data to the Fleet Engine. - * - * When updating a `Vehicle`, the following fields cannot be updated since - * they are managed by the server: - * - * * `currentTrips` - * * `availableCapacity` - * * `current_route_segment_version` - * * `waypoints_version` - * - * The vehicle `name` also cannot be updated. - * - * If the `attributes` field is updated, **all** the vehicle's attributes are - * replaced with the attributes provided in the request. If you want to update - * only some attributes, see the `UpdateVehicleAttributes` method. Likewise, - * the `waypoints` field can be updated, but must contain all the waypoints - * currently on the vehicle, and no other waypoints. - * - * The async variant is {@see VehicleServiceClient::updateVehicleAsync()} . - * - * @example samples/V1/VehicleServiceClient/update_vehicle.php - * - * @param UpdateVehicleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Vehicle - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateVehicle(UpdateVehicleRequest $request, array $callOptions = []): Vehicle - { - return $this->startApiCall('UpdateVehicle', $request, $callOptions)->wait(); - } - - /** - * Partially updates a vehicle's attributes. - * Only the attributes mentioned in the request will be updated, other - * attributes will NOT be altered. Note: this is different in `UpdateVehicle`, - * where the whole `attributes` field will be replaced by the one in - * `UpdateVehicleRequest`, attributes not in the request would be removed. - * - * The async variant is {@see VehicleServiceClient::updateVehicleAttributesAsync()} - * . - * - * @example samples/V1/VehicleServiceClient/update_vehicle_attributes.php - * - * @param UpdateVehicleAttributesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return UpdateVehicleAttributesResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateVehicleAttributes(UpdateVehicleAttributesRequest $request, array $callOptions = []): UpdateVehicleAttributesResponse - { - return $this->startApiCall('UpdateVehicleAttributes', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/gapic_metadata.json b/owl-bot-staging/MapsFleetEngine/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 280373142e1a..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "maps.fleetengine.v1", - "libraryPackage": "Google\\Maps\\FleetEngine\\V1", - "services": { - "TripService": { - "clients": { - "grpc": { - "libraryClient": "TripServiceGapicClient", - "rpcs": { - "CreateTrip": { - "methods": [ - "createTrip" - ] - }, - "GetTrip": { - "methods": [ - "getTrip" - ] - }, - "ReportBillableTrip": { - "methods": [ - "reportBillableTrip" - ] - }, - "SearchTrips": { - "methods": [ - "searchTrips" - ] - }, - "UpdateTrip": { - "methods": [ - "updateTrip" - ] - } - } - } - } - }, - "VehicleService": { - "clients": { - "grpc": { - "libraryClient": "VehicleServiceGapicClient", - "rpcs": { - "CreateVehicle": { - "methods": [ - "createVehicle" - ] - }, - "GetVehicle": { - "methods": [ - "getVehicle" - ] - }, - "ListVehicles": { - "methods": [ - "listVehicles" - ] - }, - "SearchVehicles": { - "methods": [ - "searchVehicles" - ] - }, - "UpdateVehicle": { - "methods": [ - "updateVehicle" - ] - }, - "UpdateVehicleAttributes": { - "methods": [ - "updateVehicleAttributes" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_client_config.json b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_client_config.json deleted file mode 100644 index baf7c028dc49..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_client_config.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "interfaces": { - "maps.fleetengine.v1.TripService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 15000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 15000, - "total_timeout_millis": 15000 - } - }, - "methods": { - "CreateTrip": { - "timeout_millis": 15000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetTrip": { - "timeout_millis": 15000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ReportBillableTrip": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SearchTrips": { - "timeout_millis": 15000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateTrip": { - "timeout_millis": 15000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_descriptor_config.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_descriptor_config.php deleted file mode 100644 index 1e3977139b4b..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_descriptor_config.php +++ /dev/null @@ -1,114 +0,0 @@ - [ - 'maps.fleetengine.v1.TripService' => [ - 'CreateTrip' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Maps\FleetEngine\V1\Trip', - 'headerParams' => [ - [ - 'keyName' => 'provider_id', - 'fieldAccessors' => [ - 'getParent', - ], - 'matchers' => [ - '/^(?providers\/[^\/]+)$/', - ], - ], - ], - ], - 'GetTrip' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Maps\FleetEngine\V1\Trip', - 'headerParams' => [ - [ - 'keyName' => 'provider_id', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?providers\/[^\/]+)$/', - ], - ], - ], - ], - 'ReportBillableTrip' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'provider_id', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?providers\/[^\/]+)$/', - ], - ], - ], - ], - 'SearchTrips' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getTrips', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Maps\FleetEngine\V1\SearchTripsResponse', - 'headerParams' => [ - [ - 'keyName' => 'provider_id', - 'fieldAccessors' => [ - 'getParent', - ], - 'matchers' => [ - '/^(?providers\/[^\/]+)$/', - ], - ], - ], - ], - 'UpdateTrip' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Maps\FleetEngine\V1\Trip', - 'headerParams' => [ - [ - 'keyName' => 'provider_id', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?providers\/[^\/]+)$/', - ], - ], - ], - ], - 'templateMap' => [ - 'trip' => 'providers/{provider}/trips/{trip}', - ], - ], - ], -]; diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_rest_client_config.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_rest_client_config.php deleted file mode 100644 index 961afdee4c09..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/trip_service_rest_client_config.php +++ /dev/null @@ -1,94 +0,0 @@ - [ - 'maps.fleetengine.v1.TripService' => [ - 'CreateTrip' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=providers/*}/trips', - 'body' => 'trip', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'trip_id', - ], - ], - 'GetTrip' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=providers/*/trips/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ReportBillableTrip' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=providers/*/billableTrips/*}:report', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'SearchTrips' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=providers/*}/trips:search', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateTrip' => [ - 'method' => 'put', - 'uriTemplate' => '/v1/{name=providers/*/trips/*}', - 'body' => 'trip', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_client_config.json b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_client_config.json deleted file mode 100644 index 8d97cde39440..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_client_config.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "interfaces": { - "maps.fleetengine.v1.VehicleService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 15000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 15000, - "total_timeout_millis": 15000 - } - }, - "methods": { - "CreateVehicle": { - "timeout_millis": 15000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetVehicle": { - "timeout_millis": 15000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListVehicles": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SearchVehicles": { - "timeout_millis": 15000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateVehicle": { - "timeout_millis": 15000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateVehicleAttributes": { - "timeout_millis": 15000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_descriptor_config.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_descriptor_config.php deleted file mode 100644 index ec49a409478c..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_descriptor_config.php +++ /dev/null @@ -1,129 +0,0 @@ - [ - 'maps.fleetengine.v1.VehicleService' => [ - 'CreateVehicle' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Maps\FleetEngine\V1\Vehicle', - 'headerParams' => [ - [ - 'keyName' => 'provider_id', - 'fieldAccessors' => [ - 'getParent', - ], - 'matchers' => [ - '/^(?providers\/[^\/]+)$/', - ], - ], - ], - ], - 'GetVehicle' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Maps\FleetEngine\V1\Vehicle', - 'headerParams' => [ - [ - 'keyName' => 'provider_id', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?providers\/[^\/]+)$/', - ], - ], - ], - ], - 'ListVehicles' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getVehicles', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Maps\FleetEngine\V1\ListVehiclesResponse', - 'headerParams' => [ - [ - 'keyName' => 'provider_id', - 'fieldAccessors' => [ - 'getParent', - ], - 'matchers' => [ - '/^(?providers\/[^\/]+)$/', - ], - ], - ], - ], - 'SearchVehicles' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Maps\FleetEngine\V1\SearchVehiclesResponse', - 'headerParams' => [ - [ - 'keyName' => 'provider_id', - 'fieldAccessors' => [ - 'getParent', - ], - 'matchers' => [ - '/^(?providers\/[^\/]+)$/', - ], - ], - ], - ], - 'UpdateVehicle' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Maps\FleetEngine\V1\Vehicle', - 'headerParams' => [ - [ - 'keyName' => 'provider_id', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?providers\/[^\/]+)$/', - ], - ], - ], - ], - 'UpdateVehicleAttributes' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Maps\FleetEngine\V1\UpdateVehicleAttributesResponse', - 'headerParams' => [ - [ - 'keyName' => 'provider_id', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?providers\/[^\/]+)$/', - ], - ], - ], - ], - 'templateMap' => [ - 'vehicle' => 'providers/{provider}/vehicles/{vehicle}', - ], - ], - ], -]; diff --git a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_rest_client_config.php b/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_rest_client_config.php deleted file mode 100644 index ac8a656607f0..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/src/V1/resources/vehicle_service_rest_client_config.php +++ /dev/null @@ -1,108 +0,0 @@ - [ - 'maps.fleetengine.v1.VehicleService' => [ - 'CreateVehicle' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=providers/*}/vehicles', - 'body' => 'vehicle', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'vehicle_id', - ], - ], - 'GetVehicle' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=providers/*/vehicles/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListVehicles' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=providers/*}/vehicles', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'vehicle_type_categories', - ], - ], - 'SearchVehicles' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=providers/*}/vehicles:search', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateVehicle' => [ - 'method' => 'put', - 'uriTemplate' => '/v1/{name=providers/*/vehicles/*}', - 'body' => 'vehicle', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateVehicleAttributes' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=providers/*/vehicles/*}:updateAttributes', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/TripServiceClientTest.php b/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/TripServiceClientTest.php deleted file mode 100644 index 24ec467b67de..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/TripServiceClientTest.php +++ /dev/null @@ -1,501 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return TripServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new TripServiceClient($options); - } - - /** @test */ - public function createTripTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $vehicleId = 'vehicleId-1378647282'; - $intermediateDestinationIndex = 144716901; - $currentRouteSegment = 'currentRouteSegment-289364233'; - $numberOfPassengers = 674364405; - $lastLocationSnappable = false; - $expectedResponse = new Trip(); - $expectedResponse->setName($name); - $expectedResponse->setVehicleId($vehicleId); - $expectedResponse->setIntermediateDestinationIndex($intermediateDestinationIndex); - $expectedResponse->setCurrentRouteSegment($currentRouteSegment); - $expectedResponse->setNumberOfPassengers($numberOfPassengers); - $expectedResponse->setLastLocationSnappable($lastLocationSnappable); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->tripName('[PROVIDER]', '[TRIP]'); - $tripId = 'tripId-1059631243'; - $trip = new Trip(); - $request = (new CreateTripRequest()) - ->setParent($formattedParent) - ->setTripId($tripId) - ->setTrip($trip); - $response = $gapicClient->createTrip($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.TripService/CreateTrip', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getTripId(); - $this->assertProtobufEquals($tripId, $actualValue); - $actualValue = $actualRequestObject->getTrip(); - $this->assertProtobufEquals($trip, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createTripExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->tripName('[PROVIDER]', '[TRIP]'); - $tripId = 'tripId-1059631243'; - $trip = new Trip(); - $request = (new CreateTripRequest()) - ->setParent($formattedParent) - ->setTripId($tripId) - ->setTrip($trip); - try { - $gapicClient->createTrip($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTripTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $vehicleId = 'vehicleId-1378647282'; - $intermediateDestinationIndex = 144716901; - $currentRouteSegment = 'currentRouteSegment-289364233'; - $numberOfPassengers = 674364405; - $lastLocationSnappable = false; - $expectedResponse = new Trip(); - $expectedResponse->setName($name2); - $expectedResponse->setVehicleId($vehicleId); - $expectedResponse->setIntermediateDestinationIndex($intermediateDestinationIndex); - $expectedResponse->setCurrentRouteSegment($currentRouteSegment); - $expectedResponse->setNumberOfPassengers($numberOfPassengers); - $expectedResponse->setLastLocationSnappable($lastLocationSnappable); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->tripName('[PROVIDER]', '[TRIP]'); - $request = (new GetTripRequest()) - ->setName($formattedName); - $response = $gapicClient->getTrip($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.TripService/GetTrip', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTripExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->tripName('[PROVIDER]', '[TRIP]'); - $request = (new GetTripRequest()) - ->setName($formattedName); - try { - $gapicClient->getTrip($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function reportBillableTripTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $countryCode = 'countryCode1481071862'; - $request = (new ReportBillableTripRequest()) - ->setName($name) - ->setCountryCode($countryCode); - $gapicClient->reportBillableTrip($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.TripService/ReportBillableTrip', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $actualValue = $actualRequestObject->getCountryCode(); - $this->assertProtobufEquals($countryCode, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function reportBillableTripExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $countryCode = 'countryCode1481071862'; - $request = (new ReportBillableTripRequest()) - ->setName($name) - ->setCountryCode($countryCode); - try { - $gapicClient->reportBillableTrip($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchTripsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $tripsElement = new Trip(); - $trips = [ - $tripsElement, - ]; - $expectedResponse = new SearchTripsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTrips($trips); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $request = (new SearchTripsRequest()) - ->setParent($parent); - $response = $gapicClient->searchTrips($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getTrips()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.TripService/SearchTrips', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchTripsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $parent = 'parent-995424086'; - $request = (new SearchTripsRequest()) - ->setParent($parent); - try { - $gapicClient->searchTrips($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateTripTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $vehicleId = 'vehicleId-1378647282'; - $intermediateDestinationIndex = 144716901; - $currentRouteSegment = 'currentRouteSegment-289364233'; - $numberOfPassengers = 674364405; - $lastLocationSnappable = false; - $expectedResponse = new Trip(); - $expectedResponse->setName($name2); - $expectedResponse->setVehicleId($vehicleId); - $expectedResponse->setIntermediateDestinationIndex($intermediateDestinationIndex); - $expectedResponse->setCurrentRouteSegment($currentRouteSegment); - $expectedResponse->setNumberOfPassengers($numberOfPassengers); - $expectedResponse->setLastLocationSnappable($lastLocationSnappable); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $trip = new Trip(); - $updateMask = new FieldMask(); - $request = (new UpdateTripRequest()) - ->setName($name) - ->setTrip($trip) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateTrip($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.TripService/UpdateTrip', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $actualValue = $actualRequestObject->getTrip(); - $this->assertProtobufEquals($trip, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateTripExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $trip = new Trip(); - $updateMask = new FieldMask(); - $request = (new UpdateTripRequest()) - ->setName($name) - ->setTrip($trip) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateTrip($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createTripAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $vehicleId = 'vehicleId-1378647282'; - $intermediateDestinationIndex = 144716901; - $currentRouteSegment = 'currentRouteSegment-289364233'; - $numberOfPassengers = 674364405; - $lastLocationSnappable = false; - $expectedResponse = new Trip(); - $expectedResponse->setName($name); - $expectedResponse->setVehicleId($vehicleId); - $expectedResponse->setIntermediateDestinationIndex($intermediateDestinationIndex); - $expectedResponse->setCurrentRouteSegment($currentRouteSegment); - $expectedResponse->setNumberOfPassengers($numberOfPassengers); - $expectedResponse->setLastLocationSnappable($lastLocationSnappable); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->tripName('[PROVIDER]', '[TRIP]'); - $tripId = 'tripId-1059631243'; - $trip = new Trip(); - $request = (new CreateTripRequest()) - ->setParent($formattedParent) - ->setTripId($tripId) - ->setTrip($trip); - $response = $gapicClient->createTripAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.TripService/CreateTrip', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getTripId(); - $this->assertProtobufEquals($tripId, $actualValue); - $actualValue = $actualRequestObject->getTrip(); - $this->assertProtobufEquals($trip, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/VehicleServiceClientTest.php b/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/VehicleServiceClientTest.php deleted file mode 100644 index 55dff33beee6..000000000000 --- a/owl-bot-staging/MapsFleetEngine/v1/tests/Unit/V1/Client/VehicleServiceClientTest.php +++ /dev/null @@ -1,618 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return VehicleServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new VehicleServiceClient($options); - } - - /** @test */ - public function createVehicleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $maximumCapacity = 582710265; - $currentRouteSegment = 'currentRouteSegment-289364233'; - $backToBackEnabled = false; - $expectedResponse = new Vehicle(); - $expectedResponse->setName($name); - $expectedResponse->setMaximumCapacity($maximumCapacity); - $expectedResponse->setCurrentRouteSegment($currentRouteSegment); - $expectedResponse->setBackToBackEnabled($backToBackEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $vehicleId = 'vehicleId-1378647282'; - $vehicle = new Vehicle(); - $vehicleVehicleType = new VehicleType(); - $vehicle->setVehicleType($vehicleVehicleType); - $request = (new CreateVehicleRequest()) - ->setParent($parent) - ->setVehicleId($vehicleId) - ->setVehicle($vehicle); - $response = $gapicClient->createVehicle($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.VehicleService/CreateVehicle', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $actualValue = $actualRequestObject->getVehicleId(); - $this->assertProtobufEquals($vehicleId, $actualValue); - $actualValue = $actualRequestObject->getVehicle(); - $this->assertProtobufEquals($vehicle, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createVehicleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $parent = 'parent-995424086'; - $vehicleId = 'vehicleId-1378647282'; - $vehicle = new Vehicle(); - $vehicleVehicleType = new VehicleType(); - $vehicle->setVehicleType($vehicleVehicleType); - $request = (new CreateVehicleRequest()) - ->setParent($parent) - ->setVehicleId($vehicleId) - ->setVehicle($vehicle); - try { - $gapicClient->createVehicle($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getVehicleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $maximumCapacity = 582710265; - $currentRouteSegment = 'currentRouteSegment-289364233'; - $backToBackEnabled = false; - $expectedResponse = new Vehicle(); - $expectedResponse->setName($name2); - $expectedResponse->setMaximumCapacity($maximumCapacity); - $expectedResponse->setCurrentRouteSegment($currentRouteSegment); - $expectedResponse->setBackToBackEnabled($backToBackEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->vehicleName('[PROVIDER]', '[VEHICLE]'); - $request = (new GetVehicleRequest()) - ->setName($formattedName); - $response = $gapicClient->getVehicle($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.VehicleService/GetVehicle', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getVehicleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->vehicleName('[PROVIDER]', '[VEHICLE]'); - $request = (new GetVehicleRequest()) - ->setName($formattedName); - try { - $gapicClient->getVehicle($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listVehiclesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $vehiclesElement = new Vehicle(); - $vehicles = [ - $vehiclesElement, - ]; - $expectedResponse = new ListVehiclesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setVehicles($vehicles); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $vehicleTypeCategories = []; - $request = (new ListVehiclesRequest()) - ->setParent($parent) - ->setVehicleTypeCategories($vehicleTypeCategories); - $response = $gapicClient->listVehicles($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getVehicles()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.VehicleService/ListVehicles', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $actualValue = $actualRequestObject->getVehicleTypeCategories(); - $this->assertProtobufEquals($vehicleTypeCategories, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listVehiclesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $parent = 'parent-995424086'; - $vehicleTypeCategories = []; - $request = (new ListVehiclesRequest()) - ->setParent($parent) - ->setVehicleTypeCategories($vehicleTypeCategories); - try { - $gapicClient->listVehicles($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchVehiclesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new SearchVehiclesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $pickupPoint = new TerminalLocation(); - $pickupPointPoint = new LatLng(); - $pickupPoint->setPoint($pickupPointPoint); - $pickupRadiusMeters = 254656044; - $count = 94851343; - $minimumCapacity = 518841803; - $tripTypes = []; - $vehicleTypes = []; - $orderBy = VehicleMatchOrder::UNKNOWN_VEHICLE_MATCH_ORDER; - $request = (new SearchVehiclesRequest()) - ->setParent($parent) - ->setPickupPoint($pickupPoint) - ->setPickupRadiusMeters($pickupRadiusMeters) - ->setCount($count) - ->setMinimumCapacity($minimumCapacity) - ->setTripTypes($tripTypes) - ->setVehicleTypes($vehicleTypes) - ->setOrderBy($orderBy); - $response = $gapicClient->searchVehicles($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.VehicleService/SearchVehicles', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $actualValue = $actualRequestObject->getPickupPoint(); - $this->assertProtobufEquals($pickupPoint, $actualValue); - $actualValue = $actualRequestObject->getPickupRadiusMeters(); - $this->assertProtobufEquals($pickupRadiusMeters, $actualValue); - $actualValue = $actualRequestObject->getCount(); - $this->assertProtobufEquals($count, $actualValue); - $actualValue = $actualRequestObject->getMinimumCapacity(); - $this->assertProtobufEquals($minimumCapacity, $actualValue); - $actualValue = $actualRequestObject->getTripTypes(); - $this->assertProtobufEquals($tripTypes, $actualValue); - $actualValue = $actualRequestObject->getVehicleTypes(); - $this->assertProtobufEquals($vehicleTypes, $actualValue); - $actualValue = $actualRequestObject->getOrderBy(); - $this->assertProtobufEquals($orderBy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchVehiclesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $parent = 'parent-995424086'; - $pickupPoint = new TerminalLocation(); - $pickupPointPoint = new LatLng(); - $pickupPoint->setPoint($pickupPointPoint); - $pickupRadiusMeters = 254656044; - $count = 94851343; - $minimumCapacity = 518841803; - $tripTypes = []; - $vehicleTypes = []; - $orderBy = VehicleMatchOrder::UNKNOWN_VEHICLE_MATCH_ORDER; - $request = (new SearchVehiclesRequest()) - ->setParent($parent) - ->setPickupPoint($pickupPoint) - ->setPickupRadiusMeters($pickupRadiusMeters) - ->setCount($count) - ->setMinimumCapacity($minimumCapacity) - ->setTripTypes($tripTypes) - ->setVehicleTypes($vehicleTypes) - ->setOrderBy($orderBy); - try { - $gapicClient->searchVehicles($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateVehicleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $maximumCapacity = 582710265; - $currentRouteSegment = 'currentRouteSegment-289364233'; - $backToBackEnabled = false; - $expectedResponse = new Vehicle(); - $expectedResponse->setName($name2); - $expectedResponse->setMaximumCapacity($maximumCapacity); - $expectedResponse->setCurrentRouteSegment($currentRouteSegment); - $expectedResponse->setBackToBackEnabled($backToBackEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $vehicle = new Vehicle(); - $vehicleVehicleType = new VehicleType(); - $vehicle->setVehicleType($vehicleVehicleType); - $updateMask = new FieldMask(); - $request = (new UpdateVehicleRequest()) - ->setName($name) - ->setVehicle($vehicle) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateVehicle($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.VehicleService/UpdateVehicle', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $actualValue = $actualRequestObject->getVehicle(); - $this->assertProtobufEquals($vehicle, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateVehicleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $vehicle = new Vehicle(); - $vehicleVehicleType = new VehicleType(); - $vehicle->setVehicleType($vehicleVehicleType); - $updateMask = new FieldMask(); - $request = (new UpdateVehicleRequest()) - ->setName($name) - ->setVehicle($vehicle) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateVehicle($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateVehicleAttributesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new UpdateVehicleAttributesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $attributes = []; - $request = (new UpdateVehicleAttributesRequest()) - ->setName($name) - ->setAttributes($attributes); - $response = $gapicClient->updateVehicleAttributes($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.VehicleService/UpdateVehicleAttributes', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $actualValue = $actualRequestObject->getAttributes(); - $this->assertProtobufEquals($attributes, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateVehicleAttributesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $attributes = []; - $request = (new UpdateVehicleAttributesRequest()) - ->setName($name) - ->setAttributes($attributes); - try { - $gapicClient->updateVehicleAttributes($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createVehicleAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $maximumCapacity = 582710265; - $currentRouteSegment = 'currentRouteSegment-289364233'; - $backToBackEnabled = false; - $expectedResponse = new Vehicle(); - $expectedResponse->setName($name); - $expectedResponse->setMaximumCapacity($maximumCapacity); - $expectedResponse->setCurrentRouteSegment($currentRouteSegment); - $expectedResponse->setBackToBackEnabled($backToBackEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $vehicleId = 'vehicleId-1378647282'; - $vehicle = new Vehicle(); - $vehicleVehicleType = new VehicleType(); - $vehicle->setVehicleType($vehicleVehicleType); - $request = (new CreateVehicleRequest()) - ->setParent($parent) - ->setVehicleId($vehicleId) - ->setVehicle($vehicle); - $response = $gapicClient->createVehicleAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/maps.fleetengine.v1.VehicleService/CreateVehicle', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $actualValue = $actualRequestObject->getVehicleId(); - $this->assertProtobufEquals($vehicleId, $actualValue); - $actualValue = $actualRequestObject->getVehicle(); - $this->assertProtobufEquals($vehicle, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -}