@googlemaps/fleetengine 0.7.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1564,6 +1564,10 @@
1564
1564
  * @property {google.protobuf.ITimestamp|null} [rawLocationTime] VehicleLocation rawLocationTime
1565
1565
  * @property {maps.fleetengine.v1.LocationSensor|null} [rawLocationSensor] VehicleLocation rawLocationSensor
1566
1566
  * @property {google.protobuf.IDoubleValue|null} [rawLocationAccuracy] VehicleLocation rawLocationAccuracy
1567
+ * @property {google.type.ILatLng|null} [flpLocation] VehicleLocation flpLocation
1568
+ * @property {google.protobuf.ITimestamp|null} [flpUpdateTime] VehicleLocation flpUpdateTime
1569
+ * @property {google.protobuf.IDoubleValue|null} [flpLatlngAccuracyMeters] VehicleLocation flpLatlngAccuracyMeters
1570
+ * @property {google.protobuf.IInt32Value|null} [flpHeadingDegrees] VehicleLocation flpHeadingDegrees
1567
1571
  * @property {google.type.ILatLng|null} [supplementalLocation] VehicleLocation supplementalLocation
1568
1572
  * @property {google.protobuf.ITimestamp|null} [supplementalLocationTime] VehicleLocation supplementalLocationTime
1569
1573
  * @property {maps.fleetengine.v1.LocationSensor|null} [supplementalLocationSensor] VehicleLocation supplementalLocationSensor
@@ -1770,6 +1774,38 @@
1770
1774
  */
1771
1775
  VehicleLocation.prototype.rawLocationAccuracy = null;
1772
1776
 
1777
+ /**
1778
+ * VehicleLocation flpLocation.
1779
+ * @member {google.type.ILatLng|null|undefined} flpLocation
1780
+ * @memberof maps.fleetengine.v1.VehicleLocation
1781
+ * @instance
1782
+ */
1783
+ VehicleLocation.prototype.flpLocation = null;
1784
+
1785
+ /**
1786
+ * VehicleLocation flpUpdateTime.
1787
+ * @member {google.protobuf.ITimestamp|null|undefined} flpUpdateTime
1788
+ * @memberof maps.fleetengine.v1.VehicleLocation
1789
+ * @instance
1790
+ */
1791
+ VehicleLocation.prototype.flpUpdateTime = null;
1792
+
1793
+ /**
1794
+ * VehicleLocation flpLatlngAccuracyMeters.
1795
+ * @member {google.protobuf.IDoubleValue|null|undefined} flpLatlngAccuracyMeters
1796
+ * @memberof maps.fleetengine.v1.VehicleLocation
1797
+ * @instance
1798
+ */
1799
+ VehicleLocation.prototype.flpLatlngAccuracyMeters = null;
1800
+
1801
+ /**
1802
+ * VehicleLocation flpHeadingDegrees.
1803
+ * @member {google.protobuf.IInt32Value|null|undefined} flpHeadingDegrees
1804
+ * @memberof maps.fleetengine.v1.VehicleLocation
1805
+ * @instance
1806
+ */
1807
+ VehicleLocation.prototype.flpHeadingDegrees = null;
1808
+
1773
1809
  /**
1774
1810
  * VehicleLocation supplementalLocation.
1775
1811
  * @member {google.type.ILatLng|null|undefined} supplementalLocation
@@ -1890,6 +1926,14 @@
1890
1926
  $root.google.protobuf.BoolValue.encode(message.isRoadSnapped, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
1891
1927
  if (message.rawLocationSensor != null && Object.hasOwnProperty.call(message, "rawLocationSensor"))
1892
1928
  writer.uint32(/* id 28, wireType 0 =*/224).int32(message.rawLocationSensor);
