google-maps-fleet_engine-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ffa3025511a3d1e57df02eea7a48d67b818310969f3c61a9d356bf9e13fa85d
4
- data.tar.gz: c67cf2bba21983e91ea56539530f40af4ba8aa0696c87d25470c853ce5f7f77f
3
+ metadata.gz: d5f2820e8a005cd94175171c38301950cf350252dd94cef6c2b8411c86d8f946
4
+ data.tar.gz: b17fa731e4235b0465c4667b7d1dac3c2763cc48717225c99866b973a4eb8ea7
5
5
  SHA512:
6
- metadata.gz: e3794b01d35e8b345fee0150c97029cf2dcc3316f9989113d15049155493933669188bf5cf22b300fca09935f76485d7072ad4fec2a17aaa7bbe60b93f8cfc8f
7
- data.tar.gz: 74b016fd77b768e52bf6016b983c1933626d6722c6560985ee874f0b8e1653ede87e14a3f2c0381909e2f8bd600e0f6d4d759eecff20f9b88008e3ed420d70dd
6
+ metadata.gz: d5391f933b1c86634eae32980162d6ed6e0bee9f3f859ea2f72dc672b7047f67700b8835c5502a9a45350daa8a0e4ed2d33edb25ba7337b02d44b6b3ece2d5f1
7
+ data.tar.gz: 56e9c1f4698ad3f43b4c454e8816a96e4c31539d56078a30473d0947ce5d4925b8c86112e098259516735d66850c39c7a58f97c22b30cb7d15fccff5e2469d27
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 2.7+.
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
@@ -461,6 +461,100 @@ module Google
461
461
  raise ::Google::Cloud::Error.from_error(e)
462
462
  end
463
463
 
464
+ ##
465
+ # Deletes a single Trip.
466
+ #
467
+ # Returns FAILED_PRECONDITION if the Trip is active and assigned to a
468
+ # vehicle.
469
+ #
470
+ # @overload delete_trip(request, options = nil)
471
+ # Pass arguments to `delete_trip` via a request object, either of type
472
+ # {::Google::Maps::FleetEngine::V1::DeleteTripRequest} or an equivalent Hash.
473
+ #
474
+ # @param request [::Google::Maps::FleetEngine::V1::DeleteTripRequest, ::Hash]
475
+ # A request object representing the call parameters. Required. To specify no
476
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
477
+ # @param options [::Gapic::CallOptions, ::Hash]
478
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
479
+ #
480
+ # @overload delete_trip(header: nil, name: nil)
481
+ # Pass arguments to `delete_trip` via keyword arguments. Note that at
482
+ # least one keyword argument is required. To specify no parameters, or to keep all
483
+ # the default parameter values, pass an empty Hash as a request object (see above).
484
+ #
485
+ # @param header [::Google::Maps::FleetEngine::V1::RequestHeader, ::Hash]
486
+ # Optional. The standard Fleet Engine request header.
487
+ # @param name [::String]
488
+ # Required. Must be in the format `providers/{provider}/trips/{trip}`.
489
+ # The provider must be the Project ID (for example, `sample-cloud-project`)
490
+ # of the Google Cloud Project of which the service account making
491
+ # this call is a member.
492
+ #
493
+ # @yield [response, operation] Access the result along with the RPC operation
494
+ # @yieldparam response [::Google::Protobuf::Empty]
495
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
496
+ #
497
+ # @return [::Google::Protobuf::Empty]
498
+ #
499
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
500
+ #
501
+ # @example Basic example
502
+ # require "google/maps/fleet_engine/v1"
503
+ #
504
+ # # Create a client object. The client can be reused for multiple calls.
505
+ # client = Google::Maps::FleetEngine::V1::TripService::Client.new
506
+ #
507
+ # # Create a request. To set request fields, pass in keyword arguments.
508
+ # request = Google::Maps::FleetEngine::V1::DeleteTripRequest.new
509
+ #
510
+ # # Call the delete_trip method.
511
+ # result = client.delete_trip request
512
+ #
513
+ # # The returned object is of type Google::Protobuf::Empty.
514
+ # p result
515
+ #
516
+ def delete_trip request, options = nil
517
+ raise ::ArgumentError, "request must be provided" if request.nil?
518
+
519
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Maps::FleetEngine::V1::DeleteTripRequest
520
+
521
+ # Converts hash and nil to an options object
522
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
523
+
524
+ # Customize the options with defaults
525
+ metadata = @config.rpcs.delete_trip.metadata.to_h
526
+
527
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
528
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
529
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
530
+ gapic_version: ::Google::Maps::FleetEngine::V1::VERSION
531
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
532
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
533
+
534
+ header_params = {}
535
+ if request.name &&
536
+ %r{^providers/[^/]+/?$}.match?(request.name)
537
+ header_params["provider_id"] = request.name
538
+ end
539
+
540
+ request_params_header = URI.encode_www_form header_params
541
+ metadata[:"x-goog-request-params"] ||= request_params_header
542
+
543
+ options.apply_defaults timeout: @config.rpcs.delete_trip.timeout,
544
+ metadata: metadata,
545
+ retry_policy: @config.rpcs.delete_trip.retry_policy
546
+
547
+ options.apply_defaults timeout: @config.timeout,
548
+ metadata: @config.metadata,
549
+ retry_policy: @config.retry_policy
550
+
551
+ @trip_service_stub.call_rpc :delete_trip, request, options: options do |response, operation|
552
+ yield response, operation if block_given?
553
+ end
554
+ rescue ::GRPC::BadStatus => e
555
+ raise ::Google::Cloud::Error.from_error(e)
556
+ end
557
+
464
558
  ##
465
559
  # Report billable trip usage.
466
560
  #
@@ -860,6 +954,13 @@ module Google
860
954
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
861
955
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
862
956
  # * (`nil`) indicating no credentials
957
+ #
958
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
959
+ # external source for authentication to Google Cloud, you must validate it before
960
+ # providing it to a Google API client library. Providing an unvalidated credential
961
+ # configuration to Google APIs can compromise the security of your systems and data.
962
+ # For more information, refer to [Validate credential configurations from external
963
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
863
964
  # @return [::Object]
864
965
  # @!attribute [rw] scope
865
966
  # The OAuth scopes
@@ -986,6 +1087,11 @@ module Google
986
1087
  #
987
1088
  attr_reader :get_trip
988
1089
  ##
1090
+ # RPC-specific configuration for `delete_trip`
1091
+ # @return [::Gapic::Config::Method]
1092
+ #
1093
+ attr_reader :delete_trip
1094
+ ##
989
1095
  # RPC-specific configuration for `report_billable_trip`
990
1096
  # @return [::Gapic::Config::Method]
991
1097
  #
@@ -1007,6 +1113,8 @@ module Google
1007
1113
  @create_trip = ::Gapic::Config::Method.new create_trip_config
1008
1114
  get_trip_config = parent_rpcs.get_trip if parent_rpcs.respond_to? :get_trip
1009
1115
  @get_trip = ::Gapic::Config::Method.new get_trip_config
1116
+ delete_trip_config = parent_rpcs.delete_trip if parent_rpcs.respond_to? :delete_trip
1117
+ @delete_trip = ::Gapic::Config::Method.new delete_trip_config
1010
1118
  report_billable_trip_config = parent_rpcs.report_billable_trip if parent_rpcs.respond_to? :report_billable_trip
1011
1119
  @report_billable_trip = ::Gapic::Config::Method.new report_billable_trip_config
1012
1120
  search_trips_config = parent_rpcs.search_trips if parent_rpcs.respond_to? :search_trips
@@ -438,6 +438,92 @@ module Google
438
438
  raise ::Google::Cloud::Error.from_error(e)
439
439
  end
440
440
 
441
+ ##
442
+ # Deletes a single Trip.
443
+ #
444
+ # Returns FAILED_PRECONDITION if the Trip is active and assigned to a
445
+ # vehicle.
446
+ #
447
+ # @overload delete_trip(request, options = nil)
448
+ # Pass arguments to `delete_trip` via a request object, either of type
449
+ # {::Google::Maps::FleetEngine::V1::DeleteTripRequest} or an equivalent Hash.
450
+ #
451
+ # @param request [::Google::Maps::FleetEngine::V1::DeleteTripRequest, ::Hash]
452
+ # A request object representing the call parameters. Required. To specify no
453
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
454
+ # @param options [::Gapic::CallOptions, ::Hash]
455
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
456
+ #
457
+ # @overload delete_trip(header: nil, name: nil)
458
+ # Pass arguments to `delete_trip` via keyword arguments. Note that at
459
+ # least one keyword argument is required. To specify no parameters, or to keep all
460
+ # the default parameter values, pass an empty Hash as a request object (see above).
461
+ #
462
+ # @param header [::Google::Maps::FleetEngine::V1::RequestHeader, ::Hash]
463
+ # Optional. The standard Fleet Engine request header.
464
+ # @param name [::String]
465
+ # Required. Must be in the format `providers/{provider}/trips/{trip}`.
466
+ # The provider must be the Project ID (for example, `sample-cloud-project`)
467
+ # of the Google Cloud Project of which the service account making
468
+ # this call is a member.
469
+ # @yield [result, operation] Access the result along with the TransportOperation object
470
+ # @yieldparam result [::Google::Protobuf::Empty]
471
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
472
+ #
473
+ # @return [::Google::Protobuf::Empty]
474
+ #
475
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
476
+ #
477
+ # @example Basic example
478
+ # require "google/maps/fleet_engine/v1"
479
+ #
480
+ # # Create a client object. The client can be reused for multiple calls.
481
+ # client = Google::Maps::FleetEngine::V1::TripService::Rest::Client.new
482
+ #
483
+ # # Create a request. To set request fields, pass in keyword arguments.
484
+ # request = Google::Maps::FleetEngine::V1::DeleteTripRequest.new
485
+ #
486
+ # # Call the delete_trip method.
487
+ # result = client.delete_trip request
488
+ #
489
+ # # The returned object is of type Google::Protobuf::Empty.
490
+ # p result
491
+ #
492
+ def delete_trip request, options = nil
493
+ raise ::ArgumentError, "request must be provided" if request.nil?
494
+
495
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Maps::FleetEngine::V1::DeleteTripRequest
496
+
497
+ # Converts hash and nil to an options object
498
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
499
+
500
+ # Customize the options with defaults
501
+ call_metadata = @config.rpcs.delete_trip.metadata.to_h
502
+
503
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
504
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
505
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
506
+ gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
507
+ transports_version_send: [:rest]
508
+
509
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
510
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
511
+
512
+ options.apply_defaults timeout: @config.rpcs.delete_trip.timeout,
513
+ metadata: call_metadata,
514
+ retry_policy: @config.rpcs.delete_trip.retry_policy
515
+
516
+ options.apply_defaults timeout: @config.timeout,
517
+ metadata: @config.metadata,
518
+ retry_policy: @config.retry_policy
519
+
520
+ @trip_service_stub.delete_trip request, options do |result, operation|
521
+ yield result, operation if block_given?
522
+ end
523
+ rescue ::Gapic::Rest::Error => e
524
+ raise ::Google::Cloud::Error.from_error(e)
525
+ end
526
+
441
527
  ##
442
528
  # Report billable trip usage.
443
529
  #
@@ -811,6 +897,13 @@ module Google
811
897
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
812
898
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
813
899
  # * (`nil`) indicating no credentials
900
+ #
901
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
902
+ # external source for authentication to Google Cloud, you must validate it before
903
+ # providing it to a Google API client library. Providing an unvalidated credential
904
+ # configuration to Google APIs can compromise the security of your systems and data.
905
+ # For more information, refer to [Validate credential configurations from external
906
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
814
907
  # @return [::Object]
815
908
  # @!attribute [rw] scope
816
909
  # The OAuth scopes
@@ -919,6 +1012,11 @@ module Google
919
1012
  #
920
1013
  attr_reader :get_trip
921
1014
  ##
1015
+ # RPC-specific configuration for `delete_trip`
1016
+ # @return [::Gapic::Config::Method]
1017
+ #
1018
+ attr_reader :delete_trip
1019
+ ##
922
1020
  # RPC-specific configuration for `report_billable_trip`
923
1021
  # @return [::Gapic::Config::Method]
924
1022
  #
@@ -940,6 +1038,8 @@ module Google
940
1038
  @create_trip = ::Gapic::Config::Method.new create_trip_config
941
1039
  get_trip_config = parent_rpcs.get_trip if parent_rpcs.respond_to? :get_trip
942
1040
  @get_trip = ::Gapic::Config::Method.new get_trip_config
1041
+ delete_trip_config = parent_rpcs.delete_trip if parent_rpcs.respond_to? :delete_trip
1042
+ @delete_trip = ::Gapic::Config::Method.new delete_trip_config
943
1043
  report_billable_trip_config = parent_rpcs.report_billable_trip if parent_rpcs.respond_to? :report_billable_trip
944
1044
  @report_billable_trip = ::Gapic::Config::Method.new report_billable_trip_config
945
1045
  search_trips_config = parent_rpcs.search_trips if parent_rpcs.respond_to? :search_trips
@@ -153,6 +153,46 @@ module Google
153
153
  end
154
154
  end
155
155
 
