Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
PolylineFormatType,
TerminalLocation,
TerminalPointId,
TripAttribute,
TripType,
TripWaypoint,
VehicleAttribute,
Expand Down Expand Up @@ -96,6 +97,7 @@
"VehicleServiceAsyncClient",
"TerminalLocation",
"TerminalPointId",
"TripAttribute",
"TripWaypoint",
"VehicleAttribute",
"VehicleLocation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.2.10" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
PolylineFormatType,
TerminalLocation,
TerminalPointId,
TripAttribute,
TripType,
TripWaypoint,
VehicleAttribute,
Expand Down Expand Up @@ -112,6 +113,7 @@
"TerminalPointId",
"TrafficPolylineData",
"Trip",
"TripAttribute",
"TripServiceClient",
"TripStatus",
"TripType",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.2.10" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
PolylineFormatType,
TerminalLocation,
TerminalPointId,
TripAttribute,
TripType,
TripWaypoint,
VehicleAttribute,
Expand Down Expand Up @@ -68,6 +69,7 @@
__all__ = (
"TerminalLocation",
"TerminalPointId",
"TripAttribute",
"TripWaypoint",
"VehicleAttribute",
"VehicleLocation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"TripWaypoint",
"VehicleAttribute",
"VehicleLocation",
"TripAttribute",
},
)

Expand Down Expand Up @@ -467,6 +468,17 @@ class VehicleLocation(proto.Message):
Source of the raw location. Defaults to ``GPS``.
raw_location_accuracy (google.protobuf.wrappers_pb2.DoubleValue):
Accuracy of ``raw_location`` as a radius, in meters.
flp_location (google.type.latlng_pb2.LatLng):
The location from Android's Fused Location
Provider.
flp_update_time (google.protobuf.timestamp_pb2.Timestamp):
Update timestamp of ``flp_location``.
flp_latlng_accuracy_meters (google.protobuf.wrappers_pb2.DoubleValue):
Accuracy of ``flp_location`` in meters as a radius.
flp_heading_degrees (google.protobuf.wrappers_pb2.Int32Value):
Direction the vehicle is moving in degrees, as determined by
the Fused Location Provider. 0 represents North. The valid
range is [0,360).
supplemental_location (google.type.latlng_pb2.LatLng):
Supplemental location provided by the
integrating app.
Expand Down Expand Up @@ -598,6 +610,26 @@ class VehicleLocation(proto.Message):
number=25,
message=wrappers_pb2.DoubleValue,
)
flp_location: latlng_pb2.LatLng = proto.Field(
proto.MESSAGE,
number=29,
message=latlng_pb2.LatLng,
)
flp_update_time: timestamp_pb2.Timestamp = proto.Field(
proto.MESSAGE,
number=30,
message=timestamp_pb2.Timestamp,
)
flp_latlng_accuracy_meters: wrappers_pb2.DoubleValue = proto.Field(
proto.MESSAGE,
number=31,
message=wrappers_pb2.DoubleValue,
)
flp_heading_degrees: wrappers_pb2.Int32Value = proto.Field(
proto.MESSAGE,
number=32,
message=wrappers_pb2.Int32Value,
)
supplemental_location: latlng_pb2.LatLng = proto.Field(
proto.MESSAGE,
number=18,
Expand All @@ -624,4 +656,54 @@ class VehicleLocation(proto.Message):
)


class TripAttribute(proto.Message):
r"""Describes a trip attribute as a key-value pair. The
"key:value" string length cannot exceed 256 characters.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes:
key (str):
The attribute's key. Keys may not contain the
colon character (:).
string_value (str):
String typed attribute value.

This field is a member of `oneof`_ ``trip_attribute_value``.
bool_value (bool):
Boolean typed attribute value.

This field is a member of `oneof`_ ``trip_attribute_value``.
number_value (float):
Double typed attribute value.

This field is a member of `oneof`_ ``trip_attribute_value``.
"""

key: str = proto.Field(
proto.STRING,
number=1,
)
string_value: str = proto.Field(
proto.STRING,
number=2,
oneof="trip_attribute_value",
)
bool_value: bool = proto.Field(
proto.BOOL,
number=3,
oneof="trip_attribute_value",
)
number_value: float = proto.Field(
proto.DOUBLE,
number=4,
oneof="trip_attribute_value",
)


__all__ = tuple(sorted(__protobuf__.manifest))
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ class Speed(proto.Enum):
SPEED_UNSPECIFIED (0):
Default value. This value is unused.
NORMAL (1):
Normal speed, no slowdown is detected.
Normal speed, no traffic delays.
SLOW (2):
Slowdown detected, but no traffic jam formed.
Slowdown detected, medium amount of traffic.
TRAFFIC_JAM (3):
Traffic jam detected.
Traffic delays.
"""
SPEED_UNSPECIFIED = 0
NORMAL = 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,12 @@ class GetTripRequest(proto.Message):
the route field is not set in the response. If a minimum is
unspecified, the route data are always retrieved.
remaining_waypoints_version (google.protobuf.timestamp_pb2.Timestamp):
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.
Deprecated: ``Trip.remaining_waypoints`` are always
retrieved. Use ``remaining_waypoints_route_version`` to
control when
``Trip.remaining_waypoints.traffic_to_waypoint`` and
``Trip.remaining_waypoints.path_to_waypoint`` data are
retrieved.
route_format_type (google.maps.fleetengine_v1.types.PolylineFormatType):
The returned current route format, ``LAT_LNG_LIST_TYPE`` (in
``Trip.route``), or ``ENCODED_POLYLINE_TYPE`` (in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ class Trip(proto.Message):
view (google.maps.fleetengine_v1.types.TripView):
The subset of Trip fields that are populated
and how they should be interpreted.
attributes (MutableSequence[google.maps.fleetengine_v1.types.TripAttribute]):
A list of custom Trip attributes. Each
attribute must have a unique key.
"""

name: str = proto.Field(
Expand Down Expand Up @@ -461,6 +464,11 @@ class Trip(proto.Message):
number=31,
enum="TripView",
)
attributes: MutableSequence[fleetengine.TripAttribute] = proto.RepeatedField(
proto.MESSAGE,
number=35,
message=fleetengine.TripAttribute,
)


class StopLocation(proto.Message):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-maps-fleetengine",
"version": "0.2.10"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Loading