1929
+ if (message.flpLocation != null && Object.hasOwnProperty.call(message, "flpLocation"))
1930
+ $root.google.type.LatLng.encode(message.flpLocation, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim();
1931
+ if (message.flpUpdateTime != null && Object.hasOwnProperty.call(message, "flpUpdateTime"))
1932
+ $root.google.protobuf.Timestamp.encode(message.flpUpdateTime, writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim();
1933
+ if (message.flpLatlngAccuracyMeters != null && Object.hasOwnProperty.call(message, "flpLatlngAccuracyMeters"))
1934
+ $root.google.protobuf.DoubleValue.encode(message.flpLatlngAccuracyMeters, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim();
1935
+ if (message.flpHeadingDegrees != null && Object.hasOwnProperty.call(message, "flpHeadingDegrees"))
1936
+ $root.google.protobuf.Int32Value.encode(message.flpHeadingDegrees, writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim();
1893
1937
  return writer;
1894
1938
  };
1895
1939
 
@@ -2018,6 +2062,22 @@
2018
2062
  message.rawLocationAccuracy = $root.google.protobuf.DoubleValue.decode(reader, reader.uint32());
2019
2063
  break;
2020
2064
  }
2065
+ case 29: {
2066
+ message.flpLocation = $root.google.type.LatLng.decode(reader, reader.uint32());
2067
+ break;
2068
+ }
2069
+ case 30: {
2070
+ message.flpUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
2071
+ break;
2072
+ }
2073
+ case 31: {
2074
+ message.flpLatlngAccuracyMeters = $root.google.protobuf.DoubleValue.decode(reader, reader.uint32());
2075
+ break;
2076
+ }
2077
+ case 32: {
2078
+ message.flpHeadingDegrees = $root.google.protobuf.Int32Value.decode(reader, reader.uint32());
2079
+ break;
2080
+ }
2021
2081
  case 18: {
2022
2082
  message.supplementalLocation = $root.google.type.LatLng.decode(reader, reader.uint32());
2023
2083
  break;
@@ -2208,6 +2268,26 @@
2208
2268
  if (error)
2209
2269
  return "rawLocationAccuracy." + error;
2210
2270
  }
2271
+ if (message.flpLocation != null && message.hasOwnProperty("flpLocation")) {
2272
+ var error = $root.google.type.LatLng.verify(message.flpLocation);
2273
+ if (error)
2274
+ return "flpLocation." + error;
2275
+ }
2276
+ if (message.flpUpdateTime != null && message.hasOwnProperty("flpUpdateTime")) {
2277
+ var error = $root.google.protobuf.Timestamp.verify(message.flpUpdateTime);
2278
+ if (error)
2279
+ return "flpUpdateTime." + error;
2280
+ }
2281
+ if (message.flpLatlngAccuracyMeters != null && message.hasOwnProperty("flpLatlngAccuracyMeters")) {
2282
+ var error = $root.google.protobuf.DoubleValue.verify(message.flpLatlngAccuracyMeters);
2283
+ if (error)
2284
+ return "flpLatlngAccuracyMeters." + error;
2285
+ }
2286
+ if (message.flpHeadingDegrees != null && message.hasOwnProperty("flpHeadingDegrees")) {
2287
+ var error = $root.google.protobuf.Int32Value.verify(message.flpHeadingDegrees);
2288
+ if (error)
2289
+ return "flpHeadingDegrees." + error;
2290
+ }
2211
2291
  if (message.supplementalLocation != null && message.hasOwnProperty("supplementalLocation")) {
2212
2292
  var error = $root.google.type.LatLng.verify(message.supplementalLocation);
2213
2293
  if (error)
@@ -2449,6 +2529,26 @@
2449
2529
  throw TypeError(".maps.fleetengine.v1.VehicleLocation.rawLocationAccuracy: object expected");
2450
2530
  message.rawLocationAccuracy = $root.google.protobuf.DoubleValue.fromObject(object.rawLocationAccuracy);
2451
2531
  }
2532
+ if (object.flpLocation != null) {
2533
+ if (typeof object.flpLocation !== "object")
2534
+ throw TypeError(".maps.fleetengine.v1.VehicleLocation.flpLocation: object expected");
2535
+ message.flpLocation = $root.google.type.LatLng.fromObject(object.flpLocation);
2536
+ }
2537
+ if (object.flpUpdateTime != null) {
2538
+ if (typeof object.flpUpdateTime !== "object")
2539
+ throw TypeError(".maps.fleetengine.v1.VehicleLocation.flpUpdateTime: object expected");
2540
+ message.flpUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.flpUpdateTime);
2541
+ }
2542
+ if (object.flpLatlngAccuracyMeters != null) {
2543
+ if (typeof object.flpLatlngAccuracyMeters !== "object")
2544
+ throw TypeError(".maps.fleetengine.v1.VehicleLocation.flpLatlngAccuracyMeters: object expected");
2545
+ message.flpLatlngAccuracyMeters = $root.google.protobuf.DoubleValue.fromObject(object.flpLatlngAccuracyMeters);
2546
+ }
2547
+ if (object.flpHeadingDegrees != null) {
2548
+ if (typeof object.flpHeadingDegrees !== "object")
2549
+ throw TypeError(".maps.fleetengine.v1.VehicleLocation.flpHeadingDegrees: object expected");
2550
+ message.flpHeadingDegrees = $root.google.protobuf.Int32Value.fromObject(object.flpHeadingDegrees);
2551
+ }
2452
2552
  if (object.supplementalLocation != null) {
2453
2553
  if (typeof object.supplementalLocation !== "object")
2454
2554
  throw TypeError(".maps.fleetengine.v1.VehicleLocation.supplementalLocation: object expected");
@@ -2555,6 +2655,10 @@
2555
2655
  object.roadSnapped = false;
2556
2656
  object.isRoadSnapped = null;
2557
2657
  object.rawLocationSensor = options.enums === String ? "UNKNOWN_SENSOR" : 0;
2658
+ object.flpLocation = null;
2659
+ object.flpUpdateTime = null;
2660
+ object.flpLatlngAccuracyMeters = null;
2661
+ object.flpHeadingDegrees = null;
2558
2662
  }
2559
2663
  if (message.location != null && message.hasOwnProperty("location"))
2560
2664
  object.location = $root.google.type.LatLng.toObject(message.location, options);
@@ -2612,6 +2716,14 @@
2612
2716
  object.isRoadSnapped = $root.google.protobuf.BoolValue.toObject(message.isRoadSnapped, options);
2613
2717
  if (message.rawLocationSensor != null && message.hasOwnProperty("rawLocationSensor"))
2614
2718
  object.rawLocationSensor = options.enums === String ? $root.maps.fleetengine.v1.LocationSensor[message.rawLocationSensor] === undefined ? message.rawLocationSensor : $root.maps.fleetengine.v1.LocationSensor[message.rawLocationSensor] : message.rawLocationSensor;
2719
+ if (message.flpLocation != null && message.hasOwnProperty("flpLocation"))
2720
+ object.flpLocation = $root.google.type.LatLng.toObject(message.flpLocation, options);
2721
+ if (message.flpUpdateTime != null && message.hasOwnProperty("flpUpdateTime"))
2722
+ object.flpUpdateTime = $root.google.protobuf.Timestamp.toObject(message.flpUpdateTime, options);
2723
+ if (message.flpLatlngAccuracyMeters != null && message.hasOwnProperty("flpLatlngAccuracyMeters"))
2724
+ object.flpLatlngAccuracyMeters = $root.google.protobuf.DoubleValue.toObject(message.flpLatlngAccuracyMeters, options);
2725
+ if (message.flpHeadingDegrees != null && message.hasOwnProperty("flpHeadingDegrees"))
2726
+ object.flpHeadingDegrees = $root.google.protobuf.Int32Value.toObject(message.flpHeadingDegrees, options);
2615
2727
  return object;
2616
2728
  };