156
+ ##
157
+ # Baseline implementation for the delete_trip REST call
158
+ #
159
+ # @param request_pb [::Google::Maps::FleetEngine::V1::DeleteTripRequest]
160
+ # A request object representing the call parameters. Required.
161
+ # @param options [::Gapic::CallOptions]
162
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
163
+ #
164
+ # @yield [result, operation] Access the result along with the TransportOperation object
165
+ # @yieldparam result [::Google::Protobuf::Empty]
166
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
167
+ #
168
+ # @return [::Google::Protobuf::Empty]
169
+ # A result object deserialized from the server's reply
170
+ def delete_trip request_pb, options = nil
171
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
172
+
173
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_trip_request request_pb
174
+ query_string_params = if query_string_params.any?
175
+ query_string_params.to_h { |p| p.split "=", 2 }
176
+ else
177
+ {}
178
+ end
179
+
180
+ response = @client_stub.make_http_request(
181
+ verb,
182
+ uri: uri,
183
+ body: body || "",
184
+ params: query_string_params,
185
+ method_name: "delete_trip",
186
+ options: options
187
+ )
188
+ operation = ::Gapic::Rest::TransportOperation.new response
189
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
190
+ catch :response do
191
+ yield result, operation if block_given?
192
+ result
193
+ end
194
+ end
195
+
156
196
  ##
157
197
  # Baseline implementation for the report_billable_trip REST call
158
198
  #
@@ -316,6 +356,27 @@ module Google
316
356
  transcoder.transcode request_pb
317
357
  end
318
358
 
359
+ ##
360
+ # @private
361
+ #
362
+ # GRPC transcoding helper method for the delete_trip REST call
363
+ #
364
+ # @param request_pb [::Google::Maps::FleetEngine::V1::DeleteTripRequest]
365
+ # A request object representing the call parameters. Required.
366
+ # @return [Array(String, [String, nil], Hash{String => String})]
367
+ # Uri, Body, Query string parameters
368
+ def self.transcode_delete_trip_request request_pb
369
+ transcoder = Gapic::Rest::GrpcTranscoder.new
370
+ .with_bindings(
371
+ uri_method: :delete,
372
+ uri_template: "/v1/{name}",
373
+ matches: [
374
+ ["name", %r{^providers/[^/]+/trips/[^/]+/?$}, false]
375
+ ]
376
+ )
377
+ transcoder.transcode request_pb
378
+ end
379
+
319
380
  ##
320
381
  # @private
321
382
  #
@@ -466,6 +466,101 @@ module Google
466
466
  raise ::Google::Cloud::Error.from_error(e)
467
467
  end
468
468
 
469
+ ##
470
+ # Deletes a Vehicle from the Fleet Engine.
471
+ #
472
+ # Returns FAILED_PRECONDITION if the Vehicle has active Trips.
473
+ # assigned to it.
474
+ #
475
+ # @overload delete_vehicle(request, options = nil)
476
+ # Pass arguments to `delete_vehicle` via a request object, either of type
477
+ # {::Google::Maps::FleetEngine::V1::DeleteVehicleRequest} or an equivalent Hash.
478
+ #
479
+ # @param request [::Google::Maps::FleetEngine::V1::DeleteVehicleRequest, ::Hash]
480
+ # A request object representing the call parameters. Required. To specify no
481
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
482
+ # @param options [::Gapic::CallOptions, ::Hash]
483
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
484
+ #
485
+ # @overload delete_vehicle(header: nil, name: nil)
486
+ # Pass arguments to `delete_vehicle` via keyword arguments. Note that at
487
+ # least one keyword argument is required. To specify no parameters, or to keep all
488
+ # the default parameter values, pass an empty Hash as a request object (see above).
489
+ #
490
+ # @param header [::Google::Maps::FleetEngine::V1::RequestHeader, ::Hash]
491
+ # Optional. The standard Fleet Engine request header.
492
+ # @param name [::String]
493
+ # Required. Must be in the format
494
+ # `providers/{provider}/vehicles/{vehicle}`.
495
+ # The \\{provider} must be the Project ID (for example, `sample-cloud-project`)
496
+ # of the Google Cloud Project of which the service account making
497
+ # this call is a member.
498
+ #
499
+ # @yield [response, operation] Access the result along with the RPC operation
500
+ # @yieldparam response [::Google::Protobuf::Empty]
501
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
502
+ #
503
+ # @return [::Google::Protobuf::Empty]
504
+ #
505
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
506
+ #
507
+ # @example Basic example
508
+ # require "google/maps/fleet_engine/v1"
509
+ #
510
+ # # Create a client object. The client can be reused for multiple calls.
511
+ # client = Google::Maps::FleetEngine::V1::VehicleService::Client.new
512
+ #
513
+ # # Create a request. To set request fields, pass in keyword arguments.
514
+ # request = Google::Maps::FleetEngine::V1::DeleteVehicleRequest.new
515
+ #
516
+ # # Call the delete_vehicle method.
517
+ # result = client.delete_vehicle request
518
+ #
519
+ # # The returned object is of type Google::Protobuf::Empty.
520
+ # p result
521
+ #
522
+ def delete_vehicle request, options = nil
523
+ raise ::ArgumentError, "request must be provided" if request.nil?
524
+
525
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Maps::FleetEngine::V1::DeleteVehicleRequest
526
+
527
+ # Converts hash and nil to an options object
528
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
529
+
530
+ # Customize the options with defaults
531
+ metadata = @config.rpcs.delete_vehicle.metadata.to_h
532
+
533
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
534
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
535
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
536
+ gapic_version: ::Google::Maps::FleetEngine::V1::VERSION
537
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
538
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
539
+
540
+ header_params = {}
541
+ if request.name &&
542
+ %r{^providers/[^/]+/?$}.match?(request.name)
543
+ header_params["provider_id"] = request.name
544
+ end
545
+
546
+ request_params_header = URI.encode_www_form header_params
547
+ metadata[:"x-goog-request-params"] ||= request_params_header
548
+
549
+ options.apply_defaults timeout: @config.rpcs.delete_vehicle.timeout,
550
+ metadata: metadata,
551
+ retry_policy: @config.rpcs.delete_vehicle.retry_policy
552
+
553
+ options.apply_defaults timeout: @config.timeout,
554
+ metadata: @config.metadata,
555
+ retry_policy: @config.retry_policy
556
+
557
+ @vehicle_service_stub.call_rpc :delete_vehicle, request, options: options do |response, operation|
558
+ yield response, operation if block_given?
559
+ end
560
+ rescue ::GRPC::BadStatus => e
561
+ raise ::Google::Cloud::Error.from_error(e)
562
+ end
563
+
469
564
  ##
470
565
  # Writes updated vehicle data to the Fleet Engine.
471
566
  #
@@ -1162,6 +1257,13 @@ module Google
1162
1257
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1163
1258
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1164
1259
  # * (`nil`) indicating no credentials
1260
+ #
1261
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1262
+ # external source for authentication to Google Cloud, you must validate it before
1263
+ # providing it to a Google API client library. Providing an unvalidated credential
1264
+ # configuration to Google APIs can compromise the security of your systems and data.
1265
+ # For more information, refer to [Validate credential configurations from external
1266
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1165
1267
  # @return [::Object]
1166
1268
  # @!attribute [rw] scope
1167
1269
  # The OAuth scopes
@@ -1288,6 +1390,11 @@ module Google
1288
1390
  #
1289
1391
  attr_reader :get_vehicle
1290
1392
  ##
1393
+ # RPC-specific configuration for `delete_vehicle`
1394
+ # @return [::Gapic::Config::Method]
1395
+ #
1396
+ attr_reader :delete_vehicle
1397
+ ##
1291
1398
  # RPC-specific configuration for `update_vehicle`
1292
1399
  # @return [::Gapic::Config::Method]
1293
1400
  #
@@ -1314,6 +1421,8 @@ module Google
1314
1421
  @create_vehicle = ::Gapic::Config::Method.new create_vehicle_config
1315
1422
  get_vehicle_config = parent_rpcs.get_vehicle if parent_rpcs.respond_to? :get_vehicle
1316
1423
  @get_vehicle = ::Gapic::Config::Method.new get_vehicle_config
1424
+ delete_vehicle_config = parent_rpcs.delete_vehicle if parent_rpcs.respond_to? :delete_vehicle
1425
+ @delete_vehicle = ::Gapic::Config::Method.new delete_vehicle_config
1317
1426
  update_vehicle_config = parent_rpcs.update_vehicle if parent_rpcs.respond_to? :update_vehicle
1318
1427
  @update_vehicle = ::Gapic::Config::Method.new update_vehicle_config
1319
1428
  update_vehicle_attributes_config = parent_rpcs.update_vehicle_attributes if parent_rpcs.respond_to? :update_vehicle_attributes
@@ -443,6 +443,93 @@ module Google
443
443
  raise ::Google::Cloud::Error.from_error(e)
444
444
  end
445
445
 
446
+ ##
447
+ # Deletes a Vehicle from the Fleet Engine.
448
+ #
449
+ # Returns FAILED_PRECONDITION if the Vehicle has active Trips.
450
+ # assigned to it.
451
+ #
452
+ # @overload delete_vehicle(request, options = nil)
453
+ # Pass arguments to `delete_vehicle` via a request object, either of type
454
+ # {::Google::Maps::FleetEngine::V1::DeleteVehicleRequest} or an equivalent Hash.
455
+ #
456
+ # @param request [::Google::Maps::FleetEngine::V1::DeleteVehicleRequest, ::Hash]
457
+ # A request object representing the call parameters. Required. To specify no
458
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
459
+ # @param options [::Gapic::CallOptions, ::Hash]
460
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
461
+ #
462
+ # @overload delete_vehicle(header: nil, name: nil)
463
+ # Pass arguments to `delete_vehicle` via keyword arguments. Note that at
464
+ # least one keyword argument is required. To specify no parameters, or to keep all
465
+ # the default parameter values, pass an empty Hash as a request object (see above).
466
+ #
467
+ # @param header [::Google::Maps::FleetEngine::V1::RequestHeader, ::Hash]
468
+ # Optional. The standard Fleet Engine request header.
469
+ # @param name [::String]
470
+ # Required. Must be in the format
471
+ # `providers/{provider}/vehicles/{vehicle}`.
472
+ # The \\{provider} must be the Project ID (for example, `sample-cloud-project`)
473
+ # of the Google Cloud Project of which the service account making
474
+ # this call is a member.
475
+ # @yield [result, operation] Access the result along with the TransportOperation object
476
+ # @yieldparam result [::Google::Protobuf::Empty]
477
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
478
+ #
479
+ # @return [::Google::Protobuf::Empty]
480
+ #
481
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
482
+ #
483
+ # @example Basic example
484
+ # require "google/maps/fleet_engine/v1"
485
+ #
486
+ # # Create a client object. The client can be reused for multiple calls.
487
+ # client = Google::Maps::FleetEngine::V1::VehicleService::Rest::Client.new
488
+ #
489
+ # # Create a request. To set request fields, pass in keyword arguments.
490
+ # request = Google::Maps::FleetEngine::V1::DeleteVehicleRequest.new
491
+ #
492
+ # # Call the delete_vehicle method.
493
+ # result = client.delete_vehicle request
494
+ #
495
+ # # The returned object is of type Google::Protobuf::Empty.
496
+ # p result
497
+ #
498
+ def delete_vehicle request, options = nil
499
+ raise ::ArgumentError, "request must be provided" if request.nil?
500
+
501
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Maps::FleetEngine::V1::DeleteVehicleRequest
502
+
503
+ # Converts hash and nil to an options object
504
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
505
+
506
+ # Customize the options with defaults
507
+ call_metadata = @config.rpcs.delete_vehicle.metadata.to_h
508
+
509
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
510
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
511
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
512
+ gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
513
+ transports_version_send: [:rest]
514
+
515
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
516
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
517
+
518
+ options.apply_defaults timeout: @config.rpcs.delete_vehicle.timeout,
519
+ metadata: call_metadata,
520
+ retry_policy: @config.rpcs.delete_vehicle.retry_policy
521
+
522
+ options.apply_defaults timeout: @config.timeout,
523
+ metadata: @config.metadata,
524
+ retry_policy: @config.retry_policy
525
+
526
+ @vehicle_service_stub.delete_vehicle request, options do |result, operation|
527
+ yield result, operation if block_given?
528
+ end
529
+ rescue ::Gapic::Rest::Error => e
530
+ raise ::Google::Cloud::Error.from_error(e)
531
+ end
532
+
446
533
  ##
447
534
  # Writes updated vehicle data to the Fleet Engine.
448
535
  #
@@ -1105,6 +1192,13 @@ module Google
1105
1192
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1106
1193
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1107
1194
  # * (`nil`) indicating no credentials
1195
+ #
1196
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1197
+ # external source for authentication to Google Cloud, you must validate it before
1198
+ # providing it to a Google API client library. Providing an unvalidated credential
1199
+ # configuration to Google APIs can compromise the security of your systems and data.
1200
+ # For more information, refer to [Validate credential configurations from external
1201
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1108
1202
  # @return [::Object]
1109
1203
  # @!attribute [rw] scope
1110
1204
  # The OAuth scopes
@@ -1213,6 +1307,11 @@ module Google
1213
1307
  #
1214
1308
  attr_reader :get_vehicle
1215
1309
  ##
1310
+ # RPC-specific configuration for `delete_vehicle`
1311
+ # @return [::Gapic::Config::Method]
1312
+ #
1313
+ attr_reader :delete_vehicle
1314
+ ##
1216
1315
  # RPC-specific configuration for `update_vehicle`
1217
1316
  # @return [::Gapic::Config::Method]
1218
1317
  #
