@googlemaps/fleetengine 0.8.2 → 0.9.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.
- package/README.md +2 -3
- package/build/protos/protos.d.ts +1021 -20
- package/build/protos/protos.js +1 -37852
- package/build/protos/protos.json +355 -26
- package/build/src/v1/trip_service_client.d.ts +42 -42
- package/build/src/v1/trip_service_client.js +132 -60
- package/build/src/v1/trip_service_client.js.map +1 -1
- package/build/src/v1/vehicle_service_client.d.ts +135 -135
- package/build/src/v1/vehicle_service_client.js +148 -66
- package/build/src/v1/vehicle_service_client.js.map +1 -1
- package/package.json +9 -17
|
@@ -534,141 +534,141 @@ export declare class VehicleServiceClient {
|
|
|
534
534
|
searchVehicles(request: protos.maps.fleetengine.v1.ISearchVehiclesRequest, options: CallOptions, callback: Callback<protos.maps.fleetengine.v1.ISearchVehiclesResponse, protos.maps.fleetengine.v1.ISearchVehiclesRequest | null | undefined, {} | null | undefined>): void;
|
|
535
535
|
searchVehicles(request: protos.maps.fleetengine.v1.ISearchVehiclesRequest, callback: Callback<protos.maps.fleetengine.v1.ISearchVehiclesResponse, protos.maps.fleetengine.v1.ISearchVehiclesRequest | null | undefined, {} | null | undefined>): void;
|
|
536
536
|
/**
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
537
|
+
* Returns a paginated list of vehicles associated with
|
|
538
|
+
* a provider that match the request options.
|
|
539
|
+
*
|
|
540
|
+
* @param {Object} request
|
|
541
|
+
* The request object that will be sent.
|
|
542
|
+
* @param {maps.fleetengine.v1.RequestHeader} request.header
|
|
543
|
+
* The standard Fleet Engine request header.
|
|
544
|
+
* @param {string} request.parent
|
|
545
|
+
* Required. Must be in the format `providers/{provider}`.
|
|
546
|
+
* The provider must be the Project ID (for example, `sample-cloud-project`)
|
|
547
|
+
* of the Google Cloud Project of which the service account making
|
|
548
|
+
* this call is a member.
|
|
549
|
+
* @param {number} request.pageSize
|
|
550
|
+
* The maximum number of vehicles to return.
|
|
551
|
+
* Default value: 100.
|
|
552
|
+
* @param {string} request.pageToken
|
|
553
|
+
* The value of the `next_page_token` provided by a previous call to
|
|
554
|
+
* `ListVehicles` so that you can paginate through groups of vehicles. The
|
|
555
|
+
* value is undefined if the filter criteria of the request is not the same as
|
|
556
|
+
* the filter criteria for the previous call to `ListVehicles`.
|
|
557
|
+
* @param {google.protobuf.Int32Value} request.minimumCapacity
|
|
558
|
+
* Specifies the required minimum capacity of the vehicle. All vehicles
|
|
559
|
+
* returned will have a `maximum_capacity` greater than or equal to this
|
|
560
|
+
* value. If set, must be greater or equal to 0.
|
|
561
|
+
* @param {number[]} request.tripTypes
|
|
562
|
+
* Restricts the response to vehicles that support at least one of the
|
|
563
|
+
* specified trip types.
|
|
564
|
+
* @param {google.protobuf.Duration} request.maximumStaleness
|
|
565
|
+
* Restricts the response to vehicles that have sent location updates to Fleet
|
|
566
|
+
* Engine within the specified duration. Stationary vehicles still
|
|
567
|
+
* transmitting their locations are not considered stale. If present, must be
|
|
568
|
+
* a valid positive duration.
|
|
569
|
+
* @param {number[]} request.vehicleTypeCategories
|
|
570
|
+
* Required. Restricts the response to vehicles with one of the specified type
|
|
571
|
+
* categories. `UNKNOWN` is not allowed.
|
|
572
|
+
* @param {string[]} request.requiredAttributes
|
|
573
|
+
* Callers can form complex logical operations using any combination of the
|
|
574
|
+
* `required_attributes`, `required_one_of_attributes`, and
|
|
575
|
+
* `required_one_of_attribute_sets` fields.
|
|
576
|
+
*
|
|
577
|
+
* `required_attributes` is a list; `required_one_of_attributes` uses a
|
|
578
|
+
* message which allows a list of lists. In combination, the two fields allow
|
|
579
|
+
* the composition of this expression:
|
|
580
|
+
*
|
|
581
|
+
* ```
|
|
582
|
+
* (required_attributes[0] AND required_attributes[1] AND ...)
|
|
583
|
+
* AND
|
|
584
|
+
* (required_one_of_attributes{@link protos.0|0} OR required_one_of_attributes{@link protos.1|0} OR
|
|
585
|
+
* ...)
|
|
586
|
+
* AND
|
|
587
|
+
* (required_one_of_attributes{@link protos.0|1} OR required_one_of_attributes{@link protos.1|1} OR
|
|
588
|
+
* ...)
|
|
589
|
+
* ```
|
|
590
|
+
*
|
|
591
|
+
* Restricts the response to vehicles with the specified attributes. This
|
|
592
|
+
* field is a conjunction/AND operation. A max of 50 required_attributes is
|
|
593
|
+
* allowed. This matches the maximum number of attributes allowed on a
|
|
594
|
+
* vehicle. Each repeated string should be of the format "key:value".
|
|
595
|
+
* @param {string[]} request.requiredOneOfAttributes
|
|
596
|
+
* Restricts the response to vehicles with at least one of the specified
|
|
597
|
+
* attributes in each `VehicleAttributeList`. Within each list, a vehicle must
|
|
598
|
+
* match at least one of the attributes. This field is an inclusive
|
|
599
|
+
* disjunction/OR operation in each `VehicleAttributeList` and a
|
|
600
|
+
* conjunction/AND operation across the collection of `VehicleAttributeList`.
|
|
601
|
+
* Each repeated string should be of the format
|
|
602
|
+
* "key1:value1|key2:value2|key3:value3".
|
|
603
|
+
* @param {string[]} request.requiredOneOfAttributeSets
|
|
604
|
+
* `required_one_of_attribute_sets` provides additional functionality.
|
|
605
|
+
*
|
|
606
|
+
* Similar to `required_one_of_attributes`, `required_one_of_attribute_sets`
|
|
607
|
+
* uses a message which allows a list of lists, allowing expressions such as
|
|
608
|
+
* this one:
|
|
609
|
+
*
|
|
610
|
+
* ```
|
|
611
|
+
* (required_attributes[0] AND required_attributes[1] AND ...)
|
|
612
|
+
* AND
|
|
613
|
+
* (
|
|
614
|
+
* (required_one_of_attribute_sets{@link protos.0|0} AND
|
|
615
|
+
* required_one_of_attribute_sets{@link protos.1|0} AND
|
|
616
|
+
* ...)
|
|
617
|
+
* OR
|
|
618
|
+
* (required_one_of_attribute_sets{@link protos.0|1} AND
|
|
619
|
+
* required_one_of_attribute_sets{@link protos.1|1} AND
|
|
620
|
+
* ...)
|
|
621
|
+
* )
|
|
622
|
+
* ```
|
|
623
|
+
*
|
|
624
|
+
* Restricts the response to vehicles that match all the attributes in a
|
|
625
|
+
* `VehicleAttributeList`. Within each list, a vehicle must match all of the
|
|
626
|
+
* attributes. This field is a conjunction/AND operation in each
|
|
627
|
+
* `VehicleAttributeList` and inclusive disjunction/OR operation across the
|
|
628
|
+
* collection of `VehicleAttributeList`. Each repeated string should be of the
|
|
629
|
+
* format "key1:value1|key2:value2|key3:value3".
|
|
630
|
+
* @param {maps.fleetengine.v1.VehicleState} request.vehicleState
|
|
631
|
+
* Restricts the response to vehicles that have this vehicle state.
|
|
632
|
+
* @param {boolean} request.onTripOnly
|
|
633
|
+
* Only return the vehicles with current trip(s).
|
|
634
|
+
* @param {string} [request.filter]
|
|
635
|
+
* Optional. A filter query to apply when listing vehicles. See
|
|
636
|
+
* http://aip.dev/160 for examples of the filter syntax.
|
|
637
|
+
*
|
|
638
|
+
* This field is designed to replace the `required_attributes`,
|
|
639
|
+
* `required_one_of_attributes`, and `required_one_of_attributes_sets` fields.
|
|
640
|
+
* If a non-empty value is specified here, the following fields must be empty:
|
|
641
|
+
* `required_attributes`, `required_one_of_attributes`, and
|
|
642
|
+
* `required_one_of_attributes_sets`.
|
|
643
|
+
*
|
|
644
|
+
* This filter functions as an AND clause with other constraints,
|
|
645
|
+
* such as `vehicle_state` or `on_trip_only`.
|
|
646
|
+
*
|
|
647
|
+
* Note that the only queries supported are on vehicle attributes (for
|
|
648
|
+
* example, `attributes.<key> = <value>` or `attributes.<key1> = <value1> AND
|
|
649
|
+
* attributes.<key2> = <value2>`). The maximum number of restrictions allowed
|
|
650
|
+
* in a filter query is 50.
|
|
651
|
+
*
|
|
652
|
+
* Also, all attributes are stored as strings, so the only supported
|
|
653
|
+
* comparisons against attributes are string comparisons. In order to compare
|
|
654
|
+
* against number or boolean values, the values must be explicitly quoted to
|
|
655
|
+
* be treated as strings (for example, `attributes.<key> = "10"` or
|
|
656
|
+
* `attributes.<key> = "true"`).
|
|
657
|
+
* @param {google.geo.type.Viewport} [request.viewport]
|
|
658
|
+
* Optional. A filter that limits the vehicles returned to those whose last
|
|
659
|
+
* known location was in the rectangular area defined by the viewport.
|
|
660
|
+
* @param {object} [options]
|
|
661
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
662
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
663
|
+
* The first element of the array is Array of {@link protos.maps.fleetengine.v1.Vehicle|Vehicle}.
|
|
664
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
665
|
+
* times as needed and will merge results from all the pages into this array.
|
|
666
|
+
* Note that it can affect your quota.
|
|
667
|
+
* We recommend using `listVehiclesAsync()`
|
|
668
|
+
* method described below for async iteration which you can stop as needed.
|
|
669
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
670
|
+
* for more details and examples.
|
|
671
|
+
*/
|
|
672
672
|
listVehicles(request?: protos.maps.fleetengine.v1.IListVehiclesRequest, options?: CallOptions): Promise<[
|
|
673
673
|
protos.maps.fleetengine.v1.IVehicle[],
|
|
674
674
|
protos.maps.fleetengine.v1.IListVehiclesRequest | null,
|