2617
2729
 
@@ -2672,6 +2784,311 @@
2672
2784
  return values;
2673
2785
  })();
2674
2786
 
2787
+ v1.TripAttribute = (function() {
2788
+
2789
+ /**
2790
+ * Properties of a TripAttribute.
2791
+ * @memberof maps.fleetengine.v1
2792
+ * @interface ITripAttribute
2793
+ * @property {string|null} [key] TripAttribute key
2794
+ * @property {string|null} [stringValue] TripAttribute stringValue
2795
+ * @property {boolean|null} [boolValue] TripAttribute boolValue
2796
+ * @property {number|null} [numberValue] TripAttribute numberValue
2797
+ */
2798
+
2799
+ /**
2800
+ * Constructs a new TripAttribute.
2801
+ * @memberof maps.fleetengine.v1
2802
+ * @classdesc Represents a TripAttribute.
2803
+ * @implements ITripAttribute
2804
+ * @constructor
2805
+ * @param {maps.fleetengine.v1.ITripAttribute=} [properties] Properties to set
2806
+ */
2807
+ function TripAttribute(properties) {
2808
+ if (properties)
2809
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2810
+ if (properties[keys[i]] != null)
2811
+ this[keys[i]] = properties[keys[i]];
2812
+ }
2813
+
2814
+ /**
2815
+ * TripAttribute key.
2816
+ * @member {string} key
2817
+ * @memberof maps.fleetengine.v1.TripAttribute
2818
+ * @instance
2819
+ */
2820
+ TripAttribute.prototype.key = "";
2821
+
2822
+ /**
2823
+ * TripAttribute stringValue.
2824
+ * @member {string|null|undefined} stringValue
2825
+ * @memberof maps.fleetengine.v1.TripAttribute
2826
+ * @instance
2827
+ */
2828
+ TripAttribute.prototype.stringValue = null;
2829
+
2830
+ /**
2831
+ * TripAttribute boolValue.
2832
+ * @member {boolean|null|undefined} boolValue
2833
+ * @memberof maps.fleetengine.v1.TripAttribute
2834
+ * @instance
2835
+ */
2836
+ TripAttribute.prototype.boolValue = null;
2837
+
2838
+ /**
2839
+ * TripAttribute numberValue.
2840
+ * @member {number|null|undefined} numberValue
2841
+ * @memberof maps.fleetengine.v1.TripAttribute
2842
+ * @instance
2843
+ */
2844
+ TripAttribute.prototype.numberValue = null;
2845
+
2846
+ // OneOf field names bound to virtual getters and setters
2847
+ var $oneOfFields;
2848
+
2849
+ /**
2850
+ * TripAttribute tripAttributeValue.
2851
+ * @member {"stringValue"|"boolValue"|"numberValue"|undefined} tripAttributeValue
2852
+ * @memberof maps.fleetengine.v1.TripAttribute
2853
+ * @instance
2854
+ */
2855
+ Object.defineProperty(TripAttribute.prototype, "tripAttributeValue", {
2856
+ get: $util.oneOfGetter($oneOfFields = ["stringValue", "boolValue", "numberValue"]),
2857
+ set: $util.oneOfSetter($oneOfFields)
2858
+ });
2859
+
2860
+ /**
2861
+ * Creates a new TripAttribute instance using the specified properties.
2862
+ * @function create
2863
+ * @memberof maps.fleetengine.v1.TripAttribute
2864
+ * @static
2865
+ * @param {maps.fleetengine.v1.ITripAttribute=} [properties] Properties to set
2866
+ * @returns {maps.fleetengine.v1.TripAttribute} TripAttribute instance
2867
+ */
2868
+ TripAttribute.create = function create(properties) {
2869
+ return new TripAttribute(properties);
2870
+ };
2871
+
2872
+ /**
2873
+ * Encodes the specified TripAttribute message. Does not implicitly {@link maps.fleetengine.v1.TripAttribute.verify|verify} messages.
2874
+ * @function encode
2875
+ * @memberof maps.fleetengine.v1.TripAttribute
2876
+ * @static
2877
+ * @param {maps.fleetengine.v1.ITripAttribute} message TripAttribute message or plain object to encode
2878
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2879
+ * @returns {$protobuf.Writer} Writer
2880
+ */
2881
+ TripAttribute.encode = function encode(message, writer) {
2882
+ if (!writer)
2883
+ writer = $Writer.create();
2884
+ if (message.key != null && Object.hasOwnProperty.call(message, "key"))
2885
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.key);
2886
+ if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue"))
2887
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.stringValue);
2888
+ if (message.boolValue != null && Object.hasOwnProperty.call(message, "boolValue"))
2889
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.boolValue);
2890
+ if (message.numberValue != null && Object.hasOwnProperty.call(message, "numberValue"))
2891
+ writer.uint32(/* id 4, wireType 1 =*/33).double(message.numberValue);
2892
+ return writer;
2893
+ };
2894
+
2895
+ /**
2896
+ * Encodes the specified TripAttribute message, length delimited. Does not implicitly {@link maps.fleetengine.v1.TripAttribute.verify|verify} messages.
2897
+ * @function encodeDelimited
2898
+ * @memberof maps.fleetengine.v1.TripAttribute
2899
+ * @static
2900
+ * @param {maps.fleetengine.v1.ITripAttribute} message TripAttribute message or plain object to encode
2901
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2902
+ * @returns {$protobuf.Writer} Writer
2903
+ */
2904
+ TripAttribute.encodeDelimited = function encodeDelimited(message, writer) {
2905
+ return this.encode(message, writer).ldelim();
2906
+ };
2907
+
2908
+ /**
2909
+ * Decodes a TripAttribute message from the specified reader or buffer.
2910
+ * @function decode
2911
+ * @memberof maps.fleetengine.v1.TripAttribute
2912
+ * @static
2913
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2914
+ * @param {number} [length] Message length if known beforehand
2915
+ * @returns {maps.fleetengine.v1.TripAttribute} TripAttribute
2916
+ * @throws {Error} If the payload is not a reader or valid buffer
2917
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2918
+ */
2919
+ TripAttribute.decode = function decode(reader, length, error) {
2920
+ if (!(reader instanceof $Reader))
2921
+ reader = $Reader.create(reader);
2922
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.maps.fleetengine.v1.TripAttribute();
2923
+ while (reader.pos < end) {
2924
+ var tag = reader.uint32();
2925
+ if (tag === error)
2926
+ break;
2927
+ switch (tag >>> 3) {
2928
+ case 1: {
2929
+ message.key = reader.string();
2930
+ break;
2931
+ }
2932
+ case 2: {
2933
+ message.stringValue = reader.string();
2934
+ break;
2935
+ }
2936
+ case 3: {
2937
+ message.boolValue = reader.bool();
2938
+ break;
2939
+ }
2940
+ case 4: {
2941
+ message.numberValue = reader.double();
2942
+ break;
2943
+ }
2944
+ default:
2945
+ reader.skipType(tag & 7);
2946
+ break;
2947
+ }
2948
+ }
2949
+ return message;
2950
+ };
2951
+
2952
+ /**
2953
+ * Decodes a TripAttribute message from the specified reader or buffer, length delimited.
2954
+ * @function decodeDelimited
2955
+ * @memberof maps.fleetengine.v1.TripAttribute
2956
+ * @static
2957
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2958
+ * @returns {maps.fleetengine.v1.TripAttribute} TripAttribute
2959
+ * @throws {Error} If the payload is not a reader or valid buffer
2960
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2961
+ */
2962
+ TripAttribute.decodeDelimited = function decodeDelimited(reader) {
2963
+ if (!(reader instanceof $Reader))
2964
+ reader = new $Reader(reader);
2965
+ return this.decode(reader, reader.uint32());
2966
+ };
2967
+
2968
+ /**
2969
+ * Verifies a TripAttribute message.
2970
+ * @function verify
2971
+ * @memberof maps.fleetengine.v1.TripAttribute
2972
+ * @static
2973
+ * @param {Object.<string,*>} message Plain object to verify
2974
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
2975
+ */
2976
+ TripAttribute.verify = function verify(message) {
2977
+ if (typeof message !== "object" || message === null)
2978
+ return "object expected";
2979
+ var properties = {};
2980
+ if (message.key != null && message.hasOwnProperty("key"))
2981
+ if (!$util.isString(message.key))
2982
+ return "key: string expected";
2983
+ if (message.stringValue != null && message.hasOwnProperty("stringValue")) {
2984
+ properties.tripAttributeValue = 1;
2985
+ if (!$util.isString(message.stringValue))
2986
+ return "stringValue: string expected";
2987
+ }
2988
+ if (message.boolValue != null && message.hasOwnProperty("boolValue")) {
2989
+ if (properties.tripAttributeValue === 1)
2990
+ return "tripAttributeValue: multiple values";
2991
+ properties.tripAttributeValue = 1;
2992
+ if (typeof message.boolValue !== "boolean")
2993
+ return "boolValue: boolean expected";
2994
+ }
2995
+ if (message.numberValue != null && message.hasOwnProperty("numberValue")) {
2996
+ if (properties.tripAttributeValue === 1)
2997
+ return "tripAttributeValue: multiple values";
2998
+ properties.tripAttributeValue = 1;
2999
+ if (typeof message.numberValue !== "number")
3000
+ return "numberValue: number expected";
3001
+ }
3002
+ return null;
3003
+ };
3004
+
3005
+ /**
3006
+ * Creates a TripAttribute message from a plain object. Also converts values to their respective internal types.
3007
+ * @function fromObject
3008
+ * @memberof maps.fleetengine.v1.TripAttribute
3009
+ * @static
3010
+ * @param {Object.<string,*>} object Plain object
3011
+ * @returns {maps.fleetengine.v1.TripAttribute} TripAttribute
3012
+ */
3013
+ TripAttribute.fromObject = function fromObject(object) {
3014
+ if (object instanceof $root.maps.fleetengine.v1.TripAttribute)
3015
+ return object;
3016
+ var message = new $root.maps.fleetengine.v1.TripAttribute();
3017
+ if (object.key != null)
3018
+ message.key = String(object.key);
3019
+ if (object.stringValue != null)
3020
+ message.stringValue = String(object.stringValue);
3021
+ if (object.boolValue != null)
3022
+ message.boolValue = Boolean(object.boolValue);
3023
+ if (object.numberValue != null)
3024
+ message.numberValue = Number(object.numberValue);
3025
+ return message;
3026
+ };
3027
+
3028
+ /**
3029
+ * Creates a plain object from a TripAttribute message. Also converts values to other types if specified.
3030
+ * @function toObject
3031
+ * @memberof maps.fleetengine.v1.TripAttribute
3032
+ * @static
3033
+ * @param {maps.fleetengine.v1.TripAttribute} message TripAttribute
3034
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
3035
+ * @returns {Object.<string,*>} Plain object
3036
+ */
3037
+ TripAttribute.toObject = function toObject(message, options) {
3038
+ if (!options)
3039
+ options = {};
3040
+ var object = {};
3041
+ if (options.defaults)
3042
+ object.key = "";
3043
+ if (message.key != null && message.hasOwnProperty("key"))
3044
+ object.key = message.key;
3045
+ if (message.stringValue != null && message.hasOwnProperty("stringValue")) {
3046
+ object.stringValue = message.stringValue;
3047
+ if (options.oneofs)
3048
+ object.tripAttributeValue = "stringValue";
3049
+ }
3050
+ if (message.boolValue != null && message.hasOwnProperty("boolValue")) {
3051
+ object.boolValue = message.boolValue;
3052
+ if (options.oneofs)
3053
+ object.tripAttributeValue = "boolValue";
3054
+ }
3055
+ if (message.numberValue != null && message.hasOwnProperty("numberValue")) {
3056
+ object.numberValue = options.json && !isFinite(message.numberValue) ? String(message.numberValue) : message.numberValue;
3057
+ if (options.oneofs)
3058
+ object.tripAttributeValue = "numberValue";
3059
+ }
3060
+ return object;
3061
+ };
3062
+
3063
+ /**
3064
+ * Converts this TripAttribute to JSON.
3065
+ * @function toJSON
3066
+ * @memberof maps.fleetengine.v1.TripAttribute
3067
+ * @instance
3068
+ * @returns {Object.<string,*>} JSON object
3069
+ */
3070
+ TripAttribute.prototype.toJSON = function toJSON() {
3071
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3072
+ };
3073
+
3074
+ /**
3075
+ * Gets the default type url for TripAttribute
3076
+ * @function getTypeUrl
3077
+ * @memberof maps.fleetengine.v1.TripAttribute
3078
+ * @static
3079
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3080
+ * @returns {string} The default type url
3081
+ */
3082
+ TripAttribute.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3083
+ if (typeUrlPrefix === undefined) {
3084
+ typeUrlPrefix = "type.googleapis.com";
3085
+ }
3086
+ return typeUrlPrefix + "/maps.fleetengine.v1.TripAttribute";
3087
+ };
3088
+
3089
+ return TripAttribute;
3090
+ })();
3091
+
2675
3092
  v1.SpeedReadingInterval = (function() {
2676
3093
 
2677
3094
  /**
@@ -6286,6 +6703,7 @@
6286
6703
  * @property {maps.fleetengine.v1.IVehicleLocation|null} [lastLocation] Trip lastLocation
6287
6704
  * @property {boolean|null} [lastLocationSnappable] Trip lastLocationSnappable
6288
6705
  * @property {maps.fleetengine.v1.TripView|null} [view] Trip view
6706
+ * @property {Array.<maps.fleetengine.v1.ITripAttribute>|null} [attributes] Trip attributes
6289
6707
  */
6290
6708
 
6291
6709
  /**
@@ -6303,6 +6721,7 @@
6303
6721
  this.remainingWaypoints = [];
6304
6722
  this.vehicleWaypoints = [];
6305
6723
  this.route = [];
6724
+ this.attributes = [];
6306
6725
  if (properties)
6307
6726
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
6308
6727
  if (properties[keys[i]] != null)
@@ -6573,6 +6992,14 @@
6573
6992
  */
6574
6993
  Trip.prototype.view = 0;
6575
6994
 
6995
+ /**
6996
+ * Trip attributes.
6997
+ * @member {Array.<maps.fleetengine.v1.ITripAttribute>} attributes
6998
+ * @memberof maps.fleetengine.v1.Trip
6999
+ * @instance
7000
+ */
7001
+ Trip.prototype.attributes = $util.emptyArray;
7002
+
6576
7003
  /**
6577
7004
  * Creates a new Trip instance using the specified properties.
6578
7005
  * @function create
@@ -6669,6 +7096,9 @@
6669
7096
  if (message.actualIntermediateDestinations != null && message.actualIntermediateDestinations.length)
6670
7097
  for (var i = 0; i < message.actualIntermediateDestinations.length; ++i)
6671
7098
  $root.maps.fleetengine.v1.StopLocation.encode(message.actualIntermediateDestinations[i], writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim();
7099
+ if (message.attributes != null && message.attributes.length)
7100
+ for (var i = 0; i < message.attributes.length; ++i)
7101
+ $root.maps.fleetengine.v1.TripAttribute.encode(message.attributes[i], writer.uint32(/* id 35, wireType 2 =*/282).fork()).ldelim();
6672
7102
  return writer;