@@ -1239,6 +1338,8 @@ module Google
1239
1338
  @create_vehicle = ::Gapic::Config::Method.new create_vehicle_config
1240
1339
  get_vehicle_config = parent_rpcs.get_vehicle if parent_rpcs.respond_to? :get_vehicle
1241
1340
  @get_vehicle = ::Gapic::Config::Method.new get_vehicle_config
1341
+ delete_vehicle_config = parent_rpcs.delete_vehicle if parent_rpcs.respond_to? :delete_vehicle
1342
+ @delete_vehicle = ::Gapic::Config::Method.new delete_vehicle_config
1242
1343
  update_vehicle_config = parent_rpcs.update_vehicle if parent_rpcs.respond_to? :update_vehicle
1243
1344
  @update_vehicle = ::Gapic::Config::Method.new update_vehicle_config
1244
1345
  update_vehicle_attributes_config = parent_rpcs.update_vehicle_attributes if parent_rpcs.respond_to? :update_vehicle_attributes
@@ -153,6 +153,46 @@ module Google
153
153
  end
154
154
  end
155
155
 
156
+ ##
157
+ # Baseline implementation for the delete_vehicle REST call
158
+ #
159
+ # @param request_pb [::Google::Maps::FleetEngine::V1::DeleteVehicleRequest]
160
+ # A request object representing the call parameters. Required.
161
+ # @param options [::Gapic::CallOptions]
162
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
163
+ #
164
+ # @yield [result, operation] Access the result along with the TransportOperation object
165
+ # @yieldparam result [::Google::Protobuf::Empty]
166
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
167
+ #
168
+ # @return [::Google::Protobuf::Empty]
169
+ # A result object deserialized from the server's reply
170
+ def delete_vehicle request_pb, options = nil
171
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
172
+
173
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_vehicle_request request_pb
174
+ query_string_params = if query_string_params.any?
175
+ query_string_params.to_h { |p| p.split "=", 2 }
176
+ else
177
+ {}
178
+ end
179
+
180
+ response = @client_stub.make_http_request(
181
+ verb,
182
+ uri: uri,
183
+ body: body || "",
184
+ params: query_string_params,
185
+ method_name: "delete_vehicle",
186
+ options: options
187
+ )
188
+ operation = ::Gapic::Rest::TransportOperation.new response
189
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
190
+ catch :response do
191
+ yield result, operation if block_given?
192
+ result
193
+ end
194
+ end
195
+
156
196
  ##
157
197
  # Baseline implementation for the update_vehicle REST call
158
198
  #
@@ -356,6 +396,27 @@ module Google
356
396
  transcoder.transcode request_pb
357
397
  end
358
398
 
399
+ ##
400
+ # @private
401
+ #
402
+ # GRPC transcoding helper method for the delete_vehicle REST call
403
+ #
404
+ # @param request_pb [::Google::Maps::FleetEngine::V1::DeleteVehicleRequest]
405
+ # A request object representing the call parameters. Required.
406
+ # @return [Array(String, [String, nil], Hash{String => String})]
407
+ # Uri, Body, Query string parameters
408
+ def self.transcode_delete_vehicle_request request_pb
409
+ transcoder = Gapic::Rest::GrpcTranscoder.new
410
+ .with_bindings(
411
+ uri_method: :delete,
412
+ uri_template: "/v1/{name}",
413
+ matches: [
414
+ ["name", %r{^providers/[^/]+/vehicles/[^/]+/?$}, false]
415
+ ]
416
+ )
417
+ transcoder.transcode request_pb
418
+ end
419
+
359
420
  ##
360
421
  # @private
361
422
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Maps
22
22
  module FleetEngine
23
23
  module V1
24
- VERSION = "0.3.0"
24
+ VERSION = "0.5.0"
25
25
  end
26
26
  end
27
27
  end
@@ -5,6 +5,7 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
8
9
  require 'google/maps/fleetengine/v1/traffic_pb'
9
10
  require 'google/protobuf/duration_pb'
10
11
  require 'google/protobuf/timestamp_pb'
@@ -12,7 +13,7 @@ require 'google/protobuf/wrappers_pb'
12
13
  require 'google/type/latlng_pb'
13
14
 
14
15
 
15
- descriptor_data = "\n,google/maps/fleetengine/v1/fleetengine.proto\x12\x13maps.fleetengine.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a(google/maps/fleetengine/v1/traffic.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x18google/type/latlng.proto\"b\n\x0fTerminalPointId\x12\x16\n\x08place_id\x18\x02 \x01(\tB\x02\x18\x01H\x00\x12\x1a\n\x0cgenerated_id\x18\x03 \x01(\tB\x02\x18\x01H\x00\x12\x11\n\x05value\x18\x04 \x01(\tB\x02\x18\x01:\x02\x18\x01\x42\x04\n\x02Id\"\xf9\x01\n\x10TerminalLocation\x12\'\n\x05point\x18\x01 \x01(\x0b\x32\x13.google.type.LatLngB\x03\xe0\x41\x02\x12\x43\n\x11terminal_point_id\x18\x02 \x01(\x0b\x32$.maps.fleetengine.v1.TerminalPointIdB\x02\x18\x01\x12\x1b\n\x0f\x61\x63\x63\x65ss_point_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x13\n\x07trip_id\x18\x04 \x01(\tB\x02\x18\x01\x12\x45\n\x16terminal_location_type\x18\x05 \x01(\x0e\x32!.maps.fleetengine.v1.WaypointTypeB\x02\x18\x01\"\xbc\x03\n\x0cTripWaypoint\x12\x37\n\x08location\x18\x01 \x01(\x0b\x32%.maps.fleetengine.v1.TerminalLocation\x12\x0f\n\x07trip_id\x18\x02 \x01(\t\x12\x38\n\rwaypoint_type\x18\x03 \x01(\x0e\x32!.maps.fleetengine.v1.WaypointType\x12-\n\x10path_to_waypoint\x18\x04 \x03(\x0b\x32\x13.google.type.LatLng\x12 \n\x18\x65ncoded_path_to_waypoint\x18\x05 \x01(\t\x12K\n\x13traffic_to_waypoint\x18\n \x01(\x0b\x32..maps.fleetengine.v1.ConsumableTrafficPolyline\x12\x34\n\x0f\x64istance_meters\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\'\n\x03\x65ta\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x08\x64uration\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\"\x8f\x01\n\x10VehicleAttribute\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x16\n\x0cstring_value\x18\x03 \x01(\tH\x00\x12\x14\n\nbool_value\x18\x04 \x01(\x08H\x00\x12\x16\n\x0cnumber_value\x18\x05 \x01(\x01H\x00\x42\x19\n\x17vehicle_attribute_value\"\xa4\x0c\n\x0fVehicleLocation\x12%\n\x08location\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12=\n\x13horizontal_accuracy\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.DoubleValueB\x02\x18\x01\x12\x35\n\x0flatlng_accuracy\x18\x16 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12,\n\x07heading\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12:\n\x10\x62\x65\x61ring_accuracy\x18\n \x01(\x0b\x32\x1c.google.protobuf.DoubleValueB\x02\x18\x01\x12\x36\n\x10heading_accuracy\x18\x17 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12.\n\x08\x61ltitude\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12;\n\x11vertical_accuracy\x18\t \x01(\x0b\x32\x1c.google.protobuf.DoubleValueB\x02\x18\x01\x12\x37\n\x11\x61ltitude_accuracy\x18\x18 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x33\n\nspeed_kmph\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int32ValueB\x02\x18\x01\x12+\n\x05speed\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x34\n\x0espeed_accuracy\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x0bserver_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12<\n\x0flocation_sensor\x18\x0b \x01(\x0e\x32#.maps.fleetengine.v1.LocationSensor\x12\x33\n\x0fis_road_snapped\x18\x1b \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12>\n\x15is_gps_sensor_enabled\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x04\x12;\n\x11time_since_update\x18\x0e \x01(\x0b\x32\x1b.google.protobuf.Int32ValueB\x03\xe0\x41\x04\x12=\n\x11num_stale_updates\x18\x0f \x01(\x0b\x32\x1b.google.protobuf.Int32ValueB\x05\x18\x01\xe0\x41\x04\x12)\n\x0craw_location\x18\x10 \x01(\x0b\x32\x13.google.type.LatLng\x12\x35\n\x11raw_location_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\x13raw_location_sensor\x18\x1c \x01(\x0e\x32#.maps.fleetengine.v1.LocationSensor\x12;\n\x15raw_location_accuracy\x18\x19 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x32\n\x15supplemental_location\x18\x12 \x01(\x0b\x32\x13.google.type.LatLng\x12>\n\x1asupplemental_location_time\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12I\n\x1csupplemental_location_sensor\x18\x14 \x01(\x0e\x32#.maps.fleetengine.v1.LocationSensor\x12\x44\n\x1esupplemental_location_accuracy\x18\x15 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x18\n\x0croad_snapped\x18\x1a \x01(\x08\x42\x02\x18\x01*<\n\x08TripType\x12\x15\n\x11UNKNOWN_TRIP_TYPE\x10\x00\x12\n\n\x06SHARED\x10\x01\x12\r\n\tEXCLUSIVE\x10\x02*\x8b\x01\n\x0cWaypointType\x12\x19\n\x15UNKNOWN_WAYPOINT_TYPE\x10\x00\x12\x18\n\x14PICKUP_WAYPOINT_TYPE\x10\x01\x12\x1a\n\x16\x44ROP_OFF_WAYPOINT_TYPE\x10\x02\x12*\n&INTERMEDIATE_DESTINATION_WAYPOINT_TYPE\x10\x03*_\n\x12PolylineFormatType\x12\x17\n\x13UNKNOWN_FORMAT_TYPE\x10\x00\x12\x15\n\x11LAT_LNG_LIST_TYPE\x10\x01\x12\x19\n\x15\x45NCODED_POLYLINE_TYPE\x10\x02*\x89\x01\n\x10NavigationStatus\x12\x1d\n\x19UNKNOWN_NAVIGATION_STATUS\x10\x00\x12\x0f\n\x0bNO_GUIDANCE\x10\x01\x12\x1a\n\x16\x45NROUTE_TO_DESTINATION\x10\x02\x12\r\n\tOFF_ROUTE\x10\x03\x12\x1a\n\x16\x41RRIVED_AT_DESTINATION\x10\x04*\xd7\x01\n\x0eLocationSensor\x12\x12\n\x0eUNKNOWN_SENSOR\x10\x00\x12\x07\n\x03GPS\x10\x01\x12\x0b\n\x07NETWORK\x10\x02\x12\x0b\n\x07PASSIVE\x10\x03\x12\"\n\x1eROAD_SNAPPED_LOCATION_PROVIDER\x10\x04\x12\x1e\n\x1a\x43USTOMER_SUPPLIED_LOCATION\x10\x05\x12\x19\n\x15\x46LEET_ENGINE_LOCATION\x10\x06\x12\x1b\n\x17\x46USED_LOCATION_PROVIDER\x10\x64\x12\x12\n\rCORE_LOCATION\x10\xc8\x01\x42\xd7\x01\n\x1e\x63om.google.maps.fleetengine.v1B\x0b\x46leetEngineP\x01ZFcloud.google.com/go/maps/fleetengine/apiv1/fleetenginepb;fleetenginepb\xa2\x02\x03\x43\x46\x45\xaa\x02\x1aGoogle.Maps.FleetEngine.V1\xca\x02\x1aGoogle\\Maps\\FleetEngine\\V1\xea\x02\x1dGoogle::Maps::FleetEngine::V1b\x06proto3"
16
+ descriptor_data = "\n,google/maps/fleetengine/v1/fleetengine.proto\x12\x13maps.fleetengine.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/maps/fleetengine/v1/traffic.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x18google/type/latlng.proto\"b\n\x0fTerminalPointId\x12\x16\n\x08place_id\x18\x02 \x01(\tB\x02\x18\x01H\x00\x12\x1a\n\x0cgenerated_id\x18\x03 \x01(\tB\x02\x18\x01H\x00\x12\x11\n\x05value\x18\x04 \x01(\tB\x02\x18\x01:\x02\x18\x01\x42\x04\n\x02Id\"\xf9\x01\n\x10TerminalLocation\x12\'\n\x05point\x18\x01 \x01(\x0b\x32\x13.google.type.LatLngB\x03\xe0\x41\x02\x12\x43\n\x11terminal_point_id\x18\x02 \x01(\x0b\x32$.maps.fleetengine.v1.TerminalPointIdB\x02\x18\x01\x12\x1b\n\x0f\x61\x63\x63\x65ss_point_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x13\n\x07trip_id\x18\x04 \x01(\tB\x02\x18\x01\x12\x45\n\x16terminal_location_type\x18\x05 \x01(\x0e\x32!.maps.fleetengine.v1.WaypointTypeB\x02\x18\x01\"\xbc\x03\n\x0cTripWaypoint\x12\x37\n\x08location\x18\x01 \x01(\x0b\x32%.maps.fleetengine.v1.TerminalLocation\x12\x0f\n\x07trip_id\x18\x02 \x01(\t\x12\x38\n\rwaypoint_type\x18\x03 \x01(\x0e\x32!.maps.fleetengine.v1.WaypointType\x12-\n\x10path_to_waypoint\x18\x04 \x03(\x0b\x32\x13.google.type.LatLng\x12 \n\x18\x65ncoded_path_to_waypoint\x18\x05 \x01(\t\x12K\n\x13traffic_to_waypoint\x18\n \x01(\x0b\x32..maps.fleetengine.v1.ConsumableTrafficPolyline\x12\x34\n\x0f\x64istance_meters\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\'\n\x03\x65ta\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x08\x64uration\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\"\x8f\x01\n\x10VehicleAttribute\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x16\n\x0cstring_value\x18\x03 \x01(\tH\x00\x12\x14\n\nbool_value\x18\x04 \x01(\x08H\x00\x12\x16\n\x0cnumber_value\x18\x05 \x01(\x01H\x00\x42\x19\n\x17vehicle_attribute_value\"\xa4\x0c\n\x0fVehicleLocation\x12%\n\x08location\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12=\n\x13horizontal_accuracy\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.DoubleValueB\x02\x18\x01\x12\x35\n\x0flatlng_accuracy\x18\x16 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12,\n\x07heading\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12:\n\x10\x62\x65\x61ring_accuracy\x18\n \x01(\x0b\x32\x1c.google.protobuf.DoubleValueB\x02\x18\x01\x12\x36\n\x10heading_accuracy\x18\x17 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12.\n\x08\x61ltitude\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12;\n\x11vertical_accuracy\x18\t \x01(\x0b\x32\x1c.google.protobuf.DoubleValueB\x02\x18\x01\x12\x37\n\x11\x61ltitude_accuracy\x18\x18 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x33\n\nspeed_kmph\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int32ValueB\x02\x18\x01\x12+\n\x05speed\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x34\n\x0espeed_accuracy\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x0bserver_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12<\n\x0flocation_sensor\x18\x0b \x01(\x0e\x32#.maps.fleetengine.v1.LocationSensor\x12\x33\n\x0fis_road_snapped\x18\x1b \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12>\n\x15is_gps_sensor_enabled\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x04\x12;\n\x11time_since_update\x18\x0e \x01(\x0b\x32\x1b.google.protobuf.Int32ValueB\x03\xe0\x41\x04\x12=\n\x11num_stale_updates\x18\x0f \x01(\x0b\x32\x1b.google.protobuf.Int32ValueB\x05\x18\x01\xe0\x41\x04\x12)\n\x0craw_location\x18\x10 \x01(\x0b\x32\x13.google.type.LatLng\x12\x35\n\x11raw_location_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\x13raw_location_sensor\x18\x1c \x01(\x0e\x32#.maps.fleetengine.v1.LocationSensor\x12;\n\x15raw_location_accuracy\x18\x19 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x32\n\x15supplemental_location\x18\x12 \x01(\x0b\x32\x13.google.type.LatLng\x12>\n\x1asupplemental_location_time\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12I\n\x1csupplemental_location_sensor\x18\x14 \x01(\x0e\x32#.maps.fleetengine.v1.LocationSensor\x12\x44\n\x1esupplemental_location_accuracy\x18\x15 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x18\n\x0croad_snapped\x18\x1a \x01(\x08\x42\x02\x18\x01*<\n\x08TripType\x12\x15\n\x11UNKNOWN_TRIP_TYPE\x10\x00\x12\n\n\x06SHARED\x10\x01\x12\r\n\tEXCLUSIVE\x10\x02*\x8b\x01\n\x0cWaypointType\x12\x19\n\x15UNKNOWN_WAYPOINT_TYPE\x10\x00\x12\x18\n\x14PICKUP_WAYPOINT_TYPE\x10\x01\x12\x1a\n\x16\x44ROP_OFF_WAYPOINT_TYPE\x10\x02\x12*\n&INTERMEDIATE_DESTINATION_WAYPOINT_TYPE\x10\x03*_\n\x12PolylineFormatType\x12\x17\n\x13UNKNOWN_FORMAT_TYPE\x10\x00\x12\x15\n\x11LAT_LNG_LIST_TYPE\x10\x01\x12\x19\n\x15\x45NCODED_POLYLINE_TYPE\x10\x02*\x89\x01\n\x10NavigationStatus\x12\x1d\n\x19UNKNOWN_NAVIGATION_STATUS\x10\x00\x12\x0f\n\x0bNO_GUIDANCE\x10\x01\x12\x1a\n\x16\x45NROUTE_TO_DESTINATION\x10\x02\x12\r\n\tOFF_ROUTE\x10\x03\x12\x1a\n\x16\x41RRIVED_AT_DESTINATION\x10\x04*\xd7\x01\n\x0eLocationSensor\x12\x12\n\x0eUNKNOWN_SENSOR\x10\x00\x12\x07\n\x03GPS\x10\x01\x12\x0b\n\x07NETWORK\x10\x02\x12\x0b\n\x07PASSIVE\x10\x03\x12\"\n\x1eROAD_SNAPPED_LOCATION_PROVIDER\x10\x04\x12\x1e\n\x1a\x43USTOMER_SUPPLIED_LOCATION\x10\x05\x12\x19\n\x15\x46LEET_ENGINE_LOCATION\x10\x06\x12\x1b\n\x17\x46USED_LOCATION_PROVIDER\x10\x64\x12\x12\n\rCORE_LOCATION\x10\xc8\x01\x42\xd7\x01\n\x1e\x63om.google.maps.fleetengine.v1B\x0b\x46leetEngineP\x01ZFcloud.google.com/go/maps/fleetengine/apiv1/fleetenginepb;fleetenginepb\xa2\x02\x03\x43\x46\x45\xaa\x02\x1aGoogle.Maps.FleetEngine.V1\xca\x02\x1aGoogle\\Maps\\FleetEngine\\V1\xea\x02\x1dGoogle::Maps::FleetEngine::V1b\x06proto3"
16
17
 
