Skip to content

Commit 5430901

Browse files
feat: [google-maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version (googleapis#14071)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 781185838 Source-Link: googleapis/googleapis@302273a Source-Link: https://github.com/googleapis/googleapis-gen/commit/dd3d22b67c589f8f6042f30a885a57728a2ed4fa Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtZmxlZXRlbmdpbmUtZGVsaXZlcnkvLk93bEJvdC55YW1sIiwiaCI6ImRkM2QyMmI2N2M1ODlmOGY2MDQyZjMwYTg4NWE1NzcyOGEyZWQ0ZmEifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent d3c0825 commit 5430901

File tree

5 files changed

+50
-3
lines changed

5 files changed

+50
-3
lines changed

packages/google-maps-fleetengine-delivery/google/maps/fleetengine_delivery/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.2.12" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-maps-fleetengine-delivery/google/maps/fleetengine_delivery_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.2.12" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-maps-fleetengine-delivery/google/maps/fleetengine_delivery_v1/types/common.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,17 @@ class DeliveryVehicleLocation(proto.Message):
235235
Source of the raw location. Defaults to ``GPS``.
236236
raw_location_accuracy (google.protobuf.wrappers_pb2.DoubleValue):
237237
Accuracy of ``raw_location`` as a radius, in meters.
238+
flp_location (google.type.latlng_pb2.LatLng):
239+
The location from Android's Fused Location
240+
Provider.
241+
flp_update_time (google.protobuf.timestamp_pb2.Timestamp):
242+
Update timestamp of the ``flp_location``
243+
flp_latlng_accuracy_meters (google.protobuf.wrappers_pb2.DoubleValue):
244+
Accuracy of ``flp_location`` in meters as a radius.
245+
flp_heading_degrees (google.protobuf.wrappers_pb2.Int32Value):
246+
Direction the vehicle is moving in degrees, as determined by
247+
the Fused Location Provider. 0 represents North. The valid
248+
range is [0,360).
238249
supplemental_location (google.type.latlng_pb2.LatLng):
239250
Supplemental location provided by the
240251
integrating app.
@@ -366,6 +377,26 @@ class DeliveryVehicleLocation(proto.Message):
366377
number=25,
367378
message=wrappers_pb2.DoubleValue,
368379
)
380+
flp_location: latlng_pb2.LatLng = proto.Field(
381+
proto.MESSAGE,
382+
number=29,
383+
message=latlng_pb2.LatLng,
384+
)
385+
flp_update_time: timestamp_pb2.Timestamp = proto.Field(
386+
proto.MESSAGE,
387+
number=30,
388+
message=timestamp_pb2.Timestamp,
389+
)
390+
flp_latlng_accuracy_meters: wrappers_pb2.DoubleValue = proto.Field(
391+
proto.MESSAGE,
392+
number=31,
393+
message=wrappers_pb2.DoubleValue,
394+
)
395+
flp_heading_degrees: wrappers_pb2.Int32Value = proto.Field(
396+
proto.MESSAGE,
397+
number=32,
398+
message=wrappers_pb2.Int32Value,
399+
)
369400
supplemental_location: latlng_pb2.LatLng = proto.Field(
370401
proto.MESSAGE,
371402
number=18,

packages/google-maps-fleetengine-delivery/samples/generated_samples/snippet_metadata_maps.fleetengine.delivery.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-maps-fleetengine-delivery",
11-
"version": "0.2.12"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-maps-fleetengine-delivery/tests/unit/gapic/fleetengine_delivery_v1/test_delivery_service.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8816,6 +8816,10 @@ def test_create_delivery_vehicle_rest_call_success(request_type):
88168816
"raw_location_time": {},
88178817
"raw_location_sensor": 1,
88188818
"raw_location_accuracy": {},
8819+
"flp_location": {},
8820+
"flp_update_time": {},
8821+
"flp_latlng_accuracy_meters": {},
8822+
"flp_heading_degrees": {},
88198823
"supplemental_location": {},
88208824
"supplemental_location_time": {},
88218825
"supplemental_location_sensor": 1,
@@ -9341,6 +9345,10 @@ def test_update_delivery_vehicle_rest_call_success(request_type):
93419345
"raw_location_time": {},
93429346
"raw_location_sensor": 1,
93439347
"raw_location_accuracy": {},
9348+
"flp_location": {},
9349+
"flp_update_time": {},
9350+
"flp_latlng_accuracy_meters": {},
9351+
"flp_heading_degrees": {},
93449352
"supplemental_location": {},
93459353
"supplemental_location_time": {},
93469354
"supplemental_location_sensor": 1,
@@ -9773,6 +9781,10 @@ def test_create_task_rest_call_success(request_type):
97739781
"raw_location_time": {},
97749782
"raw_location_sensor": 1,
97759783
"raw_location_accuracy": {},
9784+
"flp_location": {},
9785+
"flp_update_time": {},
9786+
"flp_latlng_accuracy_meters": {},
9787+
"flp_heading_degrees": {},
97769788
"supplemental_location": {},
97779789
"supplemental_location_time": {},
97789790
"supplemental_location_sensor": 1,
@@ -10308,6 +10320,10 @@ def test_update_task_rest_call_success(request_type):
1030810320
"raw_location_time": {},
1030910321
"raw_location_sensor": 1,
1031010322
"raw_location_accuracy": {},
10323+
"flp_location": {},
10324+
"flp_update_time": {},
10325+
"flp_latlng_accuracy_meters": {},
10326+
"flp_heading_degrees": {},
1031110327
"supplemental_location": {},
1031210328
"supplemental_location_time": {},
1031310329
"supplemental_location_sensor": 1,

0 commit comments

Comments
 (0)