6673
7103
  };
6674
7104
 
@@ -6849,6 +7279,12 @@
6849
7279
  message.view = reader.int32();
6850
7280
  break;
6851
7281
  }
7282
+ case 35: {
7283
+ if (!(message.attributes && message.attributes.length))
7284
+ message.attributes = [];
7285
+ message.attributes.push($root.maps.fleetengine.v1.TripAttribute.decode(reader, reader.uint32()));
7286
+ break;
7287
+ }
6852
7288
  default:
6853
7289
  reader.skipType(tag & 7);
6854
7290
  break;
@@ -7079,6 +7515,15 @@
7079
7515
  case 2:
7080
7516
  break;
7081
7517
  }
7518
+ if (message.attributes != null && message.hasOwnProperty("attributes")) {
7519
+ if (!Array.isArray(message.attributes))
7520
+ return "attributes: array expected";
7521
+ for (var i = 0; i < message.attributes.length; ++i) {
7522
+ var error = $root.maps.fleetengine.v1.TripAttribute.verify(message.attributes[i]);
7523
+ if (error)
7524
+ return "attributes." + error;
7525
+ }
7526
+ }
7082
7527
  return null;
7083
7528
  };
7084
7529
 
@@ -7340,6 +7785,16 @@
7340
7785
  message.view = 2;