17
18
  pool = Google::Protobuf::DescriptorPool.generated_pool
18
19
 
@@ -18,7 +18,7 @@ require 'google/protobuf/field_mask_pb'
18
18
  require 'google/protobuf/timestamp_pb'
19
19
 
20
20
 
21
- descriptor_data = "\n)google/maps/fleetengine/v1/trip_api.proto\x12\x13maps.fleetengine.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,google/maps/fleetengine/v1/fleetengine.proto\x1a\'google/maps/fleetengine/v1/header.proto\x1a&google/maps/fleetengine/v1/trips.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc4\x01\n\x11\x43reateTripRequest\x12\x32\n\x06header\x18\x01 \x01(\x0b\x32\".maps.fleetengine.v1.RequestHeader\x12\x37\n\x06parent\x18\x03 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x66leetengine.googleapis.com/Trip\x12\x14\n\x07trip_id\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12,\n\x04trip\x18\x04 \x01(\x0b\x32\x19.maps.fleetengine.v1.TripB\x03\xe0\x41\x02\"\x82\x04\n\x0eGetTripRequest\x12\x32\n\x06header\x18\x01 \x01(\x0b\x32\".maps.fleetengine.v1.RequestHeader\x12\x35\n\x04name\x18\x03 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x66leetengine.googleapis.com/Trip\x12+\n\x04view\x18\x0b \x01(\x0e\x32\x1d.maps.fleetengine.v1.TripView\x12\x41\n\x1d\x63urrent_route_segment_version\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12?\n\x1bremaining_waypoints_version\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x11route_format_type\x18\x08 \x01(\x0e\x32\'.maps.fleetengine.v1.PolylineFormatType\x12I\n%current_route_segment_traffic_version\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n!remaining_waypoints_route_version\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xcd\x02\n\x19ReportBillableTripRequest\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63ountry_code\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12@\n\x08platform\x18\x05 \x01(\x0e\x32..maps.fleetengine.v1.BillingPlatformIdentifier\x12\x13\n\x0brelated_ids\x18\x06 \x03(\t\x12R\n\rsolution_type\x18\x07 \x01(\x0e\x32;.maps.fleetengine.v1.ReportBillableTripRequest.SolutionType\"W\n\x0cSolutionType\x12\x1d\n\x19SOLUTION_TYPE_UNSPECIFIED\x10\x00\x12(\n$ON_DEMAND_RIDESHARING_AND_DELIVERIES\x10\x01\"\xbe\x01\n\x11UpdateTripRequest\x12\x32\n\x06header\x18\x01 \x01(\x0b\x32\".maps.fleetengine.v1.RequestHeader\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12,\n\x04trip\x18\x04 \x01(\x0b\x32\x19.maps.fleetengine.v1.TripB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xe9\x01\n\x12SearchTripsRequest\x12\x32\n\x06header\x18\x01 \x01(\x0b\x32\".maps.fleetengine.v1.RequestHeader\x12\x13\n\x06parent\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nvehicle_id\x18\x04 \x01(\t\x12\x19\n\x11\x61\x63tive_trips_only\x18\x05 \x01(\x08\x12\x11\n\tpage_size\x18\x06 \x01(\x05\x12\x12\n\npage_token\x18\x07 \x01(\t\x12\x34\n\x11minimum_staleness\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\"X\n\x13SearchTripsResponse\x12(\n\x05trips\x18\x01 \x03(\x0b\x32\x19.maps.fleetengine.v1.Trip\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xd0\x07\n\x0bTripService\x12\xa8\x01\n\nCreateTrip\x12&.maps.fleetengine.v1.CreateTripRequest\x1a\x19.maps.fleetengine.v1.Trip\"W\x82\xd3\xe4\x93\x02&\"\x1e/v1/{parent=providers/*}/trips:\x04trip\x8a\xd3\xe4\x93\x02%\x12#\n\x06parent\x12\x19{provider_id=providers/*}\x12\x9a\x01\n\x07GetTrip\x12#.maps.fleetengine.v1.GetTripRequest\x1a\x19.maps.fleetengine.v1.Trip\"O\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{name=providers/*/trips/*}\x8a\xd3\xe4\x93\x02#\x12!\n\x04name\x12\x19{provider_id=providers/*}\x12\xbf\x01\n\x12ReportBillableTrip\x12..maps.fleetengine.v1.ReportBillableTripRequest\x1a\x16.google.protobuf.Empty\"a\x82\xd3\xe4\x93\x02\x32\"-/v1/{name=providers/*/billableTrips/*}:report:\x01*\x8a\xd3\xe4\x93\x02#\x12!\n\x04name\x12\x19{provider_id=providers/*}\x12\xbd\x01\n\x0bSearchTrips\x12\'.maps.fleetengine.v1.SearchTripsRequest\x1a(.maps.fleetengine.v1.SearchTripsResponse\"[\x82\xd3\xe4\x93\x02*\"%/v1/{parent=providers/*}/trips:search:\x01*\x8a\xd3\xe4\x93\x02%\x12#\n\x06parent\x12\x19{provider_id=providers/*}\x12\xa6\x01\n\nUpdateTrip\x12&.maps.fleetengine.v1.UpdateTripRequest\x1a\x19.maps.fleetengine.v1.Trip\"U\x82\xd3\xe4\x93\x02&\x1a\x1e/v1/{name=providers/*/trips/*}:\x04trip\x8a\xd3\xe4\x93\x02#\x12!\n\x04name\x12\x19{provider_id=providers/*}\x1aN\xca\x41\x1a\x66leetengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd3\x01\n\x1e\x63om.google.maps.fleetengine.v1B\x07TripApiP\x01ZFcloud.google.com/go/maps/fleetengine/apiv1/fleetenginepb;fleetenginepb\xa2\x02\x03\x43\x46\x45\xaa\x02\x1aGoogle.Maps.FleetEngine.V1\xca\x02\x1aGoogle\\Maps\\FleetEngine\\V1\xea\x02\x1dGoogle::Maps::FleetEngine::V1b\x06proto3"
21
+ descriptor_data = "\n)google/maps/fleetengine/v1/trip_api.proto\x12\x13maps.fleetengine.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,google/maps/fleetengine/v1/fleetengine.proto\x1a\'google/maps/fleetengine/v1/header.proto\x1a&google/maps/fleetengine/v1/trips.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc4\x01\n\x11\x43reateTripRequest\x12\x32\n\x06header\x18\x01 \x01(\x0b\x32\".maps.fleetengine.v1.RequestHeader\x12\x37\n\x06parent\x18\x03 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x66leetengine.googleapis.com/Trip\x12\x14\n\x07trip_id\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12,\n\x04trip\x18\x04 \x01(\x0b\x32\x19.maps.fleetengine.v1.TripB\x03\xe0\x41\x02\"\x82\x04\n\x0eGetTripRequest\x12\x32\n\x06header\x18\x01 \x01(\x0b\x32\".maps.fleetengine.v1.RequestHeader\x12\x35\n\x04name\x18\x03 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x66leetengine.googleapis.com/Trip\x12+\n\x04view\x18\x0b \x01(\x0e\x32\x1d.maps.fleetengine.v1.TripView\x12\x41\n\x1d\x63urrent_route_segment_version\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12?\n\x1bremaining_waypoints_version\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x11route_format_type\x18\x08 \x01(\x0e\x32\'.maps.fleetengine.v1.PolylineFormatType\x12I\n%current_route_segment_traffic_version\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n!remaining_waypoints_route_version\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x83\x01\n\x11\x44\x65leteTripRequest\x12\x37\n\x06header\x18\x01 \x01(\x0b\x32\".maps.fleetengine.v1.RequestHeaderB\x03\xe0\x41\x01\x12\x35\n\x04name\x18\x02 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x66leetengine.googleapis.com/Trip\"\xcd\x02\n\x19ReportBillableTripRequest\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x63ountry_code\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12@\n\x08platform\x18\x05 \x01(\x0e\x32..maps.fleetengine.v1.BillingPlatformIdentifier\x12\x13\n\x0brelated_ids\x18\x06 \x03(\t\x12R\n\rsolution_type\x18\x07 \x01(\x0e\x32;.maps.fleetengine.v1.ReportBillableTripRequest.SolutionType\"W\n\x0cSolutionType\x12\x1d\n\x19SOLUTION_TYPE_UNSPECIFIED\x10\x00\x12(\n$ON_DEMAND_RIDESHARING_AND_DELIVERIES\x10\x01\"\xbe\x01\n\x11UpdateTripRequest\x12\x32\n\x06header\x18\x01 \x01(\x0b\x32\".maps.fleetengine.v1.RequestHeader\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12,\n\x04trip\x18\x04 \x01(\x0b\x32\x19.maps.fleetengine.v1.TripB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xe9\x01\n\x12SearchTripsRequest\x12\x32\n\x06header\x18\x01 \x01(\x0b\x32\".maps.fleetengine.v1.RequestHeader\x12\x13\n\x06parent\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nvehicle_id\x18\x04 \x01(\t\x12\x19\n\x11\x61\x63tive_trips_only\x18\x05 \x01(\x08\x12\x11\n\tpage_size\x18\x06 \x01(\x05\x12\x12\n\npage_token\x18\x07 \x01(\t\x12\x34\n\x11minimum_staleness\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\"X\n\x13SearchTripsResponse\x12(\n\x05trips\x18\x01 \x03(\x0b\x32\x19.maps.fleetengine.v1.Trip\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xf7\x08\n\x0bTripService\x12\xa8\x01\n\nCreateTrip\x12&.maps.fleetengine.v1.CreateTripRequest\x1a\x19.maps.fleetengine.v1.Trip\"W\x82\xd3\xe4\x93\x02&\"\x1e/v1/{parent=providers/*}/trips:\x04trip\x8a\xd3\xe4\x93\x02%\x12#\n\x06parent\x12\x19{provider_id=providers/*}\x12\x9a\x01\n\x07GetTrip\x12#.maps.fleetengine.v1.GetTripRequest\x1a\x19.maps.fleetengine.v1.Trip\"O\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{name=providers/*/trips/*}\x8a\xd3\xe4\x93\x02#\x12!\n\x04name\x12\x19{provider_id=providers/*}\x12\xa4\x01\n\nDeleteTrip\x12&.maps.fleetengine.v1.DeleteTripRequest\x1a\x16.google.protobuf.Empty\"V\xda\x41\x04name\x82\xd3\xe4\x93\x02 *\x1e/v1/{name=providers/*/trips/*}\x8a\xd3\xe4\x93\x02#\x12!\n\x04name\x12\x19{provider_id=providers/*}\x12\xbf\x01\n\x12ReportBillableTrip\x12..maps.fleetengine.v1.ReportBillableTripRequest\x1a\x16.google.protobuf.Empty\"a\x82\xd3\xe4\x93\x02\x32\"-/v1/{name=providers/*/billableTrips/*}:report:\x01*\x8a\xd3\xe4\x93\x02#\x12!\n\x04name\x12\x19{provider_id=providers/*}\x12\xbd\x01\n\x0bSearchTrips\x12\'.maps.fleetengine.v1.SearchTripsRequest\x1a(.maps.fleetengine.v1.SearchTripsResponse\"[\x82\xd3\xe4\x93\x02*\"%/v1/{parent=providers/*}/trips:search:\x01*\x8a\xd3\xe4\x93\x02%\x12#\n\x06parent\x12\x19{provider_id=providers/*}\x12\xa6\x01\n\nUpdateTrip\x12&.maps.fleetengine.v1.UpdateTripRequest\x1a\x19.maps.fleetengine.v1.Trip\"U\x82\xd3\xe4\x93\x02&\x1a\x1e/v1/{name=providers/*/trips/*}:\x04trip\x8a\xd3\xe4\x93\x02#\x12!\n\x04name\x12\x19{provider_id=providers/*}\x1aN\xca\x41\x1a\x66leetengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd3\x01\n\x1e\x63om.google.maps.fleetengine.v1B\x07TripApiP\x01ZFcloud.google.com/go/maps/fleetengine/apiv1/fleetenginepb;fleetenginepb\xa2\x02\x03\x43\x46\x45\xaa\x02\x1aGoogle.Maps.FleetEngine.V1\xca\x02\x1aGoogle\\Maps\\FleetEngine\\V1\xea\x02\x1dGoogle::Maps::FleetEngine::V1b\x06proto3"
22
22
 
