google-maps-fleet_engine-delivery-v1 0.3.0 → 0.5.0
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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/maps/fleet_engine/delivery/v1/delivery_service/client.rb +214 -0
- data/lib/google/maps/fleet_engine/delivery/v1/delivery_service/rest/client.rb +198 -0
- data/lib/google/maps/fleet_engine/delivery/v1/delivery_service/rest/service_stub.rb +122 -0
- data/lib/google/maps/fleet_engine/delivery/v1/version.rb +1 -1
- data/lib/google/maps/fleetengine/delivery/v1/delivery_api_pb.rb +4 -1
- data/lib/google/maps/fleetengine/delivery/v1/delivery_api_services_pb.rb +10 -0
- data/lib/google/maps/fleetengine/delivery/v1/delivery_vehicles_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +14 -0
- data/proto_docs/google/api/routing.rb +1 -1
- data/proto_docs/google/maps/fleetengine/delivery/v1/common.rb +12 -0
- data/proto_docs/google/maps/fleetengine/delivery/v1/delivery_api.rb +35 -0
- data/proto_docs/google/maps/fleetengine/delivery/v1/delivery_vehicles.rb +7 -0
- data/proto_docs/google/maps/fleetengine/delivery/v1/tasks.rb +10 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- metadata +7 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1338dbba6dcfc97b464566c85c08fe9353958bfbb1d0461ddd7161d069ed97e
|
4
|
+
data.tar.gz: d54185929221bba46e02eb52df37ef5089dcfe33aa70f7bdb7529909aef52ef0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba1722cf7eb3f7acdcce20e6ca6dc2006595ade654d5d32de3906817fc51361277239b3bf7e2073623c68451eae4e124e4ae94739ba56ce1d521e6943d904876
|
7
|
+
data.tar.gz: 1588bd7c06e99638598f22988234dd00b679ca251ed517efa85c2a5ff9306c01d760de552e9f5851310c3386328ab8ba8ed5061ec86ed3f06bf72cfc02677cd2
|
data/README.md
CHANGED
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
86
86
|
|
87
87
|
## Supported Ruby Versions
|
88
88
|
|
89
|
-
This library is supported on Ruby
|
89
|
+
This library is supported on Ruby 3.0+.
|
90
90
|
|
91
91
|
Google provides official support for Ruby versions that are actively supported
|
92
92
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -434,6 +434,100 @@ module Google
|
|
434
434
|
raise ::Google::Cloud::Error.from_error(e)
|
435
435
|
end
|
436
436
|
|
437
|
+
##
|
438
|
+
# Deletes a DeliveryVehicle from the Fleet Engine.
|
439
|
+
#
|
440
|
+
# Returns FAILED_PRECONDITION if the DeliveryVehicle has OPEN Tasks
|
441
|
+
# assigned to it.
|
442
|
+
#
|
443
|
+
# @overload delete_delivery_vehicle(request, options = nil)
|
444
|
+
# Pass arguments to `delete_delivery_vehicle` via a request object, either of type
|
445
|
+
# {::Google::Maps::FleetEngine::Delivery::V1::DeleteDeliveryVehicleRequest} or an equivalent Hash.
|
446
|
+
#
|
447
|
+
# @param request [::Google::Maps::FleetEngine::Delivery::V1::DeleteDeliveryVehicleRequest, ::Hash]
|
448
|
+
# A request object representing the call parameters. Required. To specify no
|
449
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
450
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
451
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
452
|
+
#
|
453
|
+
# @overload delete_delivery_vehicle(header: nil, name: nil)
|
454
|
+
# Pass arguments to `delete_delivery_vehicle` via keyword arguments. Note that at
|
455
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
456
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
457
|
+
#
|
458
|
+
# @param header [::Google::Maps::FleetEngine::Delivery::V1::DeliveryRequestHeader, ::Hash]
|
459
|
+
# Optional. The standard Delivery API request header.
|
460
|
+
# @param name [::String]
|
461
|
+
# Required. Must be in the format
|
462
|
+
# `providers/{provider}/deliveryVehicles/{delivery_vehicle}`.
|
463
|
+
# The `provider` must be the Google Cloud Project ID. For example,
|
464
|
+
# `sample-cloud-project`.
|
465
|
+
#
|
466
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
467
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
468
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
469
|
+
#
|
470
|
+
# @return [::Google::Protobuf::Empty]
|
471
|
+
#
|
472
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
473
|
+
#
|
474
|
+
# @example Basic example
|
475
|
+
# require "google/maps/fleet_engine/delivery/v1"
|
476
|
+
#
|
477
|
+
# # Create a client object. The client can be reused for multiple calls.
|
478
|
+
# client = Google::Maps::FleetEngine::Delivery::V1::DeliveryService::Client.new
|
479
|
+
#
|
480
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
481
|
+
# request = Google::Maps::FleetEngine::Delivery::V1::DeleteDeliveryVehicleRequest.new
|
482
|
+
#
|
483
|
+
# # Call the delete_delivery_vehicle method.
|
484
|
+
# result = client.delete_delivery_vehicle request
|
485
|
+
#
|
486
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
487
|
+
# p result
|
488
|
+
#
|
489
|
+
def delete_delivery_vehicle request, options = nil
|
490
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
491
|
+
|
492
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Maps::FleetEngine::Delivery::V1::DeleteDeliveryVehicleRequest
|
493
|
+
|
494
|
+
# Converts hash and nil to an options object
|
495
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
496
|
+
|
497
|
+
# Customize the options with defaults
|
498
|
+
metadata = @config.rpcs.delete_delivery_vehicle.metadata.to_h
|
499
|
+
|
500
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
501
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
502
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
503
|
+
gapic_version: ::Google::Maps::FleetEngine::Delivery::V1::VERSION
|
504
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
505
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
506
|
+
|
507
|
+
header_params = {}
|
508
|
+
if request.name &&
|
509
|
+
%r{^providers/[^/]+/?$}.match?(request.name)
|
510
|
+
header_params["provider_id"] = request.name
|
511
|
+
end
|
512
|
+
|
513
|
+
request_params_header = URI.encode_www_form header_params
|
514
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
515
|
+
|
516
|
+
options.apply_defaults timeout: @config.rpcs.delete_delivery_vehicle.timeout,
|
517
|
+
metadata: metadata,
|
518
|
+
retry_policy: @config.rpcs.delete_delivery_vehicle.retry_policy
|
519
|
+
|
520
|
+
options.apply_defaults timeout: @config.timeout,
|
521
|
+
metadata: @config.metadata,
|
522
|
+
retry_policy: @config.retry_policy
|
523
|
+
|
524
|
+
@delivery_service_stub.call_rpc :delete_delivery_vehicle, request, options: options do |response, operation|
|
525
|
+
yield response, operation if block_given?
|
526
|
+
end
|
527
|
+
rescue ::GRPC::BadStatus => e
|
528
|
+
raise ::Google::Cloud::Error.from_error(e)
|
529
|
+
end
|
530
|
+
|
437
531
|
##
|
438
532
|
# Writes updated `DeliveryVehicle` data to Fleet Engine, and assigns
|
439
533
|
# `Tasks` to the `DeliveryVehicle`. You cannot update the name of the
|
@@ -679,6 +773,12 @@ module Google
|
|
679
773
|
# * `planned_location` (optional for `UNAVAILABLE` tasks)
|
680
774
|
# * `task_duration`
|
681
775
|
#
|
776
|
+
# The following fields can be optionally set:
|
777
|
+
#
|
778
|
+
# * `target_time_window`
|
779
|
+
# * `task_tracking_view_config`
|
780
|
+
# * `attributes`
|
781
|
+
#
|
682
782
|
# Note: The Task's `name` field is ignored. All other Task fields must not be
|
683
783
|
# set; otherwise, an error is returned.
|
684
784
|
#
|
@@ -837,6 +937,99 @@ module Google
|
|
837
937
|
raise ::Google::Cloud::Error.from_error(e)
|
838
938
|
end
|
839
939
|
|
940
|
+
##
|
941
|
+
# Deletes a single Task.
|
942
|
+
#
|
943
|
+
# Returns FAILED_PRECONDITION if the Task is OPEN and assigned to a
|
944
|
+
# DeliveryVehicle.
|
945
|
+
#
|
946
|
+
# @overload delete_task(request, options = nil)
|
947
|
+
# Pass arguments to `delete_task` via a request object, either of type
|
948
|
+
# {::Google::Maps::FleetEngine::Delivery::V1::DeleteTaskRequest} or an equivalent Hash.
|
949
|
+
#
|
950
|
+
# @param request [::Google::Maps::FleetEngine::Delivery::V1::DeleteTaskRequest, ::Hash]
|
951
|
+
# A request object representing the call parameters. Required. To specify no
|
952
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
953
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
954
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
955
|
+
#
|
956
|
+
# @overload delete_task(header: nil, name: nil)
|
957
|
+
# Pass arguments to `delete_task` via keyword arguments. Note that at
|
958
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
959
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
960
|
+
#
|
961
|
+
# @param header [::Google::Maps::FleetEngine::Delivery::V1::DeliveryRequestHeader, ::Hash]
|
962
|
+
# Optional. The standard Delivery API request header.
|
963
|
+
# @param name [::String]
|
964
|
+
# Required. Must be in the format `providers/{provider}/tasks/{task}`. The
|
965
|
+
# `provider` must be the Google Cloud Project ID. For example,
|
966
|
+
# `sample-cloud-project`.
|
967
|
+
#
|
968
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
969
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
970
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
971
|
+
#
|
972
|
+
# @return [::Google::Protobuf::Empty]
|
973
|
+
#
|
974
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
975
|
+
#
|
976
|
+
# @example Basic example
|
977
|
+
# require "google/maps/fleet_engine/delivery/v1"
|
978
|
+
#
|
979
|
+
# # Create a client object. The client can be reused for multiple calls.
|
980
|
+
# client = Google::Maps::FleetEngine::Delivery::V1::DeliveryService::Client.new
|
981
|
+
#
|
982
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
983
|
+
# request = Google::Maps::FleetEngine::Delivery::V1::DeleteTaskRequest.new
|
984
|
+
#
|
985
|
+
# # Call the delete_task method.
|
986
|
+
# result = client.delete_task request
|
987
|
+
#
|
988
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
989
|
+
# p result
|
990
|
+
#
|
991
|
+
def delete_task request, options = nil
|
992
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
993
|
+
|
994
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Maps::FleetEngine::Delivery::V1::DeleteTaskRequest
|
995
|
+
|
996
|
+
# Converts hash and nil to an options object
|
997
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
998
|
+
|
999
|
+
# Customize the options with defaults
|
1000
|
+
metadata = @config.rpcs.delete_task.metadata.to_h
|
1001
|
+
|
1002
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1003
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1004
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1005
|
+
gapic_version: ::Google::Maps::FleetEngine::Delivery::V1::VERSION
|
1006
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1007
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1008
|
+
|
1009
|
+
header_params = {}
|
1010
|
+
if request.name &&
|
1011
|
+
%r{^providers/[^/]+/?$}.match?(request.name)
|
1012
|
+
header_params["provider_id"] = request.name
|
1013
|
+
end
|
1014
|
+
|
1015
|
+
request_params_header = URI.encode_www_form header_params
|
1016
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1017
|
+
|
1018
|
+
options.apply_defaults timeout: @config.rpcs.delete_task.timeout,
|
1019
|
+
metadata: metadata,
|
1020
|
+
retry_policy: @config.rpcs.delete_task.retry_policy
|
1021
|
+
|
1022
|
+
options.apply_defaults timeout: @config.timeout,
|
1023
|
+
metadata: @config.metadata,
|
1024
|
+
retry_policy: @config.retry_policy
|
1025
|
+
|
1026
|
+
@delivery_service_stub.call_rpc :delete_task, request, options: options do |response, operation|
|
1027
|
+
yield response, operation if block_given?
|
1028
|
+
end
|
1029
|
+
rescue ::GRPC::BadStatus => e
|
1030
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1031
|
+
end
|
1032
|
+
|
840
1033
|
##
|
841
1034
|
# Updates `Task` data.
|
842
1035
|
#
|
@@ -1322,6 +1515,13 @@ module Google
|
|
1322
1515
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1323
1516
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1324
1517
|
# * (`nil`) indicating no credentials
|
1518
|
+
#
|
1519
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
1520
|
+
# external source for authentication to Google Cloud, you must validate it before
|
1521
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
1522
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
1523
|
+
# For more information, refer to [Validate credential configurations from external
|
1524
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
1325
1525
|
# @return [::Object]
|
1326
1526
|
# @!attribute [rw] scope
|
1327
1527
|
# The OAuth scopes
|
@@ -1448,6 +1648,11 @@ module Google
|
|
1448
1648
|
#
|
1449
1649
|
attr_reader :get_delivery_vehicle
|
1450
1650
|
##
|
1651
|
+
# RPC-specific configuration for `delete_delivery_vehicle`
|
1652
|
+
# @return [::Gapic::Config::Method]
|
1653
|
+
#
|
1654
|
+
attr_reader :delete_delivery_vehicle
|
1655
|
+
##
|
1451
1656
|
# RPC-specific configuration for `update_delivery_vehicle`
|
1452
1657
|
# @return [::Gapic::Config::Method]
|
1453
1658
|
#
|
@@ -1468,6 +1673,11 @@ module Google
|
|
1468
1673
|
#
|
1469
1674
|
attr_reader :get_task
|
1470
1675
|
##
|
1676
|
+
# RPC-specific configuration for `delete_task`
|
1677
|
+
# @return [::Gapic::Config::Method]
|
1678
|
+
#
|
1679
|
+
attr_reader :delete_task
|
1680
|
+
##
|
1471
1681
|
# RPC-specific configuration for `update_task`
|
1472
1682
|
# @return [::Gapic::Config::Method]
|
1473
1683
|
#
|
@@ -1494,6 +1704,8 @@ module Google
|
|
1494
1704
|
@create_delivery_vehicle = ::Gapic::Config::Method.new create_delivery_vehicle_config
|
1495
1705
|
get_delivery_vehicle_config = parent_rpcs.get_delivery_vehicle if parent_rpcs.respond_to? :get_delivery_vehicle
|
1496
1706
|
@get_delivery_vehicle = ::Gapic::Config::Method.new get_delivery_vehicle_config
|
1707
|
+
delete_delivery_vehicle_config = parent_rpcs.delete_delivery_vehicle if parent_rpcs.respond_to? :delete_delivery_vehicle
|
1708
|
+
@delete_delivery_vehicle = ::Gapic::Config::Method.new delete_delivery_vehicle_config
|
1497
1709
|
update_delivery_vehicle_config = parent_rpcs.update_delivery_vehicle if parent_rpcs.respond_to? :update_delivery_vehicle
|
1498
1710
|
@update_delivery_vehicle = ::Gapic::Config::Method.new update_delivery_vehicle_config
|
1499
1711
|
batch_create_tasks_config = parent_rpcs.batch_create_tasks if parent_rpcs.respond_to? :batch_create_tasks
|
@@ -1502,6 +1714,8 @@ module Google
|
|
1502
1714
|
@create_task = ::Gapic::Config::Method.new create_task_config
|
1503
1715
|
get_task_config = parent_rpcs.get_task if parent_rpcs.respond_to? :get_task
|
1504
1716
|
@get_task = ::Gapic::Config::Method.new get_task_config
|
1717
|
+
delete_task_config = parent_rpcs.delete_task if parent_rpcs.respond_to? :delete_task
|
1718
|
+
@delete_task = ::Gapic::Config::Method.new delete_task_config
|
1505
1719
|
update_task_config = parent_rpcs.update_task if parent_rpcs.respond_to? :update_task
|
1506
1720
|
@update_task = ::Gapic::Config::Method.new update_task_config
|
1507
1721
|
list_tasks_config = parent_rpcs.list_tasks if parent_rpcs.respond_to? :list_tasks
|
@@ -411,6 +411,92 @@ module Google
|
|
411
411
|
raise ::Google::Cloud::Error.from_error(e)
|
412
412
|
end
|
413
413
|
|
414
|
+
##
|
415
|
+
# Deletes a DeliveryVehicle from the Fleet Engine.
|
416
|
+
#
|
417
|
+
# Returns FAILED_PRECONDITION if the DeliveryVehicle has OPEN Tasks
|
418
|
+
# assigned to it.
|
419
|
+
#
|
420
|
+
# @overload delete_delivery_vehicle(request, options = nil)
|
421
|
+
# Pass arguments to `delete_delivery_vehicle` via a request object, either of type
|
422
|
+
# {::Google::Maps::FleetEngine::Delivery::V1::DeleteDeliveryVehicleRequest} or an equivalent Hash.
|
423
|
+
#
|
424
|
+
# @param request [::Google::Maps::FleetEngine::Delivery::V1::DeleteDeliveryVehicleRequest, ::Hash]
|
425
|
+
# A request object representing the call parameters. Required. To specify no
|
426
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
427
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
428
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
429
|
+
#
|
430
|
+
# @overload delete_delivery_vehicle(header: nil, name: nil)
|
431
|
+
# Pass arguments to `delete_delivery_vehicle` via keyword arguments. Note that at
|
432
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
433
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
434
|
+
#
|
435
|
+
# @param header [::Google::Maps::FleetEngine::Delivery::V1::DeliveryRequestHeader, ::Hash]
|
436
|
+
# Optional. The standard Delivery API request header.
|
437
|
+
# @param name [::String]
|
438
|
+
# Required. Must be in the format
|
439
|
+
# `providers/{provider}/deliveryVehicles/{delivery_vehicle}`.
|
440
|
+
# The `provider` must be the Google Cloud Project ID. For example,
|
441
|
+
# `sample-cloud-project`.
|
442
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
443
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
444
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
445
|
+
#
|
446
|
+
# @return [::Google::Protobuf::Empty]
|
447
|
+
#
|
448
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
449
|
+
#
|
450
|
+
# @example Basic example
|
451
|
+
# require "google/maps/fleet_engine/delivery/v1"
|
452
|
+
#
|
453
|
+
# # Create a client object. The client can be reused for multiple calls.
|
454
|
+
# client = Google::Maps::FleetEngine::Delivery::V1::DeliveryService::Rest::Client.new
|
455
|
+
#
|
456
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
457
|
+
# request = Google::Maps::FleetEngine::Delivery::V1::DeleteDeliveryVehicleRequest.new
|
458
|
+
#
|
459
|
+
# # Call the delete_delivery_vehicle method.
|
460
|
+
# result = client.delete_delivery_vehicle request
|
461
|
+
#
|
462
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
463
|
+
# p result
|
464
|
+
#
|
465
|
+
def delete_delivery_vehicle request, options = nil
|
466
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
467
|
+
|
468
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Maps::FleetEngine::Delivery::V1::DeleteDeliveryVehicleRequest
|
469
|
+
|
470
|
+
# Converts hash and nil to an options object
|
471
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
472
|
+
|
473
|
+
# Customize the options with defaults
|
474
|
+
call_metadata = @config.rpcs.delete_delivery_vehicle.metadata.to_h
|
475
|
+
|
476
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
477
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
478
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
479
|
+
gapic_version: ::Google::Maps::FleetEngine::Delivery::V1::VERSION,
|
480
|
+
transports_version_send: [:rest]
|
481
|
+
|
482
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
483
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
484
|
+
|
485
|
+
options.apply_defaults timeout: @config.rpcs.delete_delivery_vehicle.timeout,
|
486
|
+
metadata: call_metadata,
|
487
|
+
retry_policy: @config.rpcs.delete_delivery_vehicle.retry_policy
|
488
|
+
|
489
|
+
options.apply_defaults timeout: @config.timeout,
|
490
|
+
metadata: @config.metadata,
|
491
|
+
retry_policy: @config.retry_policy
|
492
|
+
|
493
|
+
@delivery_service_stub.delete_delivery_vehicle request, options do |result, operation|
|
494
|
+
yield result, operation if block_given?
|
495
|
+
end
|
496
|
+
rescue ::Gapic::Rest::Error => e
|
497
|
+
raise ::Google::Cloud::Error.from_error(e)
|
498
|
+
end
|
499
|
+
|
414
500
|
##
|
415
501
|
# Writes updated `DeliveryVehicle` data to Fleet Engine, and assigns
|
416
502
|
# `Tasks` to the `DeliveryVehicle`. You cannot update the name of the
|
@@ -640,6 +726,12 @@ module Google
|
|
640
726
|
# * `planned_location` (optional for `UNAVAILABLE` tasks)
|
641
727
|
# * `task_duration`
|
642
728
|
#
|
729
|
+
# The following fields can be optionally set:
|
730
|
+
#
|
731
|
+
# * `target_time_window`
|
732
|
+
# * `task_tracking_view_config`
|
733
|
+
# * `attributes`
|
734
|
+
#
|
643
735
|
# Note: The Task's `name` field is ignored. All other Task fields must not be
|
644
736
|
# set; otherwise, an error is returned.
|
645
737
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -782,6 +874,91 @@ module Google
|
|
782
874
|
raise ::Google::Cloud::Error.from_error(e)
|
783
875
|
end
|
784
876
|
|
877
|
+
##
|
878
|
+
# Deletes a single Task.
|
879
|
+
#
|
880
|
+
# Returns FAILED_PRECONDITION if the Task is OPEN and assigned to a
|
881
|
+
# DeliveryVehicle.
|
882
|
+
#
|
883
|
+
# @overload delete_task(request, options = nil)
|
884
|
+
# Pass arguments to `delete_task` via a request object, either of type
|
885
|
+
# {::Google::Maps::FleetEngine::Delivery::V1::DeleteTaskRequest} or an equivalent Hash.
|
886
|
+
#
|
887
|
+
# @param request [::Google::Maps::FleetEngine::Delivery::V1::DeleteTaskRequest, ::Hash]
|
888
|
+
# A request object representing the call parameters. Required. To specify no
|
889
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
890
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
891
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
892
|
+
#
|
893
|
+
# @overload delete_task(header: nil, name: nil)
|
894
|
+
# Pass arguments to `delete_task` via keyword arguments. Note that at
|
895
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
896
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
897
|
+
#
|
898
|
+
# @param header [::Google::Maps::FleetEngine::Delivery::V1::DeliveryRequestHeader, ::Hash]
|
899
|
+
# Optional. The standard Delivery API request header.
|
900
|
+
# @param name [::String]
|
901
|
+
# Required. Must be in the format `providers/{provider}/tasks/{task}`. The
|
902
|
+
# `provider` must be the Google Cloud Project ID. For example,
|
903
|
+
# `sample-cloud-project`.
|
904
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
905
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
906
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
907
|
+
#
|
908
|
+
# @return [::Google::Protobuf::Empty]
|
909
|
+
#
|
910
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
911
|
+
#
|
912
|
+
# @example Basic example
|
913
|
+
# require "google/maps/fleet_engine/delivery/v1"
|
914
|
+
#
|
915
|
+
# # Create a client object. The client can be reused for multiple calls.
|
916
|
+
# client = Google::Maps::FleetEngine::Delivery::V1::DeliveryService::Rest::Client.new
|
917
|
+
#
|
918
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
919
|
+
# request = Google::Maps::FleetEngine::Delivery::V1::DeleteTaskRequest.new
|
920
|
+
#
|
921
|
+
# # Call the delete_task method.
|
922
|
+
# result = client.delete_task request
|
923
|
+
#
|
924
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
925
|
+
# p result
|
926
|
+
#
|
927
|
+
def delete_task request, options = nil
|
928
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
929
|
+
|
930
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Maps::FleetEngine::Delivery::V1::DeleteTaskRequest
|
931
|
+
|
932
|
+
# Converts hash and nil to an options object
|
933
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
934
|
+
|
935
|
+
# Customize the options with defaults
|
936
|
+
call_metadata = @config.rpcs.delete_task.metadata.to_h
|
937
|
+
|
938
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
939
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
940
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
941
|
+
gapic_version: ::Google::Maps::FleetEngine::Delivery::V1::VERSION,
|
942
|
+
transports_version_send: [:rest]
|
943
|
+
|
944
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
945
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
946
|
+
|
947
|
+
options.apply_defaults timeout: @config.rpcs.delete_task.timeout,
|
948
|
+
metadata: call_metadata,
|
949
|
+
retry_policy: @config.rpcs.delete_task.retry_policy
|
950
|
+
|
951
|
+
options.apply_defaults timeout: @config.timeout,
|
952
|
+
metadata: @config.metadata,
|
953
|
+
retry_policy: @config.retry_policy
|
954
|
+
|
955
|
+
@delivery_service_stub.delete_task request, options do |result, operation|
|
956
|
+
yield result, operation if block_given?
|
957
|
+
end
|
958
|
+
rescue ::Gapic::Rest::Error => e
|
959
|
+
raise ::Google::Cloud::Error.from_error(e)
|
960
|
+
end
|
961
|
+
|
785
962
|
##
|
786
963
|
# Updates `Task` data.
|
787
964
|
#
|
@@ -1233,6 +1410,13 @@ module Google
|
|
1233
1410
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1234
1411
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1235
1412
|
# * (`nil`) indicating no credentials
|
1413
|
+
#
|
1414
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
1415
|
+
# external source for authentication to Google Cloud, you must validate it before
|
1416
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
1417
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
1418
|
+
# For more information, refer to [Validate credential configurations from external
|
1419
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
1236
1420
|
# @return [::Object]
|
1237
1421
|
# @!attribute [rw] scope
|
1238
1422
|
# The OAuth scopes
|
@@ -1341,6 +1525,11 @@ module Google
|
|
1341
1525
|
#
|
1342
1526
|
attr_reader :get_delivery_vehicle
|
1343
1527
|
##
|
1528
|
+
# RPC-specific configuration for `delete_delivery_vehicle`
|
1529
|
+
# @return [::Gapic::Config::Method]
|
1530
|
+
#
|
1531
|
+
attr_reader :delete_delivery_vehicle
|
1532
|
+
##
|
1344
1533
|
# RPC-specific configuration for `update_delivery_vehicle`
|
1345
1534
|
# @return [::Gapic::Config::Method]
|
1346
1535
|
#
|
@@ -1361,6 +1550,11 @@ module Google
|
|
1361
1550
|
#
|
1362
1551
|
attr_reader :get_task
|
1363
1552
|
##
|
1553
|
+
# RPC-specific configuration for `delete_task`
|
1554
|
+
# @return [::Gapic::Config::Method]
|
1555
|
+
#
|
1556
|
+
attr_reader :delete_task
|
1557
|
+
##
|
1364
1558
|
# RPC-specific configuration for `update_task`
|
1365
1559
|
# @return [::Gapic::Config::Method]
|
1366
1560
|
#
|
@@ -1387,6 +1581,8 @@ module Google
|
|
1387
1581
|
@create_delivery_vehicle = ::Gapic::Config::Method.new create_delivery_vehicle_config
|
1388
1582
|
get_delivery_vehicle_config = parent_rpcs.get_delivery_vehicle if parent_rpcs.respond_to? :get_delivery_vehicle
|
1389
1583
|
@get_delivery_vehicle = ::Gapic::Config::Method.new get_delivery_vehicle_config
|
1584
|
+
delete_delivery_vehicle_config = parent_rpcs.delete_delivery_vehicle if parent_rpcs.respond_to? :delete_delivery_vehicle
|
1585
|
+
@delete_delivery_vehicle = ::Gapic::Config::Method.new delete_delivery_vehicle_config
|
1390
1586
|
update_delivery_vehicle_config = parent_rpcs.update_delivery_vehicle if parent_rpcs.respond_to? :update_delivery_vehicle
|
1391
1587
|
@update_delivery_vehicle = ::Gapic::Config::Method.new update_delivery_vehicle_config
|
1392
1588
|
batch_create_tasks_config = parent_rpcs.batch_create_tasks if parent_rpcs.respond_to? :batch_create_tasks
|
@@ -1395,6 +1591,8 @@ module Google
|
|
1395
1591
|
@create_task = ::Gapic::Config::Method.new create_task_config
|
1396
1592
|
get_task_config = parent_rpcs.get_task if parent_rpcs.respond_to? :get_task
|
1397
1593
|
@get_task = ::Gapic::Config::Method.new get_task_config
|
1594
|
+
delete_task_config = parent_rpcs.delete_task if parent_rpcs.respond_to? :delete_task
|
1595
|
+
@delete_task = ::Gapic::Config::Method.new delete_task_config
|
1398
1596
|
update_task_config = parent_rpcs.update_task if parent_rpcs.respond_to? :update_task
|
1399
1597
|
@update_task = ::Gapic::Config::Method.new update_task_config
|
1400
1598
|
list_tasks_config = parent_rpcs.list_tasks if parent_rpcs.respond_to? :list_tasks
|
@@ -154,6 +154,46 @@ module Google
|
|
154
154
|
end
|
155
155
|
end
|
156
156
|
|
157
|
+
##
|
158
|
+
# Baseline implementation for the delete_delivery_vehicle REST call
|
159
|
+
#
|
160
|
+
# @param request_pb [::Google::Maps::FleetEngine::Delivery::V1::DeleteDeliveryVehicleRequest]
|
161
|
+
# A request object representing the call parameters. Required.
|
162
|
+
# @param options [::Gapic::CallOptions]
|
163
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
164
|
+
#
|
165
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
166
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
167
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
168
|
+
#
|
169
|
+
# @return [::Google::Protobuf::Empty]
|
170
|
+
# A result object deserialized from the server's reply
|
171
|
+
def delete_delivery_vehicle request_pb, options = nil
|
172
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
173
|
+
|
174
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_delivery_vehicle_request request_pb
|
175
|
+
query_string_params = if query_string_params.any?
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
|
+
else
|
178
|
+
{}
|
179
|
+
end
|
180
|
+
|
181
|
+
response = @client_stub.make_http_request(
|
182
|
+
verb,
|
183
|
+
uri: uri,
|
184
|
+
body: body || "",
|
185
|
+
params: query_string_params,
|
186
|
+
method_name: "delete_delivery_vehicle",
|
187
|
+
options: options
|
188
|
+
)
|
189
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
190
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
191
|
+
catch :response do
|
192
|
+
yield result, operation if block_given?
|
193
|
+
result
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
157
197
|
##
|
158
198
|
# Baseline implementation for the update_delivery_vehicle REST call
|
159
199
|
#
|
@@ -314,6 +354,46 @@ module Google
|
|
314
354
|
end
|
315
355
|
end
|
316
356
|
|
357
|
+
##
|
358
|
+
# Baseline implementation for the delete_task REST call
|
359
|
+
#
|
360
|
+
# @param request_pb [::Google::Maps::FleetEngine::Delivery::V1::DeleteTaskRequest]
|
361
|
+
# A request object representing the call parameters. Required.
|
362
|
+
# @param options [::Gapic::CallOptions]
|
363
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
364
|
+
#
|
365
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
366
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
367
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
368
|
+
#
|
369
|
+
# @return [::Google::Protobuf::Empty]
|
370
|
+
# A result object deserialized from the server's reply
|
371
|
+
def delete_task request_pb, options = nil
|
372
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
373
|
+
|
374
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_task_request request_pb
|
375
|
+
query_string_params = if query_string_params.any?
|
376
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
377
|
+
else
|
378
|
+
{}
|
379
|
+
end
|
380
|
+
|
381
|
+
response = @client_stub.make_http_request(
|
382
|
+
verb,
|
383
|
+
uri: uri,
|
384
|
+
body: body || "",
|
385
|
+
params: query_string_params,
|
386
|
+
method_name: "delete_task",
|
387
|
+
options: options
|
388
|
+
)
|
389
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
390
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
391
|
+
catch :response do
|
392
|
+
yield result, operation if block_given?
|
393
|
+
result
|
394
|
+
end
|
395
|
+
end
|
396
|
+
|
317
397
|
##
|
318
398
|
# Baseline implementation for the update_task REST call
|
319
399
|
#
|
@@ -517,6 +597,27 @@ module Google
|
|
517
597
|
transcoder.transcode request_pb
|
518
598
|
end
|
519
599
|
|
600
|
+
##
|
601
|
+
# @private
|
602
|
+
#
|
603
|
+
# GRPC transcoding helper method for the delete_delivery_vehicle REST call
|
604
|
+
#
|
605
|
+
# @param request_pb [::Google::Maps::FleetEngine::Delivery::V1::DeleteDeliveryVehicleRequest]
|
606
|
+
# A request object representing the call parameters. Required.
|
607
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
608
|
+
# Uri, Body, Query string parameters
|
609
|
+
def self.transcode_delete_delivery_vehicle_request request_pb
|
610
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
611
|
+
.with_bindings(
|
612
|
+
uri_method: :delete,
|
613
|
+
uri_template: "/v1/{name}",
|
614
|
+
matches: [
|
615
|
+
["name", %r{^providers/[^/]+/deliveryVehicles/[^/]+/?$}, false]
|
616
|
+
]
|
617
|
+
)
|
618
|
+
transcoder.transcode request_pb
|
619
|
+
end
|
620
|
+
|
520
621
|
##
|
521
622
|
# @private
|
522
623
|
#
|
@@ -604,6 +705,27 @@ module Google
|
|
604
705
|
transcoder.transcode request_pb
|
605
706
|
end
|
606
707
|
|
708
|
+
##
|
709
|
+
# @private
|
710
|
+
#
|
711
|
+
# GRPC transcoding helper method for the delete_task REST call
|
712
|
+
#
|
713
|
+
# @param request_pb [::Google::Maps::FleetEngine::Delivery::V1::DeleteTaskRequest]
|
714
|
+
# A request object representing the call parameters. Required.
|
715
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
716
|
+
# Uri, Body, Query string parameters
|
717
|
+
def self.transcode_delete_task_request request_pb
|
718
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
719
|
+
.with_bindings(
|
720
|
+
uri_method: :delete,
|
721
|
+
uri_template: "/v1/{name}",
|
722
|
+
matches: [
|
723
|
+
["name", %r{^providers/[^/]+/tasks/[^/]+/?$}, false]
|
724
|
+
]
|
725
|
+
)
|
726
|
+
transcoder.transcode request_pb
|
727
|
+
end
|
728
|
+
|
607
729
|
##
|
608
730
|
# @private
|
609
731
|
#
|
@@ -14,10 +14,11 @@ require 'google/maps/fleetengine/delivery/v1/delivery_vehicles_pb'
|
|
14
14
|
require 'google/maps/fleetengine/delivery/v1/header_pb'
|
15
15
|
require 'google/maps/fleetengine/delivery/v1/task_tracking_info_pb'
|
16
16
|
require 'google/maps/fleetengine/delivery/v1/tasks_pb'
|
17
|
+
require 'google/protobuf/empty_pb'
|
17
18
|
require 'google/protobuf/field_mask_pb'
|
18
19
|
|
19
20
|
|
20
|
-
descriptor_data = "\n6google/maps/fleetengine/delivery/v1/delivery_api.proto\x12\x1cmaps.fleetengine.delivery.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x18google/api/routing.proto\x1a\x1egoogle/geo/type/viewport.proto\x1a;google/maps/fleetengine/delivery/v1/delivery_vehicles.proto\x1a\x30google/maps/fleetengine/delivery/v1/header.proto\x1a<google/maps/fleetengine/delivery/v1/task_tracking_info.proto\x1a/google/maps/fleetengine/delivery/v1/tasks.proto\x1a google/protobuf/field_mask.proto\"\xed\x01\n\x1c\x43reateDeliveryVehicleRequest\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x33.maps.fleetengine.delivery.v1.DeliveryRequestHeaderB\x03\xe0\x41\x01\x12\x13\n\x06parent\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12 \n\x13\x64\x65livery_vehicle_id\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12L\n\x10\x64\x65livery_vehicle\x18\x05 \x01(\x0b\x32-.maps.fleetengine.delivery.v1.DeliveryVehicleB\x03\xe0\x41\x02\"\xa7\x01\n\x19GetDeliveryVehicleRequest\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x33.maps.fleetengine.delivery.v1.DeliveryRequestHeaderB\x03\xe0\x41\x01\x12@\n\x04name\x18\x03 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*fleetengine.googleapis.com/DeliveryVehicle\"\xa3\x02\n\x1bListDeliveryVehiclesRequest\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x33.maps.fleetengine.delivery.v1.DeliveryRequestHeaderB\x03\xe0\x41\x01\x12\x42\n\x06parent\x18\x03 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*fleetengine.googleapis.com/DeliveryVehicle\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x30\n\x08viewport\x18\x07 \x01(\x0b\x32\x19.google.geo.type.ViewportB\x03\xe0\x41\x01\"\x95\x01\n\x1cListDeliveryVehiclesResponse\x12H\n\x11\x64\x65livery_vehicles\x18\x01 \x03(\x0b\x32-.maps.fleetengine.delivery.v1.DeliveryVehicle\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x03\"\xec\x01\n\x1cUpdateDeliveryVehicleRequest\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x33.maps.fleetengine.delivery.v1.DeliveryRequestHeaderB\x03\xe0\x41\x01\x12L\n\x10\x64\x65livery_vehicle\x18\x03 \x01(\x0b\x32-.maps.fleetengine.delivery.v1.DeliveryVehicleB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xe4\x01\n\x17\x42\x61tchCreateTasksRequest\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x33.maps.fleetengine.delivery.v1.DeliveryRequestHeaderB\x03\xe0\x41\x01\x12\x37\n\x06parent\x18\x03 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x66leetengine.googleapis.com/Task\x12\x46\n\x08requests\x18\x04 \x03(\x0b\x32/.maps.fleetengine.delivery.v1.CreateTaskRequestB\x03\xe0\x41\x02\"M\n\x18\x42\x61tchCreateTasksResponse\x12\x31\n\x05tasks\x18\x01 \x03(\x0b\x32\".maps.fleetengine.delivery.v1.Task\"\xbf\x01\n\x11\x43reateTaskRequest\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x33.maps.fleetengine.delivery.v1.DeliveryRequestHeaderB\x03\xe0\x41\x01\x12\x13\n\x06parent\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07task_id\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x35\n\x04task\x18\x04 \x01(\x0b\x32\".maps.fleetengine.delivery.v1.TaskB\x03\xe0\x41\x02\"\x91\x01\n\x0eGetTaskRequest\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x33.maps.fleetengine.delivery.v1.DeliveryRequestHeaderB\x03\xe0\x41\x01\x12\x35\n\x04name\x18\x03 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x66leetengine.googleapis.com/Task\"\xca\x01\n\x11UpdateTaskRequest\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x33.maps.fleetengine.delivery.v1.DeliveryRequestHeaderB\x03\xe0\x41\x01\x12\x35\n\x04task\x18\x03 \x01(\x0b\x32\".maps.fleetengine.delivery.v1.TaskB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xdb\x01\n\x10ListTasksRequest\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x33.maps.fleetengine.delivery.v1.DeliveryRequestHeaderB\x03\xe0\x41\x01\x12\x37\n\x06parent\x18\x03 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x66leetengine.googleapis.com/Task\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x06 \x01(\tB\x03\xe0\x41\x01\"s\n\x11ListTasksResponse\x12\x31\n\x05tasks\x18\x01 \x03(\x0b\x32\".maps.fleetengine.delivery.v1.Task\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x03\"\xa9\x01\n\x1aGetTaskTrackingInfoRequest\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x33.maps.fleetengine.delivery.v1.DeliveryRequestHeaderB\x03\xe0\x41\x01\x12\x41\n\x04name\x18\x03 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+fleetengine.googleapis.com/TaskTrackingInfo2\
|
21
|
+
descriptor_data = "\n6google/maps/fleetengine/delivery/v1/delivery_api.proto\x12\x1cmaps.fleetengine.delivery.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x18google/api/routing.proto\x1a\x1egoogle/geo/type/viewport.proto\x1a;google/maps/fleetengine/delivery/v1/delivery_vehicles.proto\x1a\x30google/maps/fleetengine/delivery/v1/header.proto\x1a<google/maps/fleetengine/delivery/v1/task_tracking_info.proto\x1a/google/maps/fleetengine/delivery/v1/tasks.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xed\x01\n\x1c\x43reateDeliveryVehicleRequest\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x33.maps.fleetengine.delivery.v1.DeliveryRequestHeaderB\x03\xe0\x41\x01\x12\x13\n\x06parent\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12 \n\x13\x64\x65livery_vehicle_id\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12L\n\x10\x64\x65livery_vehicle\x18\x05 \x01(\x0b\x32-.maps.fleetengine.delivery.v1.DeliveryVehicleB\x03\xe0\x41\x02\"\xa7\x01\n\x19GetDeliveryVehicleRequest\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x33.maps.fleetengine.delivery.v1.DeliveryRequestHeaderB\x03\xe0\x41\x01\x12@\n\x04name\x18\x03 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*fleetengine.googleapis.com/DeliveryVehicle\"\xaa\x01\n\x1c\x44\x65leteDeliveryVehicleRequest\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x33.maps.fleetengine.delivery.v1.DeliveryRequestHeaderB\x03\xe0\x41\x01\x12@\n\x04name\x18\x02 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*fleetengine.googleapis.com/DeliveryVehicle\"\xa3\x02\n\x1bListDeliveryVehiclesRequest\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x33.maps.fleetengine.delivery.v1.DeliveryRequestHeaderB\x03\xe0\x41\x01\x12\x42\n\x06parent\x18\x03 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*fleetengine.googleapis.com/DeliveryVehicle\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x30\n\x08viewport\x18\x07 \x01(\x0b\x32\x19.google.geo.type.ViewportB\x03\xe0\x41\x01\"\x95\x01\n\x1cListDeliveryVehiclesResponse\x12H\n\x11\x64\x65livery_vehicles\x18\x01 \x03(\x0b\x32-.maps.fleetengine.delivery.v1.DeliveryVehicle\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x03\"\xec\x01\n\x1cUpdateDeliveryVehicleRequest\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x33.maps.fleetengine.delivery.v1.DeliveryRequestHeaderB\x03\xe0\x41\x01\x12L\n\x10\x64\x65livery_vehicle\x18\x03 \x01(\x0b\x32-.maps.fleetengine.delivery.v1.DeliveryVehicleB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xe4\x01\n\x17\x42\x61tchCreateTasksRequest\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x33.maps.fleetengine.delivery.v1.DeliveryRequestHeaderB\x03\xe0\x41\x01\x12\x37\n\x06parent\x18\x03 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x66leetengine.googleapis.com/Task\x12\x46\n\x08requests\x18\x04 \x03(\x0b\x32/.maps.fleetengine.delivery.v1.CreateTaskRequestB\x03\xe0\x41\x02\"M\n\x18\x42\x61tchCreateTasksResponse\x12\x31\n\x05tasks\x18\x01 \x03(\x0b\x32\".maps.fleetengine.delivery.v1.Task\"\xbf\x01\n\x11\x43reateTaskRequest\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x33.maps.fleetengine.delivery.v1.DeliveryRequestHeaderB\x03\xe0\x41\x01\x12\x13\n\x06parent\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07task_id\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x35\n\x04task\x18\x04 \x01(\x0b\x32\".maps.fleetengine.delivery.v1.TaskB\x03\xe0\x41\x02\"\x91\x01\n\x0eGetTaskRequest\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x33.maps.fleetengine.delivery.v1.DeliveryRequestHeaderB\x03\xe0\x41\x01\x12\x35\n\x04name\x18\x03 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x66leetengine.googleapis.com/Task\"\x94\x01\n\x11\x44\x65leteTaskRequest\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x33.maps.fleetengine.delivery.v1.DeliveryRequestHeaderB\x03\xe0\x41\x01\x12\x35\n\x04name\x18\x02 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x66leetengine.googleapis.com/Task\"\xca\x01\n\x11UpdateTaskRequest\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x33.maps.fleetengine.delivery.v1.DeliveryRequestHeaderB\x03\xe0\x41\x01\x12\x35\n\x04task\x18\x03 \x01(\x0b\x32\".maps.fleetengine.delivery.v1.TaskB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xdb\x01\n\x10ListTasksRequest\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x33.maps.fleetengine.delivery.v1.DeliveryRequestHeaderB\x03\xe0\x41\x01\x12\x37\n\x06parent\x18\x03 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x66leetengine.googleapis.com/Task\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x06 \x01(\tB\x03\xe0\x41\x01\"s\n\x11ListTasksResponse\x12\x31\n\x05tasks\x18\x01 \x03(\x0b\x32\".maps.fleetengine.delivery.v1.Task\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x03\"\xa9\x01\n\x1aGetTaskTrackingInfoRequest\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x33.maps.fleetengine.delivery.v1.DeliveryRequestHeaderB\x03\xe0\x41\x01\x12\x41\n\x04name\x18\x03 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+fleetengine.googleapis.com/TaskTrackingInfo2\x8b\x16\n\x0f\x44\x65liveryService\x12\xa1\x02\n\x15\x43reateDeliveryVehicle\x12:.maps.fleetengine.delivery.v1.CreateDeliveryVehicleRequest\x1a-.maps.fleetengine.delivery.v1.DeliveryVehicle\"\x9c\x01\xda\x41+parent,delivery_vehicle,delivery_vehicle_id\x82\xd3\xe4\x93\x02=\")/v1/{parent=providers/*}/deliveryVehicles:\x10\x64\x65livery_vehicle\x8a\xd3\xe4\x93\x02%\x12#\n\x06parent\x12\x19{provider_id=providers/*}\x12\xdf\x01\n\x12GetDeliveryVehicle\x12\x37.maps.fleetengine.delivery.v1.GetDeliveryVehicleRequest\x1a-.maps.fleetengine.delivery.v1.DeliveryVehicle\"a\xda\x41\x04name\x82\xd3\xe4\x93\x02+\x12)/v1/{name=providers/*/deliveryVehicles/*}\x8a\xd3\xe4\x93\x02#\x12!\n\x04name\x12\x19{provider_id=providers/*}\x12\xce\x01\n\x15\x44\x65leteDeliveryVehicle\x12:.maps.fleetengine.delivery.v1.DeleteDeliveryVehicleRequest\x1a\x16.google.protobuf.Empty\"a\xda\x41\x04name\x82\xd3\xe4\x93\x02+*)/v1/{name=providers/*/deliveryVehicles/*}\x8a\xd3\xe4\x93\x02#\x12!\n\x04name\x12\x19{provider_id=providers/*}\x12\xb2\x02\n\x15UpdateDeliveryVehicle\x12:.maps.fleetengine.delivery.v1.UpdateDeliveryVehicleRequest\x1a-.maps.fleetengine.delivery.v1.DeliveryVehicle\"\xad\x01\xda\x41\x1c\x64\x65livery_vehicle,update_mask\x82\xd3\xe4\x93\x02N2:/v1/{delivery_vehicle.name=providers/*/deliveryVehicles/*}:\x10\x64\x65livery_vehicle\x8a\xd3\xe4\x93\x02\x34\x12\x32\n\x15\x64\x65livery_vehicle.name\x12\x19{provider_id=providers/*}\x12\xe3\x01\n\x10\x42\x61tchCreateTasks\x12\x35.maps.fleetengine.delivery.v1.BatchCreateTasksRequest\x1a\x36.maps.fleetengine.delivery.v1.BatchCreateTasksResponse\"`\x82\xd3\xe4\x93\x02/\"*/v1/{parent=providers/*}/tasks:batchCreate:\x01*\x8a\xd3\xe4\x93\x02%\x12#\n\x06parent\x12\x19{provider_id=providers/*}\x12\xd0\x01\n\nCreateTask\x12/.maps.fleetengine.delivery.v1.CreateTaskRequest\x1a\".maps.fleetengine.delivery.v1.Task\"m\xda\x41\x13parent,task,task_id\x82\xd3\xe4\x93\x02&\"\x1e/v1/{parent=providers/*}/tasks:\x04task\x8a\xd3\xe4\x93\x02%\x12#\n\x06parent\x12\x19{provider_id=providers/*}\x12\xb3\x01\n\x07GetTask\x12,.maps.fleetengine.delivery.v1.GetTaskRequest\x1a\".maps.fleetengine.delivery.v1.Task\"V\xda\x41\x04name\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{name=providers/*/tasks/*}\x8a\xd3\xe4\x93\x02#\x12!\n\x04name\x12\x19{provider_id=providers/*}\x12\xad\x01\n\nDeleteTask\x12/.maps.fleetengine.delivery.v1.DeleteTaskRequest\x1a\x16.google.protobuf.Empty\"V\xda\x41\x04name\x82\xd3\xe4\x93\x02 *\x1e/v1/{name=providers/*/tasks/*}\x8a\xd3\xe4\x93\x02#\x12!\n\x04name\x12\x19{provider_id=providers/*}\x12\xd5\x01\n\nUpdateTask\x12/.maps.fleetengine.delivery.v1.UpdateTaskRequest\x1a\".maps.fleetengine.delivery.v1.Task\"r\xda\x41\x10task,update_mask\x82\xd3\xe4\x93\x02+2#/v1/{task.name=providers/*/tasks/*}:\x04task\x8a\xd3\xe4\x93\x02(\x12&\n\ttask.name\x12\x19{provider_id=providers/*}\x12\xc8\x01\n\tListTasks\x12..maps.fleetengine.delivery.v1.ListTasksRequest\x1a/.maps.fleetengine.delivery.v1.ListTasksResponse\"Z\xda\x41\x06parent\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{parent=providers/*}/tasks\x8a\xd3\xe4\x93\x02%\x12#\n\x06parent\x12\x19{provider_id=providers/*}\x12\xe2\x01\n\x13GetTaskTrackingInfo\x12\x38.maps.fleetengine.delivery.v1.GetTaskTrackingInfoRequest\x1a..maps.fleetengine.delivery.v1.TaskTrackingInfo\"a\xda\x41\x04name\x82\xd3\xe4\x93\x02+\x12)/v1/{name=providers/*/taskTrackingInfo/*}\x8a\xd3\xe4\x93\x02#\x12!\n\x04name\x12\x19{provider_id=providers/*}\x12\xf4\x01\n\x14ListDeliveryVehicles\x12\x39.maps.fleetengine.delivery.v1.ListDeliveryVehiclesRequest\x1a:.maps.fleetengine.delivery.v1.ListDeliveryVehiclesResponse\"e\xda\x41\x06parent\x82\xd3\xe4\x93\x02+\x12)/v1/{parent=providers/*}/deliveryVehicles\x8a\xd3\xe4\x93\x02%\x12#\n\x06parent\x12\x19{provider_id=providers/*}\x1aN\xca\x41\x1a\x66leetengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xbe\x02\n\'com.google.maps.fleetengine.delivery.v1B\x0b\x44\x65liveryApiP\x01ZIcloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb\xa2\x02\x04\x43\x46\x45\x44\xaa\x02#Google.Maps.FleetEngine.Delivery.V1\xca\x02#Google\\Maps\\FleetEngine\\Delivery\\V1\xea\x02\'Google::Maps::FleetEngine::Delivery::V1\xea\x41;\n#fleetengine.googleapis.com/Provider\x12\x14providers/{provider}b\x06proto3"
|
21
22
|
|
22
23
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
23
24
|
|
@@ -55,6 +56,7 @@ module Google
|
|
55
56
|
module V1
|
56
57
|
CreateDeliveryVehicleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.delivery.v1.CreateDeliveryVehicleRequest").msgclass
|
57
58
|
GetDeliveryVehicleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.delivery.v1.GetDeliveryVehicleRequest").msgclass
|
59
|
+
DeleteDeliveryVehicleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.delivery.v1.DeleteDeliveryVehicleRequest").msgclass
|
58
60
|
ListDeliveryVehiclesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.delivery.v1.ListDeliveryVehiclesRequest").msgclass
|
59
61
|
ListDeliveryVehiclesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.delivery.v1.ListDeliveryVehiclesResponse").msgclass
|
60
62
|
UpdateDeliveryVehicleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.delivery.v1.UpdateDeliveryVehicleRequest").msgclass
|
@@ -62,6 +64,7 @@ module Google
|
|
62
64
|
BatchCreateTasksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.delivery.v1.BatchCreateTasksResponse").msgclass
|
63
65
|
CreateTaskRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.delivery.v1.CreateTaskRequest").msgclass
|
64
66
|
GetTaskRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.delivery.v1.GetTaskRequest").msgclass
|
67
|
+
DeleteTaskRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.delivery.v1.DeleteTaskRequest").msgclass
|
65
68
|
UpdateTaskRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.delivery.v1.UpdateTaskRequest").msgclass
|
66
69
|
ListTasksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.delivery.v1.ListTasksRequest").msgclass
|
67
70
|
ListTasksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.delivery.v1.ListTasksResponse").msgclass
|
@@ -38,6 +38,11 @@ module Google
|
|
38
38
|
rpc :CreateDeliveryVehicle, ::Google::Maps::FleetEngine::Delivery::V1::CreateDeliveryVehicleRequest, ::Google::Maps::FleetEngine::Delivery::V1::DeliveryVehicle
|
39
39
|
# Returns the specified `DeliveryVehicle` instance.
|
40
40
|
rpc :GetDeliveryVehicle, ::Google::Maps::FleetEngine::Delivery::V1::GetDeliveryVehicleRequest, ::Google::Maps::FleetEngine::Delivery::V1::DeliveryVehicle
|
41
|
+
# Deletes a DeliveryVehicle from the Fleet Engine.
|
42
|
+
#
|
43
|
+
# Returns FAILED_PRECONDITION if the DeliveryVehicle has OPEN Tasks
|
44
|
+
# assigned to it.
|
45
|
+
rpc :DeleteDeliveryVehicle, ::Google::Maps::FleetEngine::Delivery::V1::DeleteDeliveryVehicleRequest, ::Google::Protobuf::Empty
|
41
46
|
# Writes updated `DeliveryVehicle` data to Fleet Engine, and assigns
|
42
47
|
# `Tasks` to the `DeliveryVehicle`. You cannot update the name of the
|
43
48
|
# `DeliveryVehicle`. You *can* update `remaining_vehicle_journey_segments`,
|
@@ -52,6 +57,11 @@ module Google
|
|
52
57
|
rpc :CreateTask, ::Google::Maps::FleetEngine::Delivery::V1::CreateTaskRequest, ::Google::Maps::FleetEngine::Delivery::V1::Task
|
53
58
|
# Gets information about a `Task`.
|
54
59
|
rpc :GetTask, ::Google::Maps::FleetEngine::Delivery::V1::GetTaskRequest, ::Google::Maps::FleetEngine::Delivery::V1::Task
|
60
|
+
# Deletes a single Task.
|
61
|
+
#
|
62
|
+
# Returns FAILED_PRECONDITION if the Task is OPEN and assigned to a
|
63
|
+
# DeliveryVehicle.
|
64
|
+
rpc :DeleteTask, ::Google::Maps::FleetEngine::Delivery::V1::DeleteTaskRequest, ::Google::Protobuf::Empty
|
55
65
|
# Updates `Task` data.
|
56
66
|
rpc :UpdateTask, ::Google::Maps::FleetEngine::Delivery::V1::UpdateTaskRequest, ::Google::Maps::FleetEngine::Delivery::V1::Task
|
57
67
|
# Gets all `Task`s that meet the specified filtering criteria.
|
@@ -12,7 +12,7 @@ require 'google/protobuf/wrappers_pb'
|
|
12
12
|
require 'google/type/latlng_pb'
|
13
13
|
|
14
14
|
|
15
|
-
descriptor_data = "\n;google/maps/fleetengine/delivery/v1/delivery_vehicles.proto\x12\x1cmaps.fleetengine.delivery.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/maps/fleetengine/delivery/v1/common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x18google/type/latlng.proto\"\
|
15
|
+
descriptor_data = "\n;google/maps/fleetengine/delivery/v1/delivery_vehicles.proto\x12\x1cmaps.fleetengine.delivery.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/maps/fleetengine/delivery/v1/common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x18google/type/latlng.proto\"\xc5\x07\n\x0f\x44\x65liveryVehicle\x12\x0c\n\x04name\x18\x01 \x01(\t\x12L\n\rlast_location\x18\x02 \x01(\x0b\x32\x35.maps.fleetengine.delivery.v1.DeliveryVehicleLocation\x12R\n\x0epast_locations\x18\x0c \x03(\x0b\x32\x35.maps.fleetengine.delivery.v1.DeliveryVehicleLocationB\x03\xe0\x41\x04\x12X\n\x11navigation_status\x18\x03 \x01(\x0e\x32=.maps.fleetengine.delivery.v1.DeliveryVehicleNavigationStatus\x12\x1d\n\x15\x63urrent_route_segment\x18\x04 \x01(\x0c\x12<\n\x1f\x63urrent_route_segment_end_point\x18\x05 \x01(\x0b\x32\x13.google.type.LatLng\x12>\n\x19remaining_distance_meters\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x35\n\x12remaining_duration\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12_\n\"remaining_vehicle_journey_segments\x18\x08 \x03(\x0b\x32\x33.maps.fleetengine.delivery.v1.VehicleJourneySegment\x12J\n\nattributes\x18\t \x03(\x0b\x32\x36.maps.fleetengine.delivery.v1.DeliveryVehicleAttribute\x12O\n\x04type\x18\n \x01(\x0e\x32\x41.maps.fleetengine.delivery.v1.DeliveryVehicle.DeliveryVehicleType\"t\n\x13\x44\x65liveryVehicleType\x12%\n!DELIVERY_VEHICLE_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x12\x0f\n\x0bTWO_WHEELER\x10\x02\x12\x0b\n\x07\x42ICYCLE\x10\x03\x12\x0e\n\nPEDESTRIAN\x10\x04:`\xea\x41]\n*fleetengine.googleapis.com/DeliveryVehicle\x12/providers/{provider}/deliveryVehicles/{vehicle}\"2\n\x0cLocationInfo\x12\"\n\x05point\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\"\xf5\x01\n\x15VehicleJourneySegment\x12\x37\n\x04stop\x18\x01 \x01(\x0b\x32).maps.fleetengine.delivery.v1.VehicleStop\x12\x41\n\x17\x64riving_distance_meters\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int32ValueB\x03\xe0\x41\x03\x12\x38\n\x10\x64riving_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12&\n\x04path\x18\x05 \x03(\x0b\x32\x13.google.type.LatLngB\x03\xe0\x41\x03\"\xbe\x03\n\x0bVehicleStop\x12I\n\x10planned_location\x18\x01 \x01(\x0b\x32*.maps.fleetengine.delivery.v1.LocationInfoB\x03\xe0\x41\x02\x12\x41\n\x05tasks\x18\x02 \x03(\x0b\x32\x32.maps.fleetengine.delivery.v1.VehicleStop.TaskInfo\x12>\n\x05state\x18\x03 \x01(\x0e\x32/.maps.fleetengine.delivery.v1.VehicleStop.State\x1a\x9d\x01\n\x08TaskInfo\x12\x0f\n\x07task_id\x18\x01 \x01(\t\x12\x35\n\rtask_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12I\n\x12target_time_window\x18\x03 \x01(\x0b\x32(.maps.fleetengine.delivery.v1.TimeWindowB\x03\xe0\x41\x03\"A\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x07\n\x03NEW\x10\x01\x12\x0b\n\x07\x45NROUTE\x10\x02\x12\x0b\n\x07\x41RRIVED\x10\x03\x42\x85\x02\n\'com.google.maps.fleetengine.delivery.v1B\x10\x44\x65liveryVehiclesP\x01ZIcloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb\xa2\x02\x04\x43\x46\x45\x44\xaa\x02#Google.Maps.FleetEngine.Delivery.V1\xca\x02#Google\\Maps\\FleetEngine\\Delivery\\V1\xea\x02\'Google::Maps::FleetEngine::Delivery::V1b\x06proto3"
|
16
16
|
|
17
17
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
18
|
|
@@ -221,6 +221,12 @@ module Google
|
|
221
221
|
# Pythonic which are included in `protobuf>=5.29.x`. This feature will be
|
222
222
|
# enabled by default 1 month after launching the feature in preview
|
223
223
|
# packages.
|
224
|
+
# @!attribute [rw] unversioned_package_disabled
|
225
|
+
# @return [::Boolean]
|
226
|
+
# Disables generation of an unversioned Python package for this client
|
227
|
+
# library. This means that the module names will need to be versioned in
|
228
|
+
# import statements. For example `import google.cloud.library_v2` instead
|
229
|
+
# of `import google.cloud.library`.
|
224
230
|
class ExperimentalFeatures
|
225
231
|
include ::Google::Protobuf::MessageExts
|
226
232
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -409,6 +415,14 @@ module Google
|
|
409
415
|
# @return [::Array<::String>]
|
410
416
|
# An allowlist of the fully qualified names of RPCs that should be included
|
411
417
|
# on public client surfaces.
|
418
|
+
# @!attribute [rw] generate_omitted_as_internal
|
419
|
+
# @return [::Boolean]
|
420
|
+
# Setting this to true indicates to the client generators that methods
|
421
|
+
# that would be excluded from the generation should instead be generated
|
422
|
+
# in a way that indicates these methods should not be consumed by
|
423
|
+
# end users. How this is expressed is up to individual language
|
424
|
+
# implementations to decide. Some examples may be: added annotations,
|
425
|
+
# obfuscated identifiers, or other language idiomatic patterns.
|
412
426
|
class SelectiveGapicGeneration
|
413
427
|
include ::Google::Protobuf::MessageExts
|
414
428
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -52,7 +52,7 @@ module Google
|
|
52
52
|
# The routing header consists of one or multiple key-value pairs. Every key
|
53
53
|
# and value must be percent-encoded, and joined together in the format of
|
54
54
|
# `key1=value1&key2=value2`.
|
55
|
-
#
|
55
|
+
# The examples below skip the percent-encoding for readability.
|
56
56
|
#
|
57
57
|
# Example 1
|
58
58
|
#
|
@@ -39,12 +39,18 @@ module Google
|
|
39
39
|
# it's strongly recommended to use `string_value`. If both `string_value`
|
40
40
|
# and `value` are set, they must be identical or an error will be thrown.
|
41
41
|
# Both fields are populated in responses.
|
42
|
+
#
|
43
|
+
# Note: The following fields are mutually exclusive: `string_value`, `bool_value`, `number_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
42
44
|
# @!attribute [rw] bool_value
|
43
45
|
# @return [::Boolean]
|
44
46
|
# Boolean typed attribute value.
|
47
|
+
#
|
48
|
+
# Note: The following fields are mutually exclusive: `bool_value`, `string_value`, `number_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
45
49
|
# @!attribute [rw] number_value
|
46
50
|
# @return [::Float]
|
47
51
|
# Double typed attribute value.
|
52
|
+
#
|
53
|
+
# Note: The following fields are mutually exclusive: `number_value`, `string_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
48
54
|
class DeliveryVehicleAttribute
|
49
55
|
include ::Google::Protobuf::MessageExts
|
50
56
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -178,12 +184,18 @@ module Google
|
|
178
184
|
# @!attribute [rw] string_value
|
179
185
|
# @return [::String]
|
180
186
|
# String typed attribute value.
|
187
|
+
#
|
188
|
+
# Note: The following fields are mutually exclusive: `string_value`, `bool_value`, `number_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
181
189
|
# @!attribute [rw] bool_value
|
182
190
|
# @return [::Boolean]
|
183
191
|
# Boolean typed attribute value.
|
192
|
+
#
|
193
|
+
# Note: The following fields are mutually exclusive: `bool_value`, `string_value`, `number_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
184
194
|
# @!attribute [rw] number_value
|
185
195
|
# @return [::Float]
|
186
196
|
# Double typed attribute value.
|
197
|
+
#
|
198
|
+
# Note: The following fields are mutually exclusive: `number_value`, `string_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
187
199
|
class TaskAttribute
|
188
200
|
include ::Google::Protobuf::MessageExts
|
189
201
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -72,6 +72,21 @@ module Google
|
|
72
72
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
73
73
|
end
|
74
74
|
|
75
|
+
# DeleteDeliveryVehicle request message.
|
76
|
+
# @!attribute [rw] header
|
77
|
+
# @return [::Google::Maps::FleetEngine::Delivery::V1::DeliveryRequestHeader]
|
78
|
+
# Optional. The standard Delivery API request header.
|
79
|
+
# @!attribute [rw] name
|
80
|
+
# @return [::String]
|
81
|
+
# Required. Must be in the format
|
82
|
+
# `providers/{provider}/deliveryVehicles/{delivery_vehicle}`.
|
83
|
+
# The `provider` must be the Google Cloud Project ID. For example,
|
84
|
+
# `sample-cloud-project`.
|
85
|
+
class DeleteDeliveryVehicleRequest
|
86
|
+
include ::Google::Protobuf::MessageExts
|
87
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
88
|
+
end
|
89
|
+
|
75
90
|
# The `ListDeliveryVehicles` request message.
|
76
91
|
# @!attribute [rw] header
|
77
92
|
# @return [::Google::Maps::FleetEngine::Delivery::V1::DeliveryRequestHeader]
|
@@ -228,6 +243,12 @@ module Google
|
|
228
243
|
# * `planned_location` (optional for `UNAVAILABLE` tasks)
|
229
244
|
# * `task_duration`
|
230
245
|
#
|
246
|
+
# The following fields can be optionally set:
|
247
|
+
#
|
248
|
+
# * `target_time_window`
|
249
|
+
# * `task_tracking_view_config`
|
250
|
+
# * `attributes`
|
251
|
+
#
|
231
252
|
# Note: The Task's `name` field is ignored. All other Task fields must not be
|
232
253
|
# set; otherwise, an error is returned.
|
233
254
|
class CreateTaskRequest
|
@@ -249,6 +270,20 @@ module Google
|
|
249
270
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
250
271
|
end
|
251
272
|
|
273
|
+
# DeleteTask request message.
|
274
|
+
# @!attribute [rw] header
|
275
|
+
# @return [::Google::Maps::FleetEngine::Delivery::V1::DeliveryRequestHeader]
|
276
|
+
# Optional. The standard Delivery API request header.
|
277
|
+
# @!attribute [rw] name
|
278
|
+
# @return [::String]
|
279
|
+
# Required. Must be in the format `providers/{provider}/tasks/{task}`. The
|
280
|
+
# `provider` must be the Google Cloud Project ID. For example,
|
281
|
+
# `sample-cloud-project`.
|
282
|
+
class DeleteTaskRequest
|
283
|
+
include ::Google::Protobuf::MessageExts
|
284
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
285
|
+
end
|
286
|
+
|
252
287
|
# The `UpdateTask` request message.
|
253
288
|
# @!attribute [rw] header
|
254
289
|
# @return [::Google::Maps::FleetEngine::Delivery::V1::DeliveryRequestHeader]
|
@@ -38,6 +38,13 @@ module Google
|
|
38
38
|
# @!attribute [rw] last_location
|
39
39
|
# @return [::Google::Maps::FleetEngine::Delivery::V1::DeliveryVehicleLocation]
|
40
40
|
# The last reported location of the Delivery Vehicle.
|
41
|
+
# @!attribute [rw] past_locations
|
42
|
+
# @return [::Array<::Google::Maps::FleetEngine::Delivery::V1::DeliveryVehicleLocation>]
|
43
|
+
# Input only. Locations where this Delivery Vehicle has been in the past that
|
44
|
+
# haven't yet been reported to Fleet Engine. This is used in
|
45
|
+
# `UpdateDeliveryVehicleRequest` to record locations which were previously
|
46
|
+
# unable to be sent to the server. Typically this happens when the Delivery
|
47
|
+
# Vehicle does not have internet connectivity.
|
41
48
|
# @!attribute [rw] navigation_status
|
42
49
|
# @return [::Google::Maps::FleetEngine::Delivery::V1::DeliveryVehicleNavigationStatus]
|
43
50
|
# The Delivery Vehicle's navigation status.
|
@@ -252,23 +252,33 @@ module Google
|
|
252
252
|
# @return [::Integer]
|
253
253
|
# This data element is visible to the end users if the remaining stop
|
254
254
|
# count <= remaining_stop_count_threshold.
|
255
|
+
#
|
256
|
+
# Note: The following fields are mutually exclusive: `remaining_stop_count_threshold`, `duration_until_estimated_arrival_time_threshold`, `remaining_driving_distance_meters_threshold`, `always`, `never`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
255
257
|
# @!attribute [rw] duration_until_estimated_arrival_time_threshold
|
256
258
|
# @return [::Google::Protobuf::Duration]
|
257
259
|
# This data element is visible to the end users if the ETA to the stop
|
258
260
|
# <= duration_until_estimated_arrival_time_threshold.
|
261
|
+
#
|
262
|
+
# Note: The following fields are mutually exclusive: `duration_until_estimated_arrival_time_threshold`, `remaining_stop_count_threshold`, `remaining_driving_distance_meters_threshold`, `always`, `never`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
259
263
|
# @!attribute [rw] remaining_driving_distance_meters_threshold
|
260
264
|
# @return [::Integer]
|
261
265
|
# This data element is visible to the end users if the remaining
|
262
266
|
# driving distance in meters <=
|
263
267
|
# remaining_driving_distance_meters_threshold.
|
268
|
+
#
|
269
|
+
# Note: The following fields are mutually exclusive: `remaining_driving_distance_meters_threshold`, `remaining_stop_count_threshold`, `duration_until_estimated_arrival_time_threshold`, `always`, `never`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
264
270
|
# @!attribute [rw] always
|
265
271
|
# @return [::Boolean]
|
266
272
|
# If set to true, this data element is always visible to the end users
|
267
273
|
# with no thresholds. This field cannot be set to false.
|
274
|
+
#
|
275
|
+
# Note: The following fields are mutually exclusive: `always`, `remaining_stop_count_threshold`, `duration_until_estimated_arrival_time_threshold`, `remaining_driving_distance_meters_threshold`, `never`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
268
276
|
# @!attribute [rw] never
|
269
277
|
# @return [::Boolean]
|
270
278
|
# If set to true, this data element is always hidden from the end users
|
271
279
|
# with no thresholds. This field cannot be set to false.
|
280
|
+
#
|
281
|
+
# Note: The following fields are mutually exclusive: `never`, `remaining_stop_count_threshold`, `duration_until_estimated_arrival_time_threshold`, `remaining_driving_distance_meters_threshold`, `always`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
272
282
|
class VisibilityOption
|
273
283
|
include ::Google::Protobuf::MessageExts
|
274
284
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Protobuf
|
22
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
23
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
24
|
+
# or the response type of an API method. For instance:
|
25
|
+
#
|
26
|
+
# service Foo {
|
27
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
28
|
+
# }
|
29
|
+
class Empty
|
30
|
+
include ::Google::Protobuf::MessageExts
|
31
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-maps-fleet_engine-delivery-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-03-04 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: gapic-common
|
@@ -16,7 +15,7 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - ">="
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
18
|
+
version: 0.25.0
|
20
19
|
- - "<"
|
21
20
|
- !ruby/object:Gem::Version
|
22
21
|
version: 2.a
|
@@ -26,7 +25,7 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
28
|
+
version: 0.25.0
|
30
29
|
- - "<"
|
31
30
|
- !ruby/object:Gem::Version
|
32
31
|
version: 2.a
|
@@ -112,6 +111,7 @@ files:
|
|
112
111
|
- proto_docs/google/maps/fleetengine/delivery/v1/task_tracking_info.rb
|
113
112
|
- proto_docs/google/maps/fleetengine/delivery/v1/tasks.rb
|
114
113
|
- proto_docs/google/protobuf/duration.rb
|
114
|
+
- proto_docs/google/protobuf/empty.rb
|
115
115
|
- proto_docs/google/protobuf/field_mask.rb
|
116
116
|
- proto_docs/google/protobuf/timestamp.rb
|
117
117
|
- proto_docs/google/protobuf/wrappers.rb
|
@@ -120,7 +120,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
|
|
120
120
|
licenses:
|
121
121
|
- Apache-2.0
|
122
122
|
metadata: {}
|
123
|
-
post_install_message:
|
124
123
|
rdoc_options: []
|
125
124
|
require_paths:
|
126
125
|
- lib
|
@@ -128,15 +127,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
128
127
|
requirements:
|
129
128
|
- - ">="
|
130
129
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
130
|
+
version: '3.0'
|
132
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
133
132
|
requirements:
|
134
133
|
- - ">="
|
135
134
|
- !ruby/object:Gem::Version
|
136
135
|
version: '0'
|
137
136
|
requirements: []
|
138
|
-
rubygems_version: 3.5
|
139
|
-
signing_key:
|
137
|
+
rubygems_version: 3.6.5
|
140
138
|
specification_version: 4
|
141
139
|
summary: Enables Fleet Engine for access to the On Demand Rides and Deliveries and
|
142
140
|
Last Mile Fleet Solution APIs. Customer's use of Google Maps Content in the Cloud
|