7341
7786
  break;
7342
7787
  }
7788
+ if (object.attributes) {
7789
+ if (!Array.isArray(object.attributes))
7790
+ throw TypeError(".maps.fleetengine.v1.Trip.attributes: array expected");
7791
+ message.attributes = [];
7792
+ for (var i = 0; i < object.attributes.length; ++i) {
7793
+ if (typeof object.attributes[i] !== "object")
7794
+ throw TypeError(".maps.fleetengine.v1.Trip.attributes: object expected");
7795
+ message.attributes[i] = $root.maps.fleetengine.v1.TripAttribute.fromObject(object.attributes[i]);
7796
+ }
7797
+ }
7343
7798
  return message;
7344
7799
  };
7345
7800
 
@@ -7363,6 +7818,7 @@
7363
7818
  object.vehicleWaypoints = [];
7364
7819
  object.actualIntermediateDestinationArrivalPoints = [];
7365
7820
  object.actualIntermediateDestinations = [];
7821
+ object.attributes = [];
7366
7822
  }
7367
7823
  if (options.defaults) {
7368
7824
  object.name = "";
@@ -7477,6 +7933,11 @@
7477
7933
  for (var j = 0; j < message.actualIntermediateDestinations.length; ++j)
7478
7934
  object.actualIntermediateDestinations[j] = $root.maps.fleetengine.v1.StopLocation.toObject(message.actualIntermediateDestinations[j], options);
7479
7935
  }