23
23
  pool = Google::Protobuf::DescriptorPool.generated_pool
24
24
 
@@ -55,6 +55,7 @@ module Google
55
55
  module V1
56
56
  CreateTripRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.v1.CreateTripRequest").msgclass
57
57
  GetTripRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.v1.GetTripRequest").msgclass
58
+ DeleteTripRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.v1.DeleteTripRequest").msgclass
58
59
  ReportBillableTripRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.v1.ReportBillableTripRequest").msgclass
59
60
  ReportBillableTripRequest::SolutionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.v1.ReportBillableTripRequest.SolutionType").enummodule
60
61
  UpdateTripRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.v1.UpdateTripRequest").msgclass
@@ -37,6 +37,11 @@ module Google
37
37
  rpc :CreateTrip, ::Google::Maps::FleetEngine::V1::CreateTripRequest, ::Google::Maps::FleetEngine::V1::Trip
38
38
  # Get information about a single trip.
39
39
  rpc :GetTrip, ::Google::Maps::FleetEngine::V1::GetTripRequest, ::Google::Maps::FleetEngine::V1::Trip
40
+ # Deletes a single Trip.
41
+ #
42
+ # Returns FAILED_PRECONDITION if the Trip is active and assigned to a
43
+ # vehicle.
44
+ rpc :DeleteTrip, ::Google::Maps::FleetEngine::V1::DeleteTripRequest, ::Google::Protobuf::Empty
40
45
  # Report billable trip usage.
41
46
  rpc :ReportBillableTrip, ::Google::Maps::FleetEngine::V1::ReportBillableTripRequest, ::Google::Protobuf::Empty
42
47
  # Get all the trips for a specific vehicle.
@@ -14,13 +14,14 @@ require 'google/maps/fleetengine/v1/fleetengine_pb'
14
14
  require 'google/maps/fleetengine/v1/header_pb'
15
15
  require 'google/maps/fleetengine/v1/vehicles_pb'
16
16
  require 'google/protobuf/duration_pb'
17
+ require 'google/protobuf/empty_pb'
17
18
  require 'google/protobuf/field_mask_pb'
18
19
  require 'google/protobuf/timestamp_pb'
19
20
  require 'google/protobuf/wrappers_pb'
20
21
  require 'google/type/latlng_pb'
21
22
 
22
23
 