7936
+ if (message.attributes && message.attributes.length) {
7937
+ object.attributes = [];
7938
+ for (var j = 0; j < message.attributes.length; ++j)
7939
+ object.attributes[j] = $root.maps.fleetengine.v1.TripAttribute.toObject(message.attributes[j], options);
7940
+ }
7480
7941
  return object;
7481
7942
  };
7482
7943
 
@@ -315,6 +315,22 @@
315
315
  "type": "google.protobuf.DoubleValue",
316
316
  "id": 25
317
317
  },
318
+ "flpLocation": {
319
+ "type": "google.type.LatLng",
320
+ "id": 29
321
+ },
322
+ "flpUpdateTime": {
323
+ "type": "google.protobuf.Timestamp",
324
+ "id": 30
325
+ },
326
+ "flpLatlngAccuracyMeters": {
327
+ "type": "google.protobuf.DoubleValue",
328
+ "id": 31
329
+ },
330
+ "flpHeadingDegrees": {
331
+ "type": "google.protobuf.Int32Value",
332
+ "id": 32
333
+ },
318
334
  "supplementalLocation": {
319
335
  "type": "google.type.LatLng",
320
336
  "id": 18
@@ -353,6 +369,35 @@
353
369
  "CORE_LOCATION": 200
354
370
  }
355
371
  },
372
+ "TripAttribute": {
373
+ "oneofs": {
374
+ "tripAttributeValue": {
375
+ "oneof": [
376
+ "stringValue",
377
+ "boolValue",
378
+ "numberValue"
379
+ ]
380
+ }
381
+ },
382
+ "fields": {
383
+ "key": {
384
+ "type": "string",
385
+ "id": 1
386
+ },
387
+ "stringValue": {
388
+ "type": "string",
389
+ "id": 2
390
+ },
391
+ "boolValue": {
392
+ "type": "bool",
393
+ "id": 3
394
+ },
395
+ "numberValue": {
396
+ "type": "double",
397
+ "id": 4
398
+ }
399
+ }
400
+ },
356
401
  "SpeedReadingInterval": {
357
402
  "fields": {
358
403
  "startPolylinePointIndex": {
@@ -683,7 +728,10 @@
683
728
  },
684
729
  "remainingWaypointsVersion": {
685
730
  "type": "google.protobuf.Timestamp",
686
- "id": 7
731
+ "id": 7,
732
+ "options": {
733
+ "deprecated": true
734
+ }
687
735
  },
688
736
  "routeFormatType": {
689
737
  "type": "PolylineFormatType",
@@ -1046,6 +1094,11 @@
1046
1094
  "view": {
1047
1095
  "type": "TripView",
1048
1096
  "id": 31
1097
+ },
1098
+ "attributes": {
1099
+ "rule": "repeated",
1100
+ "type": "TripAttribute",
1101
+ "id": 35
1049
1102
  }
1050
1103
  }
1051
1104
  },