23
- descriptor_data = "\n,google/maps/fleetengine/v1/vehicle_api.proto\x12\x13maps.fleetengine.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/v1/fleetengine.proto\x1a\'google/maps/fleetengine/v1/header.proto\x1a)google/maps/fleetengine/v1/vehicles.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x18google/type/latlng.proto\"\xac\x01\n\x14\x43reateVehicleRequest\x12\x32\n\x06header\x18\x01 \x01(\x0b\x32\".maps.fleetengine.v1.RequestHeader\x12\x13\n\x06parent\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nvehicle_id\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x32\n\x07vehicle\x18\x05 \x01(\x0b\x32\x1c.maps.fleetengine.v1.VehicleB\x03\xe0\x41\x02\"\xfb\x01\n\x11GetVehicleRequest\x12\x32\n\x06header\x18\x01 \x01(\x0b\x32\".maps.fleetengine.v1.RequestHeader\x12\x38\n\x04name\x18\x03 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"fleetengine.googleapis.com/Vehicle\x12\x41\n\x1d\x63urrent_route_segment_version\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11waypoints_version\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xc7\x01\n\x14UpdateVehicleRequest\x12\x32\n\x06header\x18\x01 \x01(\x0b\x32\".maps.fleetengine.v1.RequestHeader\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x32\n\x07vehicle\x18\x04 \x01(\x0b\x32\x1c.maps.fleetengine.v1.VehicleB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xa7\x01\n\x1eUpdateVehicleAttributesRequest\x12\x32\n\x06header\x18\x01 \x01(\x0b\x32\".maps.fleetengine.v1.RequestHeader\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12>\n\nattributes\x18\x04 \x03(\x0b\x32%.maps.fleetengine.v1.VehicleAttributeB\x03\xe0\x41\x02\"a\n\x1fUpdateVehicleAttributesResponse\x12>\n\nattributes\x18\x01 \x03(\x0b\x32%.maps.fleetengine.v1.VehicleAttributeB\x03\xe0\x41\x02\"\xc6\t\n\x15SearchVehiclesRequest\x12\x32\n\x06header\x18\x01 \x01(\x0b\x32\".maps.fleetengine.v1.RequestHeader\x12\x13\n\x06parent\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12@\n\x0cpickup_point\x18\x04 \x01(\x0b\x32%.maps.fleetengine.v1.TerminalLocationB\x03\xe0\x41\x02\x12<\n\rdropoff_point\x18\x05 \x01(\x0b\x32%.maps.fleetengine.v1.TerminalLocation\x12!\n\x14pickup_radius_meters\x18\x06 \x01(\x05\x42\x03\xe0\x41\x02\x12\x12\n\x05\x63ount\x18\x07 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1d\n\x10minimum_capacity\x18\x08 \x01(\x05\x42\x03\xe0\x41\x02\x12\x36\n\ntrip_types\x18\t \x03(\x0e\x32\x1d.maps.fleetengine.v1.TripTypeB\x03\xe0\x41\x02\x12\x34\n\x11maximum_staleness\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\rvehicle_types\x18\x0e \x03(\x0b\x32(.maps.fleetengine.v1.Vehicle.VehicleTypeB\x03\xe0\x41\x02\x12\x42\n\x13required_attributes\x18\x0c \x03(\x0b\x32%.maps.fleetengine.v1.VehicleAttribute\x12M\n\x1arequired_one_of_attributes\x18\x0f \x03(\x0b\x32).maps.fleetengine.v1.VehicleAttributeList\x12Q\n\x1erequired_one_of_attribute_sets\x18\x14 \x03(\x0b\x32).maps.fleetengine.v1.VehicleAttributeList\x12S\n\x08order_by\x18\r \x01(\x0e\x32<.maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrderB\x03\xe0\x41\x02\x12\x1c\n\x14include_back_to_back\x18\x12 \x01(\x08\x12\x0f\n\x07trip_id\x18\x13 \x01(\t\x12]\n\x15\x63urrent_trips_present\x18\x15 \x01(\x0e\x32>.maps.fleetengine.v1.SearchVehiclesRequest.CurrentTripsPresent\x12\x13\n\x06\x66ilter\x18\x16 \x01(\tB\x03\xe0\x41\x01\"\xaa\x01\n\x11VehicleMatchOrder\x12\x1f\n\x1bUNKNOWN_VEHICLE_MATCH_ORDER\x10\x00\x12\x14\n\x10PICKUP_POINT_ETA\x10\x01\x12\x19\n\x15PICKUP_POINT_DISTANCE\x10\x02\x12\x15\n\x11\x44ROPOFF_POINT_ETA\x10\x03\x12\"\n\x1ePICKUP_POINT_STRAIGHT_DISTANCE\x10\x04\x12\x08\n\x04\x43OST\x10\x05\"O\n\x13\x43urrentTripsPresent\x12%\n!CURRENT_TRIPS_PRESENT_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x07\n\x03\x41NY\x10\x02\"L\n\x16SearchVehiclesResponse\x12\x32\n\x07matches\x18\x01 \x03(\x0b\x32!.maps.fleetengine.v1.VehicleMatch\"\xfe\x04\n\x13ListVehiclesRequest\x12\x32\n\x06header\x18\x0c \x01(\x0b\x32\".maps.fleetengine.v1.RequestHeader\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x35\n\x10minimum_capacity\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x31\n\ntrip_types\x18\x07 \x03(\x0e\x32\x1d.maps.fleetengine.v1.TripType\x12\x34\n\x11maximum_staleness\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12W\n\x17vehicle_type_categories\x18\t \x03(\x0e\x32\x31.maps.fleetengine.v1.Vehicle.VehicleType.CategoryB\x03\xe0\x41\x02\x12\x1b\n\x13required_attributes\x18\n \x03(\t\x12\"\n\x1arequired_one_of_attributes\x18\r \x03(\t\x12&\n\x1erequired_one_of_attribute_sets\x18\x0f \x03(\t\x12\x38\n\rvehicle_state\x18\x0b \x01(\x0e\x32!.maps.fleetengine.v1.VehicleState\x12\x14\n\x0con_trip_only\x18\x0e \x01(\x08\x12\x13\n\x06\x66ilter\x18\x10 \x01(\tB\x03\xe0\x41\x01\x12\x30\n\x08viewport\x18\x11 \x01(\x0b\x32\x19.google.geo.type.ViewportB\x03\xe0\x41\x01\"x\n\x14ListVehiclesResponse\x12.\n\x08vehicles\x18\x01 \x03(\x0b\x32\x1c.maps.fleetengine.v1.Vehicle\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x17\n\ntotal_size\x18\x03 \x01(\x03\x42\x03\xe0\x41\x02\"Y\n\x08Waypoint\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12\'\n\x03\x65ta\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xfe\x06\n\x0cVehicleMatch\x12\x32\n\x07vehicle\x18\x01 \x01(\x0b\x32\x1c.maps.fleetengine.v1.VehicleB\x03\xe0\x41\x02\x12\x36\n\x12vehicle_pickup_eta\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x1evehicle_pickup_distance_meters\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12V\n,vehicle_pickup_straight_line_distance_meters\x18\x0b \x01(\x0b\x32\x1b.google.protobuf.Int32ValueB\x03\xe0\x41\x02\x12\x37\n\x13vehicle_dropoff_eta\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12N\n)vehicle_pickup_to_dropoff_distance_meters\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x35\n\ttrip_type\x18\x06 \x01(\x0e\x32\x1d.maps.fleetengine.v1.TripTypeB\x03\xe0\x41\x02\x12>\n\x17vehicle_trips_waypoints\x18\x07 \x03(\x0b\x32\x1d.maps.fleetengine.v1.Waypoint\x12N\n\x12vehicle_match_type\x18\x08 \x01(\x0e\x32\x32.maps.fleetengine.v1.VehicleMatch.VehicleMatchType\x12Z\n\x14requested_ordered_by\x18\t \x01(\x0e\x32<.maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder\x12P\n\nordered_by\x18\n \x01(\x0e\x32<.maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder\"g\n\x10VehicleMatchType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\r\n\tEXCLUSIVE\x10\x01\x12\x10\n\x0c\x42\x41\x43K_TO_BACK\x10\x02\x12\x0b\n\x07\x43\x41RPOOL\x10\x03\x12\x18\n\x14\x43\x41RPOOL_BACK_TO_BACK\x10\x04\"Q\n\x14VehicleAttributeList\x12\x39\n\nattributes\x18\x01 \x03(\x0b\x32%.maps.fleetengine.v1.VehicleAttribute2\xf2\t\n\x0eVehicleService\x12\xb7\x01\n\rCreateVehicle\x12).maps.fleetengine.v1.CreateVehicleRequest\x1a\x1c.maps.fleetengine.v1.Vehicle\"]\x82\xd3\xe4\x93\x02,\"!/v1/{parent=providers/*}/vehicles:\x07vehicle\x8a\xd3\xe4\x93\x02%\x12#\n\x06parent\x12\x19{provider_id=providers/*}\x12\xa6\x01\n\nGetVehicle\x12&.maps.fleetengine.v1.GetVehicleRequest\x1a\x1c.maps.fleetengine.v1.Vehicle\"R\x82\xd3\xe4\x93\x02#\x12!/v1/{name=providers/*/vehicles/*}\x8a\xd3\xe4\x93\x02#\x12!\n\x04name\x12\x19{provider_id=providers/*}\x12\xb5\x01\n\rUpdateVehicle\x12).maps.fleetengine.v1.UpdateVehicleRequest\x1a\x1c.maps.fleetengine.v1.Vehicle\"[\x82\xd3\xe4\x93\x02,\x1a!/v1/{name=providers/*/vehicles/*}:\x07vehicle\x8a\xd3\xe4\x93\x02#\x12!\n\x04name\x12\x19{provider_id=providers/*}\x12\xec\x01\n\x17UpdateVehicleAttributes\x12\x33.maps.fleetengine.v1.UpdateVehicleAttributesRequest\x1a\x34.maps.fleetengine.v1.UpdateVehicleAttributesResponse\"f\x82\xd3\xe4\x93\x02\x37\"2/v1/{name=providers/*/vehicles/*}:updateAttributes:\x01*\x8a\xd3\xe4\x93\x02#\x12!\n\x04name\x12\x19{provider_id=providers/*}\x12\xb9\x01\n\x0cListVehicles\x12(.maps.fleetengine.v1.ListVehiclesRequest\x1a).maps.fleetengine.v1.ListVehiclesResponse\"T\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=providers/*}/vehicles\x8a\xd3\xe4\x93\x02%\x12#\n\x06parent\x12\x19{provider_id=providers/*}\x12\xc9\x01\n\x0eSearchVehicles\x12*.maps.fleetengine.v1.SearchVehiclesRequest\x1a+.maps.fleetengine.v1.SearchVehiclesResponse\"^\x82\xd3\xe4\x93\x02-\"(/v1/{parent=providers/*}/vehicles:search:\x01*\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\xd6\x01\n\x1e\x63om.google.maps.fleetengine.v1B\nVehicleApiP\x01ZFcloud.google.com/go/maps/fleetengine/apiv1/fleetenginepb;fleetenginepb\xa2\x02\x03\x43\x46\x45\xaa\x02\x1aGoogle.Maps.FleetEngine.V1\xca\x02\x1aGoogle\\Maps\\FleetEngine\\V1\xea\x02\x1dGoogle::Maps::FleetEngine::V1b\x06proto3"
24
+ descriptor_data = "\n,google/maps/fleetengine/v1/vehicle_api.proto\x12\x13maps.fleetengine.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/v1/fleetengine.proto\x1a\'google/maps/fleetengine/v1/header.proto\x1a)google/maps/fleetengine/v1/vehicles.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x18google/type/latlng.proto\"\xac\x01\n\x14\x43reateVehicleRequest\x12\x32\n\x06header\x18\x01 \x01(\x0b\x32\".maps.fleetengine.v1.RequestHeader\x12\x13\n\x06parent\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nvehicle_id\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x32\n\x07vehicle\x18\x05 \x01(\x0b\x32\x1c.maps.fleetengine.v1.VehicleB\x03\xe0\x41\x02\"\xfb\x01\n\x11GetVehicleRequest\x12\x32\n\x06header\x18\x01 \x01(\x0b\x32\".maps.fleetengine.v1.RequestHeader\x12\x38\n\x04name\x18\x03 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"fleetengine.googleapis.com/Vehicle\x12\x41\n\x1d\x63urrent_route_segment_version\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11waypoints_version\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x89\x01\n\x14\x44\x65leteVehicleRequest\x12\x37\n\x06header\x18\x01 \x01(\x0b\x32\".maps.fleetengine.v1.RequestHeaderB\x03\xe0\x41\x01\x12\x38\n\x04name\x18\x02 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"fleetengine.googleapis.com/Vehicle\"\xc7\x01\n\x14UpdateVehicleRequest\x12\x32\n\x06header\x18\x01 \x01(\x0b\x32\".maps.fleetengine.v1.RequestHeader\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x32\n\x07vehicle\x18\x04 \x01(\x0b\x32\x1c.maps.fleetengine.v1.VehicleB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xa7\x01\n\x1eUpdateVehicleAttributesRequest\x12\x32\n\x06header\x18\x01 \x01(\x0b\x32\".maps.fleetengine.v1.RequestHeader\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12>\n\nattributes\x18\x04 \x03(\x0b\x32%.maps.fleetengine.v1.VehicleAttributeB\x03\xe0\x41\x02\"a\n\x1fUpdateVehicleAttributesResponse\x12>\n\nattributes\x18\x01 \x03(\x0b\x32%.maps.fleetengine.v1.VehicleAttributeB\x03\xe0\x41\x02\"\xc6\t\n\x15SearchVehiclesRequest\x12\x32\n\x06header\x18\x01 \x01(\x0b\x32\".maps.fleetengine.v1.RequestHeader\x12\x13\n\x06parent\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12@\n\x0cpickup_point\x18\x04 \x01(\x0b\x32%.maps.fleetengine.v1.TerminalLocationB\x03\xe0\x41\x02\x12<\n\rdropoff_point\x18\x05 \x01(\x0b\x32%.maps.fleetengine.v1.TerminalLocation\x12!\n\x14pickup_radius_meters\x18\x06 \x01(\x05\x42\x03\xe0\x41\x02\x12\x12\n\x05\x63ount\x18\x07 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1d\n\x10minimum_capacity\x18\x08 \x01(\x05\x42\x03\xe0\x41\x02\x12\x36\n\ntrip_types\x18\t \x03(\x0e\x32\x1d.maps.fleetengine.v1.TripTypeB\x03\xe0\x41\x02\x12\x34\n\x11maximum_staleness\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\rvehicle_types\x18\x0e \x03(\x0b\x32(.maps.fleetengine.v1.Vehicle.VehicleTypeB\x03\xe0\x41\x02\x12\x42\n\x13required_attributes\x18\x0c \x03(\x0b\x32%.maps.fleetengine.v1.VehicleAttribute\x12M\n\x1arequired_one_of_attributes\x18\x0f \x03(\x0b\x32).maps.fleetengine.v1.VehicleAttributeList\x12Q\n\x1erequired_one_of_attribute_sets\x18\x14 \x03(\x0b\x32).maps.fleetengine.v1.VehicleAttributeList\x12S\n\x08order_by\x18\r \x01(\x0e\x32<.maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrderB\x03\xe0\x41\x02\x12\x1c\n\x14include_back_to_back\x18\x12 \x01(\x08\x12\x0f\n\x07trip_id\x18\x13 \x01(\t\x12]\n\x15\x63urrent_trips_present\x18\x15 \x01(\x0e\x32>.maps.fleetengine.v1.SearchVehiclesRequest.CurrentTripsPresent\x12\x13\n\x06\x66ilter\x18\x16 \x01(\tB\x03\xe0\x41\x01\"\xaa\x01\n\x11VehicleMatchOrder\x12\x1f\n\x1bUNKNOWN_VEHICLE_MATCH_ORDER\x10\x00\x12\x14\n\x10PICKUP_POINT_ETA\x10\x01\x12\x19\n\x15PICKUP_POINT_DISTANCE\x10\x02\x12\x15\n\x11\x44ROPOFF_POINT_ETA\x10\x03\x12\"\n\x1ePICKUP_POINT_STRAIGHT_DISTANCE\x10\x04\x12\x08\n\x04\x43OST\x10\x05\"O\n\x13\x43urrentTripsPresent\x12%\n!CURRENT_TRIPS_PRESENT_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x07\n\x03\x41NY\x10\x02\"L\n\x16SearchVehiclesResponse\x12\x32\n\x07matches\x18\x01 \x03(\x0b\x32!.maps.fleetengine.v1.VehicleMatch\"\xfe\x04\n\x13ListVehiclesRequest\x12\x32\n\x06header\x18\x0c \x01(\x0b\x32\".maps.fleetengine.v1.RequestHeader\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x35\n\x10minimum_capacity\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x31\n\ntrip_types\x18\x07 \x03(\x0e\x32\x1d.maps.fleetengine.v1.TripType\x12\x34\n\x11maximum_staleness\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12W\n\x17vehicle_type_categories\x18\t \x03(\x0e\x32\x31.maps.fleetengine.v1.Vehicle.VehicleType.CategoryB\x03\xe0\x41\x02\x12\x1b\n\x13required_attributes\x18\n \x03(\t\x12\"\n\x1arequired_one_of_attributes\x18\r \x03(\t\x12&\n\x1erequired_one_of_attribute_sets\x18\x0f \x03(\t\x12\x38\n\rvehicle_state\x18\x0b \x01(\x0e\x32!.maps.fleetengine.v1.VehicleState\x12\x14\n\x0con_trip_only\x18\x0e \x01(\x08\x12\x13\n\x06\x66ilter\x18\x10 \x01(\tB\x03\xe0\x41\x01\x12\x30\n\x08viewport\x18\x11 \x01(\x0b\x32\x19.google.geo.type.ViewportB\x03\xe0\x41\x01\"x\n\x14ListVehiclesResponse\x12.\n\x08vehicles\x18\x01 \x03(\x0b\x32\x1c.maps.fleetengine.v1.Vehicle\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x17\n\ntotal_size\x18\x03 \x01(\x03\x42\x03\xe0\x41\x02\"Y\n\x08Waypoint\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12\'\n\x03\x65ta\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xfe\x06\n\x0cVehicleMatch\x12\x32\n\x07vehicle\x18\x01 \x01(\x0b\x32\x1c.maps.fleetengine.v1.VehicleB\x03\xe0\x41\x02\x12\x36\n\x12vehicle_pickup_eta\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x1evehicle_pickup_distance_meters\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12V\n,vehicle_pickup_straight_line_distance_meters\x18\x0b \x01(\x0b\x32\x1b.google.protobuf.Int32ValueB\x03\xe0\x41\x02\x12\x37\n\x13vehicle_dropoff_eta\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12N\n)vehicle_pickup_to_dropoff_distance_meters\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x35\n\ttrip_type\x18\x06 \x01(\x0e\x32\x1d.maps.fleetengine.v1.TripTypeB\x03\xe0\x41\x02\x12>\n\x17vehicle_trips_waypoints\x18\x07 \x03(\x0b\x32\x1d.maps.fleetengine.v1.Waypoint\x12N\n\x12vehicle_match_type\x18\x08 \x01(\x0e\x32\x32.maps.fleetengine.v1.VehicleMatch.VehicleMatchType\x12Z\n\x14requested_ordered_by\x18\t \x01(\x0e\x32<.maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder\x12P\n\nordered_by\x18\n \x01(\x0e\x32<.maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder\"g\n\x10VehicleMatchType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\r\n\tEXCLUSIVE\x10\x01\x12\x10\n\x0c\x42\x41\x43K_TO_BACK\x10\x02\x12\x0b\n\x07\x43\x41RPOOL\x10\x03\x12\x18\n\x14\x43\x41RPOOL_BACK_TO_BACK\x10\x04\"Q\n\x14VehicleAttributeList\x12\x39\n\nattributes\x18\x01 \x03(\x0b\x32%.maps.fleetengine.v1.VehicleAttribute2\xa2\x0b\n\x0eVehicleService\x12\xb7\x01\n\rCreateVehicle\x12).maps.fleetengine.v1.CreateVehicleRequest\x1a\x1c.maps.fleetengine.v1.Vehicle\"]\x82\xd3\xe4\x93\x02,\"!/v1/{parent=providers/*}/vehicles:\x07vehicle\x8a\xd3\xe4\x93\x02%\x12#\n\x06parent\x12\x19{provider_id=providers/*}\x12\xa6\x01\n\nGetVehicle\x12&.maps.fleetengine.v1.GetVehicleRequest\x1a\x1c.maps.fleetengine.v1.Vehicle\"R\x82\xd3\xe4\x93\x02#\x12!/v1/{name=providers/*/vehicles/*}\x8a\xd3\xe4\x93\x02#\x12!\n\x04name\x12\x19{provider_id=providers/*}\x12\xad\x01\n\rDeleteVehicle\x12).maps.fleetengine.v1.DeleteVehicleRequest\x1a\x16.google.protobuf.Empty\"Y\xda\x41\x04name\x82\xd3\xe4\x93\x02#*!/v1/{name=providers/*/vehicles/*}\x8a\xd3\xe4\x93\x02#\x12!\n\x04name\x12\x19{provider_id=providers/*}\x12\xb5\x01\n\rUpdateVehicle\x12).maps.fleetengine.v1.UpdateVehicleRequest\x1a\x1c.maps.fleetengine.v1.Vehicle\"[\x82\xd3\xe4\x93\x02,\x1a!/v1/{name=providers/*/vehicles/*}:\x07vehicle\x8a\xd3\xe4\x93\x02#\x12!\n\x04name\x12\x19{provider_id=providers/*}\x12\xec\x01\n\x17UpdateVehicleAttributes\x12\x33.maps.fleetengine.v1.UpdateVehicleAttributesRequest\x1a\x34.maps.fleetengine.v1.UpdateVehicleAttributesResponse\"f\x82\xd3\xe4\x93\x02\x37\"2/v1/{name=providers/*/vehicles/*}:updateAttributes:\x01*\x8a\xd3\xe4\x93\x02#\x12!\n\x04name\x12\x19{provider_id=providers/*}\x12\xb9\x01\n\x0cListVehicles\x12(.maps.fleetengine.v1.ListVehiclesRequest\x1a).maps.fleetengine.v1.ListVehiclesResponse\"T\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=providers/*}/vehicles\x8a\xd3\xe4\x93\x02%\x12#\n\x06parent\x12\x19{provider_id=providers/*}\x12\xc9\x01\n\x0eSearchVehicles\x12*.maps.fleetengine.v1.SearchVehiclesRequest\x1a+.maps.fleetengine.v1.SearchVehiclesResponse\"^\x82\xd3\xe4\x93\x02-\"(/v1/{parent=providers/*}/vehicles:search:\x01*\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\xd6\x01\n\x1e\x63om.google.maps.fleetengine.v1B\nVehicleApiP\x01ZFcloud.google.com/go/maps/fleetengine/apiv1/fleetenginepb;fleetenginepb\xa2\x02\x03\x43\x46\x45\xaa\x02\x1aGoogle.Maps.FleetEngine.V1\xca\x02\x1aGoogle\\Maps\\FleetEngine\\V1\xea\x02\x1dGoogle::Maps::FleetEngine::V1b\x06proto3"
24
25
 
25
26
  pool = Google::Protobuf::DescriptorPool.generated_pool
26
27
 
@@ -61,6 +62,7 @@ module Google
61
62
  module V1
62
63
  CreateVehicleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.v1.CreateVehicleRequest").msgclass
63
64
  GetVehicleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.v1.GetVehicleRequest").msgclass
65
+ DeleteVehicleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.v1.DeleteVehicleRequest").msgclass
64
66
  UpdateVehicleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.v1.UpdateVehicleRequest").msgclass
65
67
  UpdateVehicleAttributesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.v1.UpdateVehicleAttributesRequest").msgclass
66
68
  UpdateVehicleAttributesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.v1.UpdateVehicleAttributesResponse").msgclass
@@ -64,6 +64,11 @@ module Google
64
64
  rpc :CreateVehicle, ::Google::Maps::FleetEngine::V1::CreateVehicleRequest, ::Google::Maps::FleetEngine::V1::Vehicle
65
65
  # Returns a vehicle from the Fleet Engine.
66
66
  rpc :GetVehicle, ::Google::Maps::FleetEngine::V1::GetVehicleRequest, ::Google::Maps::FleetEngine::V1::Vehicle
67
+ # Deletes a Vehicle from the Fleet Engine.
68
+ #
69
+ # Returns FAILED_PRECONDITION if the Vehicle has active Trips.
70
+ # assigned to it.
71
+ rpc :DeleteVehicle, ::Google::Maps::FleetEngine::V1::DeleteVehicleRequest, ::Google::Protobuf::Empty
67
72
  # Writes updated vehicle data to the Fleet Engine.
68
73
  #
69
74
  # When updating a `Vehicle`, the following fields cannot be updated since
@@ -11,7 +11,7 @@ require 'google/protobuf/timestamp_pb'
11
11
  require 'google/protobuf/wrappers_pb'
12
12
 
13
13
 
14
- descriptor_data = "\n)google/maps/fleetengine/v1/vehicles.proto\x12\x13maps.fleetengine.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a,google/maps/fleetengine/v1/fleetengine.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xe2\x0b\n\x07Vehicle\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x38\n\rvehicle_state\x18\x02 \x01(\x0e\x32!.maps.fleetengine.v1.VehicleState\x12;\n\x14supported_trip_types\x18\x03 \x03(\x0e\x32\x1d.maps.fleetengine.v1.TripType\x12\x1a\n\rcurrent_trips\x18\x04 \x03(\tB\x03\xe0\x41\x03\x12;\n\rlast_location\x18\x05 \x01(\x0b\x32$.maps.fleetengine.v1.VehicleLocation\x12\x18\n\x10maximum_capacity\x18\x06 \x01(\x05\x12\x39\n\nattributes\x18\x08 \x03(\x0b\x32%.maps.fleetengine.v1.VehicleAttribute\x12\x43\n\x0cvehicle_type\x18\t \x01(\x0b\x32(.maps.fleetengine.v1.Vehicle.VehicleTypeB\x03\xe0\x41\x02\x12\x38\n\rlicense_plate\x18\n \x01(\x0b\x32!.maps.fleetengine.v1.LicensePlate\x12\x38\n\x05route\x18\x0c \x03(\x0b\x32%.maps.fleetengine.v1.TerminalLocationB\x02\x18\x01\x12\x1d\n\x15\x63urrent_route_segment\x18\x14 \x01(\t\x12T\n\x1d\x63urrent_route_segment_traffic\x18\x1c \x01(\x0b\x32(.maps.fleetengine.v1.TrafficPolylineDataB\x03\xe0\x41\x04\x12\x46\n\x1d\x63urrent_route_segment_version\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12J\n\x1f\x63urrent_route_segment_end_point\x18\x18 \x01(\x0b\x32!.maps.fleetengine.v1.TripWaypoint\x12>\n\x19remaining_distance_meters\x18\x12 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x39\n\x15\x65ta_to_first_waypoint\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\x16remaining_time_seconds\x18\x19 \x01(\x0b\x32\x1b.google.protobuf.Int32ValueB\x03\xe0\x41\x04\x12\x34\n\twaypoints\x18\x16 \x03(\x0b\x32!.maps.fleetengine.v1.TripWaypoint\x12:\n\x11waypoints_version\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1c\n\x14\x62\x61\x63k_to_back_enabled\x18\x17 \x01(\x08\x12@\n\x11navigation_status\x18\x1a \x01(\x0e\x32%.maps.fleetengine.v1.NavigationStatus\x12\x41\n\x0f\x64\x65vice_settings\x18\x1b \x01(\x0b\x32#.maps.fleetengine.v1.DeviceSettingsB\x03\xe0\x41\x04\x1a\xb8\x01\n\x0bVehicleType\x12\x43\n\x08\x63\x61tegory\x18\x01 \x01(\x0e\x32\x31.maps.fleetengine.v1.Vehicle.VehicleType.Category\"d\n\x08\x43\x61tegory\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x12\x08\n\x04TAXI\x10\x02\x12\t\n\x05TRUCK\x10\x03\x12\x0f\n\x0bTWO_WHEELER\x10\x04\x12\x0b\n\x07\x42ICYCLE\x10\x05\x12\x0e\n\nPEDESTRIAN\x10\x06:P\xea\x41M\n\"fleetengine.googleapis.com/Vehicle\x12\'providers/{provider}/vehicles/{vehicle}\"\x9d\x01\n\x0b\x42\x61tteryInfo\x12:\n\x0e\x62\x61ttery_status\x18\x01 \x01(\x0e\x32\".maps.fleetengine.v1.BatteryStatus\x12\x36\n\x0cpower_source\x18\x02 \x01(\x0e\x32 .maps.fleetengine.v1.PowerSource\x12\x1a\n\x12\x62\x61ttery_percentage\x18\x03 \x01(\x02\"\xca\x01\n\x0e\x44\x65viceSettings\x12L\n\x18location_power_save_mode\x18\x01 \x01(\x0e\x32*.maps.fleetengine.v1.LocationPowerSaveMode\x12\x1a\n\x12is_power_save_mode\x18\x02 \x01(\x08\x12\x16\n\x0eis_interactive\x18\x03 \x01(\x08\x12\x36\n\x0c\x62\x61ttery_info\x18\x04 \x01(\x0b\x32 .maps.fleetengine.v1.BatteryInfo\"A\n\x0cLicensePlate\x12\x19\n\x0c\x63ountry_code\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\x0elast_character\x18\x02 \x01(\t\"\xf6\x02\n$VisualTrafficReportPolylineRendering\x12`\n\x0croad_stretch\x18\x01 \x03(\x0b\x32\x45.maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretchB\x03\xe0\x41\x01\x1a\xeb\x01\n\x0bRoadStretch\x12_\n\x05style\x18\x01 \x01(\x0e\x32K.maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch.StyleB\x03\xe0\x41\x02\x12\x1a\n\roffset_meters\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1a\n\rlength_meters\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02\"C\n\x05Style\x12\x15\n\x11STYLE_UNSPECIFIED\x10\x00\x12\x12\n\x0eSLOWER_TRAFFIC\x10\x01\x12\x0f\n\x0bTRAFFIC_JAM\x10\x02\"k\n\x13TrafficPolylineData\x12T\n\x11traffic_rendering\x18\x01 \x01(\x0b\x32\x39.maps.fleetengine.v1.VisualTrafficReportPolylineRendering*B\n\x0cVehicleState\x12\x19\n\x15UNKNOWN_VEHICLE_STATE\x10\x00\x12\x0b\n\x07OFFLINE\x10\x01\x12\n\n\x06ONLINE\x10\x02*\x92\x02\n\x15LocationPowerSaveMode\x12$\n UNKNOWN_LOCATION_POWER_SAVE_MODE\x10\x00\x12\x1b\n\x17LOCATION_MODE_NO_CHANGE\x10\x01\x12.\n*LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF\x10\x02\x12.\n*LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF\x10\x03\x12!\n\x1dLOCATION_MODE_FOREGROUND_ONLY\x10\x04\x12\x33\n/LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF\x10\x05*\xc0\x01\n\rBatteryStatus\x12\x1a\n\x16UNKNOWN_BATTERY_STATUS\x10\x00\x12\x1b\n\x17\x42\x41TTERY_STATUS_CHARGING\x10\x01\x12\x1e\n\x1a\x42\x41TTERY_STATUS_DISCHARGING\x10\x02\x12\x17\n\x13\x42\x41TTERY_STATUS_FULL\x10\x03\x12\x1f\n\x1b\x42\x41TTERY_STATUS_NOT_CHARGING\x10\x04\x12\x1c\n\x18\x42\x41TTERY_STATUS_POWER_LOW\x10\x05*\x89\x01\n\x0bPowerSource\x12\x18\n\x14UNKNOWN_POWER_SOURCE\x10\x00\x12\x13\n\x0fPOWER_SOURCE_AC\x10\x01\x12\x14\n\x10POWER_SOURCE_USB\x10\x02\x12\x19\n\x15POWER_SOURCE_WIRELESS\x10\x03\x12\x1a\n\x16POWER_SOURCE_UNPLUGGED\x10\x04\x42\xd4\x01\n\x1e\x63om.google.maps.fleetengine.v1B\x08VehiclesP\x01ZFcloud.google.com/go/maps/fleetengine/apiv1/fleetenginepb;fleetenginepb\xa2\x02\x03\x43\x46\x45\xaa\x02\x1aGoogle.Maps.FleetEngine.V1\xca\x02\x1aGoogle\\Maps\\FleetEngine\\V1\xea\x02\x1dGoogle::Maps::FleetEngine::V1b\x06proto3"
14
+ descriptor_data = "\n)google/maps/fleetengine/v1/vehicles.proto\x12\x13maps.fleetengine.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a,google/maps/fleetengine/v1/fleetengine.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xa5\x0c\n\x07Vehicle\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x38\n\rvehicle_state\x18\x02 \x01(\x0e\x32!.maps.fleetengine.v1.VehicleState\x12;\n\x14supported_trip_types\x18\x03 \x03(\x0e\x32\x1d.maps.fleetengine.v1.TripType\x12\x1a\n\rcurrent_trips\x18\x04 \x03(\tB\x03\xe0\x41\x03\x12;\n\rlast_location\x18\x05 \x01(\x0b\x32$.maps.fleetengine.v1.VehicleLocation\x12\x41\n\x0epast_locations\x18\x1e \x03(\x0b\x32$.maps.fleetengine.v1.VehicleLocationB\x03\xe0\x41\x04\x12\x18\n\x10maximum_capacity\x18\x06 \x01(\x05\x12\x39\n\nattributes\x18\x08 \x03(\x0b\x32%.maps.fleetengine.v1.VehicleAttribute\x12\x43\n\x0cvehicle_type\x18\t \x01(\x0b\x32(.maps.fleetengine.v1.Vehicle.VehicleTypeB\x03\xe0\x41\x02\x12\x38\n\rlicense_plate\x18\n \x01(\x0b\x32!.maps.fleetengine.v1.LicensePlate\x12\x38\n\x05route\x18\x0c \x03(\x0b\x32%.maps.fleetengine.v1.TerminalLocationB\x02\x18\x01\x12\x1d\n\x15\x63urrent_route_segment\x18\x14 \x01(\t\x12T\n\x1d\x63urrent_route_segment_traffic\x18\x1c \x01(\x0b\x32(.maps.fleetengine.v1.TrafficPolylineDataB\x03\xe0\x41\x04\x12\x46\n\x1d\x63urrent_route_segment_version\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12J\n\x1f\x63urrent_route_segment_end_point\x18\x18 \x01(\x0b\x32!.maps.fleetengine.v1.TripWaypoint\x12>\n\x19remaining_distance_meters\x18\x12 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x39\n\x15\x65ta_to_first_waypoint\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\x16remaining_time_seconds\x18\x19 \x01(\x0b\x32\x1b.google.protobuf.Int32ValueB\x03\xe0\x41\x04\x12\x34\n\twaypoints\x18\x16 \x03(\x0b\x32!.maps.fleetengine.v1.TripWaypoint\x12:\n\x11waypoints_version\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1c\n\x14\x62\x61\x63k_to_back_enabled\x18\x17 \x01(\x08\x12@\n\x11navigation_status\x18\x1a \x01(\x0e\x32%.maps.fleetengine.v1.NavigationStatus\x12\x41\n\x0f\x64\x65vice_settings\x18\x1b \x01(\x0b\x32#.maps.fleetengine.v1.DeviceSettingsB\x03\xe0\x41\x04\x1a\xb8\x01\n\x0bVehicleType\x12\x43\n\x08\x63\x61tegory\x18\x01 \x01(\x0e\x32\x31.maps.fleetengine.v1.Vehicle.VehicleType.Category\"d\n\x08\x43\x61tegory\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x12\x08\n\x04TAXI\x10\x02\x12\t\n\x05TRUCK\x10\x03\x12\x0f\n\x0bTWO_WHEELER\x10\x04\x12\x0b\n\x07\x42ICYCLE\x10\x05\x12\x0e\n\nPEDESTRIAN\x10\x06:P\xea\x41M\n\"fleetengine.googleapis.com/Vehicle\x12\'providers/{provider}/vehicles/{vehicle}\"\x9d\x01\n\x0b\x42\x61tteryInfo\x12:\n\x0e\x62\x61ttery_status\x18\x01 \x01(\x0e\x32\".maps.fleetengine.v1.BatteryStatus\x12\x36\n\x0cpower_source\x18\x02 \x01(\x0e\x32 .maps.fleetengine.v1.PowerSource\x12\x1a\n\x12\x62\x61ttery_percentage\x18\x03 \x01(\x02\"\xca\x01\n\x0e\x44\x65viceSettings\x12L\n\x18location_power_save_mode\x18\x01 \x01(\x0e\x32*.maps.fleetengine.v1.LocationPowerSaveMode\x12\x1a\n\x12is_power_save_mode\x18\x02 \x01(\x08\x12\x16\n\x0eis_interactive\x18\x03 \x01(\x08\x12\x36\n\x0c\x62\x61ttery_info\x18\x04 \x01(\x0b\x32 .maps.fleetengine.v1.BatteryInfo\"A\n\x0cLicensePlate\x12\x19\n\x0c\x63ountry_code\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\x0elast_character\x18\x02 \x01(\t\"\xf6\x02\n$VisualTrafficReportPolylineRendering\x12`\n\x0croad_stretch\x18\x01 \x03(\x0b\x32\x45.maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretchB\x03\xe0\x41\x01\x1a\xeb\x01\n\x0bRoadStretch\x12_\n\x05style\x18\x01 \x01(\x0e\x32K.maps.fleetengine.v1.VisualTrafficReportPolylineRendering.RoadStretch.StyleB\x03\xe0\x41\x02\x12\x1a\n\roffset_meters\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1a\n\rlength_meters\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02\"C\n\x05Style\x12\x15\n\x11STYLE_UNSPECIFIED\x10\x00\x12\x12\n\x0eSLOWER_TRAFFIC\x10\x01\x12\x0f\n\x0bTRAFFIC_JAM\x10\x02\"k\n\x13TrafficPolylineData\x12T\n\x11traffic_rendering\x18\x01 \x01(\x0b\x32\x39.maps.fleetengine.v1.VisualTrafficReportPolylineRendering*B\n\x0cVehicleState\x12\x19\n\x15UNKNOWN_VEHICLE_STATE\x10\x00\x12\x0b\n\x07OFFLINE\x10\x01\x12\n\n\x06ONLINE\x10\x02*\x92\x02\n\x15LocationPowerSaveMode\x12$\n UNKNOWN_LOCATION_POWER_SAVE_MODE\x10\x00\x12\x1b\n\x17LOCATION_MODE_NO_CHANGE\x10\x01\x12.\n*LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF\x10\x02\x12.\n*LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF\x10\x03\x12!\n\x1dLOCATION_MODE_FOREGROUND_ONLY\x10\x04\x12\x33\n/LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF\x10\x05*\xc0\x01\n\rBatteryStatus\x12\x1a\n\x16UNKNOWN_BATTERY_STATUS\x10\x00\x12\x1b\n\x17\x42\x41TTERY_STATUS_CHARGING\x10\x01\x12\x1e\n\x1a\x42\x41TTERY_STATUS_DISCHARGING\x10\x02\x12\x17\n\x13\x42\x41TTERY_STATUS_FULL\x10\x03\x12\x1f\n\x1b\x42\x41TTERY_STATUS_NOT_CHARGING\x10\x04\x12\x1c\n\x18\x42\x41TTERY_STATUS_POWER_LOW\x10\x05*\x89\x01\n\x0bPowerSource\x12\x18\n\x14UNKNOWN_POWER_SOURCE\x10\x00\x12\x13\n\x0fPOWER_SOURCE_AC\x10\x01\x12\x14\n\x10POWER_SOURCE_USB\x10\x02\x12\x19\n\x15POWER_SOURCE_WIRELESS\x10\x03\x12\x1a\n\x16POWER_SOURCE_UNPLUGGED\x10\x04\x42\xd4\x01\n\x1e\x63om.google.maps.fleetengine.v1B\x08VehiclesP\x01ZFcloud.google.com/go/maps/fleetengine/apiv1/fleetenginepb;fleetenginepb\xa2\x02\x03\x43\x46\x45\xaa\x02\x1aGoogle.Maps.FleetEngine.V1\xca\x02\x1aGoogle\\Maps\\FleetEngine\\V1\xea\x02\x1dGoogle::Maps::FleetEngine::V1b\x06proto3"
15
15
 
16
16
  pool = Google::Protobuf::DescriptorPool.generated_pool
17
17
 
@@ -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
- # In the examples below I am skipping the percent-encoding for readablity.
55
+ # The examples below skip the percent-encoding for readability.
56
56
  #
57
57
  # Example 1
58
58
  #
@@ -28,10 +28,14 @@ module Google
28
28
  # @deprecated This field is deprecated and may be removed in the next major version update.
29
29
  # @return [::String]
30
30
  # Deprecated.
31
+ #
32
+ # Note: The following fields are mutually exclusive: `place_id`, `generated_id`. If a field in that set is populated, all other fields in the set will automatically be cleared.
31
33
  # @!attribute [rw] generated_id
32
34
  # @deprecated This field is deprecated and may be removed in the next major version update.
33
35
  # @return [::String]
34
36
  # Deprecated.
37
+ #
38
+ # Note: The following fields are mutually exclusive: `generated_id`, `place_id`. If a field in that set is populated, all other fields in the set will automatically be cleared.
35
39
  # @!attribute [rw] value
36
40
  # @deprecated This field is deprecated and may be removed in the next major version update.
37
41
  # @return [::String]
@@ -126,12 +130,18 @@ module Google
126
130
  # it's strongly recommended to use `string_value`. If both `string_value`
127
131
  # and `value` are set, they must be identical or an error will be thrown.
128
132
  # Both fields are populated in responses.
133
+ #
134
+ # 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.
129
135
  # @!attribute [rw] bool_value
130
136
  # @return [::Boolean]
131
137
  # Boolean typed attribute value.
138
+ #
139
+ # 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.
132
140
  # @!attribute [rw] number_value
133
141
  # @return [::Float]
134
142
  # Double typed attribute value.
143
+ #
144
+ # 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.
135
145
  class VehicleAttribute
136
146
  include ::Google::Protobuf::MessageExts
137
147
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -135,6 +135,21 @@ module Google
135
135
  extend ::Google::Protobuf::MessageExts::ClassMethods
136
136
  end
137
137
 
138
+ # DeleteTrip request message.
139
+ # @!attribute [rw] header
140
+ # @return [::Google::Maps::FleetEngine::V1::RequestHeader]
141
+ # Optional. The standard Fleet Engine request header.
142
+ # @!attribute [rw] name
143
+ # @return [::String]
144
+ # Required. Must be in the format `providers/{provider}/trips/{trip}`.
145
+ # The provider must be the Project ID (for example, `sample-cloud-project`)
146
+ # of the Google Cloud Project of which the service account making
147
+ # this call is a member.
148
+ class DeleteTripRequest
149
+ include ::Google::Protobuf::MessageExts
150
+ extend ::Google::Protobuf::MessageExts::ClassMethods
151
+ end
152
+
138
153
  # ReportBillableTrip request message.
139
154
  # @!attribute [rw] name
140
155
  # @return [::String]
@@ -104,6 +104,22 @@ module Google
104
104
  extend ::Google::Protobuf::MessageExts::ClassMethods
105
105
  end
106
106
 
107
+ # DeleteVehicle request message.
108
+ # @!attribute [rw] header
109
+ # @return [::Google::Maps::FleetEngine::V1::RequestHeader]
110
+ # Optional. The standard Fleet Engine request header.
111
+ # @!attribute [rw] name
112
+ # @return [::String]
113
+ # Required. Must be in the format
114
+ # `providers/{provider}/vehicles/{vehicle}`.
115
+ # The \\{provider} must be the Project ID (for example, `sample-cloud-project`)
116
+ # of the Google Cloud Project of which the service account making
117
+ # this call is a member.
118
+ class DeleteVehicleRequest
119
+ include ::Google::Protobuf::MessageExts
120
+ extend ::Google::Protobuf::MessageExts::ClassMethods
121
+ end
122
+
107
123
  # `UpdateVehicle request message.
108
124
  # @!attribute [rw] header
109
125
  # @return [::Google::Maps::FleetEngine::V1::RequestHeader]
@@ -39,6 +39,13 @@ module Google
39
39
  # @!attribute [rw] last_location
40
40
  # @return [::Google::Maps::FleetEngine::V1::VehicleLocation]
41
41
  # Last reported location of the vehicle.
42
+ # @!attribute [rw] past_locations
43
+ # @return [::Array<::Google::Maps::FleetEngine::V1::VehicleLocation>]
44
+ # Input only. Locations where this vehicle has been in the past that haven't
45
+ # yet been reported to Fleet Engine. This is used in `UpdateVehicleRequest`
46
+ # to record locations which were previously unable to be sent to the server.
47
+ # Typically this happens when the vehicle does not have internet
48
+ # connectivity.
42
49
  # @!attribute [rw] maximum_capacity
43
50
  # @return [::Integer]
44
51
  # The total numbers of riders this vehicle can carry. The driver is not
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-maps-fleet_engine-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.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: 2024-12-10 00:00:00.000000000 Z
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.24.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.24.0
28
+ version: 0.25.0
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
@@ -130,7 +129,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
130
129
  licenses:
131
130
  - Apache-2.0
132
131
  metadata: {}
133
- post_install_message:
134
132
  rdoc_options: []
135
133
  require_paths:
136
134
  - lib
@@ -138,15 +136,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
138
136
  requirements:
139
137
  - - ">="
140
138
  - !ruby/object:Gem::Version
141
- version: '2.7'
139
+ version: '3.0'
142
140
  required_rubygems_version: !ruby/object:Gem::Requirement
143
141
  requirements:
144
142
  - - ">="
145
143
  - !ruby/object:Gem::Version
146
144
  version: '0'
147
145
  requirements: []
148
- rubygems_version: 3.5.23
149
- signing_key:
146
+ rubygems_version: 3.6.5
150
147
  specification_version: 4
151
148
  summary: Enables Fleet Engine for access to the On Demand Rides and Deliveries and
152
149
  Last Mile Fleet Solution APIs. Customer's use of Google Maps Content in